Remove a parser from the render queue.

@param \Ems\Contracts\Core\TextParser $parser

@return self
788
public function remove(TextParser $parser)
    {
        $parserHash = $this->objectHash($parser);

        $this->parsers = array_filter($this->parsers, function ($known) use ($parserHash) {
            return $this->objectHash($known) != $parserHash;
        });

        if (isset($this->parserIds[$parserHash])) {
            unset($this->parserIds[$parserHash]);
        }

        return $this;
    }
402023
public function removeTokenParser(Twig_TokenParserInterface $parser)
    {
        $name = $parser->getTag();
        if (isset($this->parsers[$name]) && $parser === $this->parsers[$name]) {
            unset($this->parsers[$name]);
        }
    }
541092
public function purge($text)
    {
        foreach ($this->parsers as $parser) {
            $text = $parser->purge($text);
        }

        return $text;
    }
965201
public function parse(Parser $parser)
    {
        $parser->match(Lexer::T_IDENTIFIER);
        $parser->match(Lexer::T_OPEN_PARENTHESIS);
        $this->first = $parser->ArithmeticPrimary();
        $parser->match(Lexer::T_AS);
        $parser->match(Lexer::T_IDENTIFIER);
        $this->second = $parser->getLexer()->token['value'];
        $parser->match(Lexer::T_CLOSE_PARENTHESIS);
    }
1070755
public static function fromParser(ForumTopicParser $parser): self
    {
        $instance = new self();
        $instance->topicId = $parser->getTopicId();
        $instance->url = $parser->getUrl();
        $instance->title = $parser->getTitle();
        $instance->datePosted = $parser->getPostDate();
        $instance->replies = $parser->getReplies();
        $instance->authorName = $parser->getAuthorName();
        $instance->authorUrl = $parser->getAuthorUrl();
        $instance->lastPost = $parser->getLastPost();

        return $instance;
    }
354006
public function Parse($parser = 'TextParser') {
        if($parser == 'TextParser' || is_subclass_of($parser, 'TextParser')) {
            $obj = Object::create($parser, $this->owner->value);
            return $obj->parse();
        } else {
            return $this->owner->Nice();
        }
    }
562660
public static function fromParser(PersonParser $parser): self
    {
        $instance = new self();
        $instance->malId = $parser->getPersonId();
        $instance->url = $parser->getPersonURL();
        $instance->imageUrl = $parser->getPersonImageUrl();
        $instance->name = $parser->getPersonName();
        $instance->givenName = $parser->getPersonGivenName();
        $instance->familyName = $parser->getPersonFamilyName();
        $instance->alternateNames = $parser->getPersonAlternateNames();
        $instance->websiteUrl = $parser->getPersonWebsite();
        $instance->birthday = $parser->getPersonBirthday();
        $instance->about = $parser->getPersonAbout();
        $instance->memberFavorites = $parser->getPersonFavorites();
        $instance->voiceActingRoles = $parser->getPersonVoiceActingRoles();
        $instance->animeStaffPositions = $parser->getPersonAnimeStaffPositions();
        $instance->publishedManga = $parser->getPersonPublishedManga();

        return $instance;
    }
957504
public function removeParser($name)
    {
        // Trigger exception
        $parser = $this->parser($name);
        unset($this->parsers[$name]);

        return $this;
    }
371650
public function render($text, $skin) {
        if ($this->renderer === null) {
            throw new ParserException('Renderer not set');
        }

        $tokenList = $this->parse($text);

        return $this->renderer->render($tokenList, $skin);
    }
290062
public static function fromParser(MangaRecentlyUpdatedByUsersListParser $parser): self
    {
        $instance = new self();

        $instance->username = $parser->getUsername();
        $instance->url = $parser->getUrl();
        $instance->imageUrl = $parser->getImageUrl();
        $instance->score = $parser->getScore();
        $instance->status = $parser->getStatus();
        $instance->volumesRead = $parser->getVolumesRead();
        $instance->volumesTotal = $parser->getVolumesTotal();
        $instance->chaptersRead = $parser->getChaptersRead();
        $instance->chaptersTotal = $parser->getChaptersTotal();
        $instance->date = $parser->getDate();

        return $instance;
    }
87510
public function setRenderer($renderer)
    {
        $this->renderer = $renderer instanceof AbstractRenderer ?: $this->getRendererManager()->getRenderer((string) $renderer);

        return $this;
    }
85644
private function buildFromParser(SwaggerParser $parser)
    {
        $context = new DeserializationContext();

        $context->setVersion(
            $parser->getVersion()
        );

        return $this->serializer->deserialize($parser, Swagger::class, 'json', $context);
    }
57361
public static function fromParser(ProducerParser $parser): self
    {
        $instance = new self();
        $instance->malUrl = $parser->getUrl();
        $instance->anime = $parser->getProducerAnime();

        return $instance;
    }
822094
public function resetParserOptions($parserName)
    {
        if (isset($this->parserOptions[$parserName])) {
            $this->parserOptions[$parserName] = [];
        }
        return $this;
    }
438871
public static function fromParser(HistoryItemParser $parser): self
    {
        $instance = new self();
        $instance->malUrl = $parser->getUrl();
        $instance->increment = $parser->getIncrement();
        $instance->date = $parser->getDate();

        return $instance;
    }
1306860
public function getParser()
    {
        if (!$this->parser) {
            $this->parser = (new ParserFactory)->create(ParserFactory::PREFER_PHP7);
        }

        return $this->parser;
    }
411071
public static function fromParser(TopListItemParser $parser): self
    {
        $instance = new self();
        $instance->rank = $parser->getRank();
        $instance->malId = $parser->getMalUrl()->getMalId();
        $instance->title = $parser->getMalUrl()->getTitle();
        $instance->url = $parser->getMalUrl()->getUrl();
        $instance->type = $parser->getType();
        $instance->episodes = $parser->getEpisodes();
        $instance->startDate = $parser->getStartDate();
        $instance->endDate = $parser->getEndDate();
        $instance->members = $parser->getMembers();
        $instance->score = $parser->getScore();
        $instance->imageUrl = $parser->getImage();

        return $instance;
    }