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
| Aspect | Value | Role |
|---|---|---|
| Language & toolchain | C# (.NET 8) | Reference host implementation embedding lmcode-csharp (vendor/lmcode-csharp) |
| Domain schema | 45 host signatures | Shop, Items, Money, Ledger, Currency enum, operators, and Adjuster/Score interfaces |
| Standard catalog | lmcode_std_v3 | Preloaded standard catalog plus opt-in print and assert_close testing helpers |
| --lmcode-schema [--json] | Discovery flag | Print human summary or exact embedded dsl.schema: 2 JSON bytes (exit 0) |
| --lmcode-signatures | Discovery flag | Print sorted canonical host and standard signatures (exit 0) |
| --lmcode / --first / --last | Execution flags | Run 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