src/Pure/Syntax/symbol.ML
changeset 5870 5d4fc952be47
parent 5229 7c8abffc4413
child 5909 3fc6497f1c7b
equal deleted inserted replaced
5869:b279a84ac11c 5870:5d4fc952be47
   242   | no_syms (c :: cs) = ord c < enc_start andalso no_syms cs;
   242   | no_syms (c :: cs) = ord c < enc_start andalso no_syms cs;
   243 
   243 
   244 fun sym_explode str =
   244 fun sym_explode str =
   245   let val chs = explode str in
   245   let val chs = explode str in
   246     if no_syms chs then chs     (*tune trivial case*)
   246     if no_syms chs then chs     (*tune trivial case*)
   247     else map symbol (#1 (Scan.error (Scan.finite stopper (Scan.repeat scan)) chs))
   247     else map symbol (the (Scan.read stopper (Scan.repeat scan) chs))
   248   end;
   248   end;
   249 
   249 
   250 
   250 
   251 (* printable length *)
   251 (* printable length *)
   252 
   252