Assume that the SLR parser for a grammar G has n1 states and the LALR parser for G has n2 states.
Assume that the SLR parser for a grammar G has n1 states and the LALR parser for G has n2 states. Correct Answer n1 is necessarily equal to n2
SLR parser has less range of context free languages than LALR but still both n1 & n2 are same for SLR & LALR respectively.
মোঃ আরিফুল ইসলাম
Feb 20, 2025