WattleScript 0.6.0-beta1

This is a prerelease version of WattleScript.
dotnet add package WattleScript --version 0.6.0-beta1
NuGet\Install-Package WattleScript -Version 0.6.0-beta1
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="WattleScript" Version="0.6.0-beta1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WattleScript --version 0.6.0-beta1
#r "nuget: WattleScript, 0.6.0-beta1"
#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 WattleScript as a Cake Addin
#addin nuget:?package=WattleScript&version=0.6.0-beta1&prerelease

// Install WattleScript as a Cake Tool
#tool nuget:?package=WattleScript&version=0.6.0-beta1&prerelease

WattleScript is a scripting engine written in C# for runtimes supporting .NET Standard 2.0 and newer. (.NET 4.7.2+, .NET Core 3.1+). It is a dual-language environment, providing support for Lua 5.2 code as well as its own language, Wattle.

Using WattleScript is as easy as:

var script = new Script();
script.DoString("print('Hello World!')");

WattleScript is based off the tried and tested MoonSharp project, inheriting its VM design and test suite. The design focuses on easy and fast interop with .NET objects and functions.

Features

  • Wattle scripting language.
  • Lua mode 99% compatible with Lua 5.2, differences documented here.
  • Easily configured sandbox for safe execution of untrusted scripts.
  • Minimal garbage generation at runtime
  • No external dependencies
  • Easy and performant interop with CLR objects, with runtime code generation where supported
  • Source Generator for AOT interop.
  • Support for awaiting on returned values
  • Supports dumping/loading bytecode
  • Support for the complete Lua standard library with very few exceptions (mostly located in the debug module).
  • json module for loading json into tables safely at runtime.

License

WattleScript is licensed under the 3-clause BSD License. See LICENSE for details.

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  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 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
0.6.0-beta1 143 10/10/2022