From 6c1e4bbfe920feda675d8ea3a13281742d55c334 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Thu, 5 Jan 2023 22:29:35 -0800 Subject: hash table bug finally fixed forever --- src/visitor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/visitor.c') diff --git a/src/visitor.c b/src/visitor.c index 135c4d5..4a4d87f 100644 --- a/src/visitor.c +++ b/src/visitor.c @@ -68,7 +68,7 @@ bool is_built_in(ast_t *e) { ast_t *eval_symbol(visitor_t *v, ast_t *e) { /* hash_table_t *lmao = stack_peek(v->stack_frame); */ hash_table_t *h = stack_peek(v->stack_frame); - + printf("%s\n", e->string_value); if (is_built_in(e)) return e; /* first, it looks in the stack frame for a variable */ @@ -87,6 +87,7 @@ ast_t *eval_symbol(visitor_t *v, ast_t *e) { hash_table_add(v->eval_table, e->string_value, eval); return eval; } else { + printf("this eval error\n"); eval_error(v, e); return NULL; } -- cgit