From 7c86a52a7f41c279b3e8743e5326f7f276bb60ac Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Sun, 3 Dec 2023 00:42:05 -0500 Subject: Remove method from unknown block types --- compiler.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/compiler.c b/compiler.c index ef7e932..8b60f8c 100644 --- a/compiler.c +++ b/compiler.c @@ -1596,13 +1596,16 @@ void p1_file_loop(Artifact *path, Module *root, Vector *tokens, size_t start, si break; case BT_METHOD: p1_parse_method(root, tokens, &start); - case BT_INTERFACE: - printf("ERROR: Block type not implemented \"%s\" (%d:%d)\n\n", t->data, t->line, t->col); break; case BT_CONTROL: + case BT_INTERFACE: case BT_OPERATOR: + printf("ERROR: Block type not implemented \"%s\" (%d:%d)\n\n", t->data, t->line, t->col); + p1_error = true; + break; default: printf("ERROR: Unknown block type \"%s\" at file root (%d:%d)\n\n", t->data, t->line, t->col); + p1_error = true; break; } -- cgit v1.2.3