[stringtemplate-interest] super template named default

Nate misc at n4te.com
Mon Nov 27 18:34:58 PST 2006


Ah, of course you are right. Isn't it possible to know that we are in 
the context of parsing a group definition (where the keyword would be a 
valid group name) and not map declaration?

-Nate


Terence Parr wrote:

>Hi. sorry about that.  I need a better error message on this but you  
>cannot use keywords for method names.  I believe default is the key  
>word in the map construct.
>
>Terence
>On Nov 27, 2006, at 1:59 PM, Nate wrote:
>
>  
>
>>Template file:
>>group moo : default;
>>
>>Error:
>>template group parse error
>>line 1:13: expecting ID, found 'default'
>>
>>If I rename the "default" template to something else it works. :(
>>
>>-Nate
>>_______________________________________________
>>stringtemplate-interest mailing list
>>stringtemplate-interest at antlr.org
>>http://www.antlr.org:8080/mailman/listinfo/stringtemplate-interest
>>    
>>
>
>_______________________________________________
>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