Added more debug statements
This commit is contained in:
@ -854,13 +854,14 @@ TableNode *table_lookup(SymbolTable *table, char *x) {
|
|||||||
return entrie;
|
return entrie;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
printdebug("Could not find %s in scope using table_lookup", x);
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
// check current table and all parents
|
// check current table and all parents
|
||||||
TableNode *look_up(SymbolTable *table, char *x) {
|
TableNode *look_up(SymbolTable *table, char *x) {
|
||||||
if (table == NULL) {
|
if (table == NULL) {
|
||||||
printdebug("passed in empty scope. error.");
|
printdebug("Could not find %s in any scope using lookup",x);
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
TableNode *ret = table_lookup(table, x);
|
TableNode *ret = table_lookup(table, x);
|
||||||
|
Reference in New Issue
Block a user