src/HOL/Tools/Quotient/quotient_def.ML
changeset 46961 5c6955f487e5
parent 46949 94aa7b81bcf6
child 47091 d5cd13aca90b
--- a/src/HOL/Tools/Quotient/quotient_def.ML	Fri Mar 16 14:46:13 2012 +0100
+++ b/src/HOL/Tools/Quotient/quotient_def.ML	Fri Mar 16 18:20:12 2012 +0100
@@ -106,14 +106,13 @@
     quotient_def (SOME (Binding.name qconst_name, NONE, mx), (Attrib.empty_binding, (lhs, rconst))) ctxt
   end
 
-(* parser and command *)
-val quotdef_parser =
-  Scan.option Parse_Spec.constdecl --
-    Parse.!!! (Parse_Spec.opt_thm_name ":" -- (Parse.term --| @{keyword "is"} -- Parse.term))
+(* command *)
 
 val _ =
-  Outer_Syntax.local_theory "quotient_definition"
+  Outer_Syntax.local_theory @{command_spec "quotient_definition"}
     "definition for constants over the quotient type"
-      Keyword.thy_decl (quotdef_parser >> (snd oo quotient_def_cmd))
+    (Scan.option Parse_Spec.constdecl --
+      Parse.!!! (Parse_Spec.opt_thm_name ":" -- (Parse.term --| @{keyword "is"} -- Parse.term))
+      >> (snd oo quotient_def_cmd))
 
 end; (* structure *)