summaryrefslogtreecommitdiffhomepage
path: root/lexer.h
diff options
context:
space:
mode:
Diffstat (limited to 'lexer.h')
-rw-r--r--lexer.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lexer.h b/lexer.h
index b8ed7bc..ff653bd 100644
--- a/lexer.h
+++ b/lexer.h
@@ -19,7 +19,10 @@
#include "ast.h"
-extern const char *tokennames[69];
+#define __T_MAX 69
+#define T_EXCEPTION (__T_MAX + 0)
+
+extern const char *tokennames[__T_MAX];
bool
utf8enc(char **out, int *rem, int code);