Instead of using t.toStringTree(), you can ask ANTLR to generate DOT/graphviz format:
To display in a Swing window (Java target), use this:
where you need the attached code from Jörg Werner.
Instead of using t.toStringTree(), you can ask ANTLR to generate DOT/graphviz format:
To display in a Swing window (Java target), use this:
where you need the attached code from Jörg Werner.