summaryrefslogtreecommitdiff
path: root/projects/hackc/__main__.py
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2022-08-30 14:46:23 +0800
committerFrederick Yin <fkfd@fkfd.me>2022-08-30 14:46:23 +0800
commitb439d663a3f3d4d275f07339c1c0e794808f67d9 (patch)
tree6ab4a6b152336271f4d38c961cee67922020192e /projects/hackc/__main__.py
parentd303447dc7a830489828be2e66ccf8c36af4aed6 (diff)
hackc: parse variable declaration
Also add a handful of overloading operators to Token
Diffstat (limited to 'projects/hackc/__main__.py')
-rw-r--r--projects/hackc/__main__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/projects/hackc/__main__.py b/projects/hackc/__main__.py
index 1cb5c3f..c50461a 100644
--- a/projects/hackc/__main__.py
+++ b/projects/hackc/__main__.py
@@ -18,7 +18,7 @@ def compile_jack(input_path: Path, extensions: list, verbose: bool):
for input_fn in jack_files:
parser = Parser(input_fn, extensions=extensions)
parser.tokenize()
- parser.print_tokens()
+ parser.parse()
if __name__ == "__main__":