equal
deleted
inserted
replaced
15 val print_ast_translation: Input.source -> theory -> theory |
15 val print_ast_translation: Input.source -> theory -> theory |
16 val translations: (xstring * string) Syntax.trrule list -> theory -> theory |
16 val translations: (xstring * string) Syntax.trrule list -> theory -> theory |
17 val no_translations: (xstring * string) Syntax.trrule list -> theory -> theory |
17 val no_translations: (xstring * string) Syntax.trrule list -> theory -> theory |
18 val oracle: bstring * Position.range -> Input.source -> theory -> theory |
18 val oracle: bstring * Position.range -> Input.source -> theory -> theory |
19 val declaration: {syntax: bool, pervasive: bool} -> Input.source -> local_theory -> local_theory |
19 val declaration: {syntax: bool, pervasive: bool} -> Input.source -> local_theory -> local_theory |
20 val simproc_setup: string * Position.T -> string list -> Input.source -> |
20 val simproc_setup: string * Position.T -> string list -> Input.source -> bool -> |
21 local_theory -> local_theory |
21 local_theory -> local_theory |
22 val qed: Method.text_range option -> Toplevel.transition -> Toplevel.transition |
22 val qed: Method.text_range option -> Toplevel.transition -> Toplevel.transition |
23 val terminal_proof: Method.text_range * Method.text_range option -> |
23 val terminal_proof: Method.text_range * Method.text_range option -> |
24 Toplevel.transition -> Toplevel.transition |
24 Toplevel.transition -> Toplevel.transition |
25 val default_proof: Toplevel.transition -> Toplevel.transition |
25 val default_proof: Toplevel.transition -> Toplevel.transition |
136 |> Context.proof_map; |
136 |> Context.proof_map; |
137 |
137 |
138 |
138 |
139 (* simprocs *) |
139 (* simprocs *) |
140 |
140 |
141 fun simproc_setup name lhss source = |
141 fun simproc_setup name lhss source passive = |
142 ML_Context.expression (Input.pos_of source) |
142 ML_Context.expression (Input.pos_of source) |
143 (ML_Lex.read |
143 (ML_Lex.read |
144 ("Theory.local_setup (Simplifier.define_simproc_cmd (" ^ |
144 ("Theory.local_setup (Simplifier.define_simproc_cmd (" ^ |
145 ML_Syntax.make_binding name ^ ") {lhss = " ^ ML_Syntax.print_strings lhss ^ |
145 ML_Syntax.make_binding name ^ ") {lhss = " ^ ML_Syntax.print_strings lhss ^ |
|
146 ", passive = " ^ Bool.toString passive ^ |
146 ", proc = (") @ ML_Lex.read_source source @ ML_Lex.read ")})") |
147 ", proc = (") @ ML_Lex.read_source source @ ML_Lex.read ")})") |
147 |> Context.proof_map; |
148 |> Context.proof_map; |
148 |
149 |
149 |
150 |
150 (* local endings *) |
151 (* local endings *) |