ANTLR4 - DotGenerator example [duplicate]
问题 This question already has answers here : ANTLR4 parse tree to DOT using DOTGenerator (2 answers) Closed last year . Where I can find example how to use org.antlr.v4.tool.DotGenerator in ANTLR4? As I understand, it replaces DOTTreeGenerator in ANTLR4. 回答1: I am also interested in an answer to your question and didn't find a fully convincing one yet. Assuming that you are interested in Displaying the ParseTree here is an alternative way to at least get a visual representation: /** * show the