]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_disambiguation/test_parser.ml
snapshot, almost working
[helm.git] / helm / ocaml / cic_disambiguation / test_parser.ml
index fdab36ef329c589532acbe66bd7b497e75f6a93d..0f6b2d162c07ab05d4fd1b21b21b8e6a26bcad52 100644 (file)
  *)
 
 try
-  let ic = open_in Sys.argv.(1) in
+  let ic =
+    (try
+      open_in Sys.argv.(1)
+    with Invalid_argument _ -> stdin)
+  in
   let term = Parser.parse_term (Stream.of_channel ic) in
   close_in ic;
   print_endline (Pp.pp_term term)