diff options
author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-04-26 19:03:48 +0300 |
---|---|---|
committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-04-26 19:03:48 +0300 |
commit | 6bc52441237fe182c05703d3a7e1d93d208ce5e7 (patch) | |
tree | 4e44c58824feb59e822fcd9b87655f9e6cf1f463 /src/core.c | |
parent | 419e021d3db3758dd17daef925ec47f2861f4026 (diff) | |
download | posthaste-6bc52441237fe182c05703d3a7e1d93d208ce5e7.tar.gz posthaste-6bc52441237fe182c05703d3a7e1d93d208ce5e7.zip |
rewrite interpeter
Diffstat (limited to 'src/core.c')
-rw-r--r-- | src/core.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -3,8 +3,9 @@ #include <limits.h> #include <errno.h> -#include <posthaste/compile.h> +#include <posthaste/interpret.h> #include <posthaste/execute.h> +#include <posthaste/compile.h> #include <posthaste/parser.h> #include <posthaste/debug.h> #include <posthaste/scope.h> @@ -87,9 +88,9 @@ int run(const char *fname) #ifdef JIT compile(ast); - execute_compilation(); -#else execute(); +#else + interpret(); #endif out: |