function many($openKind, $parseFn, $closeKind) { $this->expect($openKind); $nodes = [$parseFn($this)]; while (!$this->skip($closeKind)) { $nodes[] = $parseFn($this); } return $nodes; }