Big testing update

This commit is contained in:
Scarlett
2025-04-25 23:26:50 -04:00
parent 747a48b211
commit 6e4841f0c1
27 changed files with 262 additions and 8 deletions

View File

@ -118,7 +118,7 @@ CGNode *findCG(TableNode *tn) {
CGNode *addCG(TableNode *tn, int sp) {
CGNode *cg = calloc(1, sizeof(CGNode));
cg->tn = tn;
offset += getPrimSize(getTypeEntry(tn));
offset += 4; // <- quick fix getPrimSize(getTypeEntry(tn))
cg->address = offset;
cg->next = cgList;
cgList = cg;

View File

@ -1214,7 +1214,7 @@ void yyerror(const char *err) {
insert_code_line(error_message, line);
}
else {
fprintf(stderr, " LINE (%d:%d) ** SYNTAX ERROR: Incorrect syntax at token %s\n\n", line, column, yytext);
fprintf(stderr, " LINE (%d:%d) ** SYNTAX ERROR: Incorrect syntax at token %s\n", line, column, yytext);
}
}
}