13 let a = ref (from_small_int
0) in
16 while !i < String.length s
do
17 match String.get s
!i with
19 let d = Char.code c
- Char.code '
0'
in
20 a := add
(times10 !a) (from_small_int
d);
27 if !i = idx
then raise SyntaxError
else !a,!i
29 let parse_sep_star s idx
=
32 while !i < String.length s
do
33 match String.get s
!i with
34 | ' '
| '
\t'
| '
\n'
| '
\r'
-> i := succ
!i
44 let l = Array.length
a in
45 fprintf fmt
"%d" a.(l-1);
47 fprintf fmt
"%04d" a.(i);