...
Question 11444 – Compiler-Design
May 17, 2024
Question 11608 – Compiler-Design
May 17, 2024
Question 11444 – Compiler-Design
May 17, 2024
Question 11608 – Compiler-Design
May 17, 2024

Question 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).

A
Neither LALR(1) nor SLR(1)
B
LALR(1) but not SLR(1)
C
Not LALR(1) but SLR(1)
D
LALR(1) and SLR(1)
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!