Generate AST for Java with ANTLR <p>As far as I know, there are two mechanisms in ANTLR for building abstract syntax trees. I want to build a AST for Java source files.</p> <p>Question: There are so many grammar rules in Java.g (java specification), it's a large work if I specify the AST generating rules for every item in Java.g. So I wondering if there is a ready-made one, and where can I get it.</p>