Add parser for main part of number input

This uses a flexible loop to pick up the majority of the number.
The next stage will be to check on separated uncertainties before
final verification that the number is valid.