aboutsummaryrefslogtreecommitdiff
path: root/include/interpreter.h
diff options
context:
space:
mode:
authorFlavian Kaufmann <flavian@flaviankaufmann.ch>2025-05-20 10:29:33 +0200
committerFlavian Kaufmann <flavian@flaviankaufmann.ch>2025-05-20 10:29:33 +0200
commit3829a704150a06b2767d542b39179377a592da0f (patch)
tree316a1e01f3306d717739e6d73b25f5215c2cf8f0 /include/interpreter.h
parentcc383b7b2d89f05b724460b4d5cb385525911671 (diff)
downloadimp-3829a704150a06b2767d542b39179377a592da0f.tar.gz
imp-3829a704150a06b2767d542b39179377a592da0f.zip
folder structure
Diffstat (limited to 'include/interpreter.h')
-rw-r--r--include/interpreter.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/interpreter.h b/include/interpreter.h
new file mode 100644
index 0000000..182f2e5
--- /dev/null
+++ b/include/interpreter.h
@@ -0,0 +1,17 @@
+#ifndef INTERPRETER_H
+#define INTERPRETER_H
+
+#include "ast.h"
+
+
+typedef struct Env {
+ char *name;
+ int val;
+ struct Env *next;
+} Env;
+
+void exec_stmt(Env **env, ASTNode *node);
+void env_print(Env *env);
+
+
+#endif \ No newline at end of file