CodeBrix.LilyScheme.LgplLicenseForever 1.0.243.1143

There is a newer version of this package available.
See the version list below for details.
dotnet add package CodeBrix.LilyScheme.LgplLicenseForever --version 1.0.243.1143
                    
NuGet\Install-Package CodeBrix.LilyScheme.LgplLicenseForever -Version 1.0.243.1143
                    
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="CodeBrix.LilyScheme.LgplLicenseForever" Version="1.0.243.1143" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CodeBrix.LilyScheme.LgplLicenseForever" Version="1.0.243.1143" />
                    
Directory.Packages.props
<PackageReference Include="CodeBrix.LilyScheme.LgplLicenseForever" />
                    
Project file
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 CodeBrix.LilyScheme.LgplLicenseForever --version 1.0.243.1143
                    
#r "nuget: CodeBrix.LilyScheme.LgplLicenseForever, 1.0.243.1143"
                    
#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 CodeBrix.LilyScheme.LgplLicenseForever@1.0.243.1143
                    
#: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=CodeBrix.LilyScheme.LgplLicenseForever&version=1.0.243.1143
                    
Install as a Cake Addin
#tool nuget:?package=CodeBrix.LilyScheme.LgplLicenseForever&version=1.0.243.1143
                    
Install as a Cake Tool

CodeBrix.LilyScheme

A managed, cross-platform Scheme language implementation for .NET, derived from the GNU Guile project. CodeBrix.LilyScheme has no dependencies other than .NET, and is provided as a .NET 10 library and associated CodeBrix.LilyScheme.LgplLicenseForever NuGet package.

CodeBrix.LilyScheme supports applications and assemblies that target Microsoft .NET version 10.0 and later. Microsoft .NET version 10.0 is a Long-Term Supported (LTS) version of .NET, and was released on Nov 11, 2025; and will be actively supported by Microsoft until Nov 14, 2028. Please update your C#/.NET code and projects to the latest LTS version of Microsoft .NET.

Installation

dotnet add package CodeBrix.LilyScheme.LgplLicenseForever

Note that the NuGet package ID and the namespace are different - there is no package named plain CodeBrix.LilyScheme:

  • NuGet package ID: CodeBrix.LilyScheme.LgplLicenseForever
  • Assembly and root namespace: CodeBrix.LilyScheme - i.e. using CodeBrix.LilyScheme;

The .LgplLicenseForever suffix is part of the package ID only, chosen so that the LGPL-3.0-or-later license identification travels with the package name. The package has no NuGet dependencies and no native libraries; it depends only on the .NET base class library, and runs on Windows, Linux and macOS. XML documentation (IntelliSense) ships alongside the assembly.

Read the License section below before taking this dependency. Unlike the rest of the CodeBrix family, this package is copyleft: LGPL-3.0-or-later permits linking from a differently-licensed application, but it attaches conditions - notably that your recipients must be able to relink your application against a modified build of this library, so it must not be ILMerged, ILRepack'd or shipped only as a trimmed or single-file artifact from which it cannot be replaced. If your project cannot accept those conditions, do not reference this package.

Status

CodeBrix.LilyScheme is working software. It runs the Scheme layer of a full music-engraving application: GNU LilyPond's, through the sibling CodeBrix.LilyPort project, which loads more than ninety vendored .scm files on top of it and drives them to produce engraved output.

