commit 78ff6f8f8a7873d2ea073064733bc221b7833024
parent cc718c1d026a2f8e3d0980e16de9210f3682dea8
Author: Eyal Sawady <ecs@d2evs.net>
Date: Fri, 20 Nov 2020 11:03:30 -0500
lex: add rune type
Diffstat:
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/include/lex.h b/include/lex.h
@@ -34,6 +34,7 @@ enum lexical_token {
T_NULL,
T_NULLABLE,
T_RETURN,
+ T_RUNE,
T_SIZE,
T_STATIC,
T_STR,
diff --git a/src/lex.c b/src/lex.c
@@ -41,6 +41,7 @@ static const char *tokens[] = {
[T_NULL] = "null",
[T_NULLABLE] = "nullable",
[T_RETURN] = "return",
+ [T_RUNE] = "rune",
[T_SIZE] = "size",
[T_STATIC] = "static",
[T_STR] = "str",