aboutsummaryrefslogtreecommitdiff
path: root/contrib/interface
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/interface')
-rw-r--r--contrib/interface/name_to_ast.ml2
-rw-r--r--contrib/interface/xlate.ml6
2 files changed, 5 insertions, 3 deletions
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"