1274
|
1 |
(* Title: HOLCF/thy_syntax.ML
|
|
2 |
ID: $Id$
|
|
3 |
Author: Tobias Mayr
|
|
4 |
|
|
5 |
Installation of the additional theory file sections for HOLCF: axioms , ops
|
|
6 |
There's an elaborate but german description of this extension
|
|
7 |
and a short english description of the new sections,
|
|
8 |
write to mayrt@informatik.tu-muenchen.de.
|
|
9 |
|
|
10 |
TODO:
|
|
11 |
|
|
12 |
*)
|
|
13 |
|
|
14 |
(* use "holcflogics.ML";
|
|
15 |
use "thy_axioms.ML";
|
|
16 |
use "thy_ops.ML"; should already have been done in ROOT.ML *)
|
|
17 |
|
|
18 |
structure ThySynData : THY_SYN_DATA =
|
|
19 |
struct
|
|
20 |
|
|
21 |
open HOLCFlogic;
|
|
22 |
|
|
23 |
val user_keywords = (*####*)filter_out (fn s => s mem (ThyAxioms.axioms_keywords@
|
|
24 |
ThyOps.ops_keywords)) (*####*)ThySynData.user_keywords @
|
|
25 |
ThyAxioms.axioms_keywords @
|
|
26 |
ThyOps.ops_keywords;
|
|
27 |
|
|
28 |
val user_sections = (*####*)filter_out (fn (s,_) => s mem (map fst (
|
|
29 |
ThyAxioms.axioms_sections@ ThyOps.ops_sections))) (*####*)
|
|
30 |
ThySynData.user_sections @
|
|
31 |
ThyAxioms.axioms_sections @
|
|
32 |
ThyOps.ops_sections;
|
|
33 |
end;
|
|
34 |
|
|
35 |
structure ThySyn = ThySynFun(ThySynData);
|
|
36 |
init_thy_reader ();
|