[antlr-interest] Jim Idle: C-Runtime, *.c-file should be *.cpp

Jim Idle jimi at temporal-wave.com
Thu Oct 20 11:07:13 PDT 2011


You can change the CTarget.java and rebuild the tool, but it is much
easier to just add the "Compile as C++" flag to the compiler:

MS:  /TP
gcc: -x cpp


Or you could trivially add a makefile rule to rename them after the antlr
tool is run.


Jim


> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Udo Weik
> Sent: Thursday, October 20, 2011 9:12 AM
> To: antlr-interest at antlr.org
> Subject: [antlr-interest] Jim Idle: C-Runtime, *.c-file should be *.cpp
>
> Hello Jim,
>
> is there any simple way that the generated *.c-file is named *.cpp?
>
>
> Many thanks and greetings
> Udo
>
> 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