Teaching UGC NET Mock Test Series 2025 (Paper 1 & 2) Compiler Design Syntax Analysis First and Follow
Consider the following grammar:
P → QR
R → +QR | ϵ
Q → TU
U → *TU | ϵ
T → (P) | a
What is follow(T)?1
{+, $}
2
{), $}
3
{*, +, $}
4
{*, +, ), $}
Consider the following grammar:
P → QR
R → +QR | ϵ
Q → TU
U → *TU | ϵ
T → (P) | a
What is follow(T)?