iExpr.Core
0.5.3
The core types and functions of iExpr. iExpr is an extensible expression parser and evaluator.
Install-Package iExpr.Core -Version 0.5.3
dotnet add package iExpr.Core --version 0.5.3
<PackageReference Include="iExpr.Core" Version="0.5.3" />
paket add iExpr.Core --version 0.5.3
#r "nuget: iExpr.Core, 0.5.3"
// Install iExpr.Core as a Cake Addin #addin nuget:?package=iExpr.Core&version=0.5.3 // Install iExpr.Core as a Cake Tool #tool nuget:?package=iExpr.Core&version=0.5.3
iExpr.Core
- Author: Stardust D.L.
- Version: 0.5.3
The core types and functions of iExpr.
iExpr is an extensible expression parser and evaluator.
Functions
- You can use iExpr.Core to define your own expression types by creating different operations.
- Also you can use it to "create" a simple programming language.
PS: For program expressions, please see ExprSharp
Install
PM> Install-Package iExpr.Core -Version 0.5.3
Brief Usage
- Install the package from nuget
- Define your operations and functions
- implement your own ParseEnvironment based on
iExpr.Parsers.ParseEnvironment
- implement your own EvalEnvironment based on
iExpr.Evaluators.EvalEnvironment
- Use the code below to evaluate your expression:
ParseEnvironment ep = new YourParseEnvironment(); EvalEnvironment ep = new YourEvalEnvironment(); ExprBuilder eb = new ExprBuilder(ep); var buildedExpr = eb.GetExpr(exprString); var context = ev.CreateContext().GetChild(); var evaluatedExpr=context.Evaluate(buildedExpr);
You can go to Wiki for more information.
You can go to
iExpr.Exprs
to see how to implement your own environment and operations. Link- The logic project is a simple example
- For a complex one, you can see ExprSharp
License
LGPLv3
iExpr.Core
- Author: Stardust D.L.
- Version: 0.5.3
The core types and functions of iExpr.
iExpr is an extensible expression parser and evaluator.
Functions
- You can use iExpr.Core to define your own expression types by creating different operations.
- Also you can use it to "create" a simple programming language.
PS: For program expressions, please see ExprSharp
Install
PM> Install-Package iExpr.Core -Version 0.5.3
Brief Usage
- Install the package from nuget
- Define your operations and functions
- implement your own ParseEnvironment based on
iExpr.Parsers.ParseEnvironment
- implement your own EvalEnvironment based on
iExpr.Evaluators.EvalEnvironment
- Use the code below to evaluate your expression:
ParseEnvironment ep = new YourParseEnvironment(); EvalEnvironment ep = new YourEvalEnvironment(); ExprBuilder eb = new ExprBuilder(ep); var buildedExpr = eb.GetExpr(exprString); var context = ev.CreateContext().GetChild(); var evaluatedExpr=context.Evaluate(buildedExpr);
You can go to Wiki for more information.
You can go to
iExpr.Exprs
to see how to implement your own environment and operations. Link- The logic project is a simple example
- For a complex one, you can see ExprSharp
License
LGPLv3
Dependencies
-
.NETStandard 2.0
- System.ValueTuple (>= 4.4.0)
Used By
NuGet packages (3)
Showing the top 3 NuGet packages that depend on iExpr.Core:
Package | Downloads |
---|---|
iExpr.Exprs.Math
Some math operations for iExpr.
|
|
iExpr.Exprs.Program
Support programming for iExpr.
|
|
iExpr.Exprs.Logic
Some logic operations for iExpr.
|
GitHub repositories
This package is not used by any popular GitHub repositories.