logicalOperations.cmx: proofEngine.cmx
sequentPp.cmo: cic2Xml.cmo cic2acic.cmo proofEngine.cmo
sequentPp.cmx: cic2Xml.cmx cic2acic.cmx proofEngine.cmx
-mquery.cmo: mathql.cmo mquery.cmi
-mquery.cmx: mathql.cmx mquery.cmi
+mquery.cmo: mquery.cmi
+mquery.cmx: mquery.cmi
gTopLevel.cmo: cic2Xml.cmo cic2acic.cmo logicalOperations.cmo mquery.cmi \
proofEngine.cmo sequentPp.cmo xml2Gdome.cmo
gTopLevel.cmx: cic2Xml.cmx cic2acic.cmx logicalOperations.cmx mquery.cmx \
BIN_DIR = /usr/local/bin
REQUIRES = lablgtkmathview helm-cic_textual_parser helm-cic_proof_checking \
- helm-xml gdome2-xslt helm-cic_unification
+ helm-xml gdome2-xslt helm-cic_unification helm-mathql_interpreter
PREDICATES =
OCAMLOPTIONS = -package "$(REQUIRES)" -predicates "$(PREDICATES)" -pp camlp4o
OCAMLC = ocamlfind ocamlc $(OCAMLOPTIONS)
opt: gTopLevel.opt
DEPOBJS = xml2Gdome.ml proofEngineReduction.ml proofEngine.ml cic2Xml.ml \
- cic2acic.ml logicalOperations.ml sequentPp.ml mathql.ml mquery.mli mquery.ml gTopLevel.ml
+ cic2acic.ml logicalOperations.ml sequentPp.ml mquery.mli mquery.ml \
+ gTopLevel.ml
TOPLEVELOBJS = xml2Gdome.cmo proofEngineReduction.cmo proofEngine.cmo \
cic2Xml.cmo cic2acic.cmo logicalOperations.cmo sequentPp.cmo \
- mathql.cmo mquery.cmo gTopLevel.cmo
+ mquery.cmo gTopLevel.cmo
depend:
$(OCAMLDEP) $(DEPOBJS) > .depend
let _ =
CicCooking.init () ;
+ Mquery.init () ;
ignore (GtkMain.Main.init ()) ;
- initialize_everything ()
+ initialize_everything () ;
+ Mquery.close ()
;;
let res s = "<font color=\"brown\">\"" ^ s ^ "\" </font>"
-let nl () = "<br>"
+let nl = "<br>"
-let par () = "<p>"
+let par = "<p>"
(* HTML representation of a query *)
let out_ie (r, b) =
let pos = if b then "HEAD: " else "TAIL: " in
- res (pos ^ str_uref r) ^ nl () ^
- con (pos ^ str_tref (tref_uref r)) ^ nl ()
+ res (pos ^ str_uref r) ^ nl ^
+ con (pos ^ str_tref (tref_uref r)) ^ nl
let rec out_il = function
| [] -> ""
)
)
in
- out_query query ^ nl ()
+ match Mqint.execute query with
+ MQStrUri l ->
+ out_query query ^ nl ^ "Result: " ^ nl ^
+ String.concat nl l ^ nl
+ | MQRefs _ -> assert false (*CSC: ????????????????????????????? *)
in
match Str.split (Str.regexp "[ \t]+") s with
| [] -> ""
- | head :: tail -> par () ^ locate_aux head
+ | head :: tail -> par ^ locate_aux head
+;;
let backward t =
let uil = inspect t in
let til = List.map tie_uie uil in
let query = MQList (build_inter 0 til) in
- par () ^ out_query query ^ nl () (* par () ^ out_il uil ^ *)
+ match Mqint.execute query with
+ MQStrUri l ->
+ par ^ out_query query ^ nl ^ (* ^ par ^ out_il uil ^ *)
+ "Result: " ^ nl ^ String.concat nl l ^ nl
+ | MQRefs _ -> assert false (*CSC: ????????????????????????????? *)
+;;
+
+let init = Mqint.init;;
+let close = Mqint.close;;
val backward : Cic.term -> string (* BACKWARD query building function *)
+val init : unit -> unit
+val close : unit -> unit