aboutsummaryrefslogtreecommitdiff
path: root/include/tokenizer.h
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-12-23 08:57:48 +0100
committerdec05eba <dec05eba@protonmail.com>2020-07-25 14:37:00 +0200
commit902a81528b9d2edcf93226a2ca13da6fcc1839e5 (patch)
treeea868fae662aab61f1caa50b16a8b02fe1e6836b /include/tokenizer.h
parent111bd0c7cb4b446c4bfe192b1df82845de17c005 (diff)
wip: function pointers and other stuff
Diffstat (limited to 'include/tokenizer.h')
-rw-r--r--include/tokenizer.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/tokenizer.h b/include/tokenizer.h
index ceb7acf..5d59d73 100644
--- a/include/tokenizer.h
+++ b/include/tokenizer.h
@@ -22,6 +22,8 @@ typedef enum {
TOK_CONST,
TOK_VAR,
TOK_STRING,
+ TOK_NUMBER,
+ TOK_BOOL,
TOK_FN,
TOK_STRUCT,
TOK_EQUALS,
@@ -32,7 +34,6 @@ typedef enum {
TOK_OPEN_BRACE,
TOK_CLOSING_BRACE,
TOK_IMPORT,
- TOK_NUMBER,
TOK_SEMICOLON,
TOK_COLON,
TOK_BINOP,
@@ -66,6 +67,7 @@ struct Tokenizer {
BinopType binop_type;
} value;
AmalNumber number;
+ bool bool_value;
ArenaAllocator *allocator; /* borrowed */
const amal_compiler_options *compiler_options; /* borrowed */
};