The Gateway to Computer Science Excellence
0 votes
156 views

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

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

in Compiler Design by Boss (18.5k points) | 156 views
0
see the last production..follow of A is follow of B also
0
I dont know why I am commiting small mistakes :( Anyways thanks
0
happens :)

2 Answers

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.
by Active (4.8k points)
0 votes
yes u r crt only {$, e}
by Junior (795 points)
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,737 questions
57,385 answers
198,556 comments
105,368 users