From 285e296021914d7cf471bc6974b7808e2e6cb8ca Mon Sep 17 00:00:00 2001 From: Kyler Olsen Date: Mon, 27 Oct 2025 17:46:15 -0600 Subject: [PATCH] Refactor lexer header to define StringLiteral struct and add placeholders for ArrayLiteral, TokenString, and TypeTuple --- SLS_C/include/sls/lexer.h | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/SLS_C/include/sls/lexer.h b/SLS_C/include/sls/lexer.h index 156d442..b52eed7 100644 --- a/SLS_C/include/sls/lexer.h +++ b/SLS_C/include/sls/lexer.h @@ -46,6 +46,33 @@ typedef struct { typedef struct { const char *value; size_t length; -} String; +} StringLiteral; + +typedef struct { + // TODO +} ArrayLiteral; + +typedef struct { + // TODO +} TokenString; + +typedef struct { + // TODO +} TypeTuple; + +typedef struct { + TokenType type; + union { + Identifier identifier; + IntegerLiteral integer_literal; + float float_literal; + double double_literal; + StringLiteral string_literal; + uint8_t boolean_literal; + ArrayLiteral array_literal; + TokenString token_string; + TypeTuple type_tuple; + }; +} Token; #endif // SLS_LEXER_H