Consider the following grammar, where {#, &, x, y} are terminals: S → P P → QR…
Consider the following grammar, where {#, &, x, y} are terminals:
S → P
P → QR | TQR
Q → Q# | ε
R → & | ε
T → x | y
Select the correct option.
- A.
FIRST(P) = {#, x, y, ε}
- B.
FIRST(P) = {#, x, y, &}
- C.
FIRST(P) = {#, x, y}
- D.
FIRST(P) = {#, &, x, y, ε}
Attempted by 119 students.
Sign up free to check your answer
Sign up freeLoading lesson…

