private function doParseTokens()
    {
        $tokens = array();

        while ($this->valid()) {
            while (ctype_space($this->current)) {
                // Skip spaces
                $this->next();
            }

            if ($this->valid()) {
                $tokens[] = $this->parseToken();
            }
        }

        return $tokens;
    }