Consider the following CFG :
E → SaA | aS
S → bA | A
A → aA | a
Where E, S, A are non-terminals and a, b are terminals. The above grammar is ?1
LALR(1) but not SLR(1)
2
Not CLR(1)
3
CLR(1) but not LALR(1)
4
Not LALR(1)
Consider the following CFG :
E → SaA | aS
S → bA | A
A → aA | a
Where E, S, A are non-terminals and a, b are terminals. The above grammar is ?