[antlr-interest] no treeParser if Parser fails

Koen Segers KoenSegers at scarlet.be
Sun Mar 20 09:39:36 PST 2005


On Sunday 20 March 2005 14:03, Ric Klaren wrote:
> 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.

Jep thx !

>
> Cheers,
>
> Ric

-- 

Koen Segers

<koensegers at scarlet.be>
<http://eddyvite.dyndns.org>


More information about the antlr-interest mailing list