MCQ
Q.
Given the following expression grammar:
E -> E * F | F+E | F
F -> F-F | idwhich of the following is true?
Correct Answer: B
Precedence is that a higher precedence operator will never produce an expression with operator with lower precedence.
In the given grammar MINUS has higher precedence than ASTERIX.