From 292accecc3cd4ebb9dd881617f443bc1f2b6b8ce Mon Sep 17 00:00:00 2001 From: Kyler Olsen Date: Mon, 27 Oct 2025 17:40:08 -0600 Subject: [PATCH] Add length field to Identifier struct and define String struct in lexer header --- SLS_C/include/sls/lexer.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SLS_C/include/sls/lexer.h b/SLS_C/include/sls/lexer.h index ee0bb2a..156d442 100644 --- a/SLS_C/include/sls/lexer.h +++ b/SLS_C/include/sls/lexer.h @@ -34,6 +34,7 @@ typedef enum { typedef struct { const char *name; + size_t length; uint8_t is_literal; } Identifier; @@ -42,4 +43,9 @@ typedef struct { IntegerBuiltInType type; } IntegerLiteral; +typedef struct { + const char *value; + size_t length; +} String; + #endif // SLS_LEXER_H