Neos\Eel\EelParser::match_OffsetAccess PHP Метод

match_OffsetAccess() публичный Метод

public match_OffsetAccess ( $stack = [] )
    function match_OffsetAccess($stack = array())
    {
        $matchrule = "OffsetAccess";
        $result = $this->construct($matchrule, $matchrule, null);
        $_5 = NULL;
        do {
            if (substr($this->string, $this->pos, 1) == '[') {
                $this->pos += 1;
                $result["text"] .= '[';
            } else {
                $_5 = FALSE;
                break;
            }
            if (($subres = $this->whitespace()) !== FALSE) {
                $result["text"] .= $subres;
            }
            $matcher = 'match_' . 'Expression';
            $key = $matcher;
            $pos = $this->pos;
            $subres = $this->packhas($key, $pos) ? $this->packread($key, $pos) : $this->packwrite($key, $pos, $this->{$matcher}(array_merge($stack, array($result))));
            if ($subres !== FALSE) {
                $this->store($result, $subres);
            } else {
                $_5 = FALSE;
                break;
            }
            if (($subres = $this->whitespace()) !== FALSE) {
                $result["text"] .= $subres;
            }
            if (substr($this->string, $this->pos, 1) == ']') {
                $this->pos += 1;
                $result["text"] .= ']';
            } else {
                $_5 = FALSE;
                break;
            }
            $_5 = TRUE;
            break;
        } while (0);
        if ($_5 === TRUE) {
            return $this->finalise($result);
        }
        if ($_5 === FALSE) {
            return FALSE;
        }
    }