[antlr-interest] Ang: Re: Newbie C-code generation

Jim Idle jimi at temporal-wave.com
Wed Jun 18 07:52:37 PDT 2008


On Wed, 2008-06-18 at 11:08 +0200, mimarob at algonet.se wrote:

> Hmm I'm pretty sure I haven't got a pre installed antlr on my system
> 
> I downloaded the package from http://www.antlr.org/download/antlr-3.1
> b1.tar.gz
> 



> When I try to remove the antlr-2.7.7.jar I get the 
> 
> java.lang.NoClassDefFoundError: antlr/Tool


Sorry, you do need the old version there because ANTLR itself uses it,
but you are invoking the 2.x version, not the 3.x version. use
org.antlr.Tool to invoke the 3.x version.

> 
> > 
> > $ make
> > java antlr.Tool StdCParser.g

                  ^^^^^^^

> > ANTLR Parser Generator   Version 2.7.7 (20060906)   1989-2005

                                                          ^^^^^^^^^^


Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080618/accc7217/attachment.html 


More information about the antlr-interest mailing list