Re: Grammar with precedence rules

Joachim Durchholz <joachim_d@gmx.de>
19 Mar 2002 16:10:20 -0500

          From comp.compilers

Related articles
Grammar with precedence rules haberg@matematik.su.se (2002-03-09)
Re: Grammar with precedence rules joachim_d@gmx.de (Joachim Durchholz) (2002-03-11)
Re: Grammar with precedence rules haberg@matematik.su.se (2002-03-17)
Re: Grammar with precedence rules mickunas@cs.uiuc.edu (Dennis Mickunas) (2002-03-17)
Re: Grammar with precedence rules joachim_d@gmx.de (Joachim Durchholz) (2002-03-19)
Re: Grammar with precedence rules haberg@matematik.su.se (2002-03-21)
Re: Grammar with precedence rules michaeldyck@shaw.ca (Michael Dyck) (2002-03-31)
| List of all articles for this month |

From: Joachim Durchholz <joachim_d@gmx.de>
Newsgroups: comp.compilers
Date: 19 Mar 2002 16:10:20 -0500
Organization: Compilers Central
References: 02-03-043 02-03-068 02-03-077
Keywords: parse
Posted-Date: 19 Mar 2002 16:10:20 EST

Hans Aberg wrote:
> Right, this not what I want:


Hmm... I must confess that I didn't fully understand what you're trying
to achieve.
One thing that could be done is to use a Tomita (Earley) parser and use
the priorities to resolve any ambiguities. (Never having used such a
parser, I can't say whether the parser will give you the information you
need to trace the ambiguity to a rule though.)
BTW I'm not sure whether it's a good idea. Prioritizing stuff means that
you'll never see any unintentional ambiguities. And to make sure that
there are no unwanted ambiguities left, you'll have to thoroughly
understand the grammar, so you'll have to do it the hard way anyway.


Or did I overlook something?


> The book http://www.cs.vu.nl/~dick/PTAPG.htm


That link won't work, anybody interested in the book please try
http://www.cs.vu.nl/~dick/PTAPG.html (the l was missing on the file suffix).


Regards,
Joachim


Post a followup to this message

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