do not create an output upon encountering an error

This commit is contained in:
anon
2024-07-08 19:35:02 +02:00
parent 843dc44921
commit 95478b2f5b
3 changed files with 11 additions and 4 deletions

View File

@ -14,6 +14,8 @@
tommy_hashtable variable_table;
int has_encountered_error = 0;
char * scope = NULL;
int is_program_found = 0;
#if DEBUG == 1
@ -164,6 +166,8 @@ void issue_error(const char * const format, ...) {
extern char * yyfilename;
extern int yylineno;
has_encountered_error = 1;
va_list args;
va_start(args, format);