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.
dotnet add package SoftCircuits.Silk --version 1.5.0
NuGet\Install-Package SoftCircuits.Silk -Version 1.5.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<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
#r "nuget: SoftCircuits.Silk, 1.5.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. 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 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.

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .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.6.0 91 4/2/2024
1.5.1 1,953 4/14/2021
1.5.0 300 4/9/2021
1.0.4 465 2/26/2020
1.0.3 467 2/21/2020
1.0.2 493 7/12/2019
1.0.1 487 7/7/2019
1.0.0 506 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