[antlr-interest] Error return code

Dan S. compilers at gmail.com
Sat Feb 2 16:08:38 PST 2008


Hi,

I'm using ANTLRv3 and having an issue with invoking it
from a Makefile.

I run ANTLR on my grammar using "java org.antlr.Tool
myGrammar.g" in my Makefile. However, whenever there
is an error in my grammar, the return code is still 0.

I'm assuming the problem is my lack of knowledge of
Java, so hopefully someone can point me in the right
direction to figure out how to catch grammar errors.

Dan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080202/f4bffb20/attachment.html 


More information about the antlr-interest mailing list