diff options
Diffstat (limited to 'lexer.h')
| -rw-r--r-- | lexer.h | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -1,6 +1,8 @@ #ifndef LEXER_H #define LEXER_H +#include "ccc.h" + enum token_type { TK_NOT_FOUND, TK_IDENT, @@ -54,15 +56,12 @@ enum token_type { TK_SHL_EQ }; -typedef unsigned long long int_lit_t; -typedef double float_lit_t; - struct token { enum token_type type; union { char* ident; - int_lit_t int_lit; - float_lit_t float_lit; + integral_t int_lit; + floating_t float_lit; char char_lit; char* str_lit; void* unused; |
