How to output the AST built using ANTLR?
Raphael wrote: Does antlr build the AST for us automatically by option{output=AST;}? Or do I have to make the tree myself? If it does, then how to spit out the nodes on that AST? No, the parser does not know what you want as root and as leaves for each parser rule, so you’ll have … Read more