public function parse()
    {
        // reset the result
        $this->result = array();

        // start parsing trought the tokens
        while (!$this->parserIsDone()) 
        {
            $specialNode = $this->next();

            if ($specialNode instanceof Node) 
            {
                return $specialNode;
            }
        }

        // return the result after the loop is done
        return $this->node();
    }
public function parse()
    {
        // reset the result
        $this->result = array();

        // start parsing trought the tokens
        while (!$this->parserIsDone()) 
        {
            $specialNode = $this->next();

            if ($specialNode instanceof Node) 
            {
                return $specialNode;
            }
        }

        // return the result after the loop is done
        return $this->node();
    }
public function parse ( ) { // reset the result $ this -> result = array ( ) ; // start parsing trought the tokens while ( ! $ this -> parserIsDone ( ) ) { $ specialNode = $ this -> next ( ) ; if ( $ specialNode instanceof Node ) { return $ specialNode ; } } // return the result after the loop is done return $ this -> node ( ) ; }
Start the code parser and return the result

@return array
Start the code parser and return the result