Consider the following grammar G
$S \rightarrow F \mid H$
$F \rightarrow p \mid c$
$H \rightarrow d \mid c$
Where $S$, $F$, and $H$ are non-terminal symbols, $p, d$, and $c$ are terminal symbols. Which of the following statement(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 and S2