aboutsummaryrefslogtreecommitdiff
path: root/include/interpreter.h
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/interpreter.h
parent56cd967554e39dd9053b2b28c1f603ae63808527 (diff)
downloadimp-40cccdb7cc472ee6300c25e1774a8489e9107f6a.tar.gz
imp-40cccdb7cc472ee6300c25e1774a8489e9107f6a.zip
repl
Diffstat (limited to 'include/interpreter.h')
-rw-r--r--include/interpreter.h6
1 files changed, 6 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