Digit parser: Naive implemenation