|Grammar classification firstname.lastname@example.org (Ehsan Akhgari) (2005-12-11)|
|Re: Grammar classification cfc@shell01.TheWorld.com (Chris F Clark) (2005-12-15)|
|From:||"Ehsan Akhgari" <email@example.com>|
|Date:||11 Dec 2005 19:55:06 -0500|
|Posted-Date:||11 Dec 2005 19:55:06 EST|
I'm looking for characteristics of an LL(1) grammar which is also
LALR(1) but not SLR(1).
So far I know that if an LL(1) grammar has any lambda productions it's
not LR(0), and if it has some non-terminal symbols which only produce
lambda strings, then it might not be SLR(1) as well. But I have not
been able to find any grammar of the latter form. I've performed a lot
of trial and error, to no avail. I prefer to have a clue how to
organize my trials in a systematic manner, but I have no such clue as
Can anyone guide me in the right direction, or provide a sample LL(1)
grammar which is not SLR(1)?
Thanks in advance,
Return to the
Search the comp.compilers archives again.