C# Targets and Ports of the ANTLR Tool and StringTemplate

Documentation

The latest version of the CSharp2 and CSharp3 target documentation is located at the following link:
Visual Studio and the ANTLR C# Target

While the document focuses on Visual Studio 2010, everything except section 1.1 can be applied to Visual Studio 2008. Also, this document is currently limited to instructions for setting up a Visual Studio project to work with the CSharp2 or CSharp3 target, along with descriptions of a few substantial features unique to the C# targets.

Releases

Depending on your particular needs, several packages are available for each release. The packages are compressed with 7-zip.

 

Runtime

Bootstrap

Tool

Source

ST3

ST4

CSharp2/CSharp3 Runtime (Antlr3.Runtime.dll)

X

X

X

 

X

X

C# Port of Tool (Antlr3.exe)

 

X

X

 

 

 

CSharp2 Target for Tool

 

X

X

 

 

 

CSharp3 Target for Tool

 

X

X

 

 

 

MSBuild integration for the CSharp3 target

 

X

X

 

 

 

C# Port of StringTemplate 3 (Antlr3.StringTemplate.dll)

 

 

 

 

X

 

C# Port of StringTemplate 4 (Antlr4.StringTemplate.dll)

 

X

X

 

 

X

Other Targets for Tool

 

 

X

 

 

 

Symbol Files (*.pdb)

X

 

X

 

X

X

Source Code

 

 

 

X

 

 

Latest Stable Release

The latest release is 3.5.0.2 (ANTLR 3) which includes StringTemplate 4.0.7.1, released on 18 March 2013. This release matches the official (Java) versions of ANTLR 3.5 and StringTemplate 4.0.7. When using this version, grammars should be generated by the C# port of the ANTLR Tool (Antlr3.exe). When the Java version of the tool is used to generate code for the CSharp2 or CSharp3 target (including automatic generation support in ANTLRWorks 1.5), the resulting code is untested and may not work.

Visual Studio 2010 Extensions

The following are links to the Visual Studio 2010 extensions for editing ANTLR grammars and StringTemplate templates. Additional information and screenshots of these extensions can be found in the documentation at the top of this page.

Latest Preview Release

There is no newer preview release available at this time.