src/Pure/General/symbol.ML
changeset 19305 5c16895d548b
parent 19265 cae36e16f3c0
child 19473 d87a8838afa4
--- a/src/Pure/General/symbol.ML	Tue Mar 21 12:18:13 2006 +0100
+++ b/src/Pure/General/symbol.ML	Tue Mar 21 12:18:15 2006 +0100
@@ -414,7 +414,7 @@
 (* source *)
 
 val recover =
-  Scan.any ((not o is_blank) andf not_equal "\"" andf not_eof) >> K [malformed];
+  Scan.any (fn s => not (is_blank s) andalso s <> "\"" andalso not_eof s) >> K [malformed];
 
 fun source do_recover src =
   Source.source stopper (Scan.bulk scan) (if do_recover then SOME recover else NONE) src;
@@ -433,7 +433,7 @@
     else the (Scan.read stopper (Scan.repeat scan) chs)
   end;
 
-val chars_only = not o exists_string (equal "\\");
+val chars_only = not o exists_string (fn s => s = "\\");
 
 
 (* escape *)