[antlr-interest] Newbie C-code generation

mimarob at algonet.se mimarob at algonet.se
Wed Jun 18 06:10:06 PDT 2008


Ok so I was running an old V2 example..

Now the code generation seems to work with the newer examples-v3.tar

Thank you all for your kind tips!

/Erik


----Ursprungligt meddelande----
Från: antlr at mirality.co.nz
Datum: 2008-jun-18 13:53
Till: "mimarob at algonet.se"<mimarob at algonet.se>, <jimi at temporal-wave.
com>
Kopia: <antlr-interest at antlr.org>
Ärende: Re: [antlr-interest] Ang: Re:  Newbie C-code generation

At 21:08 18/06/2008, mimarob at algonet.se wrote:
 >When I try to remove the antlr-2.7.7.jar I get the
 >
 >java.lang.NoClassDefFoundError: antlr/Tool
 >
 >error.
 >
 >I thought the antlr-3.1b1.jar was the new antlr or?

Yeah, but as Johannes said you still need 2.7.7 in your classpath 
for v3 at the moment.

 >> java antlr.Tool StdCParser.g
 >> ANTLR Parser Generator   Version 2.7.7 (20060906)   1989-2005

Here's your problem -- this is the wrong command line.

For v3, you need to use "org.antlr.Tool" instead of "antlr.Tool".





More information about the antlr-interest mailing list