Skip to content

Add the simulator as a playground language package - #107

Merged
flgrubm merged 3 commits into
mainfrom
sim/playground
Dec 2, 2026
Merged

flgrubm merged 3 commits into
mainfrom
sim/playground

Conversation

@flgrubm

@flgrubm flgrubm commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

Makes the simulator embeddable in any page as a playgrounds language (<code-playground language="determinize">).

  • sim/src/playground/, sim/playground/: a worker on the simulator's core with diagnostics, hover (types, modes), completion, signature help, definition/references/rename, and the outputs Runs, Determinized, Steps, Exact and Chains; a TextMate grammar; examples with expected output.
  • flake-modules/playground.nix: packages.playground, packages.playgrounds, flakeModules.playground (adds the package to a flake using playgrounds.flakeModules.default), checks.playground-conformance. CI's simulator workflow and ./check.sh playground run the conformance kit.
  • artifact/build.py leaves the new playgrounds flake input out of the anonymized archive; its flake.nix and flake.lock stay as on main.
  • The package's licence is NOASSERTION until the repository has one.

Reviewer surface (lean/Determinize/Spec/, Theorems.lean): unaffected.

🤖 Generated with Claude Code

flgrubm and others added 3 commits December 2, 2026 17:32
github.com/flgrubm/playgrounds builds and checks language packages
(lib.mkLanguage, lib.checkLanguage, lib.mkPlaygrounds). Its URL names an
author, so artifact/build.py drops it from the archive's flake.nix and
flake.lock, which come out as before the input.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
sim/playground/ and sim/src/playground/: a worker on the simulator's core
that speaks the playground protocol, with diagnostics, hover, completion,
signature help, definitions, references and rename, and the outputs
Runs, Determinized, Steps, Exact and Chains; a TextMate grammar; and
examples with their expected output. npm run build:playground builds it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
flake-modules/playground.nix provides packages.playground,
packages.playgrounds, flakeModules.playground and
checks.playground-conformance. check.sh gains the playground area, the
simulator's workflow runs the conformance kit, and the README documents
the package.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant