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-boun...@antlr.org [mailto:antlr-interest- > boun...@antlr.org] On Behalf Of Udo Weik > Sent: Thursday, October 20, 2011 9:12 AM > To: antlr-interest@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 List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address -- You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to il-antlr-inter...@googlegroups.com. To unsubscribe from this group, send email to il-antlr-interest+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.