X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2Fmatitac.ml;h=87c30cfea08001eca25930502198dcad170e4468;hb=7deafec4fd4b2eebf4d4061f21ee5c47bd15b062;hp=3f394cdb1108e9dc70158ad99d51c66b714bccc0;hpb=e3c0cc9893402419e363ad6616a599f194438273;p=helm.git diff --git a/helm/matita/matitac.ml b/helm/matita/matitac.ml index 3f394cdb1..87c30cfea 100644 --- a/helm/matita/matitac.ml +++ b/helm/matita/matitac.ml @@ -78,16 +78,20 @@ let disambiguator = ~chooseUris:mono_uris_callback ~chooseInterp:mono_interp_callback () let console = new tty_console -let currentProof = (new MatitaProof.currentProof :> MatitaTypes.currentProof) -let interpreter = - new MatitaInterpreter.interpreter - ~disambiguator ~currentProof ~console ~dbd () +let interpreter = MatitaInterpreter.interpreter ~disambiguator ~console () let run_script fname = message (sprintf "execution of %s started:" fname); let script = let ic = open_in fname in - let ast = snd (CicTextualParser2.parse_script (Stream.of_channel ic)) in + let ast = + try + snd (CicTextualParser2.parse_script (Stream.of_channel ic)) + with + exn -> + error (explain exn); + assert false (* should be something like (Unix.exit 1) *) + in close_in ic; ast in