equal
deleted
inserted
replaced
1141 |
1141 |
1142 val parse_ctr_specs = Parse.enum1 "|" (parse_ctr_spec Parse.term Parse.binding); |
1142 val parse_ctr_specs = Parse.enum1 "|" (parse_ctr_spec Parse.term Parse.binding); |
1143 val parse_sel_default_eqs = Scan.optional (@{keyword "where"} |-- Parse.enum1 "|" Parse.prop) []; |
1143 val parse_sel_default_eqs = Scan.optional (@{keyword "where"} |-- Parse.enum1 "|" Parse.prop) []; |
1144 |
1144 |
1145 val _ = |
1145 val _ = |
1146 Outer_Syntax.local_theory_to_proof @{command_spec "free_constructors"} |
1146 Outer_Syntax.local_theory_to_proof @{command_keyword free_constructors} |
1147 "register an existing freely generated type's constructors" |
1147 "register an existing freely generated type's constructors" |
1148 (parse_ctr_options -- Parse.binding --| @{keyword "for"} -- parse_ctr_specs |
1148 (parse_ctr_options -- Parse.binding --| @{keyword "for"} -- parse_ctr_specs |
1149 -- parse_sel_default_eqs |
1149 -- parse_sel_default_eqs |
1150 >> free_constructors_cmd Unknown); |
1150 >> free_constructors_cmd Unknown); |
1151 |
1151 |