summaryrefslogtreecommitdiff
path: root/compiler/parser/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/parser/parser.c')
-rw-r--r--compiler/parser/parser.c4
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;