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).
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).
A
,B
andX
? Are you following some fixed procedure? – reinierpost Nov 09 '16 at 16:14