implemented function parsing
This commit is contained in:
parent
7d6436bb97
commit
b504739d59
6 changed files with 80 additions and 9 deletions
9
parser.h
9
parser.h
|
|
@ -191,6 +191,15 @@ typedef struct _ast_node {
|
|||
char *name;
|
||||
usize name_len;
|
||||
} structure;
|
||||
struct {
|
||||
member *parameters;
|
||||
usize parameters_len;
|
||||
char *name;
|
||||
usize name_len;
|
||||
char *type;
|
||||
usize type_len;
|
||||
struct _ast_node *body;
|
||||
} function;
|
||||
struct {
|
||||
variant *variants;
|
||||
char *name;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue