Fixed bootstrap problem

This commit is contained in:
Kyler Olsen 2025-11-04 21:25:07 -07:00
parent f8f726aa52
commit 2ea933c8b1
1 changed files with 5 additions and 3 deletions

View File

@ -118,8 +118,10 @@ typedef struct {
size_t length; size_t length;
} StringLiteral; } StringLiteral;
typedef struct Token Token;
typedef struct { typedef struct {
Token *tokens; // TODO: Bootstrap Problem Token *tokens;
size_t length; size_t length;
} TokenString; } TokenString;
@ -152,7 +154,7 @@ typedef struct ArrayLiteral {
size_t dimensions; size_t dimensions;
} ArrayLiteral; } ArrayLiteral;
typedef struct { struct Token {
TokenType type; TokenType type;
union { union {
Identifier identifier; // type == TOKEN_IDENTIFIER Identifier identifier; // type == TOKEN_IDENTIFIER
@ -165,7 +167,7 @@ typedef struct {
TokenString token_string; // type == TOKEN_TOKEN_STRING TokenString token_string; // type == TOKEN_TOKEN_STRING
TypeTuple type_tuple; // type == TOKEN_TYPE_TUPLE TypeTuple type_tuple; // type == TOKEN_TYPE_TUPLE
}; };
} Token; };
typedef struct LexerTokenResult { typedef struct LexerTokenResult {
SlsResultType type; SlsResultType type;