]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/matitaEngine.ml
- cic_exportation, cic_acic, acic_content (only parts related to acic)
[helm.git] / matita / matita / matitaEngine.ml
index 03eccc104bcc102517e043e25308756aff6c8a2e..c80405922efa8eab9905065805da10e40f994ad0 100644 (file)
@@ -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