SoftCircuits.Silk 1.5.0 The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved

There is a newer version of this package available.
See the version list below for details.
Install-Package SoftCircuits.Silk -Version 1.5.0
dotnet add package SoftCircuits.Silk --version 1.5.0
<PackageReference Include="SoftCircuits.Silk" Version="1.5.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SoftCircuits.Silk --version 1.5.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SoftCircuits.Silk, 1.5.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install SoftCircuits.Silk as a Cake Addin
#addin nuget:?package=SoftCircuits.Silk&version=1.5.0

// Install SoftCircuits.Silk as a Cake Tool
#tool nuget:?package=SoftCircuits.Silk&version=1.5.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

The Simple Interpreted Language Kit (SILK) is a .NET class library that makes it easy to add scripting and automation to your .NET applications.

The library includes three main components. A compiler, a compiled program, and a runtime. The compiler compiles the Silk source code to bytecode. This allows faster execution and also catches all source code syntax errors before running the Silk program.

The compiler produces a compiled program. A compiled program can be saved to a file, and later read from a file. This allows you to load and run a Silk program without recompiling it each time.

Finally, the runtime component can execute a compiled program.

The main power of this library is that it allows you to register your own functions and variables with the compiler and those functions and variables can be called from the Silk program. When one of your registered functions is called, the Function event is raised, allowing the host application to provide key functionality specific to the host application's domain.

The Silk language itself is designed to be relatively easy to learn. It has no semicolons or other excessive punctuation, it's not case sensitive and is very flexible about expressions involving mixed data types.

The library now includes support for .NET 5 and nullable reference types.

  • .NETStandard 2.0

    • No dependencies.
  • net5.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.

Version Downloads Last updated
1.5.1 103 4/14/2021
1.5.0 104 4/9/2021
1.0.4 249 2/26/2020
1.0.3 268 2/21/2020
1.0.2 277 7/12/2019
1.0.1 270 7/7/2019
1.0.0 276 7/2/2019

- Library now includes support for .NET 5 and nullable reference types
- Added static method CompiledProgram.FromFile()
- Added many overloads to Compiler.Compile(), including ones that accept streams or the source code as a string
- Added break keyword
- Added continue keyword
- Fixed compiler issue that didn't handle expressions that start with two minuses and left parentheses such as -(-(2 + 1))
- Added support for expressions with multiple array indexes, like array[i][j][k]
- Reworked Variable comparison code to make more consistent and smarter about comparing mixed types
- Variables registered by host application now read-only by default, but can be made writable
- Added Variable.CompareTo() methods
- Added intrinsic function Pow()
- Added optional decimals parameter to Round() intrinsic function
- Added intrinsic variables True and False
- Removed intrinsic variables PI and E
- Added automated unit tests
- Added additional test programs
- Minor tweaks and enhancements