equal
deleted
inserted
replaced
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; |