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