#pattern-matching #query-language #ast #query #query-engine #pl #gritql

grit-pattern-matcher

Pattern definitions and core matching logic for GritQL

5 releases (breaking)

new 0.5.0 Oct 25, 2024
0.4.0 Oct 10, 2024
0.3.0 Jun 2, 2024
0.2.0 May 1, 2024
0.1.0 Apr 29, 2024

#36 in Database implementations

Download history 1393/week @ 2024-07-05 1295/week @ 2024-07-12 1205/week @ 2024-07-19 1228/week @ 2024-07-26 1276/week @ 2024-08-02 1245/week @ 2024-08-09 1135/week @ 2024-08-16 1409/week @ 2024-08-23 1408/week @ 2024-08-30 1584/week @ 2024-09-06 1649/week @ 2024-09-13 2203/week @ 2024-09-20 1735/week @ 2024-09-27 2004/week @ 2024-10-04 2779/week @ 2024-10-11 2223/week @ 2024-10-18

9,165 downloads per month

MIT license

280KB
7.5K SLoC

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.


lib.rs:

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.

Dependencies

~5–6.5MB
~124K SLoC