Expand description
Query parsing and in-memory evaluation. Pure: no git, no I/O.
Grammar lives in ADR 0003. This module turns a query string into a
ScanPlan and decides whether a candidate loop matches it.
Structs§
- Candidate
- A loop as seen by the evaluator. Borrowed to keep
matchesallocation-free. - Scan
Plan - The parsed query, derived before any heavy I/O.
Enums§
- Attr
Filter - An attribute filter evaluated in memory after the scan.
- Cmp
- Numeric/temporal comparator for
idle/ahead/behind.
Functions§
- parse
- Parses a query string into a
ScanPlan. Tokens split on whitespace only — a/is literal inside a term. - parse_
duration - Parses
<N><unit>where unit is one of m/h/d/w.