equal
deleted
inserted
replaced
226 val add_partial_function_cmd = gen_add_partial_function Specification.read_spec; |
226 val add_partial_function_cmd = gen_add_partial_function Specification.read_spec; |
227 |
227 |
228 val mode = Parse.$$$ "(" |-- Parse.xname --| Parse.$$$ ")"; |
228 val mode = Parse.$$$ "(" |-- Parse.xname --| Parse.$$$ ")"; |
229 |
229 |
230 val _ = Outer_Syntax.local_theory |
230 val _ = Outer_Syntax.local_theory |
231 "partial_function" "define partial function" Keyword.thy_goal |
231 "partial_function" "define partial function" Keyword.thy_decl |
232 ((mode -- (Parse.fixes -- (Parse.where_ |-- Parse_Spec.spec))) |
232 ((mode -- (Parse.fixes -- (Parse.where_ |-- Parse_Spec.spec))) |
233 >> (fn (mode, (fixes, spec)) => add_partial_function_cmd mode fixes spec)); |
233 >> (fn (mode, (fixes, spec)) => add_partial_function_cmd mode fixes spec)); |
234 |
234 |
235 |
235 |
236 val setup = Mono_Rules.setup; |
236 val setup = Mono_Rules.setup; |