1 (***********************************************************************)
5 (* Kim Nguyen, LRI UMR8623 *)
6 (* Université Paris-Sud & CNRS *)
8 (* Copyright 2010-2013 Université Paris-Sud and Centre National de la *)
9 (* Recherche Scientifique. All rights reserved. This file is *)
10 (* distributed under the terms of the GNU Lesser General Public *)
11 (* License, with the special exception on linking described in file *)
14 (***********************************************************************)
17 Time-stamp: <Last modified on 2013-02-07 09:35:40 CET by Kim Nguyen>
20 type path = single_path list
21 and single_path = Absolute of step list | Relative of step list
22 and step = axis * test * expr list
23 and axis = Self | Attribute | Child | Descendant | DescendantOrSelf | FollowingSibling
24 | Parent | Ancestor | AncestorOrSelf | PrecedingSibling | Preceding | Following
26 and test = Utils.QNameSet.t
28 and binop = Eq | Neq | Lt | Gt | Lte | Gte | Or | And | Add | Sub | Mult | Div | Mod
31 | Number of [ `Int of int | `Float of float ]
33 | Fun_call of Utils.QName.t * expr list
35 | Binop of expr * binop * expr
38 val text : Utils.QNameSet.t
39 val node : Utils.QNameSet.t
40 val star : Utils.QNameSet.t
41 val print_binop : Format.formatter -> binop -> unit
42 val print_unop : Format.formatter -> unop -> unit
43 val print_path : Format.formatter -> path -> unit
44 val print_single_path : Format.formatter -> single_path -> unit
45 val print_step : Format.formatter -> step -> unit
46 val print_axis : Format.formatter -> axis -> unit
47 val print_test : Format.formatter -> test -> unit
48 val print_expr : Format.formatter -> expr -> unit