src/Pure/simplifier.ML
changeset 67146 909dcdec2122
parent 64556 851ae0e7b09c
child 67147 dea94b1aabc3
equal deleted inserted replaced
67145:e77c5bfca9aa 67146:909dcdec2122
   111 fun check_simproc ctxt = Name_Space.check (Context.Proof ctxt) (get_simprocs ctxt) #> #1;
   111 fun check_simproc ctxt = Name_Space.check (Context.Proof ctxt) (get_simprocs ctxt) #> #1;
   112 val the_simproc = Name_Space.get o get_simprocs;
   112 val the_simproc = Name_Space.get o get_simprocs;
   113 
   113 
   114 val _ = Theory.setup
   114 val _ = Theory.setup
   115   (ML_Antiquotation.value @{binding simproc}
   115   (ML_Antiquotation.value @{binding simproc}
   116     (Args.context -- Scan.lift (Parse.position Args.name)
   116     (Args.context -- Scan.lift (Parse.position Args.embedded)
   117       >> (fn (ctxt, name) =>
   117       >> (fn (ctxt, name) =>
   118         "Simplifier.the_simproc ML_context " ^ ML_Syntax.print_string (check_simproc ctxt name))));
   118         "Simplifier.the_simproc ML_context " ^ ML_Syntax.print_string (check_simproc ctxt name))));
   119 
   119 
   120 
   120 
   121 (* define simprocs *)
   121 (* define simprocs *)