added write_charnames';
authorwenzelm
Mon, 16 Dec 1996 10:04:12 +0100
changeset 2407 f733d555b3d0
parent 2406 7becd4dd5ca7
child 2408 acddf41dbbf7
added write_charnames';
src/Pure/Syntax/symbol_font.ML
--- a/src/Pure/Syntax/symbol_font.ML	Mon Dec 16 10:03:30 1996 +0100
+++ b/src/Pure/Syntax/symbol_font.ML	Mon Dec 16 10:04:12 1996 +0100
@@ -10,7 +10,8 @@
   val char: string -> string option
   val name: string -> string option
   val read_charnames: string list -> string list
-  val write_charnames:  string list -> string list
+  val write_charnames:  string list -> string list	(*normal backslashes*)
+  val write_charnames':  string list -> string list	(*escaped backslashes*)
 end;
 
 
@@ -76,12 +77,13 @@
 
 (* write_charnames *)
 
-fun write_char ch =
+fun write_char prfx ch =
   (case name ch of
     None => ch
-  | Some nm => "\\<" ^ nm ^ ">");
+  | Some nm => prfx ^ "\\<" ^ nm ^ ">");
 
-val write_charnames = map write_char;
+val write_charnames = map (write_char "");
+val write_charnames' = map (write_char "\\");
 
 
 end;