ExpressionEvaluator icon indicating copy to clipboard operation
ExpressionEvaluator copied to clipboard

A Simple Math and Pseudo C# Expression Evaluator in One C# File. Can also execute small C# like scripts

Results 31 ExpressionEvaluator issues
Sort by recently updated
recently updated
newest added

Running the sample project mentioned in readme: https://dotnetfiddle.net/up4x3W I'm changing `expression` value to `string expression = "1+.5";` which should be identical to `string expression = "1+0.5";` (it is a valid...

Hi, Would it be possible for the assembly to have a strong name? This way it can be referenced from strong-named assemblies.

The evaluator not throw a exeption it too many parameters ar given. Sin(1,2,3,4) (Similar to Sign error 1 * ---+-+-2)

bug
enhancement

```csharp context.AddVariable("list1", new int[] { 1, 2, 3, 8 }); context.AddVariable("list2", new int[] { 4, 5, 6, 7 }); var test = context.Evaluate("list1.Cast().Select((item, i) => item - list1[i]).Cast().Sum()"); ``` throws:...

Need Investigations

Hello! I don't really know how to name this issue, but I experience a bug, which can be easily reproduced as the following: ```bash $ dotnet new console $ dotnet...

bug

The handling of numbers types could be more tollerant/intelligente. Not only casting to double. This could be used for easy and simple formulas, without the neet of a exact type...

enhancement
Need Investigations

There is a syntax error in the handling of the sign. It allows multiple sign symbols. Only one sign shold be allowed? 1 * +++-+-++---2

bug

My goal is to convert a string into a predicate like so: ``` string = "x => x.Equals(1)"; Predicate predicate = (Predicate)ExpressionEvaluator.Evaluate(string); ``` Is this possible? If so how can...

question

I create here an issue to follow and document (first for myself but for who is interested) the evolution of the work to version 2.0 The goal is to deeply...

enhancement
explanation

My original where I discovered the issue was more complex, but I distilled it down to the simplest reproducible case I could find which I've placed in this fiddle: https://dotnetfiddle.net/9NzZ0O...

bug