Consider the following grammar: p → xQRS Q → yz | z R → w | ε S → y What is…

PYQ GATE 2017

Consider the following grammar:

p → xQRS

Q → yz | z

R → w | ε

S → y

What is FOLLOW(QQ)?

  1. A.

    {R}\left \{ R \right \}

  2. B.

    {w}\left \{ w \right \}

  3. C.

    {w,y}\left \{ w,y \right \}

  4. D.

    {w,$}

Attempted by 584 students.

Sign up free to check your answer

Sign up free

Explore the full course: Compiler Design

Loading lesson…