@modelscript/tree-sitter-modelica
v0.0.10
Published
Modelica grammar for tree-sitter
Downloads
950
Maintainers
Readme
@modelscript/tree-sitter-modelica
Tree-sitter grammar for the Modelica language. Produces both a native Node.js binding and a WebAssembly build for browser use.
Prerequisites
- tree-sitter-cli (
npm install -g tree-sitter-cli) - emsdk (for WASM build)
- node-gyp build tools
Scripts
| Command | Description |
| --------------- | ---------------------------------------------- |
| npm run build | Generate, build native binding, and build WASM |
| npm run clean | Remove build/ and src/ output |
| npm test | Run grammar binding tests |
| npm start | Launch tree-sitter playground |
Building
npm run buildThis generates the parser from grammar.js, builds the native Node.js binding, and produces tree-sitter-modelica.wasm.
Testing
npm testPlayground
npm startOpens the tree-sitter web playground for interactively testing the grammar.
