in Compiler Design
472 views
0 votes
0 votes
X->aABe
B->c | d
A->a

What will be the follow of A here?
{c, d, $} or {c, d, e, dollar}
in Compiler Design
by
472 views

1 Answer

3 votes
3 votes
Best answer

Follow of A = c,d

selected by

4 Comments

@abhishekmehta4u
shouldn't it be FOLLOW(A)=FIRST(B) $\bigcup$ FOLLOW(X)?

0
0
No , why you include follow of x ??
1
1
edited by
oh i got it
1
1
Follow of A is simply {c, d}

Why you thought of the two options given in the question?
0
0