10 releases (4 breaking)

0.25.2 Feb 25, 2025
0.24.1 Jan 29, 2025
0.24.0 Nov 13, 2024
0.23.0 Sep 17, 2024
0.1.2 Jun 29, 2024

#564 in Text editors

Download history 54/week @ 2025-03-15 14/week @ 2025-03-22 12/week @ 2025-03-29 19/week @ 2025-04-05 38/week @ 2025-04-12 36/week @ 2025-04-19 195/week @ 2025-04-26 157/week @ 2025-05-03 173/week @ 2025-05-10 113/week @ 2025-05-17 20/week @ 2025-05-24

807 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

~4–280KB