code: func (l *Lexer) accept(valid string) bool {
  	if strings.IndexRune(valid, l.next()) >= 0 {
  		return true
  	}
  
  	l.backup()
  
  	return false
  }
docs: // accept scans the next character if it is included in given string