fixed most things in the symbol table structure. Seeing core dumps and have to fix the print symbol table function
This commit is contained in:
@ -30,7 +30,7 @@ typedef struct {
|
||||
// similar to above we define a record to hold the number of elements
|
||||
// and an array of tablenodes (types) that it contains in the >
|
||||
int numofelements;
|
||||
struct TableNode *listoftypes;
|
||||
struct SymbolTable *recordScope;
|
||||
} record_info;
|
||||
|
||||
typedef struct {
|
||||
@ -91,7 +91,7 @@ int getPrimSize(TableNode *definition);
|
||||
int getNumArrDim(TableNode *definition);
|
||||
TableNode *getArrType(TableNode *definition);
|
||||
int getRecLength(TableNode *definition);
|
||||
TableNode *getRecList(TableNode *definition);
|
||||
SymbolTable *getRecList(TableNode *definition);
|
||||
int getStartLine(TableNode *definition);
|
||||
bool getAsKeyword(TableNode *definition);
|
||||
TableNode *getParameter(TableNode *definition);
|
||||
|
Reference in New Issue
Block a user