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" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add iExpr.Core --version 0.5.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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

  1. Install the package from nuget
  2. Define your operations and functions
  3. implement your own ParseEnvironment based on iExpr.Parsers.ParseEnvironment
  4. implement your own EvalEnvironment based on iExpr.Evaluators.EvalEnvironment
  5. 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

  1. Install the package from nuget
  2. Define your operations and functions
  3. implement your own ParseEnvironment based on iExpr.Parsers.ParseEnvironment
  4. implement your own EvalEnvironment based on iExpr.Evaluators.EvalEnvironment
  5. 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

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.5.3 335 1/17/2018
0.5.2.7 284 1/15/2018
0.5.2.2 240 1/13/2018
0.3.0 347 1/4/2018