src/HOL/Tools/Datatype/primrec.ML
changeset 46961 5c6955f487e5
parent 45898 b619242b0439
child 54742 7a86358a3c0b
equal deleted inserted replaced
46960:f19e5837ad69 46961:5c6955f487e5
   308 
   308 
   309 
   309 
   310 (* outer syntax *)
   310 (* outer syntax *)
   311 
   311 
   312 val _ =
   312 val _ =
   313   Outer_Syntax.local_theory "primrec" "define primitive recursive functions on datatypes"
   313   Outer_Syntax.local_theory @{command_spec "primrec"}
   314     Keyword.thy_decl
   314     "define primitive recursive functions on datatypes"
   315     (Parse.fixes -- Parse_Spec.where_alt_specs
   315     (Parse.fixes -- Parse_Spec.where_alt_specs
   316       >> (fn (fixes, specs) => add_primrec_cmd fixes specs #> snd));
   316       >> (fn (fixes, specs) => add_primrec_cmd fixes specs #> snd));
   317 
   317 
   318 end;
   318 end;