aboutsummaryrefslogtreecommitdiff
path: root/include/eval.h
diff options
context:
space:
mode:
authorDavid Moc <personal@cdatgoose.org>2026-05-30 21:53:05 +0200
committerDavid Moc <personal@cdatgoose.org>2026-05-30 21:53:05 +0200
commite930cc6bdc7f62befac063d7d9d016ffb0a64f1a (patch)
tree52118a1e990ae88f5f0410c8caea129609e22e19 /include/eval.h
Added the old repo, refactored it, added the C jit.
Diffstat (limited to 'include/eval.h')
-rw-r--r--include/eval.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/eval.h b/include/eval.h
new file mode 100644
index 0000000..ca722c2
--- /dev/null
+++ b/include/eval.h
@@ -0,0 +1,17 @@
+#ifndef ECEX_EVAL_H
+#define ECEX_EVAL_H
+
+#include "types.h"
+
+int ecex_eval_source(ecex_t *ed,
+ const char *source,
+ const char *filename,
+ int wrap_as_statements);
+
+int ecex_eval_current_buffer(ecex_t *ed);
+int ecex_eval_current_line(ecex_t *ed);
+int ecex_eval_current_region(ecex_t *ed);
+int ecex_eval_file(ecex_t *ed, const char *path);
+int ecex_eval_rerun_last(ecex_t *ed);
+
+#endif