Skip to main content

Module ast

Module ast 

Source
Expand description

XPath 1.0 Expression AST (§25).

Internal Rust representation of XPath expressions, separate from the C ABI. The parser builds this AST; the evaluator walks it.

§UPSTREAM-PARITY

Covers the full XPath 1.0 grammar:

  • Location paths (relative/absolute, steps, axes, node tests, predicates)
  • Operators (union, comparison, boolean, arithmetic)
  • Functions, variables, literals
  • Filter expressions (primary with predicates)

Structs§

CompiledExpr
A compiled XPath expression.
Step
A single location step: axis::node-test[predicates]

Enums§

Axis
XPath 1.0 axis.
BinaryOp
Expr
XPath expression AST node.
NameTest
A name test (QName or wildcard).
NodeTest
XPath node test.