[antlr-interest] Error return code
Clinton Roy
clinton.roy at gmail.com
Sat Feb 2 16:34:46 PST 2008
Hi Dan,
On Feb 3, 2008 10:08 AM, Dan S. <compilers at gmail.com> wrote:
> 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.
This problem has been fixed in source control versions, but is not yet
available in a released version:
http://www.antlr.org:8888/browse/ANTLR-43
3.1 should be out any day now..
You should be able to work the bug that by using test -nt, something like:
fooParser.c: foo.g
java org.antlr.Tool foo.g
test fooParser -nt foo.g
Hope that helps,
--
Clinton Roy
CSIRO - Robotics Platform Engineer
Autonomous Systems Lab
humbug.org.au - Brisbane Unix Group
azure.humbug.org.au/~croy/blog - Blog
flickr.com/photos/croy/ - Photos
More information about the antlr-interest
mailing list