If somebody could help me with the rules of FIRST and FOLLOW sets that would be awesome.
The question is calculate the FOLLOW sets for all of the non-terminals in the following grammar
S ::= S b T a E ¦ a T b ¦ c T a c R ::= E T ¦ a E
T ::= a c E ¦ epsilon E ::= R ¦ T a d ¦ epsilon
I have read the rules of creating follow sets and understood the basic examples but I am confused at what I should be doing when I write FIRST(S) for this
any help would be greatly appreciated.