Q. 17 Consider the grammar shown below.
S→C CS→C C C→c C∣d
The grammar is
(A) LL (1)
(B) SLR (1) but not LL (1)
(C) LALR (1) but not SLR (1)
(D) LR (1) but not LALR (1)
Answer: (A)
Explanation:
Q. 17 Consider the grammar shown below.
S→C CS→C C C→c C∣d
The grammar is
(A) LL (1)
(B) SLR (1) but not LL (1)
(C) LALR (1) but not SLR (1)
(D) LR (1) but not LALR (1)
Answer: (A)
Explanation: