aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/lex.h1
-rw-r--r--include/type.h1
-rw-r--r--src/lex.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/include/lex.h b/include/lex.h
index 2c32e5c..c42dc4b 100644
--- a/include/lex.h
+++ b/include/lex.h
@@ -30,6 +30,7 @@ enum lexical_token {
T_LAST_KEYWORD,
// Builtin types
+ T_BOOL,
T_FLOAT32,
T_FLOAT64,
T_INT8,
diff --git a/include/type.h b/include/type.h
index 8f726a2..edcbd77 100644
--- a/include/type.h
+++ b/include/type.h
@@ -45,6 +45,7 @@ struct cer_union {
};
enum type_kind {
+ TYP_BOOL,
TYP_INT,
TYP_FLOAT,
TYP_ARRAY,
diff --git a/src/lex.c b/src/lex.c
index 55452cd..169a1c0 100644
--- a/src/lex.c
+++ b/src/lex.c
@@ -30,6 +30,7 @@ const char *tokens[] = {
[T_TRUE] = "true",
[T_UNION] = "union",
+ [T_BOOL] = "bool",
[T_FLOAT32] = "float32",
[T_FLOAT64] = "float64",
[T_INT8] = "int8",