From 75811ebbd166b3cd271bb730323cc7ab4fdcb3a5 Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Tue, 30 Aug 2022 22:26:13 +0800 Subject: hackc: Subroutine takes care of parens --- projects/hackc/parser.py | 1 + 1 file changed, 1 insertion(+) (limited to 'projects/hackc/parser.py') 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]) -- cgit v1.2.3