I have a grammar that has left recursion I tried removing them and I was able to remove two of them but for one of them I don't know what to do! Here is the grammar:
R -> R "|" S
R -> S
S -> S.T
S -> T
T -> T*
T -> U
U -> (R)
U -> a
U -> "ε"
I removed the left recursion in rule 1 and 3 but I don't know what to do for rule #5 which is a star enclosure.
I'd be grateful if you help on this problem.