260 views

2 Answers

0 votes
0 votes

First(S) =  f,b
First(A) = f,b
First(B) = Ɛ,c

Follow(S) =  \$,f
Follow(A) = \$,c
Follow(B) = \$,d

0 votes
0 votes
 

First(S) = f,b

First(A) =f,b

First(B) =£,c

 

Follow(S) =$ f

Follow(A) =first(B)=c,$,f

Follow(B) =d union follow (S)=d,$,f

Related questions

2.6k
views
1 answers
0 votes
Subhrangsu asked Apr 15, 2022
2,576 views
Compute FIRST and FOLLOW sets:S→ aAC | bBA→ Abc| Abd | eB→ f | gC→ h | i
398
views
1 answers
0 votes
3.5k
views
1 answers
1 votes
saumya mishra asked Jun 3, 2018
3,545 views
Find first and follow of the given grammar?S->ABA->BS/a/€B->AS/b
1.0k
views
2 answers
2 votes
Abhishek Malik asked Apr 5, 2018
1,020 views
Find First and Follow in the following grammar.$E\rightarrow E+T \mid T$T\rightarrow TF \mid F$F\rightarrow F^* \mid a \mid b$