diff options
author | Flavian Kaufmann <flavian@flaviankaufmann.ch> | 2025-05-20 11:31:50 +0200 |
---|---|---|
committer | Flavian Kaufmann <flavian@flaviankaufmann.ch> | 2025-05-20 11:31:50 +0200 |
commit | 9cf524df8c94920d7c7058692f2f83a95a4006e0 (patch) | |
tree | 526853cc7f935745bf703cbfaf7e5ebe7d32017e /include/interpreter.h | |
parent | 3829a704150a06b2767d542b39179377a592da0f (diff) | |
download | imp-9cf524df8c94920d7c7058692f2f83a95a4006e0.tar.gz imp-9cf524df8c94920d7c7058692f2f83a95a4006e0.zip |
hashmap for context
Diffstat (limited to 'include/interpreter.h')
-rw-r--r-- | include/interpreter.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/include/interpreter.h b/include/interpreter.h index 182f2e5..301a3d8 100644 --- a/include/interpreter.h +++ b/include/interpreter.h @@ -1,17 +1,13 @@ #ifndef INTERPRETER_H #define INTERPRETER_H -#include "ast.h" +#include "ast.h" +#include "hash_map.h" -typedef struct Env { - char *name; - int val; - struct Env *next; -} Env; -void exec_stmt(Env **env, ASTNode *node); -void env_print(Env *env); +void exec_stmt(hashmap_t context, ASTNode *node); +void context_print(hashmap_t context); #endif
\ No newline at end of file |