Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alufers/openscad-parser
This package facilitates parsing, formatting and validating the OpenSCAD language using TypeScript and JavaScript.
https://github.com/alufers/openscad-parser
3d 3d-printing language-support openscad parser
Last synced: 20 days ago
JSON representation
This package facilitates parsing, formatting and validating the OpenSCAD language using TypeScript and JavaScript.
- Host: GitHub
- URL: https://github.com/alufers/openscad-parser
- Owner: alufers
- License: mit
- Created: 2019-07-29T23:27:08.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-27T17:23:32.000Z (3 months ago)
- Last Synced: 2024-12-27T04:23:08.623Z (about 1 month ago)
- Topics: 3d, 3d-printing, language-support, openscad, parser
- Language: TypeScript
- Homepage: https://alufers.github.io/openscad-parser/
- Size: 3.41 MB
- Stars: 11
- Watchers: 4
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
[![Node.js CI](https://github.com/alufers/openscad-parser/workflows/Node.js%20CI/badge.svg)](https://github.com/alufers/openscad-parser/actions?query=workflow%3A%22Node.js+CI%22)
[![License](https://img.shields.io/github/license/alufers/openscad-parser)](https://github.com/alufers/openscad-parser/blob/master/LICENSE.md)
[![NPM package](https://badge.fury.io/js/openscad-parser.svg)](https://www.npmjs.com/package/openscad-parser)# openscad-parser
This package facilitates parsing, formatting and validating the OpenSCAD language using TypeScript and JavaScript.
# Installation (formatter)
```sh
$ npm i -g openscad-parser
```Usage:
```sh
$ scadfmt # outputs the formatted OpenSCAD code to stdout
```# Installation (as a node module)
```sh
npm install openscad-parser
```# Features
- [x] Parsing and full error reporting (reports even better errors than the default OpenSCAD parser)
- [x] Symbol tree generation (VSCode "Outline" view)
- [x] Formatting (fully AST-aware, needs some more work with breaking up large vectors)
- [x] Semantic code completions (provides code completions for VSCode)
- [x] 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](https://alufers.github.io/openscad-parser/).
# License
[MIT](https://github.com/alufers/openscad-parser/blob/master/LICENSE.md)