...
Question 6002 – Compiler-Design
May 17, 2024
Question 6058 – Compiler-Design
May 17, 2024
Question 6002 – Compiler-Design
May 17, 2024
Question 6058 – Compiler-Design
May 17, 2024

Question 6003 – Compiler-Design

Which of the following grammar is LR (1) ?

Correct Answer: D

Question 281 Explanation: 
LR(1)is default name of CLR(1). Hence LR(1) and CLR(1) is same.
Option(A):
Since here we are having no Reduce-reduce OR shift-reduce conflict so it is CLR(1).



A
A → a A b, A → b A b, A → a , A →b
B
A → a A a, A → a A b, A → c
C
A → A + A, A → a
D
Both (A) and (B)
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!!