Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This provides most of the node compilers which compile syntax nodes produced by our Grit parser into Grit pattern data structures on which the pattern matching algorithm operates.
It's a sizable chunk of code at once, but these represent relatively straight-forward ports of node compilers as found in the Marzano engine. See here for a reference on which this is based: https://github.com/getgrit/gritql/tree/main/crates/core/src/pattern_compiler
The main differences are:
anyhow
for everything.This represents some more progress towards #2582
Test Plan
None yet, since this doesn't yet provide much of use on its own. Once the other bindings are complete, I can work towards pattern tests.