equal
deleted
inserted
replaced
144 val typed_print_translation: string -> theory -> theory |
144 val typed_print_translation: string -> theory -> theory |
145 val print_ast_translation: string -> theory -> theory |
145 val print_ast_translation: string -> theory -> theory |
146 val token_translation: string -> theory -> theory |
146 val token_translation: string -> theory -> theory |
147 val method_setup: bstring * string * string -> theory -> theory |
147 val method_setup: bstring * string * string -> theory -> theory |
148 val add_oracle: bstring * string -> theory -> theory |
148 val add_oracle: bstring * string -> theory -> theory |
149 val add_locale: bstring * Locale.expr * Args.src Locale.element list -> theory -> theory |
149 val add_locale: bstring option option * bstring * Locale.expr * Args.src Locale.element list |
|
150 -> theory -> theory |
150 val begin_theory: string -> string list -> (string * bool) list -> theory |
151 val begin_theory: string -> string list -> (string * bool) list -> theory |
151 val end_theory: theory -> theory |
152 val end_theory: theory -> theory |
152 val kill_theory: string -> unit |
153 val kill_theory: string -> unit |
153 val theory: string * string list * (string * bool) list |
154 val theory: string * string list * (string * bool) list |
154 -> Toplevel.transition -> Toplevel.transition |
155 -> Toplevel.transition -> Toplevel.transition |
568 ("(" ^ quote name ^ ", " ^ txt ^ ")"); |
569 ("(" ^ quote name ^ ", " ^ txt ^ ")"); |
569 |
570 |
570 |
571 |
571 (* add_locale *) |
572 (* add_locale *) |
572 |
573 |
573 fun add_locale (name, import, body) thy = |
574 fun add_locale (pname, name, import, body) thy = |
574 Locale.add_locale name import (map (Locale.attribute (Attrib.local_attribute thy)) body) thy; |
575 Locale.add_locale pname name import |
|
576 (map (Locale.attribute (Attrib.local_attribute thy)) body) thy; |
575 |
577 |
576 |
578 |
577 (* theory init and exit *) |
579 (* theory init and exit *) |
578 |
580 |
579 fun gen_begin_theory upd name parents files = |
581 fun gen_begin_theory upd name parents files = |