Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/getgrit/tree-sitter-gritql
The official grammar for GritQL, implemented as a tree sitter parser
https://github.com/getgrit/tree-sitter-gritql
Last synced: 3 months ago
JSON representation
The official grammar for GritQL, implemented as a tree sitter parser
- Host: GitHub
- URL: https://github.com/getgrit/tree-sitter-gritql
- Owner: getgrit
- License: mit
- Created: 2024-02-14T17:48:56.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-11T04:58:51.000Z (7 months ago)
- Last Synced: 2024-07-28T14:22:47.601Z (4 months ago)
- Language: JavaScript
- Homepage: https://docs.grit.io/language/overview
- Size: 990 KB
- Stars: 12
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tree-sitter-gritql
[![CI Status](https://img.shields.io/github/actions/workflow/status/getgrit/tree-sitter-gritql/ci.yml)](https://github.com/getgrit/tree-sitter-gritql/actions/workflows/ci.yml)
[![MIT License](https://img.shields.io/github/license/getgrit/tree-sitter-gritql)](https://github.com/getgrit/tree-sitter-gritql/blob/main/LICENSE)
[![Discord](https://img.shields.io/discord/1063097320771698699?logo=discord&label=discord)](https://docs.grit.io/discord)A tree-sitter parser for [GritQL](https://docs.grit.io/language/overview) files.
GritQl is an AST-aware query language for searching and transforming source code.
## Syntax Example
```grit
language js`console.log($my_message)` => `winston.info($my_message)` where {
$my_message <: string()
}
```Explore the [interactive tutorial](https://docs.grit.io/tutorials/gritql) to learn more about GritQL.
## References
- [GritQL Language Overview](https://docs.grit.io/language/overview)
- [GritQL Language Reference](https://docs.grit.io/language/syntax)
- [Grit Standard Libarary](https://github.com/getgrit/stdlib)