author | wenzelm |
Fri, 31 Oct 1997 15:21:59 +0100 | |
changeset 4055 | 69892b85f800 |
parent 3625 | 33f718b4f7bf |
child 4115 | 9405ebe284bf |
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"; |
|
413 | 11 |
use "thy_syn.ML"; |
3619 | 12 |
|
3600
5366dde08dba
Added some additional "use" commands for new files
berghofe
parents:
3576
diff
changeset
|
13 |
use "thy_info.ML"; |
5366dde08dba
Added some additional "use" commands for new files
berghofe
parents:
3576
diff
changeset
|
14 |
use "browser_info.ML"; |
1132
dfb29abcf3c2
added theorem database which contains axioms and theorems indexed by the
clasohm
parents:
1078
diff
changeset
|
15 |
use "thm_database.ML"; |
3619 | 16 |
|
2404 | 17 |
use "symbol_input.ML"; |
413 | 18 |
use "thy_read.ML"; |
0 | 19 |
|
3625 | 20 |
open ThmDatabase ThyRead ThyInfo BrowserInfo SymbolInput; |
1078 | 21 |
|
2809 | 22 |
|
4055 | 23 |
|
24 |
(* FIXME tmp, move *) |
|
25 |
||
26 |
structure Session = |
|
27 |
struct |
|
28 |
||
29 |
local |
|
30 |
val current_session = ref ([]: string list); |
|
31 |
in |
|
32 |
fun get_session () = ! current_session; |
|
33 |
fun add_session s = |
|
34 |
(current_session := ! current_session @ [s]; |
|
35 |
writeln ("This is the " ^ quote (space_implode "/" (get_session ())) ^ " session.")); |
|
36 |
end; |
|
37 |
||
38 |
end; |
|
2809 | 39 |
|
4055 | 40 |
open Session |
41 |
||
42 |
||
43 |
structure Context = |
|
44 |
struct |
|
45 |
||
46 |
local |
|
47 |
val current_thy = ref ProtoPure.thy; |
|
48 |
in |
|
49 |
fun context thy = current_thy := thy; |
|
50 |
fun get_context () = ! current_thy; |
|
51 |
end; |
|
52 |
||
53 |
end; |
|
54 |
||
55 |
open Context; |