corrected typo in yacc
This commit is contained in:
parent
1f8fa678bc
commit
019a8c506e
1 changed files with 2 additions and 2 deletions
4
yacc.y
4
yacc.y
|
@ -112,7 +112,7 @@ Operation: tADD | tMUL | tSUB | tDIV;
|
|||
*/
|
||||
|
||||
IfStatement1 : %empty {
|
||||
int ligne =getCurrentLineNumber(); addLine("JMPF"); $<nbInt>$ = ligne ;
|
||||
int ligne =getCurrentLineNumber(); addLine("JMF"); $<nbInt>$ = ligne ;
|
||||
};
|
||||
|
||||
IfStatement : tIF Condition IfStatement1 InnerBlock tELSE {
|
||||
|
@ -128,7 +128,7 @@ WhileStatement : tWHILE {
|
|||
$1 = getCurrentLineNumber();
|
||||
} Condition {
|
||||
int current = getCurrentLineNumber();
|
||||
addLine("JMPF");
|
||||
addLine("JMF");
|
||||
setConditionAddr(current,$3);
|
||||
whileJumpAddr = current;
|
||||
suppressCONDElements();
|
||||
|
|
Loading…
Reference in a new issue