X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fmathql_test%2Fmqtop.ml;fp=helm%2Focaml%2Fmathql_test%2Fmqtop.ml;h=d601d65f972b788e4537a80cb32432846030d2b5;hb=03dee221bd1f2c9a6e7f74d9abf88be14aac7763;hp=0000000000000000000000000000000000000000;hpb=ab2b9e54afe3a66d7283e6205e63dd48a2733b73;p=helm.git diff --git a/helm/ocaml/mathql_test/mqtop.ml b/helm/ocaml/mathql_test/mqtop.ml new file mode 100644 index 000000000..d601d65f9 --- /dev/null +++ b/helm/ocaml/mathql_test/mqtop.ml @@ -0,0 +1,13 @@ +let _ = + let module U = MQueryUtil in + let module X = MQueryMisc in + let t = X.start_time () in + let ich = Lexing.from_channel stdin in + let rec aux () = + let t = X.start_time () in + U.text_of_query print_string (U.query_of_text ich) "\n"; + Printf.printf "mqtop: query: %s\n" (X.stop_time t); + flush stdout; aux() + in + begin try aux() with End_of_file -> () end; + Printf.printf "mqtop: done: %s\n" (X.stop_time t)