From b023ac01330bfd5997347e601f5ade9f4e9ec9a8 Mon Sep 17 00:00:00 2001 From: Partho Date: Tue, 15 Apr 2025 20:22:24 -0400 Subject: [PATCH] commented out second yyparse() in runner in run --- src/grammar.y | 2 +- src/runner.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/grammar.y b/src/grammar.y index 0a03126..c6044fd 100644 --- a/src/grammar.y +++ b/src/grammar.y @@ -896,7 +896,7 @@ assignable: $$ = table_lookup(getRecList(table_lookup(getAncestor(cur), getName((TableNode*)$1))), $3); } - printdebug("[ASSIGNABLE - RULE 3] assignable = type: %s | ID = %s", getName((TableNode*)($$)), $1); + printdebug("[ASSIGNABLE - RULE 3] assignable = type: %s | ID = %s", getName((TableNode*)($$)), getName($1)); } ; diff --git a/src/runner.c b/src/runner.c index ba7f64e..03e1933 100644 --- a/src/runner.c +++ b/src/runner.c @@ -136,7 +136,7 @@ int run(FILE *alpha) { fclose(cg_flag); } - yyparse(); + //yyparse(); if (yyin != NULL) { fclose(yyin);