From 5b4f3e494c5d12e0b44c232ada41fe2e273b27c0 Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Tue, 30 Aug 2022 19:55:41 +0800 Subject: hackc: subroutine (partial) --- projects/hackc/utils.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'projects/hackc/utils.py') 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): -- cgit v1.2.3