func (x *Lexer) acceptString(valid string) bool {
	for _, ch := range valid {
		if x.peek() != ch {
			return false
		}
		x.next()
	}
	return true
}
// acceptString consumes the as many runes from the given string as possible.
// If it hits a rune it can't accept, then it backs up and returns false.
acceptString consumes the as many runes from the given string as possible.
If it hits a rune it can't accept, then it backs up and returns false.
// acceptString consumes the as many runes from the given string as possible . // If it hits a rune it can ' t accept then it backs up and returns false .
func (x *Lexer) acceptString(valid string) bool {
	for _, ch := range valid {
		if x.peek() != ch {
			return false
		}
		x.next()
	}
	return true
}
func ( x * Lexer ) acceptString ( valid string ) bool { for _ , ch := range valid { if x . peek ( ) != ch { return false } x . next ( ) } return true }
acceptString consumes the as many runes from the given string as possible.
acceptString consumes the as many runes from the given string as possible .