Start making the code tag agnostic.
[SXSI/xpathcomp.git] / src / tag.mli
index 6dc51ee..7a11be0 100644 (file)
@@ -1,5 +1,12 @@
 type t = int
 type pool
+type operations = {
+  tag : pool -> string -> t;
+  to_string : pool -> t -> string;
+  nullt : pool -> t;
+  translate : pool -> t -> t
+}
+
 val tag : string -> t
 
 val document_node : t
@@ -12,7 +19,7 @@ val pcdata_close : t
 val attribute_data_close : t
 
 
-val init : pool -> unit
+val init : pool -> (* operations -> *) unit
 val to_string : t -> string
 val compare : t -> t -> int
 val equal : t -> t -> bool