2 releases
0.6.1 | May 29, 2025 |
---|---|
0.6.0 | Feb 17, 2025 |
#559 in Text editors
204 downloads per month
Used in openscad-lsp
320KB
13K
SLoC
tree-sitter-openscad
OpenSCAD grammar for the tree-sitter parsing library
Developer quickstart
Most development of tree-sitter parsers is done using nodejs and npm. You can find the instructions on how to set that up here: https://tree-sitter.github.io/tree-sitter/creating-parsers
The TLDR would be:
- Ensure you have
npm
andjust
installed. - Install
npm
(there are many ways, pick your poison) - From the source directory, run
npm install
to get all the dependencies - Get the
tree-sitter
CLI executable tree-sitter generate
/just gen
to build your changestree-sitter test
/just test
to make sure you didn't unintentionally break any of the existing test cases- Add a new test case covering your change (instructions here: https://tree-sitter.github.io/tree-sitter/creating-parsers#command-test)
Dependencies
~4–280KB