aboutsummaryrefslogtreecommitdiff
path: root/src/compiler.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-02-18 23:05:50 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2024-02-18 23:05:50 +0200
commitb8eb76ef8efb2b000cb53d4d92d0c0df509cbdb8 (patch)
treee928c8b6a4117cc5d683f27350866b54d26aba12 /src/compiler.c
parentc62ce7a940a4d90e2b7bd8699bdfdb79f0331507 (diff)
downloadek-b8eb76ef8efb2b000cb53d4d92d0c0df509cbdb8.tar.gz
ek-b8eb76ef8efb2b000cb53d4d92d0c0df509cbdb8.zip
implement some basic generic features
Diffstat (limited to 'src/compiler.c')
-rw-r--r--src/compiler.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler.c b/src/compiler.c
index 5845283..76b420a 100644
--- a/src/compiler.c
+++ b/src/compiler.c
@@ -168,16 +168,19 @@ int compile(const char *input, const char *output) {
struct scope *root = NULL;
if (process_file(&root, 0, input)) {
destroy_scope(root);
+ destroy_ast_nodes();
error("compilation of %s stopped due to errors", input);
return ret;
}
+ /*
if ((ret = actualize_main(root))) {
destroy_scope(root);
destroy_ast_nodes();
error("compilation of %s stopped due to errors", input);
return ret;
}
+ */
if ((ret = lower_ops(root, output))) {
destroy_scope(root);