[stringtemplate-interest] In C#, StringTemplate seems not to have a constructor with one argument
Sam Harwell
sharwell at pixelminegames.com
Thu Jun 25 04:17:29 PDT 2009
Hi Thomas,
My version of the C# StringTemplate port does have the single parameter
constructor you are looking for.
The source is available under the StringTemplate folder here:
http://fisheye2.atlassian.com/browse/antlrcs/
Or you can download the binaries from the bin/Bootstrap directory.
You'll need the following files:
Antlr3.StringTemplate.dll
Antlr3.Runtime.dll
Antlr3.Runtime.Debug.dll
Sam
From: stringtemplate-interest-bounces at antlr.org
[mailto:stringtemplate-interest-bounces at antlr.org] On Behalf Of Thomas
Gagne
Sent: Wednesday, June 24, 2009 12:22 PM
To: stringtemplate-interest at antlr.org
Subject: [stringtemplate-interest] In C#,StringTemplate seems not to
have a constructor with one argument
After getting it built, the first thing I thought I'd try doing in my
own project (after referencing Template's assemblies) is a
helloWorldTest()
[TestMethod]
public void helloWorldTest()
{
StringTemplate hello = new StringTemplate("Hello, $name$");
hello.SetAttribute("name", "World");
Console.Out.WriteLine(hello.ToString());
}
Unfortunately, I can't compile it because I'm told there isn't a
StringTemplate constructor that takes one argument. Odd. I'll keep
looking around but thought perhaps others have seen this problem.
I think I'll go back to my StringTemplate solution and take a closer
look at the tests there.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20090625/6dc510e7/attachment-0001.html
More information about the stringtemplate-interest
mailing list