(* ../LICENSE. *)
(* *)
(***********************************************************************)
-
-
-(** Abstract syntax tree of XPath queries *)
-
module Ast :
sig
type path = single_path list
and axis = Self | Attribute | Child | Descendant | DescendantOrSelf | FollowingSibling
| Parent | Ancestor | AncestorOrSelf | PrecedingSibling | Preceding | Following
- and test = Simple of QNameSet.t
+ and test = QNameSet.t
and binop = Eq | Neq | Lt | Gt | Lte | Gte | Or | And | Add | Sub | Mult | Div | Mod
and unop = Neg
| Path of path
| Binop of expr * binop * expr
| Unop of unop * expr
-
-
type t = path
-end
+ val text : QNameSet.t
+ val node : QNameSet.t
+ val star : QNameSet.t
+ val print_binop : Format.formatter -> binop -> unit
+ val print_unop : Format.formatter -> unop -> unit
+ val print_path : Format.formatter -> path -> unit
+ val print_single_path : Format.formatter -> single_path -> unit
+ val print_step : Format.formatter -> step -> unit
+ val print_axis : Format.formatter -> axis -> unit
+ val print_test : Format.formatter -> test -> unit
+ val print_expr : Format.formatter -> expr -> unit
+ end