Closed Bagolly closed 1 year ago
Function myFunc = new( "myFunc", new[] { "x", "y" }, "x * y")
Evaluator evaluator = new( new List<Function>() { myFunc } ) evaluator.Evalute("myFunc(2, -3)");
2 * -3
-6
The cause was a missing check for the token type ArgumentSeparator in Tokenizer.cs, fixed in 2ae1c3d.
ArgumentSeparator
Tokenizer.cs
Issue
Reproduce:
Behavior
2 * -3
and return-6