src/ZF/Tools/datatype_package.ML
changeset 24867 e5b55d7be9bb
parent 24826 78e6a3cea367
child 24893 b8ef7afe3a6b
equal deleted inserted replaced
24866:6e6d9e80ebb4 24867:e5b55d7be9bb
   420   Scan.optional (P.$$$ "type_elims" |-- P.!!! SpecParse.xthms1) []
   420   Scan.optional (P.$$$ "type_elims" |-- P.!!! SpecParse.xthms1) []
   421   >> (Toplevel.theory o mk_datatype);
   421   >> (Toplevel.theory o mk_datatype);
   422 
   422 
   423 val coind_prefix = if coind then "co" else "";
   423 val coind_prefix = if coind then "co" else "";
   424 
   424 
   425 val inductiveP = OuterSyntax.command (coind_prefix ^ "datatype")
   425 val _ = OuterSyntax.command (coind_prefix ^ "datatype")
   426   ("define " ^ coind_prefix ^ "datatype") K.thy_decl datatype_decl;
   426   ("define " ^ coind_prefix ^ "datatype") K.thy_decl datatype_decl;
   427 
   427 
   428 val _ = OuterSyntax.add_parsers [inductiveP];
       
   429 
       
   430 end;
   428 end;
   431 
   429 
   432 end;
   430 end;
   433 
   431