I have the following grammar.I have calculated the FIRST sets for all non terminals.But I am not sure if these are correct or not.
The grammar is as follows:
E->TE'
E'->+E|epsilon
T->FT'
T'->T|epsilon
F->PF'
F->*F'|epsilon
P->(E)|a|b|epsilon
The FIRST sets for non terminals are as follows:
FIRST(E)={(,a,b,*,+,epsilon}
FIRST(E')={+,epsilon}
FIRST(T)={(,a,b,*,epsilon}
FIRST(T')={(,a,b,*,epsilon}
FIRST(F)={(,a,b,*,epsilon}
FIRST(F')={*,epsilon}
FIRST(P)={(,a,b,epsilon}
Can anybody guide me if I am correct or not.Any help will be appreciated.