[antlr-interest] error return code

robermann robermann at gmail.com
Mon Jun 18 00:59:05 PDT 2007


Hi all,
a question: let this command (and error):

java Test < myInput.txt
line 0:-1 mismatched input '<EOF>' expecting '}'

After getting a such parser error, I would expect that either "echo
%errorlevel%" (on a DOS shell) or "echo $?" (on a Bash shell) would return a
code not equal to 0. Instead, I get always a return code = 0. Is there any
particular reason? When automating /scripting, it could be useful
distinguish whether the parser exit with an exception or not.


Best regards
Roberto


--------------------------------------------------------------------------------
Are you tired to make software? Sound it! (www.codesounding.org)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070618/76304262/attachment.html 


More information about the antlr-interest mailing list