equal
deleted
inserted
replaced
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 *) |