more debug messages, new type check for array and rec
This commit is contained in:
@ -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");
|
||||
|
Reference in New Issue
Block a user