aboutsummaryrefslogtreecommitdiff
path: root/include/tokenizer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/tokenizer.h')
-rw-r--r--include/tokenizer.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/tokenizer.h b/include/tokenizer.h
index f716ab2..ceb7acf 100644
--- a/include/tokenizer.h
+++ b/include/tokenizer.h
@@ -5,6 +5,7 @@
#include "std/misc.h"
#include "std/defs.h"
#include "defs.h"
+#include "number.h"
#include "binop_type.h"
#include "compiler_options.h"
#include <stdarg.h>
@@ -62,11 +63,9 @@ struct Tokenizer {
union {
BufferView identifier;
BufferView string;
- i64 integer;
- f64 floating;
BinopType binop_type;
} value;
- bool number_is_integer;
+ AmalNumber number;
ArenaAllocator *allocator; /* borrowed */
const amal_compiler_options *compiler_options; /* borrowed */
};