diff options
author | Quinn Stephens <quinn@osmora.org> | 2024-11-03 19:12:47 -0500 |
---|---|---|
committer | Quinn Stephens <quinn@osmora.org> | 2024-11-03 19:12:47 -0500 |
commit | 063c40584ae78a396b558a5e2a08e3d871450c0b (patch) | |
tree | 1acca2d57ba421530b1cfd2a23f0658e35e7ebae /compiler/parser/parser.c | |
parent | 71b10c1c765196a771ce05216395d6b78892a735 (diff) |
[compiler] Parse and print procedure declarations
Signed-off-by: Quinn Stephens <quinn@osmora.org>
Diffstat (limited to 'compiler/parser/parser.c')
-rw-r--r-- | compiler/parser/parser.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |