Repository navigation
Add the simulator as a playground language package - #107
Merged
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 usingplaygrounds.flakeModules.default),checks.playground-conformance. CI's simulator workflow and./check.sh playgroundrun the conformance kit.artifact/build.pyleaves the newplaygroundsflake input out of the anonymized archive; itsflake.nixandflake.lockstay as on main.NOASSERTIONuntil the repository has one.Reviewer surface (
lean/Determinize/Spec/,Theorems.lean): unaffected.🤖 Generated with Claude Code