I have a grammar that looks like this
G = ({A, B, C},{a, c},P, A),
P = {
1. A → BaC,
2. B → aB
3. B → ε,
4. C→c
}
and I want to resolve the FIRST(2.) = {a} FOLLOW(B) = {a} conflict. But with every attempt I fail because I am not able to use the terminal symbol absorption after which the grammar looks like this
G = ({A, B, C, [Ba]},{a, c},P, A),
P = {
1. A → [Ba]C,
2. B → aB
3. B → ε,
4. C → c
5. [Ba] → aBa | a
}
but the problem remains still the same