1 (***********************************************************************)
5 (* Kim Nguyen, LRI UMR8623 *)
6 (* Université Paris-Sud & CNRS *)
8 (* Copyright 2010-2012 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-03-09 17:54:35 CET by Kim Nguyen>
20 include FiniteCofinite.Make(Ptset.Make(QName))
22 let print_finite fmt e conv =
23 Format.fprintf fmt "{";
24 Pretty.print_list ~sep:"," QName.print fmt (conv e);
25 Format.fprintf fmt "}"
27 let printer fmt e test conv inv is_any =
28 if test e then print_finite fmt e conv
30 let () = Format.fprintf fmt "%s" Pretty.big_sigma in
31 if not (is_any e) then begin Format.fprintf fmt "-";print_finite fmt (inv e) conv end
33 let print fmt e = printer fmt e is_finite elements complement is_any
35 let specials = [ QName.document; QName.text; QName.text ]
36 let notstar = from_list specials
37 let star = diff any notstar
39 let text = singleton QName.text
43 include FiniteCofinite.Weak(Ptset.Weak(QName))
44 let print fmt e = printer fmt e is_finite elements complement is_any
45 let notstar = from_list specials
46 let star = diff any notstar
48 let text = singleton QName.text