Makefile rewrite

This commit is contained in:
Scarlett
2025-04-25 12:46:07 -04:00
parent 945dda59d0
commit 2c712ed221
10 changed files with 380 additions and 177 deletions

View File

@ -17,18 +17,21 @@
// Please ask Scarlett if you are unsure of how to format something. Thanks! 😀
%{
#include "../src/symbol_table.c"
void yyerror(const char *err);
#include "../src/symbol_table.h"
extern FILE *asc_flag;
extern bool tc_flag;
int token_tracker;
TableNode * tn;
typedef enum {
ERROR_RUNTIME = 1,
ERROR_SYNTAX = 2,
ERROR_TYPE = 3,
ERROR_UNDEFINED = 4
} ErrorType;
int token_tracker;
TableNode * tn;
void yyerror(const char *err);
void throw_error(ErrorType error_type, const char *format, ...);
%}