Possible duplicate:
How to determine if a grammar is LL (1) LR (0) SLR (1)
Is there any direct way, i.e. without building a parsing table to find out if the grammar is SLR (1), LR (0), LR (1), or LALR (1).
For example, here is a grammar
S->Sd|cAe A->Sa|S|a
Now How can we find the class to which this grammar belongs? Is it SLR (1), LR (0), LR (1) or LALR (1)?
source share