21 structure TheoryTarget: THEORY_TARGET = |
21 structure TheoryTarget: THEORY_TARGET = |
22 struct |
22 struct |
23 |
23 |
24 (* new locales *) |
24 (* new locales *) |
25 |
25 |
26 val new_locales = false; |
26 fun locale_extern x = if !new_locales then NewLocale.extern x else Locale.extern x; |
27 |
27 fun locale_add_type_syntax x = if !new_locales then NewLocale.add_type_syntax x else Locale.add_type_syntax x; |
28 fun locale_extern x = if new_locales then NewLocale.extern x else Locale.extern x; |
28 fun locale_add_term_syntax x = if !new_locales then NewLocale.add_term_syntax x else Locale.add_term_syntax x; |
29 fun locale_add_type_syntax x = if new_locales then NewLocale.add_type_syntax x else Locale.add_type_syntax x; |
29 fun locale_add_declaration x = if !new_locales then NewLocale.add_declaration x else Locale.add_declaration x; |
30 fun locale_add_term_syntax x = if new_locales then NewLocale.add_term_syntax x else Locale.add_term_syntax x; |
30 fun locale_add_thmss x = if !new_locales then NewLocale.add_thmss x else Locale.add_thmss x; |
31 fun locale_add_declaration x = if new_locales then NewLocale.add_declaration x else Locale.add_declaration x; |
31 fun locale_init x = if !new_locales then NewLocale.init x else Locale.init x; |
32 fun locale_add_thmss x = if new_locales then NewLocale.add_thmss x else Locale.add_thmss x; |
32 fun locale_intern x = if !new_locales then NewLocale.intern x else Locale.intern x; |
33 fun locale_init x = if new_locales then NewLocale.init x else Locale.init x; |
|
34 fun locale_intern x = if new_locales then NewLocale.intern x else Locale.intern x; |
|
35 |
33 |
36 (* context data *) |
34 (* context data *) |
37 |
35 |
38 datatype target = Target of {target: string, is_locale: bool, |
36 datatype target = Target of {target: string, is_locale: bool, |
39 is_class: bool, instantiation: string list * (string * sort) list * sort, |
37 is_class: bool, instantiation: string list * (string * sort) list * sort, |