Multiple choice

Consider the following grammar: S $\rightarrow$FR R$\rightarrow$* S|$\epsilon$ F$\rightarrow$id In the predictive parser table, M, of the grammar the entries M [S, id] and M [R,$] respectively.

  1. {S $\rightarrow$ FR} and {R $\rightarrow$ $\epsilon$ }
  2. {S $\rightarrow$FR} and { }
  3. {S $\rightarrow$FR} and {R $\rightarrow$ *S}
  4. {F $\rightarrow$ id} and {R $\rightarrow$ $\epsilon$ }
Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation