Question 127Asked in CIL MT Systems, 26 Mar 2017 (12:30 PM)Which of the following statements is TRUE for the grammar given below?
Which of the following statements is TRUE for the grammar given below?
S -> (L) / a
L -> L,S / S
- AThe grammar can be parsed by LR(0) parser only
- BThe grammar can be parsed by LR(0) and SLR(1) parsers
- CThe grammar can be parsed by LL(1) parser only
- DThe grammar can be parsed by LL(1) and LR(0) parsers
Show answerHide answer
Correct answer: (B) The grammar can be parsed by LR(0) and SLR(1) parsers