src/HOL/Tools/Function/function_common.ML
changeset 63183 4d04e14d7ab8
parent 63064 2f18172214c8
child 65387 5dbe02addca5
equal deleted inserted replaced
63182:b065b4833092 63183:4d04e14d7ab8
    97   val transform_function_data : morphism -> info -> info
    97   val transform_function_data : morphism -> info -> info
    98   val import_function_data : term -> Proof.context -> info option
    98   val import_function_data : term -> Proof.context -> info option
    99   val import_last_function : Proof.context -> info option
    99   val import_last_function : Proof.context -> info option
   100   val default_config : function_config
   100   val default_config : function_config
   101   val function_parser : function_config ->
   101   val function_parser : function_config ->
   102     ((function_config * (binding * string option * mixfix) list) *
   102     (function_config * ((binding * string option * mixfix) list * Specification.multi_specs_cmd)) parser
   103       Specification.multi_specs_cmd) parser
       
   104 end
   103 end
   105 
   104 
   106 structure Function_Common : FUNCTION_COMMON =
   105 structure Function_Common : FUNCTION_COMMON =
   107 struct
   106 struct
   108 
   107 
   372   fun config_parser default =
   371   fun config_parser default =
   373     (Scan.optional (@{keyword "("} |-- Parse.!!! (Parse.list1 option_parser) --| @{keyword ")"}) [])
   372     (Scan.optional (@{keyword "("} |-- Parse.!!! (Parse.list1 option_parser) --| @{keyword ")"}) [])
   374      >> (fn opts => fold apply_opt opts default)
   373      >> (fn opts => fold apply_opt opts default)
   375 in
   374 in
   376   fun function_parser default_cfg =
   375   fun function_parser default_cfg =
   377       config_parser default_cfg -- Parse.fixes -- Parse_Spec.where_multi_specs
   376       config_parser default_cfg -- Parse_Spec.specification
   378 end
   377 end
   379 
   378 
   380 
   379 
   381 end
   380 end
   382 end
   381 end