1.

Assume the conflicts in Part (a) of this question are resolved and an LALR(1) parser is generated for parsing arithmetic expressions as per the given associativity properties does the generated parser realize?

A. Equal precedence and left associativity; expression is evaluated to 7
B. Equal precedence and left associativity; expression is evaluated to 9
C. Precedence of x is higher than that of + and both operators are left associative; expression is evaluated to 7
D. Precedence of + is higher than that of and both operators are left associative; expression is evaluated to 9
Answer» C. Precedence of x is higher than that of + and both operators are left associative; expression is evaluated to 7


Discussion

No Comment Found

Related MCQs