Consider the following grammar: S → F R R → * S | ε F → id In the predictive…

GATE · 2006 · CS

Consider the following grammar:

S → F R

R → * S | ε

F → id

In the predictive parser table M of this grammar, the entries M[S, id] and M[R, $] respectively are:

  1. A.

    {S → FR} and {R → ε }

  2. B.

    {S → FR} and { }

  3. C.

    {S → FR} and {R → *S}

  4. D.

    {F → id} and {R → ε}

Attempted by 126 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…