aboutsummaryrefslogtreecommitdiff
path: root/include/tokenizer.h
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-10-06 20:17:27 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-25 14:36:46 +0200
commita9a8cf8d337470bb9b4466aea9593df7f5fac776 (patch)
tree22c197c8217cd216e58f8a47a6820d96ff279138 /include/tokenizer.h
parentfa03e7d230f2625c384ca9a7c314b6d05ab44e70 (diff)
Implicit cast to larger size, number suffix for number bitsize
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 */
};