[antlr-interest] AST visualisation?

Paul Johnson gt54-antlr at cyconix.com
Wed Jul 13 01:52:13 PDT 2005


Antón García wrote:
> I don't know if you have try this from your test parser class:
> 
> 		CommonAST ast = (CommonAST) parser.getAST();            
>             final ASTFrame frame = new ASTFrame(args[0], ast);
>             frame.setVisible(true);
> 
> This opens a window with the generated tree.

Thanks - I didn't know about ASTFrame; I'll give it a go.

Paul



More information about the antlr-interest mailing list