protected function match($type)
    {
        if ( ! $this->lexer->isNext($type)) {
            $this->syntaxError($this->lexer->getName($type));
        }

        $this->lexer->moveNext();

        return $this->lexer->token[0];
    }
protected function match($type)
    {
        if ( ! $this->lexer->isNext($type)) {
            $this->syntaxError($this->lexer->getName($type));
        }

        $this->lexer->moveNext();

        return $this->lexer->token[0];
    }
protected function match ( $ type ) { if ( ! $ this -> lexer -> isNext ( $ type ) ) { $ this -> syntaxError ( $ this -> lexer -> getName ( $ type ) ) ; } $ this -> lexer -> moveNext ( ) ; return $ this -> lexer -> token [ 0 ] ; }
Matches a token, and returns its value.

@param integer $type

@return mixed the value of the matched token
Matches a token and returns its value .