Try \%.I think that should work Ter On Jan 22, 2011, at 12:45 PM, Bernardo Elayda wrote:
> Hi, > > I have some Java code I need to place in actions in my Antlr 3.3 grammar. > But, this Java code uses the Java String.format method which uses the > '%' character. > > When I build my grammar, Antlr complains that it thinks '%' is in use > with an incorrect usage of StringTemplate. There is no use of > StringTemplate in my grammar. > > Is my only workaround to replace all the String.format instances? > > tia, > bernardo > > 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.
