equal
deleted
inserted
replaced
133 -> Toplevel.transition -> Toplevel.transition |
133 -> Toplevel.transition -> Toplevel.transition |
134 val finally: ((string * Args.src list) list * Comment.interest) option * Comment.text |
134 val finally: ((string * Args.src list) list * Comment.interest) option * Comment.text |
135 -> Toplevel.transition -> Toplevel.transition |
135 -> Toplevel.transition -> Toplevel.transition |
136 val finally_i: (thm list * Comment.interest) option * Comment.text |
136 val finally_i: (thm list * Comment.interest) option * Comment.text |
137 -> Toplevel.transition -> Toplevel.transition |
137 -> Toplevel.transition -> Toplevel.transition |
138 val use_mltext: string -> theory option -> theory option |
138 val use_mltext: string -> bool -> theory option -> unit |
139 val use_mltext_theory: string -> theory -> theory |
139 val use_mltext_theory: string -> bool -> theory -> theory |
140 val use_setup: string -> theory -> theory |
140 val use_setup: string -> theory -> theory |
141 val parse_ast_translation: string -> theory -> theory |
141 val parse_ast_translation: string -> theory -> theory |
142 val parse_translation: string -> theory -> theory |
142 val parse_translation: string -> theory -> theory |
143 val print_translation: string -> theory -> theory |
143 val print_translation: string -> theory -> theory |
144 val typed_print_translation: string -> theory -> theory |
144 val typed_print_translation: string -> theory -> theory |
429 end; |
429 end; |
430 |
430 |
431 |
431 |
432 (* use ML text *) |
432 (* use ML text *) |
433 |
433 |
434 fun use_mltext txt opt_thy = #2 (Context.pass opt_thy (use_text false) txt); |
434 fun use_mltext txt verb opt_thy = Context.setmp opt_thy (use_text verb) txt; |
435 fun use_mltext_theory txt thy = #2 (Context.pass_theory thy (use_text false) txt); |
435 fun use_mltext_theory txt verb thy = #2 (Context.pass_theory thy (use_text verb) txt); |
436 |
436 |
437 fun use_context txt = use_mltext_theory ("Context.>> (" ^ txt ^ ");"); |
437 fun use_context txt = use_mltext_theory ("Context.>> (" ^ txt ^ ");") false; |
438 |
438 |
439 fun use_let name body txt = |
439 fun use_let name body txt = |
440 use_context ("let val " ^ name ^ " = " ^ txt ^ " in\n" ^ body ^ " end"); |
440 use_context ("let val " ^ name ^ " = " ^ txt ^ " in\n" ^ body ^ " end"); |
441 |
441 |
442 val use_setup = |
442 val use_setup = |