From b8eb76ef8efb2b000cb53d4d92d0c0df509cbdb8 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 18 Feb 2024 23:05:50 +0200 Subject: implement some basic generic features --- src/compiler.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/compiler.c') 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); -- cgit v1.3