Fixed -tok, spacings in -st, and validation tests

This commit is contained in:
Scarlett
2025-04-16 11:44:02 -04:00
parent b023ac0133
commit 5a23ef2756
26 changed files with 677 additions and 477 deletions

View File

@ -111,6 +111,13 @@ int run(FILE *alpha) {
yyin = alpha;
yyparse();
if (tok_flag != NULL) {
while (0 != (token = yylex())) {
// Don't delete me 🥺
}
fclose(tok_flag);
}
if (st_flag != NULL) {
print_symbol_table(top, st_flag);
fclose(st_flag);
@ -136,8 +143,6 @@ int run(FILE *alpha) {
fclose(cg_flag);
}
//yyparse();
if (yyin != NULL) {
fclose(yyin);
}