[stringtemplate-interest] Attribute not found exception?

Terence Parr parrt at cs.usfca.edu
Tue Mar 28 13:15:06 PST 2006


On Mar 28, 2006, at 12:59 PM, David Moshal wrote:

> Ter - I think the question was a little different. In actual use,  
> the system doesn't complain if you set an attribute which
> doesn't exist, which becomes very hard to debug. One needs to look  
> at the generated code.

Oh!  Right, Yes, that is a very big problem!  You are right. the  
problem is, how do you know what the complete set of attributes is?

Ter

> Dave
>
>
> On 3/28/06, Terence Parr <parrt at cs.usfca.edu> wrote:
> On Mar 28, 2006, at 11:00 AM, David Moshal wrote:
>
> > I too have thought this might be useful at times, and was wondering
> > if the api could be extended to support this,
> > ie:
> >
> > setRequiredAttribute (...);
>
> Sometimes you want it and sometimes you don't in same app.  You want
> attributes with no value to be blank w/o an IF:
>
> $if(foo)$foo$endif$
>
> Ter
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org:8080/mailman/listinfo/stringtemplate-interest
>



More information about the stringtemplate-interest mailing list