def METHOD_NAME(self, text, drop_last_token):
    self._lexer.set_drop_last_token(drop_last_token)
    self._parser.parse(text, lexer=self._lexer)
    return self._expected_tokens, self._lexer.get_replaced_token(), self._token_position