src/Pure/Syntax/symbol_font.ML
author wenzelm
Tue, 29 Apr 1997 17:23:53 +0200
changeset 3067 4d501db6ebed
parent 3064 f04f93e5c0a9
child 3068 b7562e452816
permissions -rw-r--r--
renamed \<choice> to \<orelse>;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2207
f7f06d4deaa2 added this file;
wenzelm
parents:
diff changeset
     1
(*  Title:      Pure/Syntax/symbol_font.ML
f7f06d4deaa2 added this file;
wenzelm
parents:
diff changeset
     2
    ID:         $Id$
f7f06d4deaa2 added this file;
wenzelm
parents:
diff changeset
     3
    Author:     Markus Wenzel, TU Muenchen
f7f06d4deaa2 added this file;
wenzelm
parents:
diff changeset
     4
2943
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
     5
The Isabelle symbol font.
2207
f7f06d4deaa2 added this file;
wenzelm
parents:
diff changeset
     6
*)
f7f06d4deaa2 added this file;
wenzelm
parents:
diff changeset
     7
f7f06d4deaa2 added this file;
wenzelm
parents:
diff changeset
     8
signature SYMBOL_FONT =
f7f06d4deaa2 added this file;
wenzelm
parents:
diff changeset
     9
sig
2208
39002438a79c tuned some char names;
wenzelm
parents: 2207
diff changeset
    10
  val char: string -> string option
2362
4744b27cdf89 added read_charnames, write_charnames;
wenzelm
parents: 2255
diff changeset
    11
  val name: string -> string option
4744b27cdf89 added read_charnames, write_charnames;
wenzelm
parents: 2255
diff changeset
    12
  val read_charnames: string list -> string list
2913
ce271fa4d8e2 fixed diagnostic output of print modes;
wenzelm
parents: 2769
diff changeset
    13
  val read_chnames: string -> string
ce271fa4d8e2 fixed diagnostic output of print modes;
wenzelm
parents: 2769
diff changeset
    14
  val write_charnames: string list -> string list	(*normal backslashes*)
ce271fa4d8e2 fixed diagnostic output of print modes;
wenzelm
parents: 2769
diff changeset
    15
  val write_chnames: string -> string
ce271fa4d8e2 fixed diagnostic output of print modes;
wenzelm
parents: 2769
diff changeset
    16
  val write_charnames': string list -> string list	(*escaped backslashes*)
ce271fa4d8e2 fixed diagnostic output of print modes;
wenzelm
parents: 2769
diff changeset
    17
  val write_chnames': string -> string
2207
f7f06d4deaa2 added this file;
wenzelm
parents:
diff changeset
    18
end;
f7f06d4deaa2 added this file;
wenzelm
parents:
diff changeset
    19
2362
4744b27cdf89 added read_charnames, write_charnames;
wenzelm
parents: 2255
diff changeset
    20
2207
f7f06d4deaa2 added this file;
wenzelm
parents:
diff changeset
    21
structure SymbolFont : SYMBOL_FONT =
f7f06d4deaa2 added this file;
wenzelm
parents:
diff changeset
    22
struct
f7f06d4deaa2 added this file;
wenzelm
parents:
diff changeset
    23
2362
4744b27cdf89 added read_charnames, write_charnames;
wenzelm
parents: 2255
diff changeset
    24
4744b27cdf89 added read_charnames, write_charnames;
wenzelm
parents: 2255
diff changeset
    25
(** font encoding vector **)
4744b27cdf89 added read_charnames, write_charnames;
wenzelm
parents: 2255
diff changeset
    26
4744b27cdf89 added read_charnames, write_charnames;
wenzelm
parents: 2255
diff changeset
    27
(* tables *)
2207
f7f06d4deaa2 added this file;
wenzelm
parents:
diff changeset
    28
3064
f04f93e5c0a9 added new chars;
wenzelm
parents: 2967
diff changeset
    29
val enc_start = 145;
2207
f7f06d4deaa2 added this file;
wenzelm
parents:
diff changeset
    30
val enc_end = 255;
f7f06d4deaa2 added this file;
wenzelm
parents:
diff changeset
    31
f7f06d4deaa2 added this file;
wenzelm
parents:
diff changeset
    32
val enc_vector =
f7f06d4deaa2 added this file;
wenzelm
parents:
diff changeset
    33
