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 {
|
} else {
|
||||||
current_scope = 1001;
|
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) {
|
for (; entrie != NULL; entrie = entrie->next) {
|
||||||
if (parant_scope == 0) {
|
if (parant_scope == 0) {
|
||||||
fprintf(file_ptr, "%-17s: %06d : : %-21s: %-28s\n",
|
fprintf(file_ptr, "%-17s: %06d : : %-21s: %-28s\n",
|
||||||
|
@ -7,7 +7,6 @@ typedef struct ListOfTable {
|
|||||||
struct SymbolTable* table;
|
struct SymbolTable* table;
|
||||||
// struct ListOfTable* prev;
|
// struct ListOfTable* prev;
|
||||||
struct ListOfTable* next;
|
struct ListOfTable* next;
|
||||||
|
|
||||||
} ListOfTable;
|
} ListOfTable;
|
||||||
|
|
||||||
typedef struct TableNode {
|
typedef struct TableNode {
|
||||||
|
Reference in New Issue
Block a user