SimpleLexer::invokeParser PHP Method

invokeParser() protected method

Empty content will be ignored. The lexer has a parser handler for each mode in the lexer.
protected invokeParser ( string $content, boolean $is_match )
$content string Text parsed.
$is_match boolean Token is recognised rather than unparsed data.
    protected function invokeParser($content, $is_match)
    {
        if ($content === '' || $content === false) {
            return true;
        }
        $handler = $this->mode_handlers[$this->mode->getCurrent()];
        return $this->parser->{$handler}($content, $is_match);
    }