promql_parser

Module parser

Source
Expand description

The parser implementation.

parse() parses the given query to Expr, which is the abstract syntax tree (AST) struct in this crate. And Expr is componsed by servaral structs exposed in this module.

Notes that in PromQL the parsed Expr is only a part of an query. It would also needs other parameters like “start”/“end” time or “step” time etc, which is included in EvalStmt.

Re-exports§

Modules§

Traits§