[
2942
ada10e31bf66 GENERATED TEXT;
wenzelm
parents: 2913
diff changeset
    34
(* GENERATED TEXT FOLLOWS - Do not edit! *)
3064
f04f93e5c0a9 added new chars;
wenzelm
parents: 2967
diff changeset
    35
  "lless",
f04f93e5c0a9 added new chars;
wenzelm
parents: 2967
diff changeset
    36
  "unlhd",
f04f93e5c0a9 added new chars;
wenzelm
parents: 2967
diff changeset
    37
  "lhd",
f04f93e5c0a9 added new chars;
wenzelm
parents: 2967
diff changeset
    38
  "rhd",
f04f93e5c0a9 added new chars;
wenzelm
parents: 2967
diff changeset
    39
  "tturnstile",
f04f93e5c0a9 added new chars;
wenzelm
parents: 2967
diff changeset
    40
  "langle",
f04f93e5c0a9 added new chars;
wenzelm
parents: 2967
diff changeset
    41
  "rangle",
3067
4d501db6ebed renamed \<choice> to \<orelse>;
wenzelm
parents: 3064
diff changeset
    42
  "orelse",
3064
f04f93e5c0a9 added new chars;
wenzelm
parents: 2967
diff changeset
    43
  "top",
f04f93e5c0a9 added new chars;
wenzelm
parents: 2967
diff changeset
    44
  "Or",
f04f93e5c0a9 added new chars;
wenzelm
parents: 2967
diff changeset
    45
  "ocdot",
f04f93e5c0a9 added new chars;
wenzelm
parents: 2967
diff changeset
    46
  "iota",
f04f93e5c0a9 added new chars;
wenzelm
parents: 2967
diff changeset
    47
  "upsilon",
f04f93e5c0a9 added new chars;
wenzelm
parents: 2967
diff changeset
    48
  "Upsilon",
f04f93e5c0a9 added new chars;
wenzelm
parents: 2967
diff changeset
    49
  "Xi",
f04f93e5c0a9 added new chars;
wenzelm
parents: 2967
diff changeset
    50
  "space2",
2943
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    51
  "Gamma",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    52
  "Delta",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    53
  "Theta",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    54
  "Lambda",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    55
  "Pi",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    56
  "Sigma",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    57
  "Phi",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    58
  "Psi",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    59
  "Omega",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    60
  "alpha",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    61
  "beta",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    62
  "gamma",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    63
  "delta",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    64
  "epsilon",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    65
  "zeta",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    66
  "eta",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    67
  "theta",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    68
  "kappa",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    69
  "lambda",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    70
  "mu",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    71
  "nu",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    72
  "xi",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    73
  "pi",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    74
  "rho",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    75
  "sigma",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    76
  "tau",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    77
  "phi",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    78
  "chi",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    79
  "psi",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    80
  "omega",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    81
  "not",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    82
  "and",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    83
  "or",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    84
  "forall",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    85
  "exists",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    86
  "And",
3064
f04f93e5c0a9 added new chars;
wenzelm
parents: 2967
diff changeset
    87
  "lceil",
f04f93e5c0a9 added new chars;
wenzelm
parents: 2967
diff changeset
    88
  "rceil",
f04f93e5c0a9 added new chars;
wenzelm
parents: 2967
diff changeset
    89
  "lfloor",
f04f93e5c0a9 added new chars;
wenzelm
parents: 2967
diff changeset
    90
  "rfloor",
2943
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    91
  "turnstile",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    92
  "Turnstile",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    93
  "lbrakk",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    94
  "rbrakk",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    95
  "cdot",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    96
  "in",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    97
  "subseteq",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    98
  "inter",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
    99
  "union",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   100
  "Inter",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   101
  "Union",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   102
  "sqinter",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   103
  "squnion",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   104
  "Sqinter",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   105
  "Squnion",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   106
  "bottom",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   107
  "doteq",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   108
  "equiv",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   109
  "noteq",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   110
  "sqsubset",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   111
  "sqsubseteq",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   112
  "prec",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   113
  "preceq",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   114
  "succ",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   115
  "approx",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   116
  "sim",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   117
  "simeq",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   118
  "le",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   119
  "Colon",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   120
  "leftarrow",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   121
  "midarrow",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   122
  "rightarrow",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   123
  "Leftarrow",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   124
  "Midarrow",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   125
  "Rightarrow",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   126
  "bow",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   127
  "mapsto",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   128
  "leadsto",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   129
  "up",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   130
  "down",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   131
  "notin",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   132
  "times",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   133
  "oplus",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   134
  "ominus",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   135
  "otimes",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   136
  "oslash",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   137
  "subset",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   138
  "infinity",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   139
  "box",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   140
  "diamond",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   141
  "circ",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   142
  "bullet",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   143
  "parallel",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   144
  "surd",
04a66be5e790 GENERATED TEXT;
wenzelm
parents: 2942
diff changeset
   145
  "copyright"
2942
ada10e31bf66 GENERATED TEXT;
wenzelm
parents: 2913
diff changeset
   146
(* END OF GENERATED TEXT *)
2207
f7f06d4deaa2 added this file;
wenzelm
parents:
diff changeset
   147
];
f7f06d4deaa2 added this file;
wenzelm
parents:
diff changeset
   148
