src/Tools/Code/code_runtime.ML
changeset 46961 5c6955f487e5
parent 46949 94aa7b81bcf6
child 47609 b3dab1892cda
--- a/src/Tools/Code/code_runtime.ML	Fri Mar 16 14:46:13 2012 +0100
+++ b/src/Tools/Code/code_runtime.ML	Fri Mar 16 18:20:12 2012 +0100
@@ -352,13 +352,14 @@
 in
 
 val _ =
-  Outer_Syntax.command "code_reflect" "enrich runtime environment with generated code"
-    Keyword.thy_decl (Parse.name -- Scan.optional (@{keyword "datatypes"} |-- (parse_datatype
+  Outer_Syntax.command @{command_spec "code_reflect"}
+    "enrich runtime environment with generated code"
+    (Parse.name -- Scan.optional (@{keyword "datatypes"} |-- (parse_datatype
       ::: Scan.repeat (@{keyword "and"} |-- parse_datatype))) []
     -- Scan.optional (@{keyword "functions"} |-- Scan.repeat1 Parse.name) []
     -- Scan.option (@{keyword "file"} |-- Parse.name)
-  >> (fn (((module_name, raw_datatypes), raw_functions), some_file) => Toplevel.theory
-    (code_reflect_cmd raw_datatypes raw_functions module_name some_file)));
+    >> (fn (((module_name, raw_datatypes), raw_functions), some_file) => Toplevel.theory
+      (code_reflect_cmd raw_datatypes raw_functions module_name some_file)));
 
 end; (*local*)