lmcode-csharp-sample

lmcode-csharp-sample is the reference .NET 8 C# Shop and Ledger host embedding lmcode-csharp and passing the 123-case canonical sample suite. It verifies all 206 standard and 45 host signatures, multi-part --first/--last builder roles, dry-mode callback previews, and LMCODE_RETURN envelopes.

Quick reference

git clone https://github.com/lmctl-ai/lmcode-csharp-sample.git
cd lmcode-csharp-sample
python3 scripts/sync.py check
./test.sh
AspectValueRole
Language & toolchainC# (.NET 8)Reference host implementation embedding lmcode-csharp (vendor/lmcode-csharp)
Domain schema45 host signaturesShop, Items, Money, Ledger, Currency enum, operators, and Adjuster/Score interfaces
Standard cataloglmcode_std_v3Preloaded standard catalog plus opt-in print and assert_close testing helpers
--lmcode-schema [--json]Discovery flagPrint human summary or exact embedded dsl.schema: 2 JSON bytes (exit 0)
--lmcode-signaturesDiscovery flagPrint sorted canonical host and standard signatures (exit 0)
--lmcode / --first / --lastExecution flagsRun one or more compiled DSLB v6 chunks, dispatch @item/@total entries, and frame results
dotnet run --project src/LmCode.Sample.csproj -- --version
dotnet run --project src/LmCode.Sample.csproj -- --lmcode-schema --json
dotnet run --project src/LmCode.Sample.csproj -- --lmcode-signatures
dotnet run --project src/LmCode.Sample.csproj -- --lmcode sample-suite/bytecode/001-literals.dslb

Documentation pages

Source repository and releases