Fixed bootstrap problem
This commit is contained in:
parent
f8f726aa52
commit
2ea933c8b1
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue