Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tree-sitter/tree-sitter-bash
Bash grammar for tree-sitter
https://github.com/tree-sitter/tree-sitter-bash
bash parser tree-sitter
Last synced: about 8 hours ago
JSON representation
Bash grammar for tree-sitter
- Host: GitHub
- URL: https://github.com/tree-sitter/tree-sitter-bash
- Owner: tree-sitter
- License: mit
- Created: 2017-07-14T21:43:12.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-11-11T15:20:28.000Z (about 1 month ago)
- Last Synced: 2024-11-28T07:09:27.652Z (14 days ago)
- Topics: bash, parser, tree-sitter
- Language: C
- Size: 16.2 MB
- Stars: 213
- Watchers: 13
- Forks: 66
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-tree-sitter - Bash
README
# tree-sitter-bash
[![CI][ci]](https://github.com/tree-sitter/tree-sitter-bash/actions/workflows/ci.yml)
[![discord][discord]](https://discord.gg/w7nTvsVJhm)
[![matrix][matrix]](https://matrix.to/#/#tree-sitter-chat:matrix.org)
[![crates][crates]](https://crates.io/crates/tree-sitter-bash)
[![npm][npm]](https://www.npmjs.com/package/tree-sitter-bash)
[![pypi][pypi]](https://pypi.org/project/tree-sitter-bash)Bash grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter).
## Development
Install the dependencies:
```sh
npm install
```Build and run the tests:
```sh
npm run build
npm run test
```Run the build and tests in watch mode:
```sh
npm run test:watch
```### References
- [Bash man page](http://man7.org/linux/man-pages/man1/bash.1.html#SHELL_GRAMMAR)
- [Shell command language specification](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html)
- [mvdnan/sh - a shell parser in go](https://github.com/mvdan/sh)[ci]: https://img.shields.io/github/actions/workflow/status/tree-sitter/tree-sitter-bash/ci.yml?logo=github&label=CI
[discord]: https://img.shields.io/discord/1063097320771698699?logo=discord&label=discord
[matrix]: https://img.shields.io/matrix/tree-sitter-chat%3Amatrix.org?logo=matrix&label=matrix
[npm]: https://img.shields.io/npm/v/tree-sitter-bash?logo=npm
[crates]: https://img.shields.io/crates/v/tree-sitter-bash?logo=rust
[pypi]: https://img.shields.io/pypi/v/tree-sitter-bash?logo=pypi&logoColor=ffd242