[stringtemplate-interest] what is the default separatorofStringTemplateGroup?

Dieter Frej dieter_frej at gmx.net
Thu May 10 03:06:04 PDT 2007


thanks even though THAT is totally confusing... for me the name default 
implies...

- Didi



Dreyer Ulf (CR/APA3) wrote:
> Hi Daniel,
> 
>   Nope - the default Lexer for Group-Files is the AngleBracket-Lexer.
> 
>   use 
>  	new StringTemplateGroup(<FileReader>,
> typeof(DefaultTemplateLexer));
>   or the appropriate Java-thingie ;)
>   
> 
> bye
> 
> Ulf
> 
>> -----Original Message-----
>> From: stringtemplate-interest-bounces at antlr.org 
>> [mailto:stringtemplate-interest-bounces at antlr.org] On Behalf 
>> Of Dieter Frej
>> Sent: Thursday, May 10, 2007 11:52 AM
>> To: StringTemplate
>> Subject: Re: [stringtemplate-interest] what is the default 
>> separatorofStringTemplateGroup?
>>
>> Hi Ulf,
>>
>> this is the code that I used:
>>
>>          StringTemplateGroup stg = new StringTemplateGroup(new 
>> FileReader("path/to/controller.st"));
>>          StringTemplate st = stg.getInstanceOf("location");
>>          st.setAttribute("name", "Dieter");
>>          st.setAttribute("name", "Frej");
>>
>> So, I guess that the DefaultTemplateLexer is used per default
>>
>> - Daniel
>>
>>
>>
>> Dreyer Ulf (CR/APA3) wrote:
>>> Hi Didi,
>>>
>>>   off the top of my head I don't know how to set a lexer for
>>>   the GroupLoader but the lexer you're looking for is 
>>>   not called  'DollarSignTemplateLexer'
>>>   but  'DefaultTemplateLexer'.
>>>
>>>   Hope that helps!
>>>
>>> Ulf
>>>   
>>>
>>>> -----Original Message-----
>>>> From: stringtemplate-interest-bounces at antlr.org 
>>>> [mailto:stringtemplate-interest-bounces at antlr.org] On Behalf 
>>>> Of Dieter Frej
>>>> Sent: Thursday, May 10, 2007 11:26 AM
>>>> To: 'stringtemplate-interest'
>>>> Subject: [stringtemplate-interest] what is the default 
>>>> separator ofStringTemplateGroup?
>>>>
>>>> Hi,
>>>>
>>>> I got started with StringTemplateGroups and I did as already 
>>>> described in
>>>> http://www.antlr.org:8080/pipermail/stringtemplate-interest/20
>>>> 07-January/000918.html
>>>>
>>>> As Ter answered in his replay, only the stuff in <...> was 
>>>> replaced. Now
>>>> I can use AngleBracketTemplateLexer.class as DefaultLexer, 
>>>> but <...> is
>>>> already default and I cannot find a 
>> DollarSignTemplateLexer. How can I
>>>> switch to $...$ instead of <...>?
>>>>
>>>>
>>>> - Didi
>>>>
>>>> _______________________________________________
>>>> 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