private void ValidateDigit() { if (!char.IsDigit(_ch)) throw ParseError(_textPos, Res.DigitExpected); }