[antlr-interest] exit status from ANTLR generated parser

Bruce Bauman bruce.bauman at andesaservices.com
Thu Apr 29 06:33:18 PDT 2010


I'm using ANTLR V3 from a Pascal grammar. When I get a parse failure,
the java VM still exits with a 0 exit status, so I can't check for
failure from the shell script that is running the parser.

Any hint on how to get a proper exit status on error?

Thanks.

-- Bruce
CONFIDENTIALITY NOTICE: This e-mail is confidential and intended
solely for the use of the individual or entity to which it is addressed.  If
you are not the intended recipient, be advised that you have received 
this email in error and that any use, dissemination, forwarding, printing 
or copying of this e-mail is strictly prohibited. If you received this e-mail
in error, please delete it from your computer and contact the sender.



More information about the antlr-interest mailing list