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

Missing Irony.Compiler and AstNode class?

Sep 30, 2013 at 6:56 PM
I defined a grammar and I am trying to generate the AST Tree. I am using the JSBasic article from Codeproject / Github the irony dll in the esaple includes the Irony.Compiler namespace which contains, among others, the AstNode class.

I think I need to add a typeof(ClassInheritedFromAstNode) to the non-terminals in the grammar but the latest download does not generate the Irony.Compiler namespace.

How should I go about thefining the AstNodes for the non-terminal elements?

Thanks for any help
Sep 30, 2013 at 7:01 PM
the version from article you're using seems outdated. Use latest version from this site, and adjust the grammar for it. Use Irony samples as a help/guidance.
Apr 30, 2014 at 5:26 PM
If you're using NuGet, make sure you also get the "Irony.Interpreter" package, as that contains the AstNode type that your ClassInheritedFromAstNode derives from. I didn't find any examples of AstNode derived types in the samples.