summaryrefslogtreecommitdiff
path: root/lexer.h
diff options
context:
space:
mode:
Diffstat (limited to 'lexer.h')
-rw-r--r--lexer.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/lexer.h b/lexer.h
index aefca82..f228b2a 100644
--- a/lexer.h
+++ b/lexer.h
@@ -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;