[antlr-interest] StringTemplate functions like capitalize()?

Joan Pujol joanpujol at gmail.com
Sun Mar 18 04:16:54 PDT 2007


Hello,

It's possible to call a external function with stringtemplate?
I've the problem that I'm generating Java code and for Beans convention I
need to capitalize.

Something like:

basictype(name,type)::= <<
    private final <typeMap.(type)> name= new <typeMap.(type)>();

    public <typeMap.(type)> get<name>()   {  capitalization wanted in
get<name>()
        return <name>;
    }

>>

-- 
Joan Jesús Pujol Espinar
http://www.joanpujol.cat
http://lujop.deviantart.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070318/de00a00c/attachment.html 


More information about the antlr-interest mailing list