equal
deleted
inserted
replaced
11 val parse_ast_translation: bool * (Symbol_Pos.text * Position.T) -> theory -> theory |
11 val parse_ast_translation: bool * (Symbol_Pos.text * Position.T) -> theory -> theory |
12 val parse_translation: bool * (Symbol_Pos.text * Position.T) -> theory -> theory |
12 val parse_translation: bool * (Symbol_Pos.text * Position.T) -> theory -> theory |
13 val print_translation: bool * (Symbol_Pos.text * Position.T) -> theory -> theory |
13 val print_translation: bool * (Symbol_Pos.text * Position.T) -> theory -> theory |
14 val typed_print_translation: bool * (Symbol_Pos.text * Position.T) -> theory -> theory |
14 val typed_print_translation: bool * (Symbol_Pos.text * Position.T) -> theory -> theory |
15 val print_ast_translation: bool * (Symbol_Pos.text * Position.T) -> theory -> theory |
15 val print_ast_translation: bool * (Symbol_Pos.text * Position.T) -> theory -> theory |
|
16 val add_tyabbrs: (binding * string list * string * mixfix) list -> local_theory -> local_theory |
16 val oracle: bstring * Position.T -> Symbol_Pos.text * Position.T -> theory -> theory |
17 val oracle: bstring * Position.T -> Symbol_Pos.text * Position.T -> theory -> theory |
17 val add_axioms: (Attrib.binding * string) list -> theory -> theory |
18 val add_axioms: (Attrib.binding * string) list -> theory -> theory |
18 val add_defs: (bool * bool) * ((binding * string) * Attrib.src list) list -> theory -> theory |
19 val add_defs: (bool * bool) * ((binding * string) * Attrib.src list) list -> theory -> theory |
19 val declaration: bool -> Symbol_Pos.text * Position.T -> local_theory -> local_theory |
20 val declaration: bool -> Symbol_Pos.text * Position.T -> local_theory -> local_theory |
20 val simproc_setup: string -> string list -> Symbol_Pos.text * Position.T -> string list -> |
21 val simproc_setup: string -> string list -> Symbol_Pos.text * Position.T -> string list -> |
147 |> Context.theory_map; |
148 |> Context.theory_map; |
148 |
149 |
149 end; |
150 end; |
150 |
151 |
151 |
152 |
|
153 (* old-style type abbreviations *) |
|
154 |
|
155 val add_tyabbrs = fold (fn (a, args, rhs, mx) => snd o Typedecl.abbrev_cmd (a, args, mx) rhs); |
|
156 |
|
157 |
152 (* oracles *) |
158 (* oracles *) |
153 |
159 |
154 fun oracle (name, pos) (body_txt, body_pos) = |
160 fun oracle (name, pos) (body_txt, body_pos) = |
155 let |
161 let |
156 val body = Symbol_Pos.content (Symbol_Pos.explode (body_txt, body_pos)); |
162 val body = Symbol_Pos.content (Symbol_Pos.explode (body_txt, body_pos)); |