Question 14
Consider the grammar.
Which of the following correctly gives FIRST(S) and FOLLOW(X)?
FIRST(S) = {p, q, r, s} FOLLOW(X) = {r, s, $}
FIRST(S) = {p, q, r, s, ε} FOLLOW(X) = {r, s}
FIRST(S) = {p, q, s} FOLLOW(X) = {$}
FIRST(S) = {p, q, r, s} FOLLOW(X) = {r, s}