Has anyone worked on using Irony together with the new System.Linq.Expressions classes? It seems this contains all the stuff necessary for the run-time interpretation of an arbitrary complex statement., and I wonder how to use it from an Irony AST...
As I see it, there are several approaches:
- Have the AST directly use the the Expression classes for it's various nodes... I am not sure about the feasability of this since the Expression class has it's own tree representation (with a Visitor pattern and all), and I do not see how to make it worrk
with Irony' AST construction
- Have some code that traverse the AST node and generate a corresponding Expression for execution. This step would allow things like loop transformation to match the LoopExpression semantic, etc...
- Other ideas?
I cannot help but compare this Expressions framework with the Irony built-in interpreter... Any advice/comparison between the two? Thanks.