Re: LR(1) Parsing : Error Handling & Recovery

Stefan Monnier <monnier@iro.umontreal.ca>
Sun, 20 Jul 2014 10:28:23 -0400

          From comp.compilers

Related articles
[10 earlier articles]
Re: LR(1) Parsing : Error Handling & Recovery DrDiettrich1@aol.com (Hans-Peter Diettrich) (2014-07-19)
Re: LR(1) Parsing : Error Handling & Recovery haberg-news@telia.com (Hans Aberg) (2014-07-19)
Re: LR(1) Parsing : Error Handling & Recovery drikosev@otenet.gr (Evangelos Drikos) (2014-07-20)
Re: LR(1) Parsing : Error Handling & Recovery haberg-news@telia.com (Hans Aberg) (2014-07-20)
Re: LR(1) Parsing : Error Handling & Recovery gneuner2@comcast.net (George Neuner) (2014-07-20)
Re: LR(1) Parsing : Error Handling & Recovery arnold@skeeve.com (2014-07-20)
Re: LR(1) Parsing : Error Handling & Recovery monnier@iro.umontreal.ca (Stefan Monnier) (2014-07-20)
Re: LR(1) Parsing : Error Handling & Recovery wclodius@earthlink.net (2014-07-20)
Re: LR(1) Parsing : Error Handling & Recovery cdodd@acm.org (Chris Dodd) (2014-07-21)
Re: LR(1) Parsing : Error Handling & Recovery DrDiettrich1@netscape.net (Hans-Peter Diettrich) (2014-07-21)
Re: LR(1) Parsing : Error Handling & Recovery drikosev@otenet.gr (Evangelos Drikos) (2014-07-21)
Re: LR(1) Parsing : Error Handling & Recovery haberg-news@telia.com (Hans Aberg) (2014-07-21)
Re: LR(1) Parsing : Error Handling & Recovery wclodius@earthlink.net (2014-07-21)
[8 later articles]
| List of all articles for this month |
From: Stefan Monnier <monnier@iro.umontreal.ca>
Newsgroups: comp.compilers
Date: Sun, 20 Jul 2014 10:28:23 -0400
Organization: A noiseless patient Spider
References: 14-07-023 14-07-024 14-07-026 14-07-027 14-07-029 14-07-032 14-07-034 14-07-037
Keywords: parse
Posted-Date: 20 Jul 2014 18:26:47 EDT

> IMO a correct PEG parser generator should warn about ambiguities in the
> grammar, just as every other parser generator does.


AFAIK, there can't be ambiguities in a PEG grammar, because the PEG
semantics explicitly have a "use the first match" semantics.




                Stefan



Post a followup to this message

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