X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fmatita%2FmatitaEngine.ml;h=c80405922efa8eab9905065805da10e40f994ad0;hb=b8dac1f8f6b664b78e58c152cd3960e121713f5d;hp=03eccc104bcc102517e043e25308756aff6c8a2e;hpb=0fde70bd19b8fdfa72b807b9713a02ad1bd91b5b;p=helm.git diff --git a/matita/matita/matitaEngine.ml b/matita/matita/matitaEngine.ml index 03eccc104..c80405922 100644 --- a/matita/matita/matitaEngine.ml +++ b/matita/matita/matitaEngine.ml @@ -67,7 +67,7 @@ let eval_ast ?do_heavy_checks status (text,prefix_len,ast) = | 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 [] + status, `New [] | ast -> GrafiteEngine.eval_ast ~disambiguate_command:(disambiguate_command lexicon_status_ref) @@ -87,18 +87,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