03-04-2013, 05:37 PM
I am not getting the proper code to calculate first and follow of productions after elimination of left recursion .
And the code that is being posted over here for calculation of first and follow its not working properly,even first or follow nothing is being calculated properly.
I need the code which can be applied to all the grammars
E->E+T|T
T->T*F|F
F->(E)|x
remove left recursion then calculate first and follow