From 063c40584ae78a396b558a5e2a08e3d871450c0b Mon Sep 17 00:00:00 2001 From: Quinn Stephens Date: Sun, 3 Nov 2024 19:12:47 -0500 Subject: [compiler] Parse and print procedure declarations Signed-off-by: Quinn Stephens --- compiler/parser/parser.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'compiler/parser/parser.c') diff --git a/compiler/parser/parser.c b/compiler/parser/parser.c index a630e37..7ee3270 100644 --- a/compiler/parser/parser.c +++ b/compiler/parser/parser.c @@ -12,6 +12,7 @@ #include "debug.h" #include "hashmap.h" #include "parser/type.h" +#include "parser/proc.h" #include "parser.h" static void @@ -62,6 +63,9 @@ parser_parse(struct parser *ctx) next_token(ctx); while (ctx->tok.kind != TK_EOF) { switch (ctx->tok.kind) { + case TK_PROC: + parse_proc(ctx); + break; case TK_TYPE: parse_type(ctx); break; -- cgit v1.2.3