Grammar classification

"Ehsan Akhgari" <ehsan.akhgari@gmail.com>
11 Dec 2005 19:55:06 -0500

          From comp.compilers

Related articles
Grammar classification ehsan.akhgari@gmail.com (Ehsan Akhgari) (2005-12-11)
Re: Grammar classification cfc@shell01.TheWorld.com (Chris F Clark) (2005-12-15)
| List of all articles for this month |

From: "Ehsan Akhgari" <ehsan.akhgari@gmail.com>
Newsgroups: comp.compilers
Date: 11 Dec 2005 19:55:06 -0500
Organization: http://groups.google.com
Keywords: parse, question
Posted-Date: 11 Dec 2005 19:55:06 EST

Hi all,


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
well.


Can anyone guide me in the right direction, or provide a sample LL(1)
grammar which is not SLR(1)?


Thanks in advance,
Ehsan


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.