src/HOL/Tools/split_rule.ML
changeset 30528 7173bf123335
parent 29265 5b4247055bd7
child 30722 623d4831c8cf
--- a/src/HOL/Tools/split_rule.ML	Sun Mar 15 15:59:44 2009 +0100
+++ b/src/HOL/Tools/split_rule.ML	Sun Mar 15 15:59:44 2009 +0100
@@ -145,18 +145,17 @@
 
 (* FIXME dynamically scoped due to Args.name_source/pair_tac *)
 
-val split_format = Attrib.syntax (Scan.lift
+val split_format = Scan.lift
  (Args.parens (Args.$$$ "complete") >> K (Thm.rule_attribute (K complete_split_rule)) ||
   OuterParse.and_list1 (Scan.repeat Args.name_source)
     >> (fn xss => Thm.rule_attribute (fn context =>
-        split_rule_goal (Context.proof_of context) xss))));
+        split_rule_goal (Context.proof_of context) xss)));
 
 val setup =
-  Attrib.add_attributes
-    [("split_format", split_format,
-      "split pair-typed subterms in premises, or function arguments"),
-     ("split_rule", Attrib.no_args (Thm.rule_attribute (K split_rule)),
-      "curries ALL function variables occurring in a rule's conclusion")];
+  Attrib.setup @{binding split_format} split_format
+    "split pair-typed subterms in premises, or function arguments" #>
+  Attrib.setup @{binding split_rule} (Scan.succeed (Thm.rule_attribute (K split_rule)))
+    "curries ALL function variables occurring in a rule's conclusion";
 
 end;