Skip to content

Commit 14a9799

Browse files
authored
Update README.md
1 parent 1a48ff4 commit 14a9799

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
![ExpressionEvaluator Icon](https://github.com/codingseb/ExpressionEvaluator/blob/master/Icon.png?raw=true "ExpressionEvaluator A Simple Math and Pseudo C# Expression Evaluator in One C# File")
22
# ExpressionEvaluator
33

4+
| :warning: For now, I don't have time to maintain this repository. So if you have PR to fix some bugs. I'll be happy to review and merge it. Otherwise, I will no longer actively develop ExpressionEvaluator. If the current state of the lib do not suite your needs I suggest you look the [list of great alternative projects](#similar-projects) below.
5+
| --- |
6+
47
A Simple Math and Pseudo C# Expression Evaluator in One [C# File](./CodingSeb.ExpressionEvaluator/ExpressionEvaluator.cs).
58

69
And from version 1.2.0 can execute small C# like scripts
@@ -54,17 +57,33 @@ It is largely based on and inspired by the following resources [this post on st
5457
* [NLua](https://github.com/NLua/NLua) use Lua language in C#
5558
* [DynamicExpresso](https://github.com/davideicardi/DynamicExpresso/)
5659
* [Flee](https://github.com/mparlak/Flee)
60+
* [Jace.Net](https://github.com/pieterderycke/Jace)
61+
* [Calculator](https://github.com/loresoft/Calculator)
62+
* [Westwind.Scripting](https://github.com/RickStrahl/Westwind.Scripting)
5763
* [CS-Script](https://github.com/oleg-shilo/cs-script) Best alternative (I use it some times) -> Real C# scripts better than ExpressionEvaluator (But everything is compiled. Read the doc. Execution is faster but compilation can make it very slow. And if not done the right way, it can lead to [memory leaks](https://en.wikipedia.org/wiki/Memory_leak))
5864
* [Roslyn](https://github.com/dotnet/roslyn) The Microsoft official solution (For scripting [see](https://github.com/dotnet/roslyn/wiki/Scripting-API-Samples))
5965
* [MathParser](https://github.com/KirillOsenkov/MathParser) expression tree compiler and interpreter for math expressions. Heavily inspired by Roslyn.
66+
* [YoowzxCalc](https://github.com/MarkusSecundus/YoowzxCalc)
67+
* [Scriban](https://github.com/scriban/scriban)
68+
* [WattleScript](https://github.com/WattleScript/wattlescript)
69+
* [Pidgin](https://github.com/benjamin-hodgson/Pidgin)
70+
* [AngouriMath](https://github.com/asc-community/AngouriMath) For advanced Math in C#
6071

6172
### Commercial
6273
* [Eval Expression.NET](http://eval-expression.net/)
6374

75+
### Projects that could help you build your own expression/script evaluator
76+
* [SuperPower](https://github.com/datalust/superpower)
77+
* [Sprache](https://github.com/sprache/Sprache)
78+
* [CSLY : C# lex and yacc](https://github.com/b3b00/csly)
79+
* [Lexepars](https://github.com/DNemtsov/Lexepars)
80+
* [Parlot](https://github.com/sebastienros/parlot)
81+
* [Irony](https://github.com/IronyProject/Irony)
82+
6483
I would say every C# evaluation libraries have drawbacks and benefits, ExpressionEvaluator is not an exception so choose wisely (Read docs and licences).
6584

6685
The biggest difference of ExpressionEvaluator is that everything is evaluated on the fly, nothing is compiled or transpile nor in CLR/JIT/IL nor in lambda expressions nor in javascript or other languages stuffs.
67-
So it can be slower in some cases (sometimes not) but it also avoid a lot of memory leaks.
86+
So it can be slower in some cases (sometimes not) but it also avoid a lot of memory leaks. It is clearly not optimized for big reuse of expressions as the expression is reevaluated every time (Filtering on big dataset for example).
6887
It already allow to evaluate some small scripts.
6988
If you don't want an another .dll file in your project, you only need to copy one [C# file](./CodingSeb.ExpressionEvaluator/ExpressionEvaluator.cs) in your project. And it's [MIT licence](./LICENSE.md)
7089

0 commit comments

Comments
 (0)