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