Intermediate
Compilers & Programming Language Theory
Q66 / 100
What is the purpose of the FOLLOW set when constructing predictive parsing tables?
Correct! Well done.
Incorrect.
The correct answer is C) It lists the tokens that can immediately follow a non-terminal in some derivation, which is needed to decide when to apply epsilon-productions
C
Correct Answer
It lists the tokens that can immediately follow a non-terminal in some derivation, which is needed to decide when to apply epsilon-productions
Explanation
FOLLOW(A) contains every terminal that can appear immediately after A in some sentential form (plus end-of-input where applicable). It is essential for filling table entries for productions that derive the empty string.
Progress
66/100