view python/ks/builtin.py @ 151:afc8c0207984

Added ir code generator stub
author Windel Bouwman
date Fri, 01 Mar 2013 17:13:56 +0100
parents 91af0e40f868
children
line wrap: on
line source

from .nodes import *

boolean = BaseType('boolean', 8)
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))