generated/Parser/ParserImpl.php
protected function parseAccessor()
    {
        $a = [];

        // ArrayAccessor | ObjectAccessor
        $o1 = $this->offset;
        while ($o1 !== null) {
            if (null === ($parsed = yield 'ArrayAccessor')) { break; }
            $c1 = $parsed;


            $o1 = null;
        }

        while ($o1 !== null) {
            if (null === ($parsed = yield 'ObjectAccessor')) { break; }
            $c1 = $parsed;


            $o1 = null;
        }

        if ($o1 !== null) {
            return $this;
        }

        $a[] = $c1;

        return ($this->action)('Accessor', 'parseAccessor', $a);
    }
protected function parseAccessor()
    {
        $a = [];

        // ArrayAccessor | ObjectAccessor
        $o1 = $this->offset;
        while ($o1 !== null) {
            if (null === ($parsed = yield 'ArrayAccessor')) { break; }
            $c1 = $parsed;


            $o1 = null;
        }

        while ($o1 !== null) {
            if (null === ($parsed = yield 'ObjectAccessor')) { break; }
            $c1 = $parsed;


            $o1 = null;
        }

        if ($o1 !== null) {
            return $this;
        }

        $a[] = $c1;

        return ($this->action)('Accessor', 'parseAccessor', $a);
    }
Accessor ::= ArrayAccessor | ObjectAccessor