Expression evaluator that will evaluate a string that contains an expression and return the result of that expression. Expressions can include parentheses to control evaluation priorities and the currently supported operators are "+", "-", "*", "/" and "%".
In addition, expressions can contain symbols and functions, and functions arguments can be expressions that also include symbols and functions. When the evaluator encounters a symbol or function, it will raise the EvaluateSymbol or EvaluateFunction event.
See the version list below for details.
Install-Package SoftCircuits.ExpressionEvaluator -Version 1.0.1
dotnet add package SoftCircuits.ExpressionEvaluator --version 1.0.1
<PackageReference Include="SoftCircuits.ExpressionEvaluator" Version="1.0.1" />
paket add SoftCircuits.ExpressionEvaluator --version 1.0.1
Reworked the code internally; Added some additional cases to unit tests; Miscellaneous tweaks; BREAKING CHANGES: Renamed ProcessSymbol event to EvaluateSymbol; Renamed ProcessFunction event to EvaluateFunction; Changed FunctionEventArgs.Parameters from List<T> to array.
- No dependencies.
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.