annotate python/ir/symboltable.py @ 167:0b5b2ee6b435

Added 2 unit tests
author Windel Bouwman
date Fri, 22 Mar 2013 17:40:13 +0100
parents 4e79484a9d47
children
rev   line source
107
1544e7a4aa98 Improvements
Windel Bouwman
parents:
diff changeset
1
1544e7a4aa98 Improvements
Windel Bouwman
parents:
diff changeset
2 class SymbolTable:
1544e7a4aa98 Improvements
Windel Bouwman
parents:
diff changeset
3 """ Holds a table of symbols for a module or function """
1544e7a4aa98 Improvements
Windel Bouwman
parents:
diff changeset
4 def __init__(self):
1544e7a4aa98 Improvements
Windel Bouwman
parents:
diff changeset
5 self.symbols = {}
1544e7a4aa98 Improvements
Windel Bouwman
parents:
diff changeset
6
1544e7a4aa98 Improvements
Windel Bouwman
parents:
diff changeset
7