Moved Identifier struct definition to improve clarity
This commit is contained in:
parent
bf8066ea21
commit
bd80b899df
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue