Re: [Pyparsing] Get Better Error Messages - Prevent Backtracking
Brought to you by:
ptmcg
From: W. M. B. <de...@de...> - 2008-04-20 08:43:42
|
On Mon, Apr 14, 2008 at 01:16:35AM +0200, Eike Welk wrote: > I want to propose an other way, how to get better error messages: > Prevent backtracking at certain points in the grammar. I like your approach and will probably use it in one of my two pyparsing projects. Unfortunately, my other projects has about 600 BNF productions, some of them non-trivial. Adding ErrStop to at least 100 or 200 of them would clutter my code a lot and I'm yet sure it even would give the desired result. For that grammar I still hope for inclusion of LastParseLoc or sth. similar in pyparsing :~) Thanks Eike, Gre7g, and Paul! |