[stringtemplate-interest] DefaultTemplateLexer in C#
Sam Harwell
sharwell at pixelminegames.com
Mon Jun 21 08:11:05 PDT 2010
The lexer used for *.st files in my C# 3 port of ST 3.2 appears to be
"TemplateLexer".
Can you check if this works for you (typeof(TemplateLexer))?
Sam
-----Original Message-----
From: stringtemplate-interest-bounces at antlr.org
[mailto:stringtemplate-interest-bounces at antlr.org] On Behalf Of Terence Parr
Sent: Wednesday, May 12, 2010 1:33 PM
To: robsosno
Cc: stringtemplate-interest at antlr.org
Subject: Re: [stringtemplate-interest] DefaultTemplateLexer in C#
Hi. That is pretty strange. I did not build the C# version and Kunle is no
longer working on the project so I'm not sure what to do. any looked in
this source bucket:
http://www.stringtemplate.org/download/StringTemplate.Net.v3.1b1.src.zip
Ter
On May 9, 2010, at 1:17 PM, robsosno wrote:
> Hi,
>
> I'm new to StringTemplate. I've found it very useful for my work. I've
found it also easy to learn and haven't any problems until now (started
using it 2 weeks ago).
>
> I have an issue with delimiters: I would like to change delimiters for
*.stg files to dollars as I'm working with html files.
> To do so I'm trying something like this:
> group = new StringTemplateGroup(new StringReader(s),
typeof(DefaultTemplateLexer());
>
> Unfortunately DefaultTemplateLexer is not defined, only
AngleBracketTemplateLexer is available.
> I've got following version of library:
>
http://www.stringtemplate.org/download/StringTemplate-3.2-2009-06-28.7z
>
> It seems for me as a bug, because DefaultTemplateLexer is documented and
does not exist in Antlr3.StringTemplate.dll (I've verified this with
ildasm).
> On the other hand $ delimiter is handled correctly in *.st files so
DefaultTemplateLexer must exist somehow (I've found only private class
_defaultTemplateLexer).
> Also other people are using this from a long time and nobody noticed this
issue earlier?
>
> So I'm not sure if there is a bug or I don't know something important.
> Anyway, how to set $ delimiter for *.stg files?
>
> I've found description "StringTemplate v3.2 binaries for .NET framework"
while assembly info shows version 3.1.0.0. Maybe link is incorrect?
>
> I've also tried to get a source to find DefaultTemplateLexer class and
compile library myself. This is not as simple as it seems to be.
> Command:
> git.exe clone -v http://github.com/antlr/stringtemplate.git
> fails with:
> Cannot obtain needed tree 5f832f99b0630597f3c3df02a137a40f96e44f1b
> while processing commit 13c6d1d0d1e591dd2b813cb8fcd4207e823aa69a.
> fatal: Fetch failed.
>
> Do you know how to force $ delimiters?
>
>
> Robert
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org/mailman/listinfo/stringtemplate-interest
_______________________________________________
stringtemplate-interest mailing list
stringtemplate-interest at antlr.org
http://www.antlr.org/mailman/listinfo/stringtemplate-interest
More information about the stringtemplate-interest
mailing list