summaryrefslogtreecommitdiff
path: root/projects/hackc/utils.py
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2022-08-30 19:55:41 +0800
committerFrederick Yin <fkfd@fkfd.me>2022-08-30 19:55:41 +0800
commit5b4f3e494c5d12e0b44c232ada41fe2e273b27c0 (patch)
tree9e7a6fbf2e57262ad4447dcacf3f34552fd9abcc /projects/hackc/utils.py
parentcb320b921c0574474430fe8d38aa5438a9f6ee98 (diff)
hackc: subroutine (partial)
Diffstat (limited to 'projects/hackc/utils.py')
-rw-r--r--projects/hackc/utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/projects/hackc/utils.py b/projects/hackc/utils.py
index 4861088..4b9c9f0 100644
--- a/projects/hackc/utils.py
+++ b/projects/hackc/utils.py
@@ -7,6 +7,8 @@ EXIT_CODE_SYNTAX_ERROR = 4
# vim autoindent misbehaves if I type these verbatim in strings
LEFT_BRACE = "{"
RIGHT_BRACE = "}"
+LEFT_PAREN = "("
+RIGHT_PAREN = ")"
class JackSyntaxError(Exception):
def __init__(self, msg, token):