type path = single_path list
and single_path = Absolute of step list | Relative of step list
and step = axis * test * expr list
type path = single_path list
and single_path = Absolute of step list | Relative of step list
and step = axis * test * expr list
-and axis = Self | Attribute | Child | Descendant | DescendantOrSelf | FollowingSibling
- | Parent | Ancestor | AncestorOrSelf | PrecedingSibling | Preceding | Following
+and axis = Self | Attribute | Child
+ | Descendant of bool
+ | FollowingSibling
+ | Parent
+ | Ancestor of bool
+ | PrecedingSibling
+ | Preceding | Following
and binop = Eq | Neq | Lt | Gt | Lte | Gte | Or | And | Add | Sub | Mult | Div | Mod
and unop = Neg
and expr =
| Number of [ `Int of int | `Float of float ]
| String of string
and binop = Eq | Neq | Lt | Gt | Lte | Gte | Or | And | Add | Sub | Mult | Div | Mod
and unop = Neg
and expr =
| Number of [ `Int of int | `Float of float ]
| String of string
val print_binop : Format.formatter -> binop -> unit
val print_unop : Format.formatter -> unop -> unit
val print_path : Format.formatter -> path -> unit
val print_binop : Format.formatter -> binop -> unit
val print_unop : Format.formatter -> unop -> unit
val print_path : Format.formatter -> path -> unit