How do I remove left recursion on the following rule:
S -> aSAbb | aA
I understand how to perform it on S -> SA | A
which becomes S -> A | AS'; S' -> A | AS', but the terminals throw me off in this question.
EDIT:
Sorry, apparently I was confused as to what left recursion is. I should have asked how to remove the left hand symbol from the right hand side.