Initial commit
[SXSI/xpathcomp.git] / tree.mli
1 (******************************************************************************)
2 (*  SXSI : XPath evaluator                                                    *)
3 (*  Kim Nguyen (Kim.Nguyen@nicta.com.au)                                      *)
4 (*  Copyright NICTA 2008                                                      *)
5 (*  Distributed under the terms of the LGPL (see LICENCE)                     *)
6 (******************************************************************************)
7 module type BINARY =
8 sig
9   type node_content
10   type string_content
11   type descr = Nil| Node of node_content | String of string_content 
12   type t
13   val parse_xml_uri : string -> t
14   val parse_xml_string : string -> t
15   val string : t -> string
16   val descr : t -> descr
17   val left : t -> t
18   val right : t -> t
19   val id : t -> int
20   val tag : t -> Tag.t
21   val print_xml_fast : out_channel -> t -> unit
22   val compare : t -> t -> int
23   val equal : t -> t -> bool
24 end
25
26 module Binary : BINARY