openscad-parser v0.6.3
openscad-parser
This package facilitates parsing, formatting and validating the OpenSCAD language using TypeScript and JavaScript.
Installation (formatter)
$ npm i -g openscad-parser
Usage:
$ scadfmt <file> # outputs the formatted OpenSCAD code to stdout
Installation (as a node module)
npm install openscad-parser
Features
- Parsing and full error reporting (reports even better errors than the default OpenSCAD parser)
- Symbol tree generation (VSCode "Outline" view)
- Formatting (fully AST-aware, needs some more work with breaking up large vectors)
- Semantic code completions (provides code completions for VSCode)
- Jump to definition (provides a "Go to definition" context menu item)
I will soon release a vscode extension with full OpenSCAD support, it just needs some more work.
Documentation
The API documentation is available here.
License
9 days ago
3 months ago
5 months ago
10 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago