Question 7102 – Compiler-Design
May 17, 2024Question 8892 – Compiler-Design
May 17, 2024Question 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.
The grammar can be parsed by LR(0) parser only
The grammar can be parsed by LR(0) and SLR(1) parsers
The grammar can be parsed by LL(1) parser only
The grammar can be parsed by LL(1) and LR(0) parsers
Subscribe
Login
0 Comments