I'm working on remove left recursion in grammar. (3 grammars)
1. A->Ab | aC
B->BaBB | BA
C->bC | BA
2. T->Txxy | TaabT | TTa
3. A-> BA | Baa
B-> Ab | Abb
I've tried to do it, but I'm not sure about my answers. First one, I have no idea how to do it. Second, the third one I think it will fail. Is my answer right? How can I change that? Please someone explain it in detail.