protected function isNextTokenAnException($tokens, $ptr)
    {
        return in_array($tokens[($ptr + 1)]['code'], $this->exceptions)
            && $tokens[($ptr + 1)]['column'] - $tokens[($ptr)]['column'] == 1;
    }
protected function isNextTokenAnException($tokens, $ptr)
    {
        return in_array($tokens[($ptr + 1)]['code'], $this->exceptions)
            && $tokens[($ptr + 1)]['column'] - $tokens[($ptr)]['column'] == 1;
    }
protected function isNextTokenAnException ( $ tokens , $ ptr ) { return in_array ( $ tokens [ ( $ ptr + 1 ) ] [ 'code' ] , $ this -> exceptions ) && $ tokens [ ( $ ptr + 1 ) ] [ 'column' ] - $ tokens [ ( $ ptr ) ] [ 'column' ] == 1 ; }
check whether the next token of the current one is an exception

@param array     $tokens     list of tokens
@param integer   $ptr        current token index
@return boolean  returns true if the next token is an exception or false
check whether the next token of the current one is an exception