aboutsummaryrefslogtreecommitdiff
path: root/src/core.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-06-25 23:25:29 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-06-25 23:25:29 +0300
commit01052811be08444458576dda994d15f8823560ea (patch)
treec52f2d72ef0ef703e755fcf05ee5d3a02f050acc /src/core.c
parent449ca1e570aa421992bbe98c6928def1ba8896fd (diff)
downloadposthaste-01052811be08444458576dda994d15f8823560ea.tar.gz
posthaste-01052811be08444458576dda994d15f8823560ea.zip
initial rewrite to use ejit
+ Doesn't actually link yet due to missing stuff from ejit, will have to add them (tomorrow?)
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/core.c b/src/core.c
index 00dc3a7..0ed711d 100644
--- a/src/core.c
+++ b/src/core.c
@@ -3,9 +3,7 @@
#include <limits.h>
#include <errno.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>
@@ -85,14 +83,7 @@ int run(const char *fname)
}
lower_ast(ast);
-
-#ifdef JIT
- compile(ast);
execute();
-#else
- interpret();
-#endif
-
out:
free((void *)buf);
destroy_lowering();