| Some input ->
let fd = open_in input in fd, fun () -> close_in fd
in
- let d = time Naive_tree.load_xml_file fd "parsing xml document" in
+ let d = time Compact_tree.load_xml_file fd "parsing xml document" in
close_fd (); d
in
let queries =
Logger.msg `STATS "@[Automaton: @\n%a@]" Ata.print auto) auto_list;
end;
- let module Naive = Run.Make(Naive_tree)(Naive_node_list) in
+ let module Naive = Run.Make(Compact_tree)(Compact_node_list) in
let result_list =
- let root = Naive_node_list.create () in
- let () = Naive_node_list.add (Naive_tree.root doc) root in
+ let root = Compact_node_list.create () in
+ let () = Compact_node_list.add (Compact_tree.root doc) root in
let f, msg =
match !Options.parallel, !Options.compose with
true, true ->
output_string output (string_of_int !count);
output_string output "\" >\n";
if !Options.count then begin
- output_string output (string_of_int (Naive_node_list.length results));
+ output_string output (string_of_int (Compact_node_list.length results));
output_char output '\n';
end else
- Naive_node_list.iter (fun n ->
- Naive_tree.print_xml output doc n;
+ Compact_node_list.iter (fun n ->
+ Compact_tree.print_xml output doc n;
output_char output '\n'
) results;
output_string output "</xml_result>\n";
Some s -> ("file " ^ s)
| None -> "[stdin]") msg; exit 3
| Xpath.Ulexer.Error (s, e, msg) -> eprintf "Error: character %i-%i: %s\n%!" s e msg; exit 4
- | e -> eprintf "FATAL ERROR: %s\n%!" (Printexc.to_string e); exit 128
+(* | e -> Printexc.print_backtrace stderr;
+ flush stderr;
+ eprintf "FATAL ERROR: %s\n%!" (Printexc.to_string e); exit 128 *)