Project restucture with IR and CG
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user