#query-language #ast #pl #gritql

grit-pattern-matcher

Pattern definitions and core matching logic for GritQL

6 releases (breaking)

0.5.1 Jan 7, 2025
0.5.0 Oct 25, 2024
0.4.0 Oct 10, 2024
0.3.0 Jun 2, 2024
0.1.0 Apr 29, 2024

#1783 in Database interfaces

Download history 1007/week @ 2025-10-07 934/week @ 2025-10-14 1106/week @ 2025-10-21 1780/week @ 2025-10-28 2020/week @ 2025-11-04 2586/week @ 2025-11-11 2863/week @ 2025-11-18 2569/week @ 2025-11-25 1730/week @ 2025-12-02 1725/week @ 2025-12-09 1413/week @ 2025-12-16 1251/week @ 2025-12-23 1676/week @ 2025-12-30 1477/week @ 2026-01-06 1470/week @ 2026-01-13 1466/week @ 2026-01-20

6,329 downloads per month

MIT license

280KB
7.5K SLoC

Grit pattern definitions and matching logic

This crate contains all the pattern definitions that are at the heart of the GritQL engine. There's the pattern::Matcher trait that's implemented by the patterns, which implements the matching logic.


grit-pattern-matcher

This crate contains all the pattern definitions that are at the heart of the GritQL engine. There's a Matcher trait that's implemented by the patterns, which implements the matching logic.

It is important this crate stays free of TreeSitter dependencies, since it is intended to be reusable by other engines which may use their own parser infrastructure.

Dependencies

~5–6.5MB
~127K SLoC