From a4be186e8ef56a0252450994251b51f97e31de25 Mon Sep 17 00:00:00 2001 From: herbelin Date: Sun, 9 Nov 2003 15:25:58 +0000 Subject: Traduction semantique des InHyp de clause en InHypValue si local def git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@4842 85f007b7-540e-0410-9357-904b9bb8a0f7 --- contrib/interface/xlate.ml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/contrib/interface/xlate.ml b/contrib/interface/xlate.ml index 47370ef135..3d57d24857 100644 --- a/contrib/interface/xlate.ml +++ b/contrib/interface/xlate.ml @@ -401,10 +401,13 @@ let xlate_hyp = function let xlate_hyp_location = function - | InHyp (AI (_,id)) -> CT_coerce_ID_to_ID_OR_INTYPE (xlate_ident id) - | InHyp (MetaId _) -> xlate_error "MetaId should occur only in quotations" - | InHypType(AI (_, id)) -> CT_intype(xlate_ident id) - | InHypType _ -> xlate_error "MetaId not supported in xlate_hyp_location" + | AI (_,id), (InHypTypeOnly,_) -> CT_intype(xlate_ident id) + | AI (_,id), (InHyp,_) when !Options.v7 -> + CT_coerce_ID_to_ID_OR_INTYPE (xlate_ident id) + | AI (_,id), ((InHypValueOnly|InHyp),_) -> + xlate_error "TODO in v8: InHyp now means InHyp if variable but InHypValueOnly if a local definition" + | MetaId _, _ -> + xlate_error "MetaId not supported in xlate_hyp_location (should occur only in quotations)" let xlate_clause l = CT_id_or_intype_list (List.map xlate_hyp_location l) -- cgit v1.2.3