|LL(1) grammar for dangling else? MLF@VM.CPD.UA.ES (Mikel L. Forcada) (1995-05-28)|
|Re: LL(1) grammar for dangling else? email@example.com (Markus Lumpe) (1995-05-30)|
|Re: LL(1) grammar for dangling else? firstname.lastname@example.org (1995-06-23)|
|From:||"Mikel L. Forcada" <MLF@VM.CPD.UA.ES>|
|Keywords:||parse, LL(1), question|
|Organization:||Universidad de Alicante|
|Date:||Sun, 28 May 1995 22:54:57 GMT|
the dangling-else problem is a classical one. In every book,
a non-ambiguous grammar based on "matched" and "unmatched"
statements is proposed, but this grammar is not LL(1).
Is it true that there doesn't exist any LL(k) grammar for
this language? Do you have references? A student of mine is
working on an algorithm to extract grammars from manipulated
LL(1) parsers (that is, parsers where multiple entries have
been eliminated (according to some semantics)
and he can't get around to see why the grammars he gets
are never LL(1) for this case. Has anyone worked on this
Thanks a lot
Mikel L. Forcada, email@example.com, firstname.lastname@example.org
Departament de Tecnologia Informatica i Computacio
E-03071 Alacant (Spain)
Return to the
Search the comp.compilers archives again.