[antlr-interest] Help: A simple string template question..

Terence Parr parrt at cs.usfca.edu
Thu Jul 19 11:54:19 PDT 2007

On Jul 19, 2007, at 11:50 AM, sarim wrote:

> sarim <ssiddiqu at yahoo.com> wrote:
> Hi,
> I am new to StringTemplate. I have the following template:
> ************************
> group RuleTemplate;
> fulldef(package,import,rulename) ::= <<$packagedef()$
> $importdef(); separator="\n"$

This is doing a \n after the call. The call emits the improts.  move  
the \n into the importdef template.


More information about the antlr-interest mailing list