Added more debug statements

This commit is contained in:
Partho
2025-04-08 18:16:56 -04:00
parent faf592a725
commit 3010ad6517

View File

@ -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);