Using any of the techniques (substitution, factoring, left-recursion removal), construct an LL(1) grammar accepting the same language as G.
G over Σ = {0, 1, 2}:
S → Y | 1X
X → 1X | 0
Y → Y0 | 1X1 | 2X2
I did this so far:
X is left recursive so:
X -> 1F | 0F
F -> 1F | e
What else would i need to do to construct an LL(1), could i factor Y?