src/Pure/Isar/isar_cmd.ML
changeset 42464 ae16b8abf1a8
parent 42425 2aa907d5ee4f
child 43560 d1650e3720fd
--- a/src/Pure/Isar/isar_cmd.ML	Sat Apr 23 13:00:19 2011 +0200
+++ b/src/Pure/Isar/isar_cmd.ML	Sat Apr 23 13:53:09 2011 +0200
@@ -20,8 +20,8 @@
   val add_defs: (bool * bool) * ((binding * string) * Attrib.src list) list -> theory -> theory
   val declaration: {syntax: bool, pervasive: bool} ->
     Symbol_Pos.text * Position.T -> local_theory -> local_theory
-  val simproc_setup: string -> string list -> Symbol_Pos.text * Position.T -> string list ->
-    local_theory -> local_theory
+  val simproc_setup: string * Position.T -> string list -> Symbol_Pos.text * Position.T ->
+    string list -> local_theory -> local_theory
   val hide_class: bool -> xstring list -> theory -> theory
   val hide_type: bool -> xstring list -> theory -> theory
   val hide_const: bool -> xstring list -> theory -> theory
@@ -214,7 +214,7 @@
   ML_Lex.read pos txt
   |> ML_Context.expression pos
     "val proc: Morphism.morphism -> Simplifier.simpset -> cterm -> thm option"
-    ("Context.map_proof (Simplifier.def_simproc {name = " ^ ML_Syntax.print_string name ^ ", \
+    ("Context.map_proof (Simplifier.def_simproc_cmd {name = " ^ ML_Syntax.make_binding name ^ ", \
       \lhss = " ^ ML_Syntax.print_strings lhss ^ ", proc = proc, \
       \identifier = Library.maps ML_Context.thms " ^ ML_Syntax.print_strings identifier ^ "})")
   |> Context.proof_map;