diff options
author | 2005-01-13 14:28:56 +0000 | |
---|---|---|
committer | 2005-01-13 14:28:56 +0000 | |
commit | 0224b036502016e9bd4e8b683af458248fdac4a9 (patch) | |
tree | 6edb63dd6839906dc95c1c1c5ef29a25e1c67673 /contrib/interface/xlate.ml | |
parent | 204ca2560751eaa0fc00f6d5235fc81236855f1b (diff) |
Construct "T with (Definition|Module) id := c" generalized to
"T with (Definition|Module) M1.M2....Mn.id := c" (in the ML style).
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@6582 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'contrib/interface/xlate.ml')
-rw-r--r-- | contrib/interface/xlate.ml | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/contrib/interface/xlate.ml b/contrib/interface/xlate.ml index ea1484d00..3b4af8c7e 100644 --- a/contrib/interface/xlate.ml +++ b/contrib/interface/xlate.ml @@ -1507,12 +1507,13 @@ let rec xlate_module_type = function | CMTEwith(mty, decl) -> let mty1 = xlate_module_type mty in (match decl with - CWith_Definition((_, id), c) -> + CWith_Definition((_, idl), c) -> CT_module_type_with_def(xlate_module_type mty, - xlate_ident id, xlate_formula c) - | CWith_Module((_, id), (_, qid)) -> + CT_id_list (List.map xlate_ident idl), + xlate_formula c) + | CWith_Module((_, idl), (_, qid)) -> CT_module_type_with_mod(xlate_module_type mty, - xlate_ident id, + CT_id_list (List.map xlate_ident idl), CT_ident (xlate_qualid qid)));; let xlate_module_binder_list (l:module_binder list) = |