Java Tree parser output for ANTLR
问题 I've found a sample template in the ANTLR website, its the Javatreeparser.g, which the site says could produce the AST that I need, but since I'm new to ANTLR, how do I make it show? What I've done so far is placing the grammar file together with my existing java grammar. But I have no idea on how to use and output the AST that I need from the file. How do I do it? 回答1: I've found a sample template in the ANTLR website, its the Javatreeparser.g, which the site says could produce the AST that