Rillium.Script
0.0.5
Prefix Reserved
See the version list below for details.
dotnet add package Rillium.Script --version 0.0.5
NuGet\Install-Package Rillium.Script -Version 0.0.5
<PackageReference Include="Rillium.Script" Version="0.0.5" />
paket add Rillium.Script --version 0.0.5
#r "nuget: Rillium.Script, 0.0.5"
// Install Rillium.Script as a Cake Addin #addin nuget:?package=Rillium.Script&version=0.0.5 // Install Rillium.Script as a Cake Tool #tool nuget:?package=Rillium.Script&version=0.0.5
Rillium.Script
Rillium.Script was created to provide safe scripting functionality that could be modified at runtime without the need to recompile or re-deploy your application.
Rillium.Script is designed to resemble a simplified version of C#, making it familiar to users already comfortable with C-style languages.
using Rillium.Script;
// Simple math parser
int a = Evaluator.Evaluate<int>("4 + 3 * 2"); // 10
int b = Evaluator.Evaluate<int>("var b = 4 + 3 * 2; b;"); // 10
// Supports System.Math methods
double c = Evaluator.Evaluate<double>("Log(1.5)"); // 0.4054651081081644
Try it out: https://dotnetfiddle.net/mh1ZBd
Documentation
Refer to the documentation to get started with variables, loops, if-else statements, conditionals, and other essential features.
https://github.com/rilliumio/Rillium.Script/wiki
Feedback Welcome!
If you discover bugs or deficiencies, please create a new issue with an example script.
For new feature proposals, please raise them for discussion.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.