src/ZF/Tools/inductive_package.ML
changeset 46947 b8c7eb0c2f89
parent 46215 0da9433f959e
child 46949 94aa7b81bcf6
equal deleted inserted replaced
46946:acc8ebf980ca 46947:b8c7eb0c2f89
   574   end;
   574   end;
   575 
   575 
   576 
   576 
   577 (* outer syntax *)
   577 (* outer syntax *)
   578 
   578 
   579 val _ = List.app Keyword.keyword
       
   580   ["domains", "intros", "monos", "con_defs", "type_intros", "type_elims"];
       
   581 
       
   582 fun mk_ind (((((doms, intrs), monos), con_defs), type_intrs), type_elims) =
   579 fun mk_ind (((((doms, intrs), monos), con_defs), type_intrs), type_elims) =
   583   #1 o add_inductive doms (map Parse.triple_swap intrs) (monos, con_defs, type_intrs, type_elims);
   580   #1 o add_inductive doms (map Parse.triple_swap intrs) (monos, con_defs, type_intrs, type_elims);
   584 
   581 
   585 val ind_decl =
   582 val ind_decl =
   586   (Parse.$$$ "domains" |-- Parse.!!! (Parse.enum1 "+" Parse.term --
   583   (Parse.$$$ "domains" |-- Parse.!!! (Parse.enum1 "+" Parse.term --