3 val _
= print (concat
[Bool.toString (isSome (Char.fromString dquote
)), "\n"])
5 val scan
: string -> unit
=
12 else SOME (String.sub (s
, i
), i
+ 1)
14 case Char.scan reader
0 of
15 NONE
=> print
"NONE\n"
16 |
SOME (c
, i
) => print (concat
[str c
, " at ", Int.toString i
,
17 " of ", Int.toString n
, "\n"])
21 List.app scan
["a\\ \\", "\\ \\a", "\\ \\a\\ \\", "\\ \\\\ \\a",