You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is a BNF defination in MyCGrammar at current version.
// ...addExpression.Rule=multiplyExpression+addOperator+addExpression|prefixExpression;// BAD hereaddOperator.Rule=ToTerm("+")|"-";multiplyExpression.Rule=prefixExpression+multiplyOperator+multiplyExpression|prefixExpression;multiplyOperator.Rule=ToTerm("*")|"/";prefixExpression.Rule=prefixOperator+factor|factor;// ...
The prefixExpression in line 5 for addExpression must not stand here, it should be a multiplyExpression. Otherwise a multiply expression cannot be solved correctly.
(I turn grammar root to expression to show the problem:)
The text was updated successfully, but these errors were encountered:
Here is a BNF defination in MyCGrammar at current version.
The
prefixExpression
in line 5 foraddExpression
must not stand here, it should be amultiplyExpression
. Otherwise a multiply expression cannot be solved correctly.(I turn grammar root to expression to show the problem:)
The text was updated successfully, but these errors were encountered: