lmcode-scala-sample

lmcode-scala-sample is the Scala 3 reference Shop and Ledger host compiling against the vendored lmcode-java SDK and passing the canonical sample suite. It uses Scala 3 SAM lambdas to bind the 45-signature Shop domain, preserves raw byte strings in VmString, dispatches R49 rule entries, and frames results.

Quick reference

git clone https://github.com/lmctl-ai/lmcode-scala-sample.git
cd lmcode-scala-sample
python3 scripts/sync.py check
./test.sh
AspectValueRole
Language & toolchainScala 3 (JDK 21 & sbt)Reference host implementation embedding lmcode-java (vendor/lmcode-java)
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
./bin/lmcode-scala-sample --version
./bin/lmcode-scala-sample --lmcode-schema --json
./bin/lmcode-scala-sample --lmcode-signatures
./bin/lmcode-scala-sample --lmcode sample-suite/bytecode/001-literals.dslb

Documentation pages

Source repository and releases