From 6ab9c3732793b6fd40e6388cf1b08756194c0ea6 Mon Sep 17 00:00:00 2001 From: Quinn Stephens Date: Thu, 7 Nov 2024 16:59:19 -0500 Subject: [compiler] Parse return statements Laid groundwork for statements and AST trees. Currently return values are not supported, expression parsing must be implemented first. Also stopped dumping parsed type definitions. Signed-off-by: Quinn Stephens --- include/parser/proc.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/parser/proc.h') diff --git a/include/parser/proc.h b/include/parser/proc.h index 0cc8471..f74fee6 100644 --- a/include/parser/proc.h +++ b/include/parser/proc.h @@ -9,6 +9,7 @@ #include "list.h" #include "hashmap.h" +#include "parser/ast.h" #include "parser/var.h" struct parameter { @@ -27,6 +28,8 @@ struct procedure { struct type *ret_typ; int ret_n_ptrs; + + struct ast_node *node; }; void parse_proc(struct parser *ctx); -- cgit v1.2.3