comparison python/c3/scope.py @ 231:521567d17388

simplify blink.c3
author Windel Bouwman
date Sat, 13 Jul 2013 20:20:44 +0200
parents 8b2e5f3cd579
children e64bae57cda8
comparison
equal deleted inserted replaced
230:88a1e0baef65 231:521567d17388
48 def __repr__(self): 48 def __repr__(self):
49 return 'Scope with {} symbols'.format(len(self.symbols)) 49 return 'Scope with {} symbols'.format(len(self.symbols))
50 50
51 # buildin types: 51 # buildin types:
52 intType = astnodes.BaseType('int') 52 intType = astnodes.BaseType('int')
53 intType.bytesize = 4
53 doubleType = astnodes.BaseType('double') 54 doubleType = astnodes.BaseType('double')
54 voidType = astnodes.BaseType('void') 55 voidType = astnodes.BaseType('void')
55 boolType = astnodes.BaseType('bool') 56 boolType = astnodes.BaseType('bool')
56 stringType = astnodes.BaseType('string') 57 stringType = astnodes.BaseType('string')
57 byteType = astnodes.BaseType('byte') 58 byteType = astnodes.BaseType('byte')