TC & ASC Implemented. yyerrors updated.

This commit is contained in:
Scarlett
2025-04-25 22:14:31 -04:00
parent 55116599f8
commit 3ea41f40fa
7 changed files with 148 additions and 46 deletions

View File

@ -52,6 +52,7 @@ FILE *alpha_file;
FILE *tok_flag = NULL;
FILE *st_flag = NULL;
FILE *asc_flag = NULL;
FILE *ir_flag = NULL;
FILE *cg_flag = NULL;
bool tc_flag = false;
bool DEBUG = false;
@ -105,6 +106,6 @@ typedef struct CodeLine {
CodeLine *code_head;
char *file_read_line(FILE *fp);
void insert_code_line(char *line, int line_number);
void insert_code_line(char * error_message, int line_number);
void append_code_line(CodeLine *code_line);
void print_code_lines();