Expand description
Tokenizer and parser: query text → Ast (OR of AND groups).
Structs§
- Ast
- OR of AND groups:
a b | c→[[a, b], [c]].
Enums§
- Parse
Error - Reasons
parserejects malformed query text. - Term
- A single matchable condition within an AND group of the
Ast.
Constants§
- FIELDS 🔒
Functions§
- has_
wildcard 🔒 - name_
or_ 🔒path_ term - parse
- Tokenize and parse query text into an
Ast. - parse_
date_ 🔒period - One date period → [start,
end_exclusive). - parse_
date_ 🔒range dm:value → [start, end) civil-date bounds. Forms:2024,2024-03,2024/03/05,a..b,>x,>=x,<x,<=x.- parse_
size 🔒 - parse_
size_ 🔒range size:value → inclusive byte range. Forms:123,1kb,1.5mb,>1gb,>=,<,<=,1mb..2gb.- read_
atom 🔒 - Read one atom: up to whitespace or
|, honoring quoted sections ("two words",path:"Program Files"). - terms_
from_ 🔒atom - unquote 🔒