Commit ccbbf2a7 authored by Stefan Marr's avatar Stefan Marr

Remove symbol_table.py, should have been part of second to last commit

Signed-off-by: 's avatarStefan Marr <git@stefan-marr.de>
parent 0bdb1eaa
class SymbolTable(object):
def __init__(self):
self._map = {}
def lookup(self, string):
# Lookup the given string in the hash map
return self._map.get(string, None)
def insert(self, symbol):
# Insert the given symbol into the hash map by associating the
# symbol associated string to the symbol itself
self._map[symbol.get_string()] = symbol
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