X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=src%2Ftag.mli;h=04254e05e32414fdd84781a877bb2cf6c67cc534;hb=3dc9065cb7e4b38bf25e6fb50017efa5b11de4ff;hp=6dc51eeac4d7bf556da0d7d4a6b7ef917d6eae08;hpb=4b52da1a20a4fe031930bb96d2ca46bec06dc529;p=SXSI%2Fxpathcomp.git diff --git a/src/tag.mli b/src/tag.mli index 6dc51ee..04254e0 100644 --- a/src/tag.mli +++ b/src/tag.mli @@ -1,6 +1,11 @@ type t = int -type pool -val tag : string -> t + +type operations = { + tag : string -> t; + to_string : t -> string; + translate : t -> t +} + val document_node : t val attribute : t @@ -10,14 +15,14 @@ val document_node_close : t val attribute_close : t val pcdata_close : t val attribute_data_close : t +val nullt : t +val dummy : t -val init : pool -> unit -val to_string : t -> string val compare : t -> t -> int val equal : t -> t -> bool -val nullt : t -val dummy : t + + val dump : Format.formatter -> t -> unit val check : t -> unit (* Check internal invariants *) @@ -25,4 +30,10 @@ val check : t -> unit (* Check internal invariants *) val hash : t -> int val print : Format.formatter -> t -> unit -val dump_tags : unit -> unit +val init : operations -> unit + +val tag : string -> t +val to_string : t -> string +val translate : t -> t + +