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 /src/driver.c | |
parent | 3829a704150a06b2767d542b39179377a592da0f (diff) | |
download | imp-9cf524df8c94920d7c7058692f2f83a95a4006e0.tar.gz imp-9cf524df8c94920d7c7058692f2f83a95a4006e0.zip |
hashmap for context
Diffstat (limited to 'src/driver.c')
-rw-r--r-- | src/driver.c | 9 |
1 files changed, 5 insertions, 4 deletions
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; } |