X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_notation%2FcicNotationMatcher.ml;h=91937ed34aa82cb1c90149b031acc42041aad4e3;hb=158ae2efea344421adeaf861905fe6ffa64b9f8c;hp=2ae4fd00e1664976c1fa7fa0e954cc624a79b330;hpb=34113d572c334c351ba66f4b05db503eed4d48f2;p=helm.git diff --git a/helm/ocaml/cic_notation/cicNotationMatcher.ml b/helm/ocaml/cic_notation/cicNotationMatcher.ml index 2ae4fd00e..91937ed34 100644 --- a/helm/ocaml/cic_notation/cicNotationMatcher.ml +++ b/helm/ocaml/cic_notation/cicNotationMatcher.ml @@ -373,19 +373,20 @@ struct Hashtbl.hash mask, tl let mask_of_appl_pattern = function - | GrafiteAst.UriPattern uri -> Uri uri, [] - | GrafiteAst.VarPattern _ -> Blob, [] - | GrafiteAst.ApplPattern pl -> Appl (List.map (fun _ -> Blob) pl), pl + | Pt.UriPattern uri -> Uri uri, [] + | Pt.ImplicitPattern + | Pt.VarPattern _ -> Blob, [] + | Pt.ApplPattern pl -> Appl (List.map (fun _ -> Blob) pl), pl let tag_of_pattern p = let mask, pl = mask_of_appl_pattern p in Hashtbl.hash mask, pl - type pattern_t = GrafiteAst.cic_appl_pattern + type pattern_t = Pt.cic_appl_pattern type term_t = Cic.annterm let classify = function - | GrafiteAst.VarPattern _ -> Variable + | Pt.VarPattern _ -> Variable | _ -> Constructor end @@ -399,7 +400,8 @@ struct List.map2 (fun p t -> match p with - | GrafiteAst.VarPattern name -> name, t + | Pt.ImplicitPattern -> Util.fresh_name (), t + | Pt.VarPattern name -> name, t | _ -> assert false) pl matched_terms in