one-pass digit parsing: less error prone when using the Digit class.
Deprecate the old API.