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