5092
|
1 |
(* Title: Pure/pure.ML
|
|
2 |
ID: $Id$
|
|
3 |
Author: Markus Wenzel, TU Muenchen
|
|
4 |
|
5211
|
5 |
Setup the actual Pure and CPure theories.
|
5092
|
6 |
*)
|
|
7 |
|
|
8 |
structure Pure =
|
|
9 |
struct
|
5211
|
10 |
val thy =
|
|
11 |
PureThy.begin_theory "Pure" [ProtoPure.thy]
|
|
12 |
|> Theory.add_syntax Syntax.pure_appl_syntax
|
5247
|
13 |
|> Theory.apply Locale.setup
|
5211
|
14 |
|> PureThy.end_theory;
|
5092
|
15 |
end;
|
|
16 |
|
|
17 |
structure CPure =
|
|
18 |
struct
|
5211
|
19 |
val thy =
|
|
20 |
PureThy.begin_theory "CPure" [ProtoPure.thy]
|
|
21 |
|> Theory.add_syntax Syntax.pure_applC_syntax
|
5247
|
22 |
|> Theory.apply Locale.setup
|
5211
|
23 |
|> PureThy.end_theory;
|
|
24 |
end;
|
5092
|
25 |
|
5211
|
26 |
ThyInfo.loaded_thys :=
|
|
27 |
(Symtab.make (map ThyInfo.mk_info
|
|
28 |
[("ProtoPure", ["Pure", "CPure"], [], ProtoPure.thy),
|
|
29 |
("Pure", [], ["ProtoPure"], Pure.thy),
|
|
30 |
("CPure", [], ["ProtoPure"], CPure.thy)]));
|