Question: Grammar 3 EXPR -> EXPR EXPR | FACT FACT -> FACT / FACT | TERM TERM -> ID | (EXPR) ID -> x | y
Grammar 3 EXPR -> EXPR EXPR | FACT FACT -> FACT / FACT | TERM TERM -> ID | (EXPR) ID -> x | y | z
Grammar 3 has which characteristics?
*it is unambiguous, and correct on both precedence and associativity
*it is ambiguous on associativity, but correct on precedence
*it is ambiguous on precedence, but correct on associativity
*it is unambiguous, but wrong on both precedence and associativity
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
