src/HOLCF/Tools/fixrec.ML
changeset 33726 0878aecbf119
parent 33671 4b0f2599ed48
child 33766 c679f05600cd
equal deleted inserted replaced
33725:a8481da77270 33726:0878aecbf119
   419 
   419 
   420 local
   420 local
   421 (* code adapted from HOL/Tools/primrec.ML *)
   421 (* code adapted from HOL/Tools/primrec.ML *)
   422 
   422 
   423 fun gen_fixrec
   423 fun gen_fixrec
   424   (set_group : bool)
       
   425   prep_spec
   424   prep_spec
   426   (strict : bool)
   425   (strict : bool)
   427   raw_fixes
   426   raw_fixes
   428   raw_spec
   427   raw_spec
   429   (lthy : local_theory) =
   428   (lthy : local_theory) =
   471     else lthy'
   470     else lthy'
   472   end;
   471   end;
   473 
   472 
   474 in
   473 in
   475 
   474 
   476 val add_fixrec = gen_fixrec false Specification.check_spec;
   475 val add_fixrec = gen_fixrec Specification.check_spec;
   477 val add_fixrec_cmd = gen_fixrec true Specification.read_spec;
   476 val add_fixrec_cmd = gen_fixrec Specification.read_spec;
   478 
   477 
   479 end; (* local *)
   478 end; (* local *)
   480 
   479 
   481 (*************************************************************************)
   480 (*************************************************************************)
   482 (******************************** Fixpat *********************************)
   481 (******************************** Fixpat *********************************)