From 9cf524df8c94920d7c7058692f2f83a95a4006e0 Mon Sep 17 00:00:00 2001 From: Flavian Kaufmann Date: Tue, 20 May 2025 11:31:50 +0200 Subject: hashmap for context --- include/interpreter.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'include/interpreter.h') 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 -- cgit v1.2.3