Consider the following grammar

S → aSa | a

Let x, y, and z be the number of states in the SLR(1), CLR(1) and LALR(1) respectively. Then find the values of x, y and z.

1
x = 5, y = 7 and z = 5
2
x = 4, y = 6 and z = 7
3
x = 5, y = 8 and z = 5
4
x = 5, y = 7 and z = 7

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation