Epsilon is represented by @ and terminals with only single characters work, example a terminal as 'id' won't work here
PranayT17/Finding-FIRST-and-FOLLOW-of-given-grammar
This python program finds finds the first and follow sets of each non-terminal(variable) in the given grammar.
Python