what xola asked

This commit is contained in:
anon 2024-07-17 00:04:42 +02:00
parent 8136db2cc6
commit 5ac9e9a3f9
2 changed files with 2 additions and 1 deletions

View File

@ -18,7 +18,7 @@
unsigned long long anon_variable_counter = 0;
static unsigned symbol_id = 0;
static unsigned symbol_id = 1;
tommy_hashtable symbol_table;
int has_encountered_error = 0;

View File

@ -111,6 +111,7 @@ program_head: program_specifier PROGRAM IDENTIFIER {
YYERROR;
}
is_program_found = 1;
append_instructions(ASMDIRMEM, 0);
scope = $3; // !!! IF WE START USING THE REFERENCE OF $3 THIS WILL DOUBLE FREE
};