diff options
Diffstat (limited to 'include/lexer/token.h')
-rw-r--r-- | include/lexer/token.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/lexer/token.h b/include/lexer/token.h index e89da51..9400c01 100644 --- a/include/lexer/token.h +++ b/include/lexer/token.h @@ -38,11 +38,16 @@ enum token_kind { TK_EOF, TK_IDENTIFIER, - TK_VOID + TK_VOID, + TK_INT }; +#define TF_NONE 0 +#define TF_BUILTIN_TYPE (1 << 0) + struct token { enum token_kind kind; + uint8_t flags; const char *pos; int line; |