Fixed the spacing in the symbole table files t#NONE
This commit is contained in:
@ -85,7 +85,10 @@ void print_symbol_table(SymbolTable* table, FILE* file_ptr) {
|
||||
} else {
|
||||
current_scope = 1001;
|
||||
}
|
||||
|
||||
if ( entrie == NULL ) {
|
||||
fprintf(file_ptr, "%-17s: %06d : %06d : %-21s: %-28s\n", "",
|
||||
current_scope, parant_scope, "", "Empty Scope");
|
||||
}
|
||||
for (; entrie != NULL; entrie = entrie->next) {
|
||||
if (parant_scope == 0) {
|
||||
fprintf(file_ptr, "%-17s: %06d : : %-21s: %-28s\n",
|
||||
|
@ -7,7 +7,6 @@ typedef struct ListOfTable {
|
||||
struct SymbolTable* table;
|
||||
// struct ListOfTable* prev;
|
||||
struct ListOfTable* next;
|
||||
|
||||
} ListOfTable;
|
||||
|
||||
typedef struct TableNode {
|
||||
|
Reference in New Issue
Block a user