Add FilterBar query language parser (pest grammar)

Introduces a standalone src/filter_parser.rs module (no dependency on
engine/index types) that parses the FilterBar query language into a
FilterExpr AST using a pest grammar (src/filter_parser.pest). Supports
regex("...") searches, metric_name[param] <op> value comparisons,
reserved sequence/timestamp metrics, and and/or combinators with
correct precedence (and binds tighter than or) and parenthesized
sub-expressions. Evaluation against real log data is left to a later
integration ticket.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XFUNZwCvz3kcod3352ZR2o
This commit is contained in:
Hugh Kaznowski
2026-09-05 12:45:31 +01:00
co-authored by Claude Sonnet 5
parent 1fb564d06b
commit 202b1dcf9f
5 changed files with 489 additions and 3 deletions
+1
View File
@@ -2,6 +2,7 @@ mod api;
mod data_value;
mod dto;
mod engine;
mod filter_parser;
mod index_key;
mod ingest;
mod metric_primitive;