summaryrefslogtreecommitdiff
path: root/projects/hackc/parser.py
diff options
context:
space:
mode:
Diffstat (limited to 'projects/hackc/parser.py')
-rw-r--r--projects/hackc/parser.py1
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])