...
Question 7102 – Compiler-Design
May 17, 2024
Question 8892 – Compiler-Design
May 17, 2024
Question 7102 – Compiler-Design
May 17, 2024
Question 8892 – Compiler-Design
May 17, 2024

Question 8483 – Compiler-Design

Which of the following statements is TRUE for the grammar given below?

S->(L)/a

L->L.S/S

Correct Answer: B

Question 305 Explanation: 

→ The given grammar can be parsed by LR(0) grammar because there is no S-R conflict or R-R conflict.
→ Since the grammar can be parsed by LR(0) parser hence we can say SLR(1) parser can also parse it.
A
The grammar can be parsed by LR(0) parser only
B
The grammar can be parsed by LR(0) and SLR(1) parsers
C
The grammar can be parsed by LL(1) parser only
D
The grammar can be parsed by LL(1) and LR(0) parsers
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!!