X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=matita%2Fmatita%2FmatitaEngine.ml;h=ab357e5c356e72d5001605ec87bc005448746692;hb=729e08f5fb86b3ffee460fda4577b024ab5888aa;hp=03eccc104bcc102517e043e25308756aff6c8a2e;hpb=0fde70bd19b8fdfa72b807b9713a02ad1bd91b5b;p=helm.git diff --git a/matita/matita/matitaEngine.ml b/matita/matita/matitaEngine.ml index 03eccc104..ab357e5c3 100644 --- a/matita/matita/matitaEngine.ml +++ b/matita/matita/matitaEngine.ml @@ -40,6 +40,7 @@ let disambiguate_command lexicon_status_ref grafite_status cmd = grafite_status,cmd let eval_macro_screenshot (status : GrafiteTypes.status) name = + assert false (* MATITA 1.0 let _,_,metasenv,subst,_ = status#obj in let sequent = List.hd metasenv in let mathml = @@ -56,6 +57,7 @@ let eval_macro_screenshot (status : GrafiteTypes.status) name = Filename.quote (name^".png"))); HLog.debug ("generated " ^ name ^ ".png"); status, `New [] + *) ;; let eval_ast ?do_heavy_checks status (text,prefix_len,ast) = @@ -63,15 +65,8 @@ let eval_ast ?do_heavy_checks status (text,prefix_len,ast) = let lexicon_status_ref = ref (status :> LexiconEngine.status) in let baseuri = status#baseuri in let new_status,new_objs = - match ast with - | G.Executable (_, G.Command (_, G.Coercion _)) when dump -> -(* FG: some commands can not be executed when mmas are parsed *************) -(* To be removed when mmas will be executed *) - status, `Old [] - | ast -> GrafiteEngine.eval_ast ~disambiguate_command:(disambiguate_command lexicon_status_ref) - ~disambiguate_macro:((* MATITA 1.0*) fun _ -> assert false) ?do_heavy_checks status (text,prefix_len,ast) in let new_status = @@ -87,18 +82,11 @@ let eval_ast ?do_heavy_checks status (text,prefix_len,ast) = let v = LexiconAst.description_of_alias value in let b = try - (* this hack really sucks! *) - UriManager.buri_of_uri (UriManager.uri_of_string v) = baseuri + let NReference.Ref (uri,_) = NReference.reference_of_string v in + NUri.baseuri_of_uri uri = baseuri with - UriManager.IllFormedUri _ -> - try - (* this too! *) - let NReference.Ref (uri,_) = NReference.reference_of_string v in - let ouri = NCic2OCic.ouri_of_nuri uri in - UriManager.buri_of_uri ouri = baseuri - with - NReference.IllFormedReference _ -> - false (* v is a description, not a URI *) + NReference.IllFormedReference _ -> + false (* v is a description, not a URI *) in if b then status,acc