Commit 21d19f72 authored by Neal Norwitz's avatar Neal Norwitz

Get symtable to limp along, can run compiler/symbols.py. Not saying much, needs more work.

parent 545d4962
......@@ -13,7 +13,10 @@ __all__ = ["symtable", "SymbolTable", "newSymbolTable", "Class",
def symtable(code, filename, compile_type):
raw = _symtable.symtable(code, filename, compile_type)
return newSymbolTable(raw[0], filename)
for top in raw.itervalues():
if top.name == 'top':
break
return newSymbolTable(top, filename)
class SymbolTableFactory:
def __init__(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment