[antlr-interest] Antlr StringTemplate version conflicts C#

Sam Harwell sam at tunnelvisionlabs.com
Wed Apr 25 05:18:08 PDT 2012

The ANTLR 3.4 C# runtime does not have any dependency on StringTemplate. You'll want to download the "ST3" release from the following page that includes Antlr3.Runtime.dll and Antlr3.StringTemplate.dll.

ANTLR 3 with "output=template" only supports generating code that uses StringTemplate 3.

You'll always want to use Antlr3.exe from the "Tool" or "Bootstrap" release at the above link to generate code for the C# targets. The code is further optimized and the Tool is much more extensively tested with the C# target.

Thank you,
Sam Harwell
Owner, Lead Developer

-----Original Message-----
From: pnicklas at freenet.de [mailto:pnicklas at freenet.de] 
Sent: Wednesday, April 25, 2012 5:54 AM
To: antlr-interest at antlr.org
Subject: [antlr-interest] Antlr StringTemplate version conflicts C#

I use antlrworks 1.4.3 (with ANTLR 3.4) to generate the C# code for my grammars.
The using directives in the generated code are  "using Antlr3.ST;" and "using Antlr3.ST.language;", but this doesn't work with the newer "Antlr4.StringTemplate.dll", so I changed em to "using Antlr4.StringTemplate" etc. The problem is, that doesn't work, too. All StringTemplate types can not be found.
So when I use the old version of Antrl3.StringTemplate ( with the current version of Antlr3.Runtime (3.4), no compilation errors occure. But I get exceptions at running time, I think because of version conflicts?
Using version of StringTemplate and Antlr Runtime generates compilations error again.
So which dlls can I use to get ANTLR 3.4 working with C# and StringTemplate?

E-Mail ist da wo du bist! Jetzt mit freenetMail ganz bequem auch unterwegs E-Mails verschicken.
Am besten gleich informieren unter http://mail.freenet.de/mobile-email/index.html

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