I’m trying to use ANTLR to create a parser for simple language using C# code generation.
I have successfully product MyLangLexer.cs and MyLangParser.cs with very very simple rule called ‘rule’.
The problem is that the generated method rule() is private.
All I want is to use ANTLR to parse a string into AST.
Thank you,
Ido.
The C# v3 target produces private methods by default, in contrary to Java’s target. Add the keyword
publicin front of those rules you want to be public: