catala-wasm
v1.0.0
Published
catala language parser in webassembly
Maintainers
Readme
catala-wasm
Catala language parser in WebAssembly, built with tree-sitter and tree-sitter-catala.
Live demo: https://3p3r.github.io/catala-wasm/
Build
Requires Node.js, npm, and Rust (for the tree-sitter CLI).
npm install
npm run buildThe script shallow-clones tree-sitter-catala, builds WASM parsers for the three language variants (en, fr, pl), copies them and the tree-sitter playground static files into dist/.
Demo
Serve dist/ locally:
npm run serveThen open the URL shown (e.g. http://localhost:8080). Use the language dropdown to switch between Catala (en), Catala (fr), and Catala (pl).
Deploy
Deploy the contents of dist/ to any static host (GitHub Pages, Netlify, etc.). No server-side logic required.
