Parsers
February 13, 2024Question 9637 – Compiler-Design
February 13, 2024GATE 2003
|
Question 57
|
Consider the grammar shown below.
S → C C C → c C | d
The grammar is
|
LL(1)
|
|
|
SLR(1) but not LL(1)
|
|
|
LALR(1) but not SLR(1)
|
|
|
LR(1) but not LALR(1)
|
Question 57 Explanation:

Hence, it is LL(1).
Correct Answer: A
Question 57 Explanation:

Hence, it is LL(1).
