equal
deleted
inserted
replaced
231 Local_Theory.declaration {syntax = true, pervasive = false} |
231 Local_Theory.declaration {syntax = true, pervasive = false} |
232 (adhoc_overloading_cmd' add args) lthy |
232 (adhoc_overloading_cmd' add args) lthy |
233 end; |
233 end; |
234 |
234 |
235 val _ = |
235 val _ = |
236 Outer_Syntax.local_theory @{command_spec "adhoc_overloading"} |
236 Outer_Syntax.local_theory @{command_keyword adhoc_overloading} |
237 "add adhoc overloading for constants / fixed variables" |
237 "add adhoc overloading for constants / fixed variables" |
238 (Parse.and_list1 (Parse.const -- Scan.repeat Parse.term) >> adhoc_overloading_cmd true); |
238 (Parse.and_list1 (Parse.const -- Scan.repeat Parse.term) >> adhoc_overloading_cmd true); |
239 |
239 |
240 val _ = |
240 val _ = |
241 Outer_Syntax.local_theory @{command_spec "no_adhoc_overloading"} |
241 Outer_Syntax.local_theory @{command_keyword no_adhoc_overloading} |
242 "delete adhoc overloading for constants / fixed variables" |
242 "delete adhoc overloading for constants / fixed variables" |
243 (Parse.and_list1 (Parse.const -- Scan.repeat Parse.term) >> adhoc_overloading_cmd false); |
243 (Parse.and_list1 (Parse.const -- Scan.repeat Parse.term) >> adhoc_overloading_cmd false); |
244 |
244 |
245 end; |
245 end; |
246 |
246 |