From 5b318ca418ef27d1bf2b155bebbf2425f65b4f1f Mon Sep 17 00:00:00 2001 From: herbelin Date: Thu, 17 Apr 2003 15:01:24 +0000 Subject: Ajout "at next level" dans Notation Mise en place structure pour définir un objet en même temps que sa notation git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@3939 85f007b7-540e-0410-9357-904b9bb8a0f7 --- contrib/interface/name_to_ast.ml | 2 +- contrib/interface/xlate.ml | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'contrib/interface') diff --git a/contrib/interface/name_to_ast.ml b/contrib/interface/name_to_ast.ml index ed69806578..ff361e8f4e 100644 --- a/contrib/interface/name_to_ast.ml +++ b/contrib/interface/name_to_ast.ml @@ -116,7 +116,7 @@ let convert_one_inductive sp tyi = let env = Global.env () in let envpar = push_rel_context params env in let sp = sp_of_global (IndRef (sp, tyi)) in - (basename sp, + (basename sp, None, convert_env(List.rev params), (extern_constr true envpar arity), convert_constructors envpar cstrnames cstrtypes);; diff --git a/contrib/interface/xlate.ml b/contrib/interface/xlate.ml index 07deebf4af..5692f780dd 100644 --- a/contrib/interface/xlate.ml +++ b/contrib/interface/xlate.ml @@ -1536,10 +1536,12 @@ let xlate_vernac = *) | VernacInductive (isind, lmi) -> let co_or_ind = if isind then "Inductive" else "CoInductive" in - let strip_mutind (s, parameters, c, constructors) = + let strip_mutind (s, notopt, parameters, c, constructors) = + if notopt = None then CT_ind_spec (xlate_ident s, cvt_vernac_binders parameters, xlate_formula c, - build_constructors constructors) in + build_constructors constructors) + else xlate_error "TODO: Notation in Inductive" in CT_mind_decl (CT_co_ind co_or_ind, CT_ind_spec_list (List.map strip_mutind lmi)) | VernacFixpoint [] -> xlate_error "mutual recursive" -- cgit v1.2.3