more debug messages, new type check for array and rec

This commit is contained in:
Scarlett
2025-04-02 11:05:45 -04:00
parent d56d836b8b
commit db2268284b
2 changed files with 13 additions and 13 deletions

View File

@ -975,15 +975,6 @@ void print_symbol_table(SymbolTable *table, FILE *file_ptr) {
return;
}
if (table->Parent_Scope != NULL) {
printdebug("%s[WARNING] passed in a non-top level scope to "
"print_symbol_table",
COLOR_ORANGE);
printdebug("%sParent of's: line %d, column %d",
COLOR_ORANGE, table->Parent_Scope->Line_Number, table->Parent_Scope->Column_Number);
return;
}
if (table->Parent_Scope == NULL) {
fprintf(file_ptr, "%-17s: %-6s : %-6s : %-21s: %-28s\n", "NAME",
"SCOPE", "PARENT", "TYPE", "Extra annotation");