]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/ng_cic_content/ncic2astMatcher.ml
- oCic2NCic and nCic2OCic moved to ng_library
[helm.git] / helm / software / components / ng_cic_content / ncic2astMatcher.ml
index 41d9aa08c7e08c0609d170e9e726c79b59045777..2245e34295791f082d1e4a451b4c811aba52ba4d 100644 (file)
@@ -28,6 +28,9 @@
 module Ast = CicNotationPt
 module Util = CicNotationUtil
 
+let reference_of_oxuri = ref (fun _ -> assert false);;
+let set_reference_of_oxuri f = reference_of_oxuri := f;;
+
 module Matcher32 =
 struct
   module Pattern32 =
@@ -49,7 +52,7 @@ struct
       Hashtbl.hash mask, tl
 
     let mask_of_appl_pattern = function
-      | Ast.UriPattern uri -> NRef (OCic2NCic.reference_of_oxuri uri), []
+      | Ast.UriPattern uri -> NRef (!reference_of_oxuri uri), []
       | Ast.NRefPattern nref -> NRef nref, []
       | Ast.ImplicitPattern
       | Ast.VarPattern _ -> Blob, []