ExpressionEvaluator
DynamicExpresso
ExpressionEvaluator | DynamicExpresso | |
---|---|---|
4 | 9 | |
562 | 1,843 | |
- | 0.8% | |
4.9 | 4.6 | |
7 months ago | 21 days ago | |
C# | C# | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ExpressionEvaluator
-
parsing strings for calculation
If you don't want to roll your own, there are many existing libraries for this purpose.
- [OC] Options for Runtime (Dynamic) Scripting for .NET [C#, Scripting, Modding]
- Is there any easy way to call a variable through a string?
-
okidoki - markdown editor with C# support
Yup it's in Blazor. For C# evaluation I've used ExpressionEvaluator. I'll probably replace it with Microsoft.CodeAnalysis.CSharp.Scripting library but I had some issues when i try to run it on WASM. I guess it's related to this issue
DynamicExpresso
- Is there any easy way to call a variable through a string?
- Computing a formula in a string
- Dynamically building Linq queries
-
How to call a variable from a string, if that make sense lol
Checkout https://github.com/dynamicexpresso/DynamicExpresso
-
Made a small project for compiling c# at runtime and then using the resulting dll(at runtime)
Have you looked at something like DynamicExpresso or Roslyn Scripting?
- Long lasting solution for dynamic Expression execution
-
A question about C#!!
I have used DynamicExpresso for that, works great and is easy to use.
-
Converting strings to integers
And if you don't want to write it yourself, you use a library. I was always quite happy with Expresso, but as it is not JUST a parser for math expressions, you might need to look into security of executing unknown user input.
What are some alternatives?
Roslyn - The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
Flee - Fast Lightweight Expression Evaluator
Calcpad - Free and open source software for mathematical and engineering calculations.
ncalc - Mathematical Expressions Evaluator for .NET
MathParser.org-mXparser - Math Parser Java Android C# .NET/MONO (.NET Framework, .NET Core, .NET Standard, .NET PCL, Xamarin.Android, Xamarin.iOS) CLS Library - a super easy, rich and flexible mathematical expression parser (expression evaluator, expression provided as plain text / strings) for JAVA and C#. Main features: rich built-in library of operators, constants, math functions, user defined: arguments, functions, recursive functions and general recursion (direct / indirect). Additionally parser provides grammar and internal syntax checking.
RulesEngine - A Json based Rules Engine with extensive Dynamic expression support
water-shader-unity - Simulation of water in Unity
RulesEngineEditor - Editor for Microsoft RulesEngine - Blazor UI library intended for integration in Web or Desktop
YoowzxCalc - .NET library for processing of mathematical expressions developed with emphasis on performance and flexibility of use.
ILSpy - .NET Decompiler with support for PDB generation, ReadyToRun, Metadata (&more) - cross-platform!
Westwind.Scripting - Small C# library to provide dynamic runtime code compilation from source code for code and expressions execution
System.Linq.Dynamic.Core - The .NET Standard / .NET Core version from the System Linq Dynamic functionality.