2362
4744b27cdf89 added read_charnames, write_charnames;
wenzelm
parents: 2255
diff changeset
   149
val enc_rel = enc_vector ~~ (map chr (enc_start upto enc_end));
4744b27cdf89 added read_charnames, write_charnames;
wenzelm
parents: 2255
diff changeset
   150
4744b27cdf89 added read_charnames, write_charnames;
wenzelm
parents: 2255
diff changeset
   151
val enc_tab = Symtab.make enc_rel;
4744b27cdf89 added read_charnames, write_charnames;
wenzelm
parents: 2255
diff changeset
   152
val dec_tab = Symtab.make (map swap enc_rel);
4744b27cdf89 added read_charnames, write_charnames;
wenzelm
parents: 2255
diff changeset
   153
4744b27cdf89 added read_charnames, write_charnames;
wenzelm
parents: 2255
diff changeset
   154
4744b27cdf89 added read_charnames, write_charnames;
wenzelm
parents: 2255
diff changeset
   155
(* chars and names *)
4744b27cdf89 added read_charnames, write_charnames;
wenzelm
parents: 2255
diff changeset
   156
4744b27cdf89 added read_charnames, write_charnames;
wenzelm
parents: 2255
diff changeset
   157
fun char name = Symtab.lookup (enc_tab, name);
2419
98a571307d5e tuned read and write functions;
wenzelm
parents: 2407
diff changeset
   158
98a571307d5e tuned read and write functions;
wenzelm
parents: 2407
diff changeset
   159
fun name char =
98a571307d5e tuned read and write functions;
wenzelm
parents: 2407
diff changeset
   160
  if ord char < enc_start then None
98a571307d5e tuned read and write functions;
wenzelm
parents: 2407
diff changeset
   161
  else Symtab.lookup (dec_tab, char);
2362
4744b27cdf89 added read_charnames, write_charnames;
wenzelm
parents: 2255
diff changeset
   162
2207
f7f06d4deaa2 added this file;
wenzelm
parents:
diff changeset
   163
f7f06d4deaa2 added this file;
wenzelm
parents:
diff changeset
   164
2362
4744b27cdf89 added read_charnames, write_charnames;
wenzelm
parents: 2255
diff changeset
   165
(** input and output of symbols **)
4744b27cdf89 added read_charnames, write_charnames;
wenzelm
parents: 2255
diff changeset
   166
4744b27cdf89 added read_charnames, write_charnames;
wenzelm
parents: 2255
diff changeset
   167
(* read_charnames *)
4744b27cdf89 added read_charnames, write_charnames;
wenzelm
parents: 2255
diff changeset
   168
4744b27cdf89 added read_charnames, write_charnames;
wenzelm
parents: 2255
diff changeset
   169
local
4744b27cdf89 added read_charnames, write_charnames;
wenzelm
parents: 2255
diff changeset
   170
  open Scanner;
2207
f7f06d4deaa2 added this file;
wenzelm
parents:
diff changeset
   171
2362
4744b27cdf89 added read_charnames, write_charnames;
wenzelm
parents: 2255
diff changeset
   172
  fun scan_symbol ("\\" :: "<" :: cs) =
4744b27cdf89 added read_charnames, write_charnames;
wenzelm
parents: 2255
diff changeset
   173
        let
