aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFlavian Kaufmann <flavian@flaviankaufmann.ch>2025-05-20 21:29:50 +0200
committerFlavian Kaufmann <flavian@flaviankaufmann.ch>2025-05-20 21:29:50 +0200
commit40cccdb7cc472ee6300c25e1774a8489e9107f6a (patch)
tree7a4b0b37d8547a27b9964cd775bc0eb75d69288a /include
parent56cd967554e39dd9053b2b28c1f603ae63808527 (diff)
downloadimp-40cccdb7cc472ee6300c25e1774a8489e9107f6a.tar.gz
imp-40cccdb7cc472ee6300c25e1774a8489e9107f6a.zip
repl
Diffstat (limited to 'include')
-rw-r--r--include/interpreter.h6
-rw-r--r--include/repl.h6
2 files changed, 12 insertions, 0 deletions
diff --git a/include/interpreter.h b/include/interpreter.h
index 301a3d8..6e60113 100644
--- a/include/interpreter.h
+++ b/include/interpreter.h
@@ -9,5 +9,11 @@
void exec_stmt(hashmap_t context, ASTNode *node);
void context_print(hashmap_t context);
+void context_set(hashmap_t context, const char *name, int value);
+int context_get(hashmap_t context, const char *name);
+
+int exec_file (hashmap_t context, const char *path);
+int exec_str (hashmap_t context, const char *str);
+
#endif \ No newline at end of file
diff --git a/include/repl.h b/include/repl.h
new file mode 100644
index 0000000..804b702
--- /dev/null
+++ b/include/repl.h
@@ -0,0 +1,6 @@
+#ifndef REPL_H
+#define REPL_H
+
+void repl(void);
+
+#endif \ No newline at end of file