From c8f53d34b8ecbb570eaa061453bf5239fa55260f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20LACROIX?= Date: Wed, 31 May 2023 16:45:03 +0200 Subject: [PATCH] fixed the yacc JMF without boolean variable --- yacc.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yacc.y b/yacc.y index e0c86f4..626d227 100644 --- a/yacc.y +++ b/yacc.y @@ -121,7 +121,7 @@ IfStatement : tIF Condition IfStatement1 InnerBlock tELSE { int current = getCurrentLineNumber() ; printf("%d, %d",$1, current);setJumpLine($1, current); } | tIF Condition IfStatement1 InnerBlock { - int current = getCurrentLineNumber(); printf("current Line %d", current); setJumpLine($3, current); + setConditionAddr($3,$2); int current = getCurrentLineNumber(); printf("current Line %d", current); setJumpLine($3, current); }; WhileStatement : tWHILE {