Here's a few questions I had on a quiz in a class and just want to verify their correctness. Grammar:
S -> ABC
A -> df | epsilon
B -> f | epsilon
C -> g | epsilon
1.) The Follow set of B contains g and epsilon (T/F)? Ans: F. There is no epsilon in the Follow sets, correct? (Only $ aka end of input)
2.) The First set of S contains d, f, g, and epsilon (T/F)? Ans: T. I said false for this because I thought First(S) = First(A), which g is not a part of. Who is correct?