summaryrefslogtreecommitdiff
path: root/core/lexer.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/lexer.c')
-rw-r--r--core/lexer.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/core/lexer.c b/core/lexer.c
index 6c7a4c9..9705eb7 100644
--- a/core/lexer.c
+++ b/core/lexer.c
@@ -186,6 +186,30 @@ lexer_check_kw(struct cescal_state *state, struct token *res)
res->type = TT_RETURN;
return;
}
+
+ break;
+ case 'u':
+ if (strcmp(res->s, "u8") == 0) {
+ res->type = TT_U8;
+ return;
+ }
+
+ if (strcmp(res->s, "u16") == 0) {
+ res->type = TT_U16;
+ return;
+ }
+
+ if (strcmp(res->s, "u32") == 0) {
+ res->type = TT_U32;
+ return;
+ }
+
+ if (strcmp(res->s, "u64") == 0) {
+ res->type = TT_U64;
+ return;
+ }
+
+ break;
}
}