src/Pure/pure.ML
author wenzelm
Wed Feb 03 16:47:37 1999 +0100 (1999-02-03)
changeset 6192 a42dbf1af868
parent 5905 68cdba6c178f
child 6313 6e4c7209ff39
permissions -rw-r--r--
proper setup of preloaded theories (ThyInfo.register_theory);
wenzelm@5092
     1
(*  Title:      Pure/pure.ML
wenzelm@5092
     2
    ID:         $Id$
wenzelm@5092
     3
    Author:     Markus Wenzel, TU Muenchen
wenzelm@5092
     4
wenzelm@6192
     5
Final setup of the Pure theories.
wenzelm@5092
     6
*)
wenzelm@5092
     7
wenzelm@5839
     8
local
wenzelm@5839
     9
  val common_setup =
wenzelm@5839
    10
    ObjectLogic.setup @
wenzelm@5839
    11
    Locale.setup @
wenzelm@5839
    12
    ProofContext.setup @
wenzelm@5839
    13
    Method.setup @
wenzelm@5839
    14
    Attrib.setup;
wenzelm@5839
    15
in
wenzelm@5839
    16
  structure Pure =
wenzelm@5839
    17
  struct
wenzelm@5839
    18
    val thy =
wenzelm@5839
    19
      PureThy.begin_theory "Pure" [ProtoPure.thy]
wenzelm@5839
    20
      |> Theory.add_syntax Syntax.pure_appl_syntax
wenzelm@5905
    21
      |> Library.apply common_setup
wenzelm@5839
    22
      |> PureThy.end_theory;
wenzelm@5839
    23
  end;
wenzelm@5092
    24
wenzelm@5839
    25
  structure CPure =
wenzelm@5839
    26
  struct
wenzelm@5839
    27
    val thy =
wenzelm@5839
    28
      PureThy.begin_theory "CPure" [ProtoPure.thy]
wenzelm@5839
    29
      |> Theory.add_syntax Syntax.pure_applC_syntax
wenzelm@5905
    30
      |> Library.apply common_setup
wenzelm@5863
    31
      |> Theory.copy
wenzelm@5839
    32
      |> PureThy.end_theory;
wenzelm@5839
    33
  end;
wenzelm@5211
    34
end;
wenzelm@5092
    35
wenzelm@6192
    36
ThyInfo.register_theory ProtoPure.thy;
wenzelm@6192
    37
ThyInfo.register_theory Pure.thy;
wenzelm@6192
    38
ThyInfo.register_theory CPure.thy;