This project has moved and is read-only. For the latest updates, please go here.

Creating AST from ParserTree

Jun 4, 2012 at 2:28 PM
Edited Jun 4, 2012 at 2:29 PM

I wrote my first grammar using Irony.

Irony, IMHO, is a pretty tool and I liked a lot using it. Congratulations, Roman, for this extraordinary piece of software..

I hope that my question has a easy answer: how can I create a traverseable AST from the Parser Tree? 

I've instantiated an AstBuilder, like I've seen on some codes, but I cannot found an AST. Maybe I'm looking at the wrong place...

I'm using 2012_03_15 version, downloaded directly from CodePlex.



Jun 6, 2012 at 4:04 AM

With AstBuilder and following standard way of doing things (like in expr evaluator), AST root node is in parser tree root node, in AstNode field