export esc;
authorwenzelm
Thu, 04 Jun 2009 17:31:37 +0200
changeset 31425 e8d5417a1831
parent 31424 d30a867a86fb
child 31426 5c9dbd511510
export esc;
src/Pure/General/symbol.ML
--- a/src/Pure/General/symbol.ML	Thu Jun 04 17:31:37 2009 +0200
+++ b/src/Pure/General/symbol.ML	Thu Jun 04 17:31:37 2009 +0200
@@ -59,6 +59,7 @@
   val source: {do_recover: bool} -> (string, 'a) Source.source ->
     (symbol, (string, 'a) Source.source) Source.source
   val explode: string -> symbol list
+  val esc: symbol -> string
   val escape: string -> string
   val strip_blanks: string -> string
   val bump_init: string -> string
@@ -487,7 +488,8 @@
 
 (* escape *)
 
-val escape = implode o map (fn s => if is_char s then s else "\\" ^ s) o sym_explode;
+val esc = fn s => if is_char s then s else "\\" ^ s;
+val escape = implode o map esc o sym_explode;
 
 
 (* blanks *)