[antlr-interest] Re: 2.7.2 build system is fubar
Terence Parr
parrt at jguru.com
Sun Feb 16 16:09:21 PST 2003
Hi Dave,
First let me agree that the build situation is FUBAR. Tough no matter
what though with multiple languages. Anyway, ok, the antlr.jar file
that comes with the distribution should be all you need to get C++
output. You should then be able to include/compile/link/exec without
rebuilding antlr itself. I guess though the C++ libraries will have to
be build, which probably why you jumped on the ol' makefile.
Oh, you need antlr.jar not antlrall.jar now...
Compiling C++ on various platforms has always been a hassle, but a
number of folks have it working per the antlr-interest list digests...
Terence
On Sunday, February 16, 2003, at 04:03 PM, Dave <davekam at pobox.com>
wrote:
> --- In antlr-interest at yahoogroups.com, Terence Parr <parrt at j...> wrote:
>> Hi Dave,
>>
>> Are you trying to use the Java output or C++?
>>
>> Terence
>
> C++, I should have made that more clear -- the example I tried was
> examples/cpp/filter/t.g. But I suppose I don't see how that would
> change the situation, because java can't find the antlr/Tool class at
> all. If I understand correctly, regardless of the output language,
> java is required to run antlr itself. At
> http://www.jguru.com/faq/view.jsp?EID=85 it says the problem is that
> the CLASSPATH is set wrong, but that's not true in this case -- the
> antlr wrapper script sets it correctly:
>
> #!/bin/sh
> prefix=/usr/local
> ANTLR_JAR=${prefix}/share/antlr-2.7.2/antlrall.jar
> if test "x$CLASSPATH" = x; then
> CLASSPATH=$ANTLR_JAR
> else
> CLASSPATH=$ANTLR_JAR:$CLASSPATH
> fi
> java antlr.Tool $*
>
> Dave
>
>
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
--
Co-founder, http://www.jguru.com
Creator, ANTLR Parser Generator: http://www.antlr.org
Lecturer in Comp. Sci., University of San Francisco
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list