Project restucture with IR and CG

This commit is contained in:
Scarlett
2025-04-25 19:29:05 -04:00
parent bac8cb53bb
commit 086c8ba170
15 changed files with 1262 additions and 1270 deletions

View File

@ -127,7 +127,6 @@ int run(FILE *alpha) {
fseek(alpha, 0, SEEK_SET);
// print_code_lines();
yyin = alpha;
@ -163,8 +162,8 @@ int run(FILE *alpha) {
}
//if (cg_flag != NULL) {
// printf("Flag -cg is not implemented yet\n");
//fclose(cg_flag);
// printf("Flag -cg is not implemented yet\n");
//fclose(cg_flag);
//}
if (yyin != NULL) {
@ -271,7 +270,7 @@ void append_code_line(CodeLine *code_line) {
void print_code_lines() {
CodeLine *current = code_head;
while (current != NULL) {
printf("%d %03d: %s",current->line_number, current->line);
printf("%d %03d: %s", current->line_number, current->line);
current = current->next;
}
}