edited by
1,865 views

2 Answers

Best answer
1 votes
1 votes

my answer

selected by
2 votes
2 votes

FIRST Sets:

Fi(A) = {0, eps}

Fi(B) = {1, eps}

Fi(C) = {1, eps}

Fi(S) = {0, 1, eps}

FOLLOW Sets:

Fo(S) = {$}

Fo(A) = {1, $}

Fo(B) = {1, $}

Fo(C) = {0, $}

Related questions

0 votes
0 votes
1 answer
1
Subhrangsu asked Apr 15, 2022
2,027 views
Compute FIRST and FOLLOW sets:S→ aAC | bBA→ Abc| Abd | eB→ f | gC→ h | i
1 votes
1 votes
0 answers
2
aditi19 asked May 12, 2019
1,649 views
why do first sets can have epsilon symbol but follow sets don’t?P.S: I’ve a silly doubt :P
0 votes
0 votes
1 answer
3
saumya mishra asked Jun 3, 2018
3,118 views
Find first and follow of the given grammar?S->ABA->BS/a/€B->AS/b
2 votes
2 votes
2 answers
4
Abhishek Malik asked Apr 5, 2018
808 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$