lambda2js icon indicating copy to clipboard operation
lambda2js copied to clipboard

Evaulate instead of generate

Open kasajian opened this issue 7 years ago • 0 comments

I need a tool that will take a C# LINQ Expression tree, like the input for this project, but rather than create JavaScript out of it, it evaluates it on demand -- it would be somewhat equivalent to creating JavaScript and then using a JavaScript interpreter on it. But what I want is given the expression tree, I want to actually evaluate it by interpreting on demand.

I realize I can call .Compile() on the expression and run it, but I can't do that for my project.

I'm thinking of starting with this project as an example and then removing the JavaScript generation code and replacing it with an interpreter. If I did that, are there any issues or limitations that you guys think I might run into?

kasajian avatar Jul 24 '18 21:07 kasajian