author | paulson |
Thu, 18 Jan 1996 10:38:29 +0100 | |
changeset 1444 | 23ceb1dc9755 |
parent 1348 | b9305143fa91 |
child 1457 | ad856378ad62 |
permissions | -rw-r--r-- |
390 | 1 |
(* Title: Pure/Thy/ROOT.ML |
0 | 2 |
ID: $Id$ |
390 | 3 |
Author: Sonia Mahjoub and Tobias Nipkow and |
4 |
Markus Wenzel and Carsten Clasohm, TU Muenchen |
|
0 | 5 |
|
390 | 6 |
This file builds the theory parser and autoloading system. |
0 | 7 |
*) |
8 |
||
390 | 9 |
use "thy_scan.ML"; |
10 |
use "thy_parse.ML"; |
|
11 |
||
12 |
structure ThyScan = ThyScanFun(Scanner); |
|
13 |
structure ThyParse = ThyParseFun(structure Symtab = Symtab |
|
14 |
and ThyScan = ThyScan); |
|
0 | 15 |
|
413 | 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 | 18 |
use "../../Provers/simplifier.ML"; |
1261 | 19 |
|
20 |
structure Simplifier = SimplifierFun(); |
|
21 |
||
413 | 22 |
use "thy_read.ML"; |
0 | 23 |
|
413 | 24 |
structure ThySyn = ThySynFun(val user_keywords = [] and user_sections = []); |
1261 | 25 |
structure ThmDB = ThmDBFun(); |
1291 | 26 |
structure ReadThy = ReadthyFun(structure ThySyn = ThySyn and ThmDB = ThmDB); |
27 |
open ThmDB ReadThy; |
|
0 | 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 | 32 |
functor SimplifierFun() = struct end; |
1078 | 33 |
|
413 | 34 |
fun init_thy_reader () = |
35 |
use_string |
|
1261 | 36 |
["structure ThmDB = ThmDBFun();", |
1291 | 37 |
"structure ReadThy = ReadthyFun(structure ThySyn = ThySyn \ |
1261 | 38 |
\and ThmDB = ThmDB);", |
1291 | 39 |
"ReadThy.loaded_thys := !loaded_thys;", |
1348
b9305143fa91
index.html files are now made separatly for each subdirectory
clasohm
parents:
1313
diff
changeset
|
40 |
"ReadThy.base_path := !base_path;", |
1291 | 41 |
"ReadThy.gif_path := !gif_path;", |
1313 | 42 |
"ReadThy.index_path := !index_path;", |
1348
b9305143fa91
index.html files are now made separatly for each subdirectory
clasohm
parents:
1313
diff
changeset
|
43 |
"ReadThy.pure_subchart := !pure_subchart;", |
1291 | 44 |
"ReadThy.make_html := !make_html;", |
1141
a94c0ab9a3ed
commented thms_unifying_with out; placed thm_db into signature again;
clasohm
parents:
1135
diff
changeset
|
45 |
"ThmDB.thm_db := !thm_db;", |
1291 | 46 |
"open ThmDB ReadThy;"]; |