X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=components%2Fgrafite%2FgrafiteMarshal.ml;h=056b1225d1c2c14cf3de6343fab6472f7598f875;hb=cd91767a396b7bbc72e6e3ee90a3b758421f935d;hp=2b1ed9dbaafb6765e1acc78f04b4770fcc1b4e6e;hpb=2499f5fdcf4dbfecc6f4fafe925b24ae76f14be8;p=helm.git diff --git a/components/grafite/grafiteMarshal.ml b/components/grafite/grafiteMarshal.ml index 2b1ed9dba..056b1225d 100644 --- a/components/grafite/grafiteMarshal.ml +++ b/components/grafite/grafiteMarshal.ml @@ -25,7 +25,7 @@ (* $Id$ *) -type ast_command = Cic.obj GrafiteAst.command +type ast_command = (Cic.term,Cic.obj) GrafiteAst.command type moo = ast_command list let format_name = "grafite" @@ -46,10 +46,13 @@ let rehash_cmd_uris = GrafiteAst.Default (loc, name, uris) | GrafiteAst.Coercion (loc, uri, close, arity) -> GrafiteAst.Coercion (loc, rehash_uri uri, close, arity) + | GrafiteAst.Index (loc, key, uri) -> + GrafiteAst.Index (loc, HExtlib.map_option CicUtil.rehash_term key, rehash_uri uri) | cmd -> prerr_endline "Found a command not expected in a .moo:"; + let term_pp _ = assert false in let obj_pp _ = assert false in - prerr_endline (GrafiteAstPp.pp_command ~obj_pp cmd); + prerr_endline (GrafiteAstPp.pp_command ~term_pp ~obj_pp cmd); assert false let save_moo ~fname moo = save_moo_to_file ~fname (List.rev moo)