356 views
0 votes
0 votes

1 Answer

1 votes
1 votes

S->abS|ScS|d|c

First of S:{a,d,c}

Follow of S:{$,c}

The follow of the starting symbol always contains "$".

The follow of a symbol is what would appear after that symbol if that symbol appears in the right hand side of the production. So in this case c comes after S so it would be in the follow of S and $ has to be there as S is the starting symbol. I hope u got it.Now for the definition of first and follows:

https://www.cs.uaf.edu/~cs331/notes/FirstFollow.pdf

Related questions

0 votes
0 votes
1 answer
2
0 votes
0 votes
2 answers
3
jugnu1337 asked Sep 3, 2023
355 views
FIND the no of 2 state dfa with the designated initial state possible over {a,b,c} which accept empty language is equal to