summaryrefslogtreecommitdiff
path: root/projects/hackc/utils.py
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2022-08-31 17:08:38 +0800
committerFrederick Yin <fkfd@fkfd.me>2022-08-31 17:08:38 +0800
commit1328887bb78ba034fe3d496ad8029382c1ec678e (patch)
treef3b47fc3abaf9094184deacee3cae47317a2f0bd /projects/hackc/utils.py
parent482eed0ae339e977a618c4ab60525596426cf967 (diff)
hackc: Parser handles IndexError
Diffstat (limited to 'projects/hackc/utils.py')
-rw-r--r--projects/hackc/utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/projects/hackc/utils.py b/projects/hackc/utils.py
index 4b9c9f0..58888ac 100644
--- a/projects/hackc/utils.py
+++ b/projects/hackc/utils.py
@@ -3,6 +3,7 @@ from sys import stderr
EXIT_CODE_FILE_ERROR = 1
EXIT_CODE_INVALID_TOKEN = 2
EXIT_CODE_SYNTAX_ERROR = 4
+EXIT_CODE_EOF = 7
# vim autoindent misbehaves if I type these verbatim in strings
LEFT_BRACE = "{"