[antlr-interest] Simple error detection?

John Ridgway john at jacelridge.com
Mon Mar 3 16:06:39 PST 2008


Never mind.  I answered my own question.
   parser.getNumberOfSyntaxErrors()

Peace
- John

P.S.  Duh.




On Mar 3, 2008, at 3:32 PM, John Ridgway wrote:

> Is there a really easy way to determine whether parsing (or tree- 
> parsing) completed successfully, or generated error messages?  I'm  
> sure I could do it with appropriate use of rulecatch, but I really  
> just want to check an existing flag.  Am I being dumb?  Have I  
> missed something?
>
> Peace
> - John
>



More information about the antlr-interest mailing list