https://github.com/ontodev/tree-sitter-sqlrest
https://github.com/ontodev/tree-sitter-sqlrest
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ontodev/tree-sitter-sqlrest
- Owner: ontodev
- License: bsd-3-clause
- Created: 2022-12-13T16:56:28.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-13T14:24:01.000Z (over 2 years ago)
- Last Synced: 2024-04-16T07:51:52.147Z (about 2 years ago)
- Language: C
- Size: 80.1 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tree-sitter-sqlrest
This crate provides sqlrest language support for the [tree-sitter][] parsing library.
Typically, you will use the [language][language func] function to add this language to a
tree-sitter [Parser][], and then use the parser to parse some code:
```rust
let code = "";
let mut parser = tree_sitter::Parser::new();
parser.set_language(tree_sitter_sqlrest::language()).expect("Error loading sqlrest grammar");
let tree = parser.parse(code, None).unwrap();
```
To modify the grammar, edit grammar.js and then run: `tree-sitter generate`
[Language]: https://docs.rs/tree-sitter/*/tree_sitter/struct.Language.html
[language func]: fn.language.html
[Parser]: https://docs.rs/tree-sitter/*/tree_sitter/struct.Parser.html
[tree-sitter]: https://tree-sitter.github.io/
License: MIT