What is implemented:

  • Full syntax-case macro expansion, by bootstrapping Guile's own expander. psyntax-pp.scm is vendored verbatim and loaded by a small core evaluator; from there the library has hygienic macros, syntax-rules, quasisyntax and the rest, without anyone hand-writing an expander.
  • Guile's Tree-IL — all eighteen node types, evaluated directly.
  • The module system: define-module, use-modules (including #:select renaming), public interfaces and exports, submodules, autoloading of vendored modules, and the anonymous-module naming that macro hygiene depends on.
  • GOOPS, generic functions, and extension of generic-capable primitives.
  • The numeric tower — fixnum, bignum, rational, real and complex.
  • A Guile-dialect reader: keywords, extended symbols, #nil, block and datum comments, array literals, Guile's fixed-width string escapes, and reader hash extensions. It records source locations, which is what lets the expander attach them to procedures and error messages.
  • Ports, including soft ports, string ports and Guile's #:encoding keyword handling.
  • An expansion cache that records each file's expanded Tree-IL and replays it, which takes a cold start of roughly half a minute down to milliseconds.
  • A POSIX-flavored surface: (ice-9 rdelim), (ice-9 popen) with system/system*, stat, strftime/localtime/gmtime, (ice-9 getopt-long), POSIX regular expressions with (ice-9 regex), and (srfi srfi-43).
  • Guile 3's modern exception API: exception objects, raise-exception, with-exception-handler (#:unwind? and #:unwind-for-type), (ice-9 exceptions) with its standard exception types, define-exception-type, raise-continuable and R7RS guard — fully interoperable with classic catch/throw in both directions, on Guile's single-inheritance record model (make-record-type with #:parent).
  • An opt-in module-privacy switch: by default use-modules imports a whole module (visible scope wider than Guile's, never narrower); setting Interpreter.NarrowModuleImports = true imports public interfaces instead, exactly as Guile documents.

Twenty-nine .scm files from the GNU Guile source tree ship verbatim as embedded resources; the C# is new-in-family, written against R7RS, the SRFI documents and Guile's published interfaces rather than translated from Guile's C. See THIRD-PARTY-NOTICES.txt for the per-file attribution ledger.

The scope is deliberate: this implements the subset of Guile that LilyPond needs, and its visible scope is in places wider than Guile's rather than narrower. It is not a general-purpose Guile replacement, and it has no VM, no compiler and no FFI.

Quick start

using System;
using CodeBrix.LilyScheme;
using CodeBrix.LilyScheme.Reader;
using CodeBrix.LilyScheme.Runtime;

Interpreter interpreter = new Interpreter();
Interpreter.RunWithLargeStack(() =>
{
    SchemeBootstrap.LoadCore(interpreter);   // psyntax + prelude
    object form = SchemeReader.ReadAll("(+ 1 2)", "<input>")[0];
    object value = interpreter.TreeIlEvaluator.ExpandAndEval(form, interpreter.CurrentModule);
    Console.WriteLine(Printer.Write(value)); // 3
});

Deeply recursive Scheme — loading psyntax above all — overflows the CLR's default thread stack, which is why evaluation runs inside Interpreter.RunWithLargeStack.

Documentation

Full guidance — architecture, API reference, usage, and the sharp edges worth knowing before changing anything — is in AGENT-README.txt. It is written for AI coding agents and is equally the human reference, and it ships inside the NuGet package alongside this file and THIRD-PARTY-NOTICES.txt.

License

The project is licensed under the LGPL-3.0-or-later License. see: https://en.wikipedia.org/wiki/GNU_Lesser_General_Public_License

The LGPL-3.0 supplements the GPL-3.0 by reference, so the GPL-3.0 text is also included; see LICENSE and LICENSE.GPL respectively. Both are shipped inside the NuGet package.

Attribution and licensing-compliance records for all third-party material are in THIRD-PARTY-NOTICES.txt.

Product 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 (1)

Showing the top 1 NuGet packages that depend on CodeBrix.LilyScheme.LgplLicenseForever:

Package Downloads
CodeBrix.LilyPort.GplLicenseForever

A managed, cross-platform music engraving engine for .NET: LilyPond .ly notation source in, SVG pages and Standard MIDI Files out, entirely in process — parser, Scheme layer, engravers, page layout and embedded music and text fonts, with no native libraries to install. Includes convert-ly and the ABC, MIDI and MusicXML importers. Licensed GPL-3.0-only (not -or-later); referencing this package makes the consuming application a GPL-3.0 work.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.284.1028 143 10/11/2026
1.0.255.992 156 9/12/2026
1.0.243.1143 145 8/31/2026
1.0.243.217 135 8/31/2026
1.0.242.1306 136 8/30/2026
1.0.241.10 144 8/29/2026
1.0.238.240 141 8/26/2026
1.0.233.918 131 8/21/2026
1.0.232.256 138 8/20/2026
1.0.231.206 137 8/19/2026
1.0.230.1423 146 8/18/2026