fixed print symbol table to not print scopes used as flags
This commit is contained in:
@ -1139,7 +1139,15 @@ void print_symbol_table(SymbolTable *table, FILE *file_ptr) {
|
||||
if (getChildren(table) != NULL) {
|
||||
ListOfTable *node = getChildren(table);
|
||||
for (; node != NULL; node = node->next) {
|
||||
if((node->table) == NULL){
|
||||
print_symbol_table(node->table, file_ptr);
|
||||
}else{
|
||||
if ((node->table)->Line_Number == -1){
|
||||
continue;
|
||||
}else{
|
||||
print_symbol_table(node->table, file_ptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (getParent(table) == NULL) {
|
||||
|
Reference in New Issue
Block a user