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 --- src/driver.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/driver.c') diff --git a/src/driver.c b/src/driver.c index 90ee892..597d7a8 100644 --- a/src/driver.c +++ b/src/driver.c @@ -22,10 +22,11 @@ int main(int argc, char **argv) { return EXIT_FAILURE; } - Env *env = NULL; - exec_stmt(&env, ast_root); - env_print(env); - free_ast(ast_root); + hashmap_t context = hashmap_create(); + exec_stmt(context, ast_root); + context_print(context); + hashmap_free(context); + ast_free(ast_root); return EXIT_SUCCESS; } -- cgit v1.2.3