Fixed -tok, spacings in -st, and validation tests
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user