Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

As of September 2007, the C# code generator and runtime are NOT in sync with the latest release and development versions of the ANTLR tool and Java language target. The last release of the C# code generator and runtime were sync'ed to ANTLR v3.0 release from July 2007. Nevertheless, no major problems have been reported by those using the C# codegen and runtime with ANTLR v3.0.1 since it's release in August 2007. The current C# release is unlikely to work with the

As of October 2007, the ANTLR source depot contains an early beta of the C# codegen and runtime for the upcoming ANTLR v3.1 release. Starting from the end of October, ANTLR daily builds of v3.1 have been available for those wishing to test the C# support with the new features of ANTLR v3.1 release due any time now. As before, development progress going forwards is likely to be sporadic.

The C# code generation templates and the CLR runtime library are feature complete for both versions. The C# (and Python) targets have a definite advantage due to the existence of native StringTemplate implementations. Unfortunately, automated tests are yet to be written for the target. Some basic sanity check are done however - primarily checking targets leverage the existing C# StringTemplate implementations to support the broadest range of the features that ANTLR provides. The long open issue of unit tests has finally been tackled with the adoption of MbUnit and the inclusion (in the v3.1 version) of a wide range of tests for the runtime library. As before, basic sanity checks will done by ensuring that the sample grammars in the examples-v3 archive works as designed. UPDATE: Some of the other targets apparently have some automated unit tests already. Hopefully this can suggest an approach that is applicable to the C# target tooThis is currently a work-in-progess for the v3.1 release.

Architecture

As with all other targets, the C# code generation and runtime are modelled on the Java version. This means the C# target supports features such as grammar development/prototyping and remote debugging with the AntlrWorks GUI which is very important for ANTLR users.

...