open Printf
+let debug = false;;
+let debug_print s =
+ if debug then prerr_endline (Lazy.force s);;
+
exception Ambiguous_input
(* the integer is an offset to be added to each location *)
exception DisambiguationError of
drop_aliases_and_clear_diff res
in
let rec aux i errors passes =
-(*prerr_endline ("Pass: " ^ string_of_int i);*)
+ debug_print (lazy ("Pass: " ^ string_of_int i));
match passes with
[ pass ] ->
(try
let f = Disambiguator.disambiguate_obj ~dbd ~uri in
disambiguate_thing.do_it ~aliases ~universe ~f ~drop_aliases
~drop_aliases_and_clear_diff obj
+
+let disambiguate_thing ~dbd = assert false