In ANTLR 3, the "output=template" option is only able to produce code for
ST3. You'll have to remove that option and write all your own actions if you
want to target ST4.

Sam

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Maik Schmidt
Sent: Thursday, August 25, 2011 6:28 AM
To: [email protected]
Subject: [antlr-interest] How to use StringTemplate 4 with C#

Hi!

I am writing a tree grammar with the following header

tree grammar Translator;

options {
    language=CSharp3;
    tokenVocab=Test;
    ASTLabelType=CommonTree;
    output = template;
}

My problem is that the generated code contains statements such as "using
Antlr3.ST". I have added a reference to the Antl3 StringTemplate DLL but I
am wondering how I can use version 4.

Cheers,
Maik

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to