-
Consider the following grammar G
S → F | H
F → p | c
H → d | c
Where S, F, and H are non – terminal symbols, p, d, and c are terminal symbols. Which of the following statements (s) is/ are correct?
S1 : LL(1) can parse all strings that are generated using grammar G
S2 : LR(1) can parse all strings that are generated using grammar G
-
- Only S1
- Only S2
- Both S1 and S2
- Neither S1 nor S2
- Only S1
Correct Option: D
NA