edited by
604 views
0 votes
0 votes

I think follow(A) is given wrong. I am getting

follow(A) = {first (B), follow(S)} = {e, $}

edited by

2 Answers

0 votes
0 votes
S-> ABA is a single production for S row and B->eA is single production for A row. So there is no multiple entries in S and A row.

A -> dA  enters at d column of A row and  A->Bc production enters at e column of A row.
A ->Ɛ enters at Follow(A)= {c, d, e $}

A ->Ɛ and A -> dA are in d column. and A->Ɛ and A->Bc are in e column.

Related questions

0 votes
0 votes
0 answers
1
0 votes
0 votes
1 answer
2
0 votes
0 votes
1 answer
3
0 votes
0 votes
1 answer
4
focus _GATE asked Jan 11, 2017
397 views