Starting declarations ;/

This commit is contained in:
Krzosa Karol
2026-05-23 17:48:42 +02:00
parent b1b79abfd4
commit bd97674f50
2 changed files with 17 additions and 9 deletions

4
ast.c
View File

@@ -39,6 +39,7 @@ struct Type {
typedef enum Ast_Kind {
AST_NONE,
AST_ERROR,
AST_PROGRAM,
AST_INT,
AST_UNARY,
AST_BINARY,
@@ -53,6 +54,9 @@ struct Ast {
Ast_Kind kind;
Token *pos;
Ast *first;
Ast *last;
union {
uint64_t u;
struct {