Left Recursion

We should eliminate the left recursion without changing the language.

AAα β

The language the above generates is βα The above representation is not in the grammar form.

We can convert the above language to left recursive form like this.

AβAAϵ|αA