[antlr-interest] Way to "cut" parsing?
Juancarlo Añez
apalala at gmail.com
Mon Oct 15 19:33:04 PDT 2012
Hello Jim,
Please see the FAQ:
>
> http://www.antlr.org/wiki/display/ANTLR3/Custom+Syntax+Error+Recovery
>
I didn't find an answer there,
> Also be aware of: http://antlr.markmail.org which will allow you to search
> the archives of the list and will usually give you an answer quicker than
> the list itself will :) Almost everything that could be asked about ANTLR
> 3.4 has been asked and answered by now ;)
>
Or there.
This may be more like it:
http://www.antlr.org/wiki/display/ANTLR3/Error+reporting+and+recovery
but that just turns off recovery, it doesn't provide a "cut" as in Prolog
and other grammars.
It's not just a matter of reporting errors as close as possible to the
offending phrase. The parser can be much more efficient if it knows it's
committed to a given rule once a certain phrase is seen.
Thanks!
--
Juancarlo *Añez*
More information about the antlr-interest
mailing list