Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- self._CT_table = {'add': CT.C_ARITHMETIC,
- 'sub': CT.C_ARITHMETIC,
- 'neg': CT.C_ARITHMETIC,
- 'eq': CT.C_ARITHMETIC,
- 'gt': CT.C_ARITHMETIC,
- 'lt': CT.C_ARITHMETIC,
- 'and': CT.C_ARITHMETIC,
- 'or': CT.C_ARITHMETIC,
- 'not': CT.C_ARITHMETIC,
- 'push': CT.C_PUSH,
- 'pop': CT.C_POP,
- 'label': CT.C_LABEL,
- 'goto': CT.C_GOTO,
- 'if-goto': CT.C_IF,
- 'function': CT.C_FUNCTION,
- 'call': CT.C_CALL,
- 'return': CT.C_RETURN}
- self.segments = {'local': 'LCL',
- 'argument': 'ARG',
- 'this': 'THIS',
- 'that': 'THAT',
- 'temp': '5'}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement