From 2e5887b6c9131ef12b57b8af9b15ac00964366fe Mon Sep 17 00:00:00 2001 From: Kyler Olsen Date: Mon, 27 Oct 2025 17:36:09 -0600 Subject: [PATCH] Refactor lexer header to include additional token types and integer literal structure --- SLS_C/include/sls/lexer.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/SLS_C/include/sls/lexer.h b/SLS_C/include/sls/lexer.h index b5920f8..ee0bb2a 100644 --- a/SLS_C/include/sls/lexer.h +++ b/SLS_C/include/sls/lexer.h @@ -13,6 +13,7 @@ typedef enum { TOKEN_IDENTIFIER, TOKEN_INTEGER, TOKEN_FLOAT, + TOKEN_DOUBLE, TOKEN_STRING, TOKEN_BOOLEAN, TOKEN_ARRAY, @@ -20,9 +21,25 @@ typedef enum { TOKEN_TYPE_TUPLE, } TokenType; +typedef enum { + INTEGER_I64, + INTEGER_I32, + INTEGER_I16, + INTEGER_I8, + INTEGER_U64, + INTEGER_U32, + INTEGER_U16, + INTEGER_U8, +} IntegerBuiltInType; + typedef struct { const char *name; uint8_t is_literal; } Identifier; +typedef struct { + uint64_t value; + IntegerBuiltInType type; +} IntegerLiteral; + #endif // SLS_LEXER_H