]> matita.cs.unibo.it Git - helm.git/commitdiff
catch parse error exception and show them to the user during main loop
authorStefano Zacchiroli <zack@upsilon.cc>
Wed, 18 Feb 2004 14:21:27 +0000 (14:21 +0000)
committerStefano Zacchiroli <zack@upsilon.cc>
Wed, 18 Feb 2004 14:21:27 +0000 (14:21 +0000)
helm/ocaml/cic_disambiguation/test_parser.ml

index ff4ae9726e41bac09d7dad80d831d92d54e1d6bd..4937f4ca41bded6e6d2116da541017df1341a8ee 100644 (file)
@@ -61,9 +61,12 @@ let _ =
             print_endline (CicTextualParser2.EnvironmentP3.to_string env));
         flush stdout
       with
+      | CicTextualParser2.Parse_error msg -> prerr_endline msg
+(*
       | Stdpp.Exc_located ((p_start, p_end), exn) ->
         prerr_endline (Printf.sprintf "Exception at character %d-%d: %s"
           p_start p_end (Printexc.to_string exn))
+*)
     done
   with End_of_file ->
     close_in ic