Multiple Choice
Consider the grammar S ? (S) | a Let the number of states in SLR(1) , LR(1) and LALR(1) parsers for the grammar be n1, n2 and n3 respectively. The following relationship holds good
A) n1 < n2 < n3
B) n1 = n3 < n2
C) n1 = n2 = n3
D) n1 ? n3 ? n2
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q9: Consider the grammar defined by the following
Q10: The grammar S ? aSa | bS
Q11: Consider the following statements:<br>(I) The output of
Q12: Consider the following translation scheme. S ?
Q13: Consider the following grammar. S -> S
Q15: In compiler optimization, operator strength reduction uses
Q16: The grammar A ? AA | (A)
Q17: Which of the following describes a handle
Q18: Consider the following two sets of LR(1)
Q19: An LALR(1) parser for a grammar G