Open jiangzhuangxiansheng opened 2 months ago
Sorry @jiangzhuangxiansheng , but I'm not sure to understand what is your problem. I think you can write something like:
var result = target.Eval("a + b");
var expression = target.xxx("a + b") return expression The result is "10 + 5" instead of 15
Can you show me the full code? I suppose the problem is that the variables that you are using are of type string
, not numbers (int
, ...).
I think it's a duplicate of #254
Hello, I encountered a situation and I would like to know if there is a way to achieve it. Please take a look at my code:
var target = new Interpreter() .SetVariable("a", 10) .SetVariable("b", 5); var expression = "a + b";
I would like to obtain the expression "10 + 5"