Mercurial > lcfOS
diff python/ppci/core/module.py @ 107:1544e7a4aa98
Improvements
author | Windel Bouwman |
---|---|
date | Tue, 01 Jan 2013 17:16:05 +0100 |
parents | f2d980eef509 |
children |
line wrap: on
line diff
--- a/python/ppci/core/module.py Mon Dec 31 18:26:56 2012 +0100 +++ b/python/ppci/core/module.py Tue Jan 01 17:16:05 2013 +0100 @@ -1,4 +1,3 @@ - from .value import Value from .symboltable import SymbolTable @@ -6,8 +5,8 @@ """ Main container for a piece of code. Contains globals and functions. """ - def __init__(self): - self.identifier = None + def __init__(self, identifier=None): + self.identifier = identifier self.functions = [] # Do functions come out of symbol table? self.globals_ = [] # TODO: are globals in symbol table? self.symtable = SymbolTable()