) ()
in
let _ = Tag.init (Tree.Binary.tag_pool v) in
- MM(v,__LOCATION__);
Printf.eprintf "Parsing query : ";
let query = try
time
Printf.eprintf "Total time : %fms\n Coherence : %i\n%!" (total_time())
;;
-let argc = Array.length Sys.argv;;
-if (argc < 3 || argc >4)
-then
- (prerr_endline ("usage : " ^ Sys.argv.(0) ^ " <document> \'query\'[ <output> ]");
- exit 1)
-;;
+Options.parse_cmdline();;
-main Sys.argv.(1) Sys.argv.(2) (if argc == 4 then Some Sys.argv.(3) else None) ;;
+main !Options.input_file !Options.query !Options.output_file;;
+IFDEF DEBUG
+THEN
Printf.eprintf "\n=================================================\nDEBUGGING\n%!";
Tree.DEBUGTREE.print_stats Format.err_formatter;;
-
-
+Gc.full_major()
+ENDIF