[antlr-interest] How to use antlr V3 with C++

Kay Röpke kroepke at classdump.org
Mon Aug 18 09:55:49 PDT 2008


hi!

On Aug 18, 2008, at 6:50 PM, miles mccoo wrote:

> so perhaps the real question is: what option do I need to set to  
> generate
> non-java (C, in my case, but I don't see any others either) code?


options {
	language=C;
}

But ANTLRWorks will refuse to debug that (it only knows how to compile  
and run Java code), so you must compile and start it by hand (remember  
to generate the output using the -debug flag) and then use "Debug  
Remote...".

cheers,
-k
-- 
Kay Röpke
http://classdump.org/








More information about the antlr-interest mailing list