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:
Partho Bhattacharya
2025-03-26 15:21:42 -04:00
parent 5aefd319ae
commit 0ff894d571
2 changed files with 56 additions and 16 deletions

View File

@ -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);