-mqgtop.cmo: mQGTopLexer.cmo mQGTopParser.cmi
-mqgtop.cmx: mQGTopLexer.cmx mQGTopParser.cmx
mQGTopParser.cmo: mQGTopParser.cmi
mQGTopParser.cmx: mQGTopParser.cmi
mQGTopLexer.cmo: mQGTopParser.cmi
BIN_DIR = /usr/local/bin
REQUIRES = unix helm-cic_textual_parser \
- helm-mathql helm-mathql_interpreter helm-mathql_generator
+ helm-mathql helm-mathql_interpreter
+#helm-mathql_generator
PREDICATES =
OCAMLOPTIONS = -package "$(REQUIRES)" -predicates "$(PREDICATES)"
OCAMLC = ocamlfind ocamlc $(OCAMLOPTIONS)
MQITOP = mqitop.ml
MQGTOP = mqgtop.ml
-DEPOBJS = $(MQTOP) $(MQITOP) $(MQGTOP)
+DEPOBJS = $(MQTOP) $(MQITOP)
+# $(MQGTOP)
AUXOBJS = mQGTopParser.ml mQGTopParser.mli mQGTopLexer.ml
all: $(DEPOBJS:.ml=)
module U = MQueryUtil
module I = MQueryInterpreter
module C = MQIConn
+module F = MQueryIO
let _ =
let t = U.start_time () in
end;
let rec aux () =
let t = U.start_time () in
- let r = I.execute handle (U.query_of_text ich) in
-(* U.text_of_result log r "\n";
-*) Printf.printf "mqitop: query: %s,%i\n" (U.stop_time t) (List.length r);
- flush stdout; aux()
+ let r = I.execute handle (F.query_of_text ich) in
+(* F.text_of_result log r "\n";
+*) Printf.eprintf "mqitop: query: %s,%i\n" (U.stop_time t) (List.length r);
+ flush stderr; aux()
in
begin try aux() with End_of_file -> () end;
C.close handle;
- Printf.printf "mqitop: done: %s\n" (U.stop_time t)
+ Printf.eprintf "mqitop: done: %s\n" (U.stop_time t)
let _ =
let module U = MQueryUtil in
+ let module F = MQueryIO in
let t = U.start_time () in
let ich = Lexing.from_channel stdin in
let rec aux () =
let t = U.start_time () in
- U.text_of_query print_string (U.query_of_text ich) "\n";
- Printf.printf "mqtop: query: %s\n" (U.stop_time t);
- flush stdout; aux()
+ F.text_of_query print_string "\n" (F.query_of_text ich); flush stdout;
+ Printf.eprintf "mqtop: query: %s\n" (U.stop_time t);
+ flush stderr; aux()
in
begin try aux() with End_of_file -> () end;
- Printf.printf "mqtop: done: %s\n" (U.stop_time t)
+ Printf.eprintf "mqtop: done: %s\n" (U.stop_time t)