This is the original grammar:
S -> ABe A -> ab | a | ϵ B -> b
I did try left factoring and this is what I got:
S -> ABe A -> aX | ϵ X -> b | ϵ B -> b
But it still is not LL(1).
Computer Science Stack Exchange is a question and answer site for students, researchers and practitioners of computer science. It only takes a minute to sign up.Sign up to join this community