diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2023-12-03 00:42:05 -0500 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2023-12-03 00:42:05 -0500 |
commit | 7c86a52a7f41c279b3e8743e5326f7f276bb60ac (patch) | |
tree | e7c77adc68cc5105c9a7706261c2fbdc4920c912 | |
parent | f064dca1d0a2875c52f140ee637985ad0a265fb4 (diff) |
Remove method from unknown block types
-rw-r--r-- | compiler.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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; } |