I have some homework that requires me to remove direct left hand recursion. Let me start out by stating that I am not asking you to do my homework for me, I just want to know if I am on the right track.
I have the following prduction:
e --> e + t
--> e - t
--> t
I can replace that with:
e --> te`
e '--> +te'
e` --> /te'
e` --> te'
e` -->
I have the following prduction:
e --> e + t
--> e - t
--> t
I can replace that with:
e --> te`
e '--> +te'
e` --> /te'
e` --> te'
e` -->
