[stringtemplate-interest] Help needed with separator

Richard Catlin richard.m.catlin at gmail.com
Fri Mar 26 14:08:42 PDT 2010


It works.  Thanks.

<attributes : {attribute | <attribute.type> <attribute.name
>};separator=comma()>


On Wed, Mar 24, 2010 at 3:55 PM, Terence Parr <parrt at cs.usfca.edu> wrote:

> separator=comma() as option :)
> Ter
> On Mar 24, 2010, at 3:39 PM, Richard Catlin wrote:
>
> > I am building a parameter list for a method, such as:
> >
> > public void method1(String param1, int param2) {
> > ..
> > }
> >
> >     <parameters: {p | <p.type> <p.name><comma()>}>
> >
> > How do I prevent a comma from coming after the last parameter?
> > This is in a *.stg file called by Antlr.
> >
> > Thanks for you any help.
> >
> > Richard Catlin
> > _______________________________________________
> > stringtemplate-interest mailing list
> > stringtemplate-interest at antlr.org
> > http://www.antlr.org/mailman/listinfo/stringtemplate-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20100326/91af22bb/attachment.html 


More information about the stringtemplate-interest mailing list