view python/ppci/frontends/ks/builtin.py @ 104:ed230e947dc6

Added hexviewer
author windel
date Sun, 30 Dec 2012 22:31:55 +0100
parents 63937c8d1478
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))