diff options
Diffstat (limited to 'parser.h')
-rw-r--r-- | parser.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -28,7 +28,7 @@ typedef struct ASTwhile ASTwhile; struct ASTblock{ int len; - AST *exprs; + AST **exprs; }; struct ASTop{ const char *op; // Constant string, does not need to be freed @@ -51,7 +51,7 @@ struct ASTvar{ struct ASTcall{ char *func; int nargs; - AST *args; // Array<AST> + AST **args; }; struct ASTif{ AST *cond; @@ -77,4 +77,5 @@ typedef struct AST{ } AST; -AST* parse(const char *source); +ASTblock* parse(const char *source); +void ast_free(AST *ast); |