hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.c b/main.c
index 682b9db..db2c879 100644
--- a/main.c
+++ b/main.c
@@ -13,7 +13,11 @@ static int run_program(void)
if (status != 0 || lexer_failed())
status = 1;
else
- status = execute(program_root) == RUN_FAILED;
+ {
+ struct Machine machine;
+ machine_init(&machine);
+ status = execute(&machine, program_root) == RUN_FAILED;
+ }
node_free(program_root);
program_root = NULL;