X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fcomponents%2Fcontent%2Finterpretations.ml;h=7e85d0fc1acd7fa061de8137f305b15e77288cc2;hb=f6b7c6ae353e014761a3d24dbc87e00d828d7f2d;hp=c7bfa576804b19621429f46f9556a4158b1db350;hpb=8a660ee06d72cfee52c707bb1d8d8be3bab0d682;p=helm.git diff --git a/matita/components/content/interpretations.ml b/matita/components/content/interpretations.ml index c7bfa5768..7e85d0fc1 100644 --- a/matita/components/content/interpretations.ml +++ b/matita/components/content/interpretations.ml @@ -28,7 +28,6 @@ open Printf module Ast = NotationPt -module Obj = LibraryObjects let debug = false let debug_print s = if debug then prerr_endline (Lazy.force s) else () @@ -37,9 +36,11 @@ type interpretation_id = int let idref id t = Ast.AttributedTerm (`IdRef id, t) +type cic_id = string + type term_info = - { sort: (Cic.id, Ast.sort_kind) Hashtbl.t; - uri: (Cic.id, UriManager.uri) Hashtbl.t; + { sort: (cic_id, Ast.sort_kind) Hashtbl.t; + uri: (cic_id, NReference.reference) Hashtbl.t; } (* persistent state *) @@ -187,7 +188,7 @@ let remove_interpretation id = let init () = List.iter (fun f -> f []) !load_patterns32s let instantiate_appl_pattern - ~mk_appl ~mk_implicit ~term_of_uri ~term_of_nref env appl_pattern + ~mk_appl ~mk_implicit ~term_of_nref env appl_pattern = let lookup name = try List.assoc name env @@ -196,7 +197,6 @@ let instantiate_appl_pattern assert false in let rec aux = function - | Ast.UriPattern uri -> term_of_uri uri | Ast.NRefPattern nref -> term_of_nref nref | Ast.ImplicitPattern -> mk_implicit false | Ast.VarPattern name -> lookup name