diff options
| author | 0x221e <x221e@0xinfinity.dev> | 2026-06-22 13:18:43 +0300 |
|---|---|---|
| committer | 0x221e <x221e@0xinfinity.dev> | 2026-06-22 13:22:10 +0300 |
| commit | ad5d641ad41f415cca3cc01c88bc063319aba937 (patch) | |
| tree | f03b2c0116bb41535e2fe7aa11294948b66e99c8 /include/lex.h | |
| parent | 45f4a6afd2a5683fa53f9d6787e3c5b0f70229fd (diff) | |
| download | metalc-master.tar.gz | |
lex: add bang
passes: add initial debug pass
Diffstat (limited to 'include/lex.h')
| -rw-r--r-- | include/lex.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/lex.h b/include/lex.h index bdfd32f..ab09baf 100644 --- a/include/lex.h +++ b/include/lex.h @@ -30,6 +30,7 @@ #define TOKEN_MINUS 22 #define TOKEN_STAR 23 #define TOKEN_SLASH 24 +#define TOKEN_BANG 25 const char* lex_get_token_name(int id); @@ -40,8 +41,7 @@ const char* lex_get_token_name(int id); struct token { int type; -// size_t line; -// size_t linepos; + size_t line; size_t length; char *lexeme; }; |
