comparison python/c3/astnodes.py @ 251:6ed3d3a82a63

Added another c3 example. First import attempt
author Windel Bouwman
date Mon, 29 Jul 2013 20:23:13 +0200
parents e41e4109addd
children e64bae57cda8
comparison
equal deleted inserted replaced
250:f5fba5b554d7 251:6ed3d3a82a63
14 class Package(Node): 14 class Package(Node):
15 def __init__(self, name, loc): 15 def __init__(self, name, loc):
16 self.name = name 16 self.name = name
17 self.loc = loc 17 self.loc = loc
18 self.declarations = [] 18 self.declarations = []
19 self.imports = []
19 def __repr__(self): 20 def __repr__(self):
20 return 'PACKAGE {}'.format(self.name) 21 return 'PACKAGE {}'.format(self.name)
21 22
22 class Designator(Node): 23 class Designator(Node):
23 def __init__(self, tname, loc): 24 def __init__(self, tname, loc):