Parsers

February 13, 2024

Question 9637 – Compiler-Design

February 13, 2024

Parsers

February 13, 2024

Question 9637 – Compiler-Design

February 13, 2024

GATE 2003

Question 57

Consider the grammar shown below.

S → 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)
Question 57 Explanation: 

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

Hence, it is LL(1).

Leave a Reply

Your email address will not be published. Required fields are marked *