diff options
author | Frederick Yin <fkfd@fkfd.me> | 2022-08-30 22:26:13 +0800 |
---|---|---|
committer | Frederick Yin <fkfd@fkfd.me> | 2022-08-30 22:26:13 +0800 |
commit | 75811ebbd166b3cd271bb730323cc7ab4fdcb3a5 (patch) | |
tree | cf176475e6806b1ad200ba61063266aab6e04c2a /projects/hackc/parser.py | |
parent | 5b4f3e494c5d12e0b44c232ada41fe2e273b27c0 (diff) |
hackc: Subroutine takes care of parens
Diffstat (limited to 'projects/hackc/parser.py')
-rw-r--r-- | projects/hackc/parser.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/projects/hackc/parser.py b/projects/hackc/parser.py index 2fc30ee..8375d52 100644 --- a/projects/hackc/parser.py +++ b/projects/hackc/parser.py @@ -96,6 +96,7 @@ class Parser: def parse(self): try: syntax_tree = Class.from_tokens(self.tokens) + syntax_tree.print_verbose() except JackSyntaxError as err: print_err(f"{self._fp}:{err.token.line_no + 1}") print_err(self.lines[err.token.line_no]) |