I added some changes to make offsets work

This commit is contained in:
Meyer Simon
2025-05-06 15:49:31 -04:00
parent a459cb1112
commit 88511ac0e6
4 changed files with 19 additions and 10 deletions

View File

@ -161,6 +161,8 @@ ListOfTable *getRestOfChildren(ListOfTable *lt);
TableNode *getFirstEntry(SymbolTable *st);
TableNode *getNextEntry(TableNode *tn);
TableNode *printTableNode(TableNode *tn);
int getElementOffset(TableNode *rec, char* id);
int getRecPosition(TableNode* rec, char* id);
extern int yylex(void);
extern char *yytext;
@ -199,4 +201,4 @@ extern char *COLOR_YELLOW;
extern char *COLOR_LIGHTBLUE;
extern char *COLOR_LIGHTPURPLE;
extern char *COLOR_LIGHTCYAN;
extern char *COLOR_WHITE;
extern char *COLOR_WHITE;