[antlr-interest] help with CPP generated files

Jim Idle jimi at temporal-wave.com
Wed Jul 11 13:56:51 PDT 2012

It's explained in the API documentation, including why you don't need to
change .c to .cpp (there is a flag to the compiler to treat the file as


> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Murat Atalay
> Sent: Wednesday, July 11, 2012 11:19 AM
> To: antlr-interest at antlr.org
> Subject: [antlr-interest] help with CPP generated files
> Hi Everyone,
> I am generating C files with ANTLRworks, but I have some CPP code
> inside my grammar. After I generate my C output. I go back and change
> the .c files to .cpp files and I have to go to header files and comment
> out "extern "C" { ..}" in order my CPP files to compile.
> I am using visual studio 2010 express and I added the grammar files to
> command line. So, it pre-builds it for me. But I have a problem with
> that extern "C". I was wondering if I can add something to command line
> to get rid of that or is there another options that I can do to comment
> it out.
> Thanks,
> Murat
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-
> email-address

More information about the antlr-interest mailing list