[antlr-interest] StringTemplate v4 and C# fails for me at step zero
Peter Piper
peterpiper797 at hotmail.com
Thu Feb 9 09:08:09 PST 2012
Dear Sam,
Thank you for the reply; I'd already stopped using StringTemplate v4 in the light of Stefan's comment earlier.
Yours,
Dan
> From: sam at tunnelvisionlabs.com
> To: peterpiper797 at hotmail.com; antlr-interest at antlr.org
> Subject: RE: [antlr-interest] StringTemplate v4 and C# fails for me at step zero
> Date: Thu, 9 Feb 2012 07:25:03 -0600
>
> The automatic template feature of ANTLR 3 targets StringTemplate 3. If you
> want to use StringTemplate 4 for your output templates, you'll have to
> remove "output=template;" and use your own action code to create/render the
> templates.
>
> --
> Sam Harwell
> Owner, Lead Developer
> http://tunnelvisionlabs.com
>
> -----Original Message-----
> From: Peter Piper [mailto:peterpiper797 at hotmail.com]
> Sent: Monday, February 06, 2012 6:14 PM
> To: antlr-interest at antlr.org
> Subject: [antlr-interest] StringTemplate v4 and C# fails for me at step zero
>
>
> 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!
>
> Dan
>
>
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe:
> http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>
More information about the antlr-interest
mailing list