]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/matitaScript.ml
many strings that are supposed to be URIs are now UriManager.uri
[helm.git] / helm / matita / matitaScript.ml
index 26a0f2487503af6530841f54bc9b3c8cc0c35274..c7859a7c7b96df61e8501b289d146237bc0b5709 100644 (file)
@@ -169,7 +169,7 @@ let eval_macro status (mathviewer:MatitaTypes.mathViewer) urichooser parsed_text
       let term = disambiguate term status in
       let uri =
         match term with
-        | Cic.MutInd (uri,n,_) -> UriManager.string_of_uriref (uri,[n])
+        | Cic.MutInd (uri,n,_) -> UriManager.uri_of_string (UriManager.string_of_uriref (uri,[n]))
         | _ -> failwith "Not a MutInd"
       in
       let l = MQ.elim ~dbd uri in
@@ -195,7 +195,7 @@ let eval_macro status (mathviewer:MatitaTypes.mathViewer) urichooser parsed_text
           (TA.Executable (loc,
             (TA.Tactical (loc, 
                TA.Tactic (loc,
-                 TA.Apply (loc, CicAst.Uri (uri,None))))))) 
+                 TA.Apply (loc, CicAst.Uri (UriManager.string_of_uri uri,None))))))) 
         in
         let new_status = MatitaEngine.eval_ast status ast in
         let extra_text = 
@@ -207,7 +207,7 @@ let eval_macro status (mathviewer:MatitaTypes.mathViewer) urichooser parsed_text
           MatitaLog.error 
             "The result of the urichooser should be only 1 uri, not:\n";
           List.iter (
-            fun u -> MatitaLog.error (u ^ "\n")
+            fun u -> MatitaLog.error (UriManager.string_of_uri u ^ "\n")
           ) selected;
           assert false)
   | TA.Check (_,term) ->