view python/ppci/frontends/ks/builtin.py @ 102:63937c8d1478

Fixes and start with ir generator
author windel
date Tue, 25 Dec 2012 11:11:24 +0100
parents python/ppci/builtin.py@a350055d6119
children 9e552d34bd60
line wrap: on
line source

from .nodes import *

boolean = BaseType('boolean', 8) # Choose: 1 or 8 bytes?
integer = BaseType('integer', 8)
real = BaseType('real', 8)
char = BaseType('char', 1)
void = BaseType('void', 0)

chr_func = BuiltinProcedure('chr', ProcedureType([Parameter('value', 'x', integer)], char))