Fixed the spacing in the symbole table files t#NONE

This commit is contained in:
Meyer Simon
2025-03-09 15:19:15 -04:00
parent 072182dbbc
commit e8b0af1213
2 changed files with 4 additions and 2 deletions

View File

@ -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",

View File

@ -7,7 +7,6 @@ typedef struct ListOfTable {
struct SymbolTable* table;
// struct ListOfTable* prev;
struct ListOfTable* next;
} ListOfTable;
typedef struct TableNode {