diff options
-rw-r--r-- | include/lex.h | 2 | ||||
-rw-r--r-- | src/lex.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/lex.h b/include/lex.h index 2297be8..f556bf6 100644 --- a/include/lex.h +++ b/include/lex.h @@ -9,6 +9,7 @@ enum lexical_token { // Keywords T_ALIGN, + T_AS, T_BREAK, T_CONST, T_CONTINUE, @@ -25,6 +26,7 @@ enum lexical_token { T_PUB, T_RETURN, T_STRUCT, + T_TAGOF, T_TRUE, T_UNION, T_VAR, @@ -11,6 +11,7 @@ const char *tokens[] = { // Must match enum lexical_token (lex.h) [T_ALIGN] = "align", + [T_AS] = "as", [T_BREAK] = "break", [T_CONST] = "const", [T_CONTINUE] = "continue", @@ -27,6 +28,7 @@ const char *tokens[] = { [T_PUB] = "pub", [T_RETURN] = "return", [T_STRUCT] = "struct", + [T_TAGOF] = "tagof", [T_TRUE] = "true", [T_UNION] = "union", [T_VAR] = "var", |