...
To specify that the ANTLR tool should generate C# code (rather than the default of generating Java code) for a grammar, set the grammar-level option named language
to the value CSharp
as shown below:
Panelcode |
---|
grammar MyGrammar; options { { language=CSharp; } // rest of grammar follows .... |
Specifying the namespace for your recognizer
...