implemented variable parsing

This commit is contained in:
Lorenzo Torres 2025-12-02 21:47:00 +01:00
parent 9302e4710d
commit d0d750f059
4 changed files with 36 additions and 5 deletions

View file

@ -170,6 +170,13 @@ typedef struct _ast_node {
struct _ast_node **statements;
usize stmt_len;
} compound;
struct {
struct _ast_node *value;
char *name;
usize name_len;
char *type;
usize type_len;
} var_decl;
} expr;
} ast_node;