The task is to determine which statements are true when computing the First and Follow sets in top-down parsing by a compiler. Let's analyze each option based on our understanding of compiler parsing techniques.
Thus, the correct answers are:
These options ensure accurate computation of First and Follow sets, integral parts of top-down and bottom-up parsing techniques.
Consider the Grammar :
T → Qx
Q → RS
R → y | ε
S → z | ε
Here x, y, z are terminals and T, Q, R, S are non terminals.
What will be the follow set of the non terminal R ?