Added more debug statements
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user