Rewire JSOO pipeline and add online playground#952
Closed
Conversation
Revives and extends the js_of_ocaml support that previously existed in a less complete form. Compiles the Catala compiler to JavaScript, enabling browser-based interpretation of Catala code. Features: - Full Catala interpreter running in the browser - Embedded stdlib (Date, Money, etc.) via ocaml-crunch - Multi-file support with virtual filesystem for user modules - Structured error reporting with source positions - Support for English and French language variants API exports: - interpret(code, scope, lang, trace, filename) → result - registerFile(name, content) / clearFiles() / listFiles()
Interactive browser-based IDE for learning and experimenting with Catala. Uses the js_of_ocaml web interpreter. Features: - Monaco editor with Catala syntax highlighting - Multi-file editing with module support - localStorage persistence with checkpoint/reset system - Internationalization (English/French) - Side-by-side tutorial mode (learn.html) for the Catala book - Integration tests with Playwright Note: This playground is intended to eventually move to the catala-book repository.
Contributor
Author
|
Splitting in two parts:
Closing this. |
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.
Adds
The part that should be critiqued / reviewed most thoroughly is the first commit ( a54be1e ) that targets the ocaml side, since the playground will probably live in catala-book?
Can be tested at https://idyllic-kringle-f90220.netlify.app/learn.html or https://idyllic-kringle-f90220.netlify.app/learn.html?bookBase=https://book.catala-lang.org/fr for the French version