Teaching UGC NET Mock Test Series 2025 (Paper 1 & 2) Compiler Design Syntax Analysis First and Follow
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?
1
{x, y}
2
{y, z}
3
{z, x}
4
{ε}