https://github.com/binpash/shasta
A shell AST library in Python
https://github.com/binpash/shasta
Last synced: 4 months ago
JSON representation
A shell AST library in Python
- Host: GitHub
- URL: https://github.com/binpash/shasta
- Owner: binpash
- License: mit
- Created: 2023-05-26T15:22:35.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2026-01-13T21:35:03.000Z (5 months ago)
- Last Synced: 2026-01-13T23:50:43.417Z (5 months ago)
- Language: Python
- Homepage:
- Size: 413 KB
- Stars: 11
- Watchers: 2
- Forks: 3
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# shasta
A python library with shell AST definitions for the [libdash](https://github.com/mgree/libdash) AST. It can be used to develop shell AST analyses and transfomations. All AST nodes support a `pretty()` method that extracts them as a shell script, and the library offers a [json_to_ast](./shasta/json_to_ast.py) module that creates an AST object from a JSON object.
It was originally part of [PaSh](https://github.com/binpash/pash) but was separated to allow others to build on it.