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: [email protected] [mailto:antlr-interest- > [email protected]] On Behalf Of Udo Weik > Sent: Thursday, October 20, 2011 9:12 AM > To: [email protected] > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.
