implemented variable parsing
This commit is contained in:
parent
9302e4710d
commit
d0d750f059
4 changed files with 36 additions and 5 deletions
7
parser.h
7
parser.h
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue