https://github.com/bollian/tree-sitter-openscad
Incremental parser for OpenSCAD using tree-sitter
https://github.com/bollian/tree-sitter-openscad
openscad parser
Last synced: 2 months ago
JSON representation
Incremental parser for OpenSCAD using tree-sitter
- Host: GitHub
- URL: https://github.com/bollian/tree-sitter-openscad
- Owner: bollian
- License: mit
- Created: 2021-08-01T17:50:33.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-05T02:38:27.000Z (almost 2 years ago)
- Last Synced: 2026-04-06T12:28:05.305Z (3 months ago)
- Topics: openscad, parser
- Language: JavaScript
- Homepage:
- Size: 395 KB
- Stars: 22
- Watchers: 3
- Forks: 11
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
1. Install `npm` (there are many ways, pick your poison)
2. From the source directory, run `npm install` to get all the dependencies
3. `export PATH=$PATH:./node_modules/.bin` to get the `tree-sitter` CLI command
4. `tree-sitter generate` to build your changes
5. `tree-sitter test` to make sure you didn't unintentionally break any of the existing test cases
6. Add a new test case covering your change (instructions here: https://tree-sitter.github.io/tree-sitter/creating-parsers#command-test)