Mercurial > lcfOS
comparison python/ppci/c3/astnodes.py @ 301:6753763d3bec
merge codegen into ppci package
author | Windel Bouwman |
---|---|
date | Thu, 05 Dec 2013 17:02:38 +0100 |
parents | 158068af716c |
children | b145f8e6050b |
comparison
equal
deleted
inserted
replaced
300:158068af716c | 301:6753763d3bec |
---|---|
25 def References(self): | 25 def References(self): |
26 return self.refs | 26 return self.refs |
27 | 27 |
28 | 28 |
29 # Modules | 29 # Modules |
30 class Package(Node): | 30 class Package(Symbol): |
31 def __init__(self, name, loc): | 31 def __init__(self, name, loc): |
32 self.name = name | 32 super().__init__(name) |
33 self.loc = loc | 33 self.loc = loc |
34 self.declarations = [] | 34 self.declarations = [] |
35 self.imports = [] | 35 self.imports = [] |
36 | 36 |
37 def __repr__(self): | 37 def __repr__(self): |