Question 11444 – Compiler-Design
May 17, 2024Question 11608 – Compiler-Design
May 17, 2024Question 11460 – Compiler-Design
The following grammar is:
S → Aa | b Ac | dc | bda A → a
Correct Answer: D
Question 327 Explanation:
Let’s check for SLR(1),
No SR or RR conflict, hence SLR(1).
Every SLR(1) grammar is LALR(1).
Hence given grammar is also LALR(1).

No SR or RR conflict, hence SLR(1).
Every SLR(1) grammar is LALR(1).
Hence given grammar is also LALR(1).
Neither LALR(1) nor SLR(1)
LALR(1) but not SLR(1)
Not LALR(1) but SLR(1)
LALR(1) and SLR(1)