diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-12-23 08:57:48 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-25 14:37:00 +0200 |
commit | 902a81528b9d2edcf93226a2ca13da6fcc1839e5 (patch) | |
tree | ea868fae662aab61f1caa50b16a8b02fe1e6836b /include/tokenizer.h | |
parent | 111bd0c7cb4b446c4bfe192b1df82845de17c005 (diff) |
wip: function pointers and other stuff
Diffstat (limited to 'include/tokenizer.h')
-rw-r--r-- | include/tokenizer.h | 4 |
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 */ }; |