edited symbol table functions
This commit is contained in:
@ -102,7 +102,7 @@ void print_symbol_table(SymbolTable *table, FILE *file_ptr){
|
||||
}
|
||||
|
||||
SymbolTable * getParent(SymbolTable* st){
|
||||
return st->ParentScope;
|
||||
return st->Parent_Scope;
|
||||
}
|
||||
|
||||
ListOfTable * getChildren(SymbolTable* st){
|
||||
@ -127,10 +127,10 @@ char * getName(TableNode * tn){
|
||||
return tn->theName;
|
||||
}
|
||||
int getLine(SymbolTable * st){
|
||||
return st->line;
|
||||
return st->Line_Number;
|
||||
}
|
||||
int getColumn(SymbolTable *st){
|
||||
return st->column;
|
||||
return st->Column_Number;
|
||||
}
|
||||
//uncomment the below main function along with the headers above for a simple standalone test of table and entry creation
|
||||
|
||||
|
Reference in New Issue
Block a user