Moved Identifier struct definition to improve clarity

This commit is contained in:
Kyler Olsen 2025-10-28 21:44:02 -06:00
parent bf8066ea21
commit bd80b899df
1 changed files with 6 additions and 6 deletions

View File

@ -21,6 +21,12 @@ typedef enum {
TOKEN_TYPE_TUPLE, TOKEN_TYPE_TUPLE,
} TokenType; } TokenType;
typedef struct {
const char *name;
size_t length;
uint8_t is_literal;
} Identifier;
typedef enum { typedef enum {
INTEGER_I64, INTEGER_I64,
INTEGER_I32, INTEGER_I32,
@ -32,12 +38,6 @@ typedef enum {
INTEGER_U8, INTEGER_U8,
} IntegerBuiltInType; } IntegerBuiltInType;
typedef struct {
const char *name;
size_t length;
uint8_t is_literal;
} Identifier;
typedef struct { typedef struct {
uint64_t value; uint64_t value;
IntegerBuiltInType type; IntegerBuiltInType type;