[antlr-interest] Fwd: Re: StringTemplate v4 and C# fails for me at step zero [Stefan.Maetje at esd-electronics.com]
Stefan Mätje
Stefan.Maetje at esd-electronics.com
Thu Feb 9 10:35:50 PST 2012
Hi,
in the light of the last comments on this topic I've detected that I did
forget the CC: to the mailing list when I wrote my answer. So for completeness
forward my answer to the mailing list now.
Greetings,
Stefan
Am 07.02.2012 11:04:47 schrieb(en) Stefan Mätje:
Hi,
please note that ANTLR 3.4 uses StringTemplate 4 (ST4) internally but the
generated code is still using StringTemplate 3 (ST3).
There was a discussion on the mailing list around 04 November last year. Look
for mails of Sam Harwell on the topic "StringTemplate and Antrl3.runtime
version mess on C# target"
The wiki tells about the versions and releases here:
http://www.antlr.org/wiki/display/ANTLR3/Antlr3CSharpReleases
I hope that helps,
Stefan
Am 07.02.2012 01:13:48 schrieb(en) Peter Piper:
>
> I'm using Antlr3 version 3.4.1.9004.
>
> I added a reference to the Antlr4.StringTemplate.dll and set the output
> option to "output=template" in my (working) tree grammar. Even though I
> hadn't added any template expansions, a quick verifying-compilation failed
> because Antlr added the following statements to the source file that it
> generated:
>
> using Antlr3.ST;
> using Antlr3.ST.Language;
>
> which do not refer to the correct namespaces for the DLL that I downloaded
> (it should be Antlr4.StringTemplate), and it also has added code like this:
>
> private StringTemplateGroup _templateGroup = new
> StringTemplateGroup("PhaseTwoTemplates", typeof
> (AngleBracketTemplateLexer) );
>
> yet the object browser shows that the DLL contains no such object (it should
> be called TemplateGroup).
>
> Does this stuff work under C#, or have I got a corrupted setup somehow?
>
> Thanks for any help!
More information about the antlr-interest
mailing list