Big testing update
This commit is contained in:
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user