src/Pure/Thy/ROOT.ML
author clasohm
Wed, 04 Oct 1995 12:57:50 +0100
changeset 1261 af4107a03150
parent 1242 b3f68a644380
child 1291 e173be970d27
permissions -rw-r--r--
changed usage of structure Simplifier
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
390
b074205ac50a *** empty log message ***
wenzelm
parents: 74
diff changeset
     1
(*  Title:      Pure/Thy/ROOT.ML
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     2
    ID:         $Id$
390
b074205ac50a *** empty log message ***
wenzelm
parents: 74
diff changeset
     3
    Author:     Sonia Mahjoub and Tobias Nipkow and
b074205ac50a *** empty log message ***
wenzelm
parents: 74
diff changeset
     4
                Markus Wenzel and Carsten Clasohm, TU Muenchen
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     5
390
b074205ac50a *** empty log message ***
wenzelm
parents: 74
diff changeset
     6
This file builds the theory parser and autoloading system.
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     7
*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     8
390
b074205ac50a *** empty log message ***
wenzelm
parents: 74
diff changeset
     9
use "thy_scan.ML";
b074205ac50a *** empty log message ***
wenzelm
parents: 74
diff changeset
    10
use "thy_parse.ML";
b074205ac50a *** empty log message ***
wenzelm
parents: 74
diff changeset
    11
b074205ac50a *** empty log message ***
wenzelm
parents: 74
diff changeset
    12
structure ThyScan = ThyScanFun(Scanner);
b074205ac50a *** empty log message ***
wenzelm
parents: 74
diff changeset
    13
structure ThyParse = ThyParseFun(structure Symtab = Symtab
b074205ac50a *** empty log message ***
wenzelm
parents: 74
diff changeset
    14
  and ThyScan = ThyScan);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    15
413
2a1554524ad5 removed garbage;
wenzelm
parents: 390
diff changeset
    16
use "thy_syn.ML";
1132
dfb29abcf3c2 added theorem database which contains axioms and theorems indexed by the
clasohm
parents: 1078
diff changeset
    17
use "thm_database.ML";
1242
b3f68a644380 added cleanup of global simpset to thy_read;
clasohm
parents: 1221
diff changeset
    18
use "../../Provers/simplifier.ML";
1261
af4107a03150 changed usage of structure Simplifier
clasohm
parents: 1242
diff changeset
    19
af4107a03150 changed usage of structure Simplifier
clasohm
parents: 1242
diff changeset
    20
structure Simplifier = SimplifierFun();
af4107a03150 changed usage of structure Simplifier
clasohm
parents: 1242
diff changeset
    21
413
2a1554524ad5 removed garbage;
wenzelm
parents: 390
diff changeset
    22
use "thy_read.ML";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    23
413
2a1554524ad5 removed garbage;
wenzelm
parents: 390
diff changeset
    24
structure ThySyn = ThySynFun(val user_keywords = [] and user_sections = []);
1261
af4107a03150 changed usage of structure Simplifier
clasohm
parents: 1242
diff changeset
    25
structure ThmDB = ThmDBFun();
af4107a03150 changed usage of structure Simplifier
clasohm
parents: 1242
diff changeset
    26
structure Readthy = ReadthyFun(structure ThySyn = ThySyn and ThmDB = ThmDB);
1141
a94c0ab9a3ed commented thms_unifying_with out; placed thm_db into signature again;
clasohm
parents: 1135
diff changeset
    27
open ThmDB Readthy;
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    28
1132
dfb29abcf3c2 added theorem database which contains axioms and theorems indexed by the
clasohm
parents: 1078
diff changeset
    29
(* hide functors; saves space in PolyML *)
dfb29abcf3c2 added theorem database which contains axioms and theorems indexed by the
clasohm
parents: 1078
diff changeset
    30
functor ThyScanFun() = struct end;
dfb29abcf3c2 added theorem database which contains axioms and theorems indexed by the
clasohm
parents: 1078
diff changeset
    31
functor ThyParseFun() = struct end;
1261
af4107a03150 changed usage of structure Simplifier
clasohm
parents: 1242
diff changeset
    32
functor SimplifierFun() = struct end;
1078
nipkow
parents: 431
diff changeset
    33
413
2a1554524ad5 removed garbage;
wenzelm
parents: 390
diff changeset
    34
fun init_thy_reader () =
2a1554524ad5 removed garbage;
wenzelm
parents: 390
diff changeset
    35
  use_string
1261
af4107a03150 changed usage of structure Simplifier
clasohm
parents: 1242
diff changeset
    36
   ["structure ThmDB = ThmDBFun();",
af4107a03150 changed usage of structure Simplifier
clasohm
parents: 1242
diff changeset
    37
    "structure Readthy = ReadthyFun(structure ThySyn = ThySyn \
af4107a03150 changed usage of structure Simplifier
clasohm
parents: 1242
diff changeset
    38
                                   \and ThmDB = ThmDB);",
1141
a94c0ab9a3ed commented thms_unifying_with out; placed thm_db into signature again;
clasohm
parents: 1135
diff changeset
    39
    "Readthy.loaded_thys := !loaded_thys;",
a94c0ab9a3ed commented thms_unifying_with out; placed thm_db into signature again;
clasohm
parents: 1135
diff changeset
    40
    "ThmDB.thm_db := !thm_db;",
1261
af4107a03150 changed usage of structure Simplifier
clasohm
parents: 1242
diff changeset
    41
    "open ThmDB Readthy;"];