src/HOLCF/ax_ops/thy_syntax.ML
author berghofe
Wed, 06 Aug 1997 00:39:13 +0200
changeset 3609 5756c98ebf1f
parent 1461 6bcb44e4d6e5
child 3618 1e7621573d9c
permissions -rw-r--r--
Replaced "init_thy_reader" by "set_parser".
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1274
ea0668a1c0ba added 8bit pragmas
regensbu
parents:
diff changeset
     1
(*  Title:      HOLCF/thy_syntax.ML
ea0668a1c0ba added 8bit pragmas
regensbu
parents:
diff changeset
     2
    ID:         $Id$
ea0668a1c0ba added 8bit pragmas
regensbu
parents:
diff changeset
     3
    Author:     Tobias Mayr
ea0668a1c0ba added 8bit pragmas
regensbu
parents:
diff changeset
     4
ea0668a1c0ba added 8bit pragmas
regensbu
parents:
diff changeset
     5
Installation of the additional theory file sections for HOLCF: axioms , ops 
ea0668a1c0ba added 8bit pragmas
regensbu
parents:
diff changeset
     6
There's an elaborate but german description of this extension
ea0668a1c0ba added 8bit pragmas
regensbu
parents:
diff changeset
     7
and a short english description of the new sections,
ea0668a1c0ba added 8bit pragmas
regensbu
parents:
diff changeset
     8
write to mayrt@informatik.tu-muenchen.de.
ea0668a1c0ba added 8bit pragmas
regensbu
parents:
diff changeset
     9
ea0668a1c0ba added 8bit pragmas
regensbu
parents:
diff changeset
    10
TODO:
ea0668a1c0ba added 8bit pragmas
regensbu
parents:
diff changeset
    11
ea0668a1c0ba added 8bit pragmas
regensbu
parents:
diff changeset
    12
*)
ea0668a1c0ba added 8bit pragmas
regensbu
parents:
diff changeset
    13
ea0668a1c0ba added 8bit pragmas
regensbu
parents:
diff changeset
    14
(* use "holcflogics.ML"; 
ea0668a1c0ba added 8bit pragmas
regensbu
parents:
diff changeset
    15
   use "thy_axioms.ML";
ea0668a1c0ba added 8bit pragmas
regensbu
parents:
diff changeset
    16
   use "thy_ops.ML";      should already have been done in ROOT.ML *)
ea0668a1c0ba added 8bit pragmas
regensbu
parents:
diff changeset
    17
ea0668a1c0ba added 8bit pragmas
regensbu
parents:
diff changeset
    18
structure ThySynData : THY_SYN_DATA =
ea0668a1c0ba added 8bit pragmas
regensbu
parents:
diff changeset
    19
struct
ea0668a1c0ba added 8bit pragmas
regensbu
parents:
diff changeset
    20
ea0668a1c0ba added 8bit pragmas
regensbu
parents:
diff changeset
    21
open HOLCFlogic;
ea0668a1c0ba added 8bit pragmas
regensbu
parents:
diff changeset
    22
ea0668a1c0ba added 8bit pragmas
regensbu
parents:
diff changeset
    23
val user_keywords = (*####*)filter_out (fn s => s mem (ThyAxioms.axioms_keywords@
1461
6bcb44e4d6e5 expanded tabs
clasohm
parents: 1274
diff changeset
    24
                    ThyOps.ops_keywords)) (*####*)ThySynData.user_keywords @ 
1274
ea0668a1c0ba added 8bit pragmas
regensbu
parents:
diff changeset
    25
                    ThyAxioms.axioms_keywords @ 
ea0668a1c0ba added 8bit pragmas
regensbu
parents:
diff changeset
    26
                    ThyOps.ops_keywords;
ea0668a1c0ba added 8bit pragmas
regensbu
parents:
diff changeset
    27
ea0668a1c0ba added 8bit pragmas
regensbu
parents:
diff changeset
    28
val user_sections = (*####*)filter_out (fn (s,_) => s mem (map fst (
1461
6bcb44e4d6e5 expanded tabs
clasohm
parents: 1274
diff changeset
    29
                    ThyAxioms.axioms_sections@ ThyOps.ops_sections))) (*####*)
6bcb44e4d6e5 expanded tabs
clasohm
parents: 1274
diff changeset
    30
                      ThySynData.user_sections @
1274
ea0668a1c0ba added 8bit pragmas
regensbu
parents:
diff changeset
    31
                    ThyAxioms.axioms_sections @
ea0668a1c0ba added 8bit pragmas
regensbu
parents:
diff changeset
    32
                    ThyOps.ops_sections;
ea0668a1c0ba added 8bit pragmas
regensbu
parents:
diff changeset
    33
end;
ea0668a1c0ba added 8bit pragmas
regensbu
parents:
diff changeset
    34
ea0668a1c0ba added 8bit pragmas
regensbu
parents:
diff changeset
    35
structure ThySyn = ThySynFun(ThySynData);
3609
5756c98ebf1f Replaced "init_thy_reader" by "set_parser".
berghofe
parents: 1461
diff changeset
    36
set_parser ThySyn.parse;