#tree-sitter #sparql #parser #incremental

tree-sitter-sparql

SPARQL grammar for tree-sitter

8 unstable releases (3 breaking)

0.24.0 Nov 13, 2024
0.23.0 Sep 17, 2024
0.22.7 Sep 17, 2024
0.1.4 Sep 16, 2024
0.1.2 Jun 29, 2024

#171 in Text editors

Download history 134/week @ 2024-08-31 14/week @ 2024-09-07 480/week @ 2024-09-14 78/week @ 2024-09-21 41/week @ 2024-09-28 2/week @ 2024-10-05 112/week @ 2024-11-09 24/week @ 2024-11-16 7/week @ 2024-11-23 16/week @ 2024-11-30

159 downloads per month
Used in fichu

MIT license

1.5MB
39K SLoC

C 38K SLoC JavaScript 1K SLoC // 0.1% comments Rust 27 SLoC // 0.3% comments

tree-sitter-sparql

SPARQL grammar for tree-sitter.

Important

This is a fork of tree-sitter-sparql! It's just updated and adjusted for Rust.

Usage

All you need to know is written in the docs

To summarize:

  • install the tree-sitter-cli on your system
  • build the parser and all bindings with: tree-sitter generate
  • test the parser with tree-sitter test
  • tests are defined in test/
  • the grammar is specified in grammar.js

If you want to use this in your rust project:

Everything further is written in the docs

References

Dependencies

~2–305KB