Question 6002 – Compiler-Design
May 17, 2024Question 6058 – Compiler-Design
May 17, 2024Question 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).




Option(A):
Since here we are having no Reduce-reduce OR shift-reduce conflict so it is CLR(1).




A → a A b, A → b A b, A → a , A →b
A → a A a, A → a A b, A → c
A → A + A, A → a
Both (A) and (B)
