fixed the yacc JMF without boolean variable

This commit is contained in:
Raphaël LACROIX 2023-05-31 16:45:03 +02:00
parent 2c9bb64de1
commit c8f53d34b8

2
yacc.y
View file

@ -121,7 +121,7 @@ IfStatement : tIF Condition IfStatement1 InnerBlock tELSE {
int current = getCurrentLineNumber() ; printf("%d, %d",$1, current);setJumpLine($1, current); int current = getCurrentLineNumber() ; printf("%d, %d",$1, current);setJumpLine($1, current);
} }
| tIF Condition IfStatement1 InnerBlock { | 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 { WhileStatement : tWHILE {