equal
deleted
inserted
replaced
11 val parse_ast_translation: bool * (string * Position.T) -> theory -> theory |
11 val parse_ast_translation: bool * (string * Position.T) -> theory -> theory |
12 val parse_translation: bool * (string * Position.T) -> theory -> theory |
12 val parse_translation: bool * (string * Position.T) -> theory -> theory |
13 val print_translation: bool * (string * Position.T) -> theory -> theory |
13 val print_translation: bool * (string * Position.T) -> theory -> theory |
14 val typed_print_translation: bool * (string * Position.T) -> theory -> theory |
14 val typed_print_translation: bool * (string * Position.T) -> theory -> theory |
15 val print_ast_translation: bool * (string * Position.T) -> theory -> theory |
15 val print_ast_translation: bool * (string * Position.T) -> theory -> theory |
16 val token_translation: string * Position.T -> theory -> theory |
|
17 val oracle: bstring -> string -> string * Position.T -> theory -> theory |
16 val oracle: bstring -> string -> string * Position.T -> theory -> theory |
18 val add_axioms: ((bstring * string) * Attrib.src list) list -> theory -> theory |
17 val add_axioms: ((bstring * string) * Attrib.src list) list -> theory -> theory |
19 val add_defs: (bool * bool) * ((bstring * string) * Attrib.src list) list -> theory -> theory |
18 val add_defs: (bool * bool) * ((bstring * string) * Attrib.src list) list -> theory -> theory |
20 val apply_theorems: (Facts.ref * Attrib.src list) list -> theory -> thm list * theory |
19 val apply_theorems: (Facts.ref * Attrib.src list) list -> theory -> thm list * theory |
21 val apply_theorems_i: (thm list * attribute list) list -> theory -> thm list * theory |
20 val apply_theorems_i: (thm list * attribute list) list -> theory -> thm list * theory |
182 ("val typed_print_translation: (string * (" ^ advancedT a ^ |
181 ("val typed_print_translation: (string * (" ^ advancedT a ^ |
183 "bool -> typ -> term list -> term)) list") |
182 "bool -> typ -> term list -> term)) list") |
184 ("Context.map_theory (Sign.add_" ^ advancedN a ^ "trfunsT typed_print_translation)") |
183 ("Context.map_theory (Sign.add_" ^ advancedN a ^ "trfunsT typed_print_translation)") |
185 |> Context.theory_map; |
184 |> Context.theory_map; |
186 |
185 |
187 fun token_translation (txt, pos) = |
|
188 txt |> ML_Context.expression pos |
|
189 "val token_translation: (string * string * (Proof.context -> string -> Pretty.T)) list" |
|
190 "Context.map_theory (Sign.add_tokentrfuns token_translation)" |
|
191 |> Context.theory_map; |
|
192 |
|
193 end; |
186 end; |
194 |
187 |
195 |
188 |
196 (* oracles *) |
189 (* oracles *) |
197 |
190 |