An open API service indexing awesome lists of open source software.

https://github.com/ontodev/tree-sitter-sqlrest


https://github.com/ontodev/tree-sitter-sqlrest

Last synced: 5 months ago
JSON representation

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