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 {