Mercurial > lcfOS
diff python/ppci/c3/scope.py @ 307:e609d5296ee9
Massive rewrite of codegenerator
author | Windel Bouwman |
---|---|
date | Thu, 12 Dec 2013 20:42:56 +0100 |
parents | b145f8e6050b |
children | 5477e499b039 |
line wrap: on
line diff
--- a/python/ppci/c3/scope.py Mon Dec 09 19:00:21 2013 +0100 +++ b/python/ppci/c3/scope.py Thu Dec 12 20:42:56 2013 +0100 @@ -1,4 +1,4 @@ -from .astnodes import Constant, Variable, Function, BaseType +from .astnodes import Constant, Variable, Function, BaseType, Symbol class Scope: @@ -54,6 +54,7 @@ def addSymbol(self, sym): assert sym.name not in self.symbols + assert isinstance(sym, Symbol) self.symbols[sym.name] = sym def __repr__(self):