A -> Aac | Ab | Bb | a
B -> Ac | Ad | ϵ
Is this grammar LL(1)? Why so? If not, make it LL(1)
I need help solving this. I think it’s not LL(1) because it has left recursion but I don’t know how to get rid of it. I think it ends up being indirect left recursion after doing this:
A -> BbA' | aA'
A' -> acA' | bA' | ϵ
B -> AB' | ϵ
B' -> c | d