ANTLR Visitor Class is returning null for Parse tree in C#
问题 I am trying to build an AST using the visitor pattern on ANTLR Java Grammar (Java Grammar) in C# (.Net Core 3.1). I have created IJavaParserVisitor , JavaParserbaseVisitor , JavaLexer , and JavaParser file for grammar and created parse tree for java source file. But when I am trying to create AST using JavaParserBaseVisitor.Visit() I am getting null as a result. AntlrFileStream stream = new AntlrFileStream(file); ITokenSource lexer = new JavaLexer(stream); ITokenStream tokens = new