diff python/ppci/core/module.py @ 106:f2d980eef509

improved code generation
author Windel Bouwman
date Mon, 31 Dec 2012 18:26:56 +0100
parents 6a303f835c6d
children 1544e7a4aa98
line wrap: on
line diff
--- a/python/ppci/core/module.py	Mon Dec 31 17:35:17 2012 +0100
+++ b/python/ppci/core/module.py	Mon Dec 31 18:26:56 2012 +0100
@@ -7,10 +7,12 @@
       Main container for a piece of code. Contains globals and functions.
    """
    def __init__(self):
-      self.functions = []
-      self.globals_ = []
+      self.identifier = None
+      self.functions = [] # Do functions come out of symbol table?
+      self.globals_ = [] # TODO: are globals in symbol table?
       self.symtable = SymbolTable()
 
    Globals = property(lambda self: self.globals_)
    Functions = property(lambda self: self.functions)
+   Identifier = property(lambda self: self.identifier)