OpenSCAD grammar for the tree-sitter parsing library
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
npmandjustinstalled. - Install
npm(there are many ways, pick your poison) - From the source directory, run
npm installto get all the dependencies - Get the
tree-sitterCLI executable tree-sitter generate/just gento build your changestree-sitter test/just testto 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)