My project requires creating a DSL for creating SSIS packages. I am exploring Irony.Net for the same but currently stuck at the point where I need to create the AST from the ParseTree. Following is the snapshot of the code:
// ETLGrammar is my custom defined grammar
ETLGrammar grammar = new ETLGrammar();
LanguageData compiler = new LanguageData(grammar);
Parser _parser = new Parser(compiler);
ParseTree programTree = _parser.Parse(sourceCode);
//How to create the AST from the Parse Tree
I am new to Irony and what I have noticed the programTree.Root.AstNode
is null and so is the case for all the child nodes as well.
Help in this matter is highly appreciated.
Thanks and Regards