Skip to main content

amql_engine/
selector.rs

1//! Structural selector parser — re-exported from amql-selector.
2
3use crate::error::AqlError;
4
5pub use amql_selector::{
6    AttrOp, AttrPredicate, Combinator, CompoundSelector, Predicate, PredicateOp, PredicateValue,
7    SelectorAst,
8};
9
10/// Parse a selector string into an AST.
11#[must_use = "parsing a selector is useless without inspecting the result"]
12pub fn parse_selector(input: &str) -> Result<SelectorAst, AqlError> {
13    amql_selector::parse_selector(input).map_err(AqlError::from)
14}