diff options
author | Preston Pan <preston@nullring.xyz> | 2023-01-05 22:29:35 -0800 |
---|---|---|
committer | Preston Pan <preston@nullring.xyz> | 2023-01-05 22:29:35 -0800 |
commit | 6c1e4bbfe920feda675d8ea3a13281742d55c334 (patch) | |
tree | e4c7d527d3e17406eb235ebb6231ea13a2a4a29b /src/visitor.c | |
parent | 5ecf1f46aae4994662bd8e3df189f8d60b49a304 (diff) |
hash table bug finally fixed forever
Diffstat (limited to 'src/visitor.c')
-rw-r--r-- | src/visitor.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |