func (t *Tokeniser) checkNumber(base int) (int, bool) {
	var hasNumber bool
	pos := t.pos
	r, w := runeAtPosition(t.Input, pos)
	for digitValue(r) < base {
		hasNumber = true
		pos += w
		r, w = runeAtPosition(t.Input, pos)
	}
	return pos - t.pos, hasNumber
}
// checkNumber checks if there is a number of the given base at the cursor
// If there is a suitable number, return true as well the length of the number
checkNumber checks if there is a number of the given base at the cursor
If there is a suitable number, return true as well the length of the number
// checkNumber checks if there is a number of the given base at the cursor // If there is a suitable number return true as well the length of the number
func (t *Tokeniser) checkNumber(base int) (int, bool) {
	var hasNumber bool
	pos := t.pos
	r, w := runeAtPosition(t.Input, pos)
	for digitValue(r) < base {
		hasNumber = true
		pos += w
		r, w = runeAtPosition(t.Input, pos)
	}
	return pos - t.pos, hasNumber
}
func ( t * Tokeniser ) checkNumber ( base int ) ( int , bool ) { var hasNumber bool pos := t . pos r , w := runeAtPosition ( t . Input , pos ) for digitValue ( r ) < base { hasNumber = true pos += w r , w = runeAtPosition ( t . Input , pos ) } return pos - t . pos , hasNumber }
checkNumber checks if there is a number of the given base at the cursor
If there is a suitable number, return true as well the length of the number
checkNumber checks if there is a number of the given base at the cursor If there is a suitable number return true as well the length of the number