- Printf.printf "Building lex index\n%!";
- let index = build_lex_index document (Tag.tag Sys.argv.(2)) in
+ Tag.init (Tree.tag_operations document);
+ Printf.printf "Building lex index for tag %s\n%!" (Tag.to_string (Tag.tag Sys.argv.(2)));
+ let index = build_lex_index (Tree.get_tree_pointer document) (Tag.tag Sys.argv.(2)) in