#query-language #ast #gritql #pl

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

#308 in Math

Download history 1397/week @ 2025-01-03 985/week @ 2025-01-10 1277/week @ 2025-01-17 1386/week @ 2025-01-24 1442/week @ 2025-01-31 1513/week @ 2025-02-07 999/week @ 2025-02-14 784/week @ 2025-02-21 1348/week @ 2025-02-28 735/week @ 2025-03-07 1195/week @ 2025-03-14 784/week @ 2025-03-21 895/week @ 2025-03-28 640/week @ 2025-04-04 991/week @ 2025-04-11 694/week @ 2025-04-18

3,317 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

~4–5.5MB
~103K SLoC