Refactor ArrayLiteral and TypeTuple structs to define fields for token types and identifiers
This commit is contained in:
parent
6b2ee045c7
commit
bf8066ea21
|
|
@ -49,7 +49,19 @@ typedef struct {
|
|||
} StringLiteral;
|
||||
|
||||
typedef struct {
|
||||
// TODO
|
||||
TokenType type;
|
||||
union {
|
||||
Identifier *identifiers;
|
||||
IntegerLiteral *integer_literals;
|
||||
float *float_literals;
|
||||
double *double_literals;
|
||||
StringLiteral *string_literals;
|
||||
uint8_t *boolean_literals;
|
||||
ArrayLiteral *array_literals;
|
||||
TokenString *token_strings;
|
||||
TypeTuple *type_tuples;
|
||||
};
|
||||
size_t length;
|
||||
} ArrayLiteral;
|
||||
|
||||
typedef struct {
|
||||
|
|
@ -58,7 +70,10 @@ typedef struct {
|
|||
} TokenString;
|
||||
|
||||
typedef struct {
|
||||
// TODO
|
||||
Identifier *input_identifiers;
|
||||
size_t input_length;
|
||||
Identifier *output_identifiers;
|
||||
size_t output_length;
|
||||
} TypeTuple;
|
||||
|
||||
typedef struct {
|
||||
|
|
|
|||
Loading…
Reference in New Issue