[antlr-interest] antlr-3.1.jar shows up as antlr-2.7.7?

Randall R Schulz rschulz at sonic.net
Tue Sep 23 15:17:10 PDT 2008


On Tuesday 23 September 2008 15:06, Jack Spencer wrote:
> I'm trying to get antlr-3.1 to run on OS X 10.5.4.
> I d/l-ed the antlr-3.1.tar.gz file from the main antlr download page,
> have the antlr-3.1.jar in my CLASSPATH.
> The CLASSPATH only contains that specific jar.  No other antlr
> versions on the system.
> But when I run java antlr.Tool foo.g the version string is "Version
> 2.7.7 (20060906)"

Try "org.antlr.Tool" instead of "antlr.Tool".

ANTLR 3 uses ANTLR 2 to parse ".g" file, so they're both in there.


> Further, since it fails to recognize the "grammar foo.g", it really
> is ANTLR2
>
> So - how do I get the 3.1 jar to act, well... as 3.1?
> Thanks,
> Jack


Randall Schulz


More information about the antlr-interest mailing list