From 40cccdb7cc472ee6300c25e1774a8489e9107f6a Mon Sep 17 00:00:00 2001 From: Flavian Kaufmann Date: Tue, 20 May 2025 21:29:50 +0200 Subject: repl --- include/interpreter.h | 6 ++++++ include/repl.h | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 include/repl.h (limited to 'include') 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 -- cgit v1.2.3