How do I display ASTs graphically

Skip to end of metadata
Go to start of metadata

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.

Labels:
faq_trees faq_trees Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.