Does anybody know how to correctly install ANTLR to work with .Net?
-
09-06-2019 - |
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.
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):
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.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow