From 3010ad651730e0a99d78df69c8f4f44631e823ca Mon Sep 17 00:00:00 2001 From: Partho Date: Tue, 8 Apr 2025 18:16:56 -0400 Subject: [PATCH] Added more debug statements --- src/symbol_table.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/symbol_table.c b/src/symbol_table.c index a4c909b..c76043f 100644 --- a/src/symbol_table.c +++ b/src/symbol_table.c @@ -854,13 +854,14 @@ TableNode *table_lookup(SymbolTable *table, char *x) { return entrie; } } + printdebug("Could not find %s in scope using table_lookup", x); return undefined; } // check current table and all parents TableNode *look_up(SymbolTable *table, char *x) { if (table == NULL) { - printdebug("passed in empty scope. error."); + printdebug("Could not find %s in any scope using lookup",x); return undefined; } TableNode *ret = table_lookup(table, x);