[antlr-interest] no treeParser if Parser fails

Ric Klaren ric.klaren at gmail.com
Sun Mar 20 05:03:37 PST 2005


Koen Segers wrote:
> I don't find a sort of boolean to see if parser found an error in the given 
> file. How can I see then that there was an error?
> 
> If there was an error it isn't needed to walk the tree also...

Override reportError/Warning in the generated parser and set a boolean 
attribute in there.

Cheers,

Ric


More information about the antlr-interest mailing list