private function parseToken()
    {
        $token = '';

        while ($this->valid()) {
            if (ctype_space($this->current)) {
                // Skip space
                $this->next();

                break;
            }

            if ('\\' === $this->current) {
                $token .= $this->parseEscapeSequence();
            } elseif ("'" === $this->current || '"' === $this->current) {
                $token .= $this->parseQuotedString();
            } else {
                $token .= $this->current;
                $this->next();
            }
        }

        return $token;
    }
private function parseToken()
    {
        $token = '';

        while ($this->valid()) {
            if (ctype_space($this->current)) {
                // Skip space
                $this->next();

                break;
            }

            if ('\\' === $this->current) {
                $token .= $this->parseEscapeSequence();
            } elseif ("'" === $this->current || '"' === $this->current) {
                $token .= $this->parseQuotedString();
            } else {
                $token .= $this->current;
                $this->next();
            }
        }

        return $token;
    }
private function parseToken ( ) { $ token = '' ; while ( $ this -> valid ( ) ) { if ( ctype_space ( $ this -> current ) ) { // Skip space $ this -> next ( ) ; break ; } if ( '\\' === $ this -> current ) { $ token .= $ this -> parseEscapeSequence ( ) ; } elseif ( "'" === $ this -> current || '"' === $ this -> current ) { $ token .= $ this -> parseQuotedString ( ) ; } else { $ token .= $ this -> current ; $ this -> next ( ) ; } } return $ token ; }
Parses a single token.

@return string The parsed token.
Parses a single token .