diff 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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/python/ppci/frontends/ks/builtin.py	Tue Dec 25 11:11:24 2012 +0100
@@ -0,0 +1,10 @@
+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))
+