YesNt.Interpreter
1.0.0
dotnet add package YesNt.Interpreter --version 1.0.0
NuGet\Install-Package YesNt.Interpreter -Version 1.0.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="YesNt.Interpreter" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="YesNt.Interpreter" Version="1.0.0" />
<PackageReference Include="YesNt.Interpreter" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add YesNt.Interpreter --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: YesNt.Interpreter, 1.0.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.
#:package YesNt.Interpreter@1.0.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=YesNt.Interpreter&version=1.0.0
#tool nuget:?package=YesNt.Interpreter&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
What is it?
YesNt is a line-based, interpreted scripting language. The core idea is simple: each line maps to one primary statement. Lines are processed top-to-bottom, and inline tokens (like ${variable} or %read_line) are substituted before the statement executes. Postfix modifiers like calc and task can also appear at the end of a line to evaluate arithmetic or fork execution into a background thread.
Key characteristics:
- Line-based execution: Lines are processed top-to-bottom. Each line is a self-contained statement
- Explicit control flow: Labels,
goto, and conditional jumps alongside structuredif/whileblocks - Explicit scoping:
varfor function-local variables,globalfor cross-scope shared state - Functions with stacks: Arguments and return values are passed via explicit push/pop stacks (
push_in,%in,push_out,%out) - Background tasks: Any line can be forked into a background execution flow with
task - Embeddable: The interpreter ships as a C# library. Custom statements can be registered, and built-in ones can be removed or disabled for sandboxing
YesNt is intentionally minimal and is well suited for:
- Scripting in games or applications where simple syntax and customizability are needed
- Automation tasks where a lightweight embedded language is beneficial
- Educational purposes to learn language design by adding new statements or modifying existing ones
- Embedding as a scripting engine in larger C# projects, with the ability to expose custom functionality through registered statements
Usage
- Download & install the latest release
- Chocolatey (Windows):
choco install yesnt - Snapcraft (Linux):
snap install yesnt - GitHub (Windows/Linux): releases
- Chocolatey (Windows):
- Run a script with the interpreter CLI
yesnt script.yntruns a script
- Or use the terminal code editor
yesntcodeopens the editor (optional path to load a file)run/debugto execute the open scriptformatto auto-format indentation
Example
func greet:
var name = %in
print_line Hello, ${name}!
return
func add:
var result = %in + %in calc
push_out ${result}
return
call greet with Alice
call greet with Bob
call add with 3, 7
var sum = %out
print_line 3 + 7 = ${sum}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.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.0.0 | 92 | 3/6/2026 |