Question

Can ANTLR output C# using StringTemplate or any text I want it to like Yacc/Bison or does it only output to java? From the examples I've looked at it appears to be a very java centric tool.

Was it helpful?

Solution

The ANTLR IDE has option by which you can switch between Java and C# code generation.

Better, consult this article (the Specifying Code Generation section):

http://www.antlr2.org/doc/csharp-runtime.html

OTHER TIPS

I just started a small series of post about how exactly to install and use ANTLR for a .NET environment, as most documentation regarding this issue is a little out-of-date. See ANTLR for C#, Part 1.

There is now a NuGet package that will do everything for you.

You can download the latest source code as a tar file from here. The C# runtime (binary) is also available directly, here.

Which solution are you looking for?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top