protected function match($token)
    {
        $lookaheadType = $this->lexer->lookahead['type'];

        if ($lookaheadType !== $token && ($token !== Lexer::T_TYPE || $lookaheadType <= Lexer::T_TYPE)) {
            throw $this->syntaxError($this->lexer->getLiteral($token));
        }

        $this->lexer->moveNext();
    }
protected function match($token)
    {
        $lookaheadType = $this->lexer->lookahead['type'];

        if ($lookaheadType !== $token && ($token !== Lexer::T_TYPE || $lookaheadType <= Lexer::T_TYPE)) {
            throw $this->syntaxError($this->lexer->getLiteral($token));
        }

        $this->lexer->moveNext();
    }
protected function match ( $ token ) { $ lookaheadType = $ this -> lexer -> lookahead [ 'type' ] ; if ( $ lookaheadType !== $ token && ( $ token !== Lexer :: T_TYPE || $ lookaheadType <= Lexer :: T_TYPE ) ) { throw $ this -> syntaxError ( $ this -> lexer -> getLiteral ( $ token ) ) ; } $ this -> lexer -> moveNext ( ) ; }
Match token at current position in input

@param $token
Match token at current position in input