Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 1.35 KB

README.md

File metadata and controls

25 lines (18 loc) · 1.35 KB

tree-sitter-openscad

npm crates

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:

  1. Ensure you have npm and just installed.
  2. Install npm (there are many ways, pick your poison)
  3. From the source directory, run npm install to get all the dependencies
  4. Get the tree-sitter CLI executable
  5. tree-sitter generate/just gen to build your changes
  6. tree-sitter test/just test to make sure you didn't unintentionally break any of the existing test cases
  7. Add a new test case covering your change (instructions here: https://tree-sitter.github.io/tree-sitter/creating-parsers#command-test)