Testing suite updated

This commit is contained in:
Scarlett
2025-03-26 12:45:05 -04:00
parent 0c8c3e30f3
commit 5aefd319ae
20 changed files with 573 additions and 172 deletions

View File

@ -131,8 +131,13 @@ int run(FILE *alpha) {
}
if (st_flag != NULL) {
// output symbol table, file pointer is
// print_symbol_table(top,st_flag);
yyparse();
print_symbol_table(getAncestor(cur), st_flag);
fclose(st_flag);
if (yyin != NULL) {
fclose(yyin);
}
return 0;
}
yyparse();