Merge pull request #52 from UB-CSE443/Sprint4-Fix_Assignable_issues#NoTask

Sprint4 fix assignable issues#no task
This commit is contained in:
Moroseui
2025-04-29 19:03:32 -04:00
committed by GitHub
7 changed files with 153 additions and 123 deletions

View File

@ -5,6 +5,7 @@
Constant_Stack *head = NULL;
int temp2_count = 0;
int temp3_count = 0;
void printdebug_impl(char *file, int line, const char *format, ...) {
if (DEBUG) {
@ -24,6 +25,12 @@ char *temp_var_gen() {
temp2_count++;
return ret;
}
char *arg_var_gen() {
char *ret = calloc(9, sizeof(*ret));
sprintf(ret, "&t%d", temp3_count);
temp3_count++;
return ret;
}
Constant_Stack *Push(TableNode *type, void *value, bool isConst) {
if (type == NULL || type == undefined) {