end
in
let module Disambiguate' = Disambiguate.Make(Chat) in
+prerr_endline "VOVI";
let ast = Grammar.Entry.parse CicNotationParser.term (Stream.of_string term_str) in
+prerr_endline "VIVO";
let (id_to_uris, metasenv, term) =
match
Disambiguate'.disambiguate_term ~dbd ~context ~metasenv
bad_request (sprintf "Parameter '%s' is missing" attr_name) outchan
| CicNotationParser.Parse_error msg ->
send_results (`Error (MooglePp.pp_error "Parse error" msg)) req outchan
+ | Stdpp.Exc_located (floc, Stream.Error msg) ->
+ send_results (`Error (MooglePp.pp_error "Parse error" msg)) req outchan
+ | Stdpp.Exc_located (floc, exn) ->
+ let msg = Printexc.to_string exn in
+ send_results (`Error (MooglePp.pp_error "Unknown error" msg)) req outchan
| Unbound_identifier id ->
send_results (`Error (MooglePp.pp_error "Unbound identifier" id)) req
outchan
printf "done!\n"; flush stdout
let read_notation () =
- let _ = assert false in ()
- (*
- CicNotation.load_notation (Helm_registry.get "search_engine.notations");
- CicNotation.load_notation (Helm_registry.get "search_engine.interpretations")
- *)
+ CicNotation2.load_notation ~include_paths:[]
+ (Helm_registry.get "search_engine.notations");
+ CicNotation2.load_notation ~include_paths:[]
+ (Helm_registry.get "search_engine.interpretations")
let _ =
printf "%s started and listening on port %d\n" daemon_name port;