diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/parser.h | 6 | ||||
-rw-r--r-- | src/include/tree.h | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/src/include/parser.h b/src/include/parser.h index acf6438..59cd0ae 100644 --- a/src/include/parser.h +++ b/src/include/parser.h @@ -49,6 +49,12 @@ tree_t* parser_parse_expr(parser_t* parser); /* Return the tree for an expression. */ tree_t* parser_parse_block(parser_t* parser); +/* Return the tree for a definition's arguments. */ +tree_t* parser_parse_darg(parser_t* parser); + +/* Return the tree for a definition. */ +tree_t* parser_parse_def(parser_t* parser); + /* Return the tree for a call's arguments. */ tree_t* parser_parse_carg(parser_t* parser); diff --git a/src/include/tree.h b/src/include/tree.h index 8954ef8..1976773 100644 --- a/src/include/tree.h +++ b/src/include/tree.h @@ -51,18 +51,18 @@ typedef struct TREE { /* Tags. */ struct TREE_DATA_TAG { char* val; - struct TREE* nxt; /* TAG* */ + struct TREE* nxt; /* TAG */ } tag; /* Definition arguments. */ struct TREE_DATA_DARG { - struct TREE* tag; /* TAG* */ + struct TREE* val; /* DEF */ struct TREE* nxt; /* DARG */ } darg; /* Call arguments. */ struct TREE_DATA_CARG { - struct TREE* val; + struct TREE* val; /* EXPR */ struct TREE* nxt; /* CARG */ } carg; |