[antlr-interest] Way to "cut" parsing?
apalala at gmail.com
Mon Oct 15 19:33:04 PDT 2012
Please see the FAQ:
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 ;)
This may be more like it:
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.
More information about the antlr-interest