4744b27cdf89 added read_charnames, write_charnames;
wenzelm
parents: 2255
diff changeset
   174
          val (name, cs') = (scan_id -- $$ ">" >> #1) cs handle LEXICAL_ERROR
4744b27cdf89 added read_charnames, write_charnames;
wenzelm
parents: 2255
diff changeset
   175
            => error ("Malformed symbolic char specification: \"\\<" ^ implode cs ^ "\"");
4744b27cdf89 added read_charnames, write_charnames;
wenzelm
parents: 2255
diff changeset
   176
          val c = the (char name) handle OPTION _
4744b27cdf89 added read_charnames, write_charnames;
wenzelm
parents: 2255
diff changeset
   177
            => error ("Unknown symbolic char name: " ^ quote name);
4744b27cdf89 added read_charnames, write_charnames;
wenzelm
parents: 2255
diff changeset
   178
        in (c, cs') end
4744b27cdf89 added read_charnames, write_charnames;
wenzelm
parents: 2255
diff changeset
   179
    | scan_symbol _ = raise LEXICAL_ERROR;
4744b27cdf89 added read_charnames, write_charnames;
wenzelm
parents: 2255
diff changeset
   180
in
2419
98a571307d5e tuned read and write functions;
wenzelm
parents: 2407
diff changeset
   181
  fun read_charnames chs =
98a571307d5e tuned read and write functions;
wenzelm
parents: 2407
diff changeset
   182
    if forall (not_equal "\\") chs then chs
98a571307d5e tuned read and write functions;
wenzelm
parents: 2407
diff changeset
   183
    else #1 (repeat (scan_symbol || scan_one (K true)) chs);
2913
ce271fa4d8e2 fixed diagnostic output of print modes;
wenzelm
parents: 2769
diff changeset
   184
ce271fa4d8e2 fixed diagnostic output of print modes;
wenzelm
parents: 2769
diff changeset
   185
  val read_chnames = implode o read_charnames o explode;
2362
4744b27cdf89 added read_charnames, write_charnames;
wenzelm
parents: 2255
diff changeset
   186
end;
2207
f7f06d4deaa2 added this file;
wenzelm
parents:
diff changeset
   187
2362
4744b27cdf89 added read_charnames, write_charnames;
wenzelm
parents: 2255
diff changeset
   188
4744b27cdf89 added read_charnames, write_charnames;
wenzelm
parents: 2255
diff changeset
   189
(* write_charnames *)
4744b27cdf89 added read_charnames, write_charnames;
wenzelm
parents: 2255
diff changeset
   190
2407
f733d555b3d0 added write_charnames';
wenzelm
parents: 2362
diff changeset
   191
fun write_char prfx ch =
2362
4744b27cdf89 added read_charnames, write_charnames;
wenzelm
parents: 2255
diff changeset
   192
  (case name ch of
4744b27cdf89 added read_charnames, write_charnames;
wenzelm
parents: 2255
diff changeset
   193
    None => ch
2407
f733d555b3d0 added write_charnames';
wenzelm
parents: 2362
diff changeset
   194
  | Some nm => prfx ^ "\\<" ^ nm ^ ">");
2362
4744b27cdf89 added read_charnames, write_charnames;
wenzelm
parents: 2255
diff changeset
   195
2419
98a571307d5e tuned read and write functions;
wenzelm
parents: 2407
diff changeset
   196
fun write_chars prfx chs =
98a571307d5e tuned read and write functions;
wenzelm
parents: 2407
diff changeset
   197
  if forall (fn ch => ord ch < enc_start) chs then chs
98a571307d5e tuned read and write functions;
wenzelm
parents: 2407
diff changeset
   198
  else map (write_char prfx) chs;
98a571307d5e tuned read and write functions;
wenzelm
parents: 2407
diff changeset
   199
98a571307d5e tuned read and write functions;
wenzelm
parents: 2407
diff changeset
   200
val write_charnames = write_chars "";
98a571307d5e tuned read and write functions;
wenzelm
parents: 2407
diff changeset
   201
val write_charnames' = write_chars "\\";
2362
4744b27cdf89 added read_charnames, write_charnames;
wenzelm
parents: 2255
diff changeset
   202
2913
ce271fa4d8e2 fixed diagnostic output of print modes;
wenzelm
parents: 2769
diff changeset
   203
val write_chnames = implode o write_charnames o explode;
ce271fa4d8e2 fixed diagnostic output of print modes;
wenzelm
parents: 2769
diff changeset
   204
val write_chnames' = implode o write_charnames' o explode;
2207
f7f06d4deaa2 added this file;
wenzelm
parents:
diff changeset
   205
f7f06d4deaa2 added this file;
wenzelm
parents:
diff changeset
   206
end;