summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2023-12-03 00:42:05 -0500
committerKyle Gunger <kgunger12@gmail.com>2023-12-03 00:42:05 -0500
commit7c86a52a7f41c279b3e8743e5326f7f276bb60ac (patch)
treee7c77adc68cc5105c9a7706261c2fbdc4920c912
parentf064dca1d0a2875c52f140ee637985ad0a265fb4 (diff)
Remove method from unknown block types
-rw-r--r--compiler.c7
1 files 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;
}