I read one of my notes for Preparing PhD entrance Exam. Uppercase letter is non-terminals and Lowercase letter is terminal.
We have two grammar as like :
G1: S-->bSa | aSb | ba
G2: S-->XYa
X-->a | Yb
Y--> c | epsilon
My note's wrote:
G1
is not LL(1)
Grammar but G2
is LL(1)
Grammar.I know some about LL(1) but I think this example is not obvious to me. anyone could simplicit it for me? thanks.