[prev in list] [next in list] [prev in thread] [next in thread] 

List:       stringtemplate-interest
Subject:    [stringtemplate-interest] Anonymous template inside another
From:       Morten Olav Hansen <mortenoh () gmail ! com>
Date:       2010-11-25 20:44:25
Message-ID: AANLkTikkF0M9NV2q_aGF9ULQ2C03j_H1zeRR8amAQB96 () mail ! gmail ! com
[Download RAW message or body]

Hi

Is it possible to have an anonymous template inside another template
somehow? I'm trying to generate an argument to a template (which is
called from an anonymous template).

I have something like this:

<r.states: {s|<state_builder(state=s, region_ns={r<region_n>})>}>

But i get an exception:
Exception in thread "main" java.lang.IllegalArgumentException: cannot
embed template <anonymous template argument> in itself

I'm just passing region_ns=region_n now and adding the r on the
template side (and this works), but this argument will potentially
have several arguments concatenated together.

Regards,
Morten
_______________________________________________
stringtemplate-interest mailing list
stringtemplate-interest@antlr.org
http://www.antlr.org/mailman/listinfo/stringtemplate-interest
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic