[antlr-interest] StringTemplate v4 and C# fails for me at step zero
Sam Harwell
sam at tunnelvisionlabs.com
Thu Feb 9 05:25:03 PST 2012
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