1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543
|
;; Copyright (C) 1994 M. Hagiya, W. Schelter, T. Yuasa
;; This file is part of GNU Common Lisp, herein referred to as GCL
;;
;; GCL is free software; you can redistribute it and/or modify it under
;; the terms of the GNU LIBRARY GENERAL PUBLIC LICENSE as published by
;; the Free Software Foundation; either version 2, or (at your option)
;; any later version.
;;
;; GCL is distributed in the hope that it will be useful, but WITHOUT
;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
;; FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
;; License for more details.
;;
;; You should have received a copy of the GNU Library General Public License
;; along with GCL; see the file COPYING. If not, write to the Free Software
;; Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
;;;; setf.lsp
;;;;
;;;; setf routines
(in-package 'lisp)
(export '(setf psetf shiftf rotatef
define-modify-macro defsetf
getf remf incf decf push pushnew pop
define-setf-method get-setf-method get-setf-method-multiple-value))
(in-package 'system)
(eval-when (compile) (proclaim '(optimize (safety 2) (space 3))))
;(eval-when (eval compile) (defun si:clear-compiler-properties (symbol)))
(eval-when (eval compile) (setq si:*inhibit-macro-special* nil))
;;; DEFSETF macro.
(defmacro defsetf (access-fn &rest rest)
(cond ((and (car rest) (or (symbolp (car rest)) (functionp (car rest))))
`(eval-when(compile eval load)
(si:putprop ',access-fn ',(car rest) 'setf-update-fn)
(remprop ',access-fn 'setf-lambda)
(remprop ',access-fn 'setf-method)
(si:putprop ',access-fn
,(when (not (endp (cdr rest)))
(unless (stringp (cadr rest))
(error "A doc-string expected."))
(unless (endp (cddr rest))
(error "Extra arguments."))
(cadr rest))
'setf-documentation)
',access-fn))
(t
(unless (= (list-length (cadr rest)) 1)
(error "(store-variable) expected."))
`(eval-when (compile eval load)
(si:putprop ',access-fn ',rest 'setf-lambda)
(remprop ',access-fn 'setf-update-fn)
(remprop ',access-fn 'setf-method)
(si:putprop ',access-fn
,(find-documentation (cddr rest))
'setf-documentation)
',access-fn))))
;;; DEFINE-SETF-METHOD macro.
(defmacro define-setf-method (access-fn &rest rest &aux args env body)
(multiple-value-setq (args env)
(get-&environment (car rest)))
(setq body (cdr rest))
(cond (env (setq args (cons env args)))
(t (setq args (cons (gensym) args))
(push `(declare (ignore ,(car args))) body)))
`(eval-when (compile eval load)
(si:putprop ',access-fn #'(lambda ,args ,@ body) 'setf-method)
(remprop ',access-fn 'setf-lambda)
(remprop ',access-fn 'setf-update-fn)
(si:putprop ',access-fn
,(find-documentation (cdr rest))
'setf-documentation)
',access-fn))
;;; GET-SETF-METHOD.
;;; It just calls GET-SETF-METHOD-MULTIPLE-VALUE
;;; and checks the number of the store variable.
(defun get-setf-method (form &optional env)
(multiple-value-bind (vars vals stores store-form access-form)
(get-setf-method-multiple-value form env)
(unless (= (list-length stores) 1)
(error "Multiple store-variables are not allowed."))
(values vars vals stores store-form access-form)))
;;;; GET-SETF-METHOD-MULTIPLE-VALUE.
(defun get-setf-method-multiple-value (form &optional env &aux tem)
(cond ((symbolp form)
(let ((store (gensym)))
(values nil nil (list store) `(setq ,form ,store) form)))
((or (not (consp form)) (not (symbolp (car form))))
(error "Cannot get the setf-method of ~S." form))
((and env (setq tem (assoc (car form) (second env))))
(setq tem (macroexpand form env))
(if (eq form tem) (error "Cannot get setf-method for ~a" form))
(return-from get-setf-method-multiple-value
(get-setf-method-multiple-value tem env)))
((get (car form) 'setf-method)
(apply (get (car form) 'setf-method) env (cdr form)))
((or (get (car form) 'setf-update-fn)
(setq tem (get (car form) 'si::structure-access)))
(let ((vars (mapcar #'(lambda (x)
(declare (ignore x))
(gensym))
(cdr form)))
(store (gensym)))
(values vars (cdr form) (list store)
(cond (tem
(setf-structure-access (car vars) (car tem)
(cdr tem) store))
(t
`(,(get (car form) 'setf-update-fn)
,@vars ,store)))
(cons (car form) vars))))
((get (car form) 'setf-lambda)
(let* ((vars (mapcar #'(lambda (x)
(declare (ignore x))
(gensym))
(cdr form)))
(store (gensym))
(l (get (car form) 'setf-lambda))
;; this looks bogus to me. What if l is compiled?--wfs
(f `(lambda ,(car l) #'(lambda ,(cadr l) ,@(cddr l)))))
(values vars (cdr form) (list store)
(funcall (apply f vars) store)
(cons (car form) vars))))
((macro-function (car form))
(get-setf-method-multiple-value (macroexpand form)))
(t
(error "Cannot expand the SETF form ~S." form))))
;;;; SETF definitions.
(defsetf car (x) (y) `(progn (rplaca ,x ,y) ,y))
(defsetf cdr (x) (y) `(progn (rplacd ,x ,y), y))
(defsetf caar (x) (y) `(progn (rplaca (car ,x) ,y) ,y))
(defsetf cdar (x) (y) `(progn (rplacd (car ,x) ,y) ,y))
(defsetf cadr (x) (y) `(progn (rplaca (cdr ,x) ,y) ,y))
(defsetf cddr (x) (y) `(progn (rplacd (cdr ,x) ,y) ,y))
(defsetf caaar (x) (y) `(progn (rplaca (caar ,x) ,y) ,y))
(defsetf cdaar (x) (y) `(progn (rplacd (caar ,x) ,y) ,y))
(defsetf cadar (x) (y) `(progn (rplaca (cdar ,x) ,y) ,y))
(defsetf cddar (x) (y) `(progn (rplacd (cdar ,x) ,y) ,y))
(defsetf caadr (x) (y) `(progn (rplaca (cadr ,x) ,y) ,y))
(defsetf cdadr (x) (y) `(progn (rplacd (cadr ,x) ,y) ,y))
(defsetf caddr (x) (y) `(progn (rplaca (cddr ,x) ,y) ,y))
(defsetf cdddr (x) (y) `(progn (rplacd (cddr ,x) ,y) ,y))
(defsetf caaaar (x) (y) `(progn (rplaca (caaar ,x) ,y) ,y))
(defsetf cdaaar (x) (y) `(progn (rplacd (caaar ,x) ,y) ,y))
(defsetf cadaar (x) (y) `(progn (rplaca (cdaar ,x) ,y) ,y))
(defsetf cddaar (x) (y) `(progn (rplacd (cdaar ,x) ,y) ,y))
(defsetf caadar (x) (y) `(progn (rplaca (cadar ,x) ,y) ,y))
(defsetf cdadar (x) (y) `(progn (rplacd (cadar ,x) ,y) ,y))
(defsetf caddar (x) (y) `(progn (rplaca (cddar ,x) ,y) ,y))
(defsetf cdddar (x) (y) `(progn (rplacd (cddar ,x) ,y) ,y))
(defsetf caaadr (x) (y) `(progn (rplaca (caadr ,x) ,y) ,y))
(defsetf cdaadr (x) (y) `(progn (rplacd (caadr ,x) ,y) ,y))
(defsetf cadadr (x) (y) `(progn (rplaca (cdadr ,x) ,y) ,y))
(defsetf cddadr (x) (y) `(progn (rplacd (cdadr ,x) ,y) ,y))
(defsetf caaddr (x) (y) `(progn (rplaca (caddr ,x) ,y) ,y))
(defsetf cdaddr (x) (y) `(progn (rplacd (caddr ,x) ,y) ,y))
(defsetf cadddr (x) (y) `(progn (rplaca (cdddr ,x) ,y) ,y))
(defsetf cddddr (x) (y) `(progn (rplacd (cdddr ,x) ,y) ,y))
(defsetf first (x) (y) `(progn (rplaca ,x ,y) ,y))
(defsetf second (x) (y) `(progn (rplaca (cdr ,x) ,y) ,y))
(defsetf third (x) (y) `(progn (rplaca (cddr ,x) ,y) ,y))
(defsetf fourth (x) (y) `(progn (rplaca (cdddr ,x) ,y) ,y))
(defsetf fifth (x) (y) `(progn (rplaca (cddddr ,x) ,y) ,y))
(defsetf sixth (x) (y) `(progn (rplaca (nthcdr 5 ,x) ,y) ,y))
(defsetf seventh (x) (y) `(progn (rplaca (nthcdr 6 ,x) ,y) ,y))
(defsetf eighth (x) (y) `(progn (rplaca (nthcdr 7 ,x) ,y) ,y))
(defsetf ninth (x) (y) `(progn (rplaca (nthcdr 8 ,x) ,y) ,y))
(defsetf tenth (x) (y) `(progn (rplaca (nthcdr 9 ,x) ,y) ,y))
(defsetf rest (x) (y) `(progn (rplacd ,x ,y) ,y))
(defsetf svref si:svset)
(defsetf elt si:elt-set)
(defsetf symbol-value set)
(defsetf symbol-function si:fset)
(defsetf macro-function (s) (v) `(progn (si:fset ,s (cons 'macro ,v)) ,v))
(defsetf aref si:aset)
(defsetf get put-aux)
(defmacro put-aux (a b &rest l)
`(si::sputprop ,a ,b ,(car (last l))))
(defsetf nth (n l) (v) `(progn (rplaca (nthcdr ,n ,l) ,v) ,v))
(defsetf char si:char-set)
(defsetf schar si:schar-set)
(defsetf bit si:aset)
(defsetf sbit si:aset)
(defsetf fill-pointer si:fill-pointer-set)
(defsetf symbol-plist si:set-symbol-plist)
(defsetf gethash (k h &optional d) (v) `(si:hash-set ,k ,h ,v))
(defsetf row-major-aref si:aset1)
(defsetf documentation (s d) (v)
`(case ,d
(variable (si:putprop ,s ,v 'variable-documentation))
(function (si:putprop ,s ,v 'function-documentation))
(structure (si:putprop ,s ,v 'structure-documentation))
(type (si:putprop ,s ,v 'type-documentation))
(setf (si:putprop ,s ,v 'setf-documentation))
(t (error "~S is an illegal documentation type." ,d))))
(define-setf-method getf (&environment env place indicator &optional default)
(multiple-value-bind (vars vals stores store-form access-form)
(get-setf-method place env)
(let ((itemp (gensym)) (store (gensym)))
(values `(,@vars ,itemp)
`(,@vals ,indicator)
(list store)
`(let ((,(car stores) (si:put-f ,access-form ,store ,itemp)))
,store-form
,store)
`(getf ,access-form ,itemp ,default)))))
(defsetf subseq (sequence1 start1 &optional end1)
(sequence2)
`(replace ,sequence1 ,sequence2 :start1 ,start1 :end1 ,end1))
(define-setf-method the (&environment env type form)
(multiple-value-bind (vars vals stores store-form access-form)
(get-setf-method form env)
(let ((store (gensym)))
(values vars vals (list store)
`(let ((,(car stores) (the ,type ,store))) ,store-form)
`(the ,type ,access-form)))))
#|
(define-setf-method apply (&environment env fn &rest rest)
(unless (and (consp fn) (eq (car fn) 'function) (symbolp (cadr fn))
(null (cddr fn)))
(error "Can't get the setf-method of ~S." fn))
(multiple-value-bind (vars vals stores store-form access-form)
(get-setf-method (cons (cadr fn) rest) env)
(unless (eq (car (last store-form)) (car (last vars)))
(error "Can't get the setf-method of ~S." fn))
(values vars vals stores
`(apply #',(car store-form) ,@(cdr store-form))
`(apply #',(cadr fn) ,@(cdr access-form)))))
|#
(define-setf-method apply (&environment env fn &rest rest)
(unless (and (consp fn)
(or (eq (car fn) 'function) (eq (car fn) 'quote))
(symbolp (cadr fn))
(null (cddr fn)))
(error "Can't get the setf-method of ~S." fn))
(multiple-value-bind (vars vals stores store-form access-form)
(get-setf-method (cons (cadr fn) rest) env)
(cond ((eq (car (last store-form)) (car (last vars)))
(values vars vals stores
`(apply #',(car store-form) ,@(cdr store-form))
`(apply #',(cadr fn) ,@(cdr access-form))))
((eq (car (last (butlast store-form))) (car (last vars)))
(values vars vals stores
`(apply #',(car store-form)
,@(cdr (butlast store-form 2))
(append ,(car (last (butlast store-form)))
(list ,(car (last store-form)))))
`(apply #',(cadr fn) ,@(cdr access-form))))
(t (error "Can't get the setf-method of ~S." fn)))))
(define-setf-method char-bit (&environment env char name)
(multiple-value-bind (temps vals stores store-form access-form)
(get-setf-method char env)
(let ((ntemp (gensym))
(store (gensym))
(stemp (first stores)))
(values `(,ntemp ,@temps)
`(,name ,@vals)
(list store)
`(let ((,stemp (set-char-bit ,access-form ,ntemp ,store)))
,store-form ,store)
`(char-bit ,access-form ,ntemp)))))
(define-setf-method ldb (&environment env bytespec int)
(multiple-value-bind (temps vals stores store-form access-form)
(get-setf-method int env)
(let ((btemp (gensym))
(store (gensym))
(stemp (first stores)))
(values `(,btemp ,@temps)
`(,bytespec ,@vals)
(list store)
`(let ((,stemp (dpb ,store ,btemp ,access-form)))
,store-form ,store)
`(ldb ,btemp ,access-form)))))
(define-setf-method mask-field (&environment env bytespec int)
(multiple-value-bind (temps vals stores store-form access-form)
(get-setf-method int env)
(let ((btemp (gensym))
(store (gensym))
(stemp (first stores)))
(values `(,btemp ,@temps)
`(,bytespec ,@vals)
(list store)
`(let ((,stemp (deposit-field ,store ,btemp ,access-form)))
,store-form ,store)
`(mask-field ,btemp ,access-form)))))
;;; The expansion function for SETF.
(defun setf-expand-1 (place newvalue env &aux g)
(when (and (consp place) (eq (car place) 'the))
(return-from setf-expand-1
(setf-expand-1 (caddr place) `(the ,(cadr place) ,newvalue) env)))
(when (and (consp place) (eq (car place) 'values))
(do ((vl (cdr place) (cdr vl))
(sym (gensym))
(forms nil)
(n 0 (1+ n)))
((endp vl) (return-from setf-expand-1
`(let ((,sym (multiple-value-list ,newvalue)))
(values ,@(nreverse forms)))))
(declare (fixnum n) (object vl))
(let ((method (if (symbolp (car vl)) 'setq 'setf)))
(push `(,method ,(car vl) (nth ,n ,sym)) forms))))
(when (symbolp place)
(return-from setf-expand-1 `(setq ,place ,newvalue)))
(when (and (consp place)
(not (or (get (car place) 'setf-lambda)
(get (car place) 'setf-update-fn))))
(multiple-value-setq (place g) (macroexpand place env))
(if g (return-from setf-expand-1 (setf-expand-1 place newvalue env))))
(when (and (symbolp (car place)) (setq g (get (car place) 'setf-update-fn)))
(return-from setf-expand-1 `(,g ,@(cdr place) ,newvalue)))
(cond ((and (symbolp (car place))
(setq g (get (car place) 'structure-access)))
(return-from setf-expand-1
(setf-structure-access (cadr place) (car g) (cdr g) newvalue))))
(multiple-value-bind (vars vals stores store-form access-form)
(get-setf-method place env)
(declare (ignore access-form))
`(let* ,(mapcar #'list
(append vars stores)
(append vals (list newvalue)))
,store-form)))
(defun setf-structure-access (struct type index newvalue)
(case type
(list `(si:rplaca-nthcdr ,struct ,index ,newvalue))
(vector `(si:elt-set ,struct ,index ,newvalue))
(t `(si::structure-set ,struct ',type ,index ,newvalue))))
(defun setf-expand (l env)
(cond ((endp l) nil)
((endp (cdr l)) (error "~S is an illegal SETF form." l))
(t
(cons (setf-expand-1 (car l) (cadr l) env)
(setf-expand (cddr l) env)))))
;;; SETF macro.
(defun setf-helper (rest env)
(setq rest (cdr rest))
(cond ((endp rest) nil)
((endp (cdr rest)) (error "~S is an illegal SETF form." rest))
((endp (cddr rest)) (setf-expand-1 (car rest) (cadr rest) env))
(t (cons 'progn (setf-expand rest env)))))
;(setf (macro-function 'setf) 'setf-help)
(si::fset 'setf (cons 'macro (symbol-function 'setf-helper)))
;;; PSETF macro.
(defmacro psetf (&environment env &rest rest)
(cond ((endp rest) nil)
((endp (cdr rest)) (error "~S is an illegal PSETF form." rest))
((endp (cddr rest))
`(progn ,(setf-expand-1 (car rest) (cadr rest) env)
nil))
(t
(do ((r rest (cddr r))
(pairs nil)
(store-forms nil))
((endp r)
`(let* ,pairs
,@(nreverse store-forms)
nil))
(when (endp (cdr r)) (error "~S is an illegal PSETF form." rest))
(multiple-value-bind (vars vals stores store-form access-form)
(get-setf-method (car r) env)
(declare (ignore access-form))
(setq store-forms (cons store-form store-forms))
(setq pairs
(nconc pairs
(mapcar #'list
(append vars stores)
(append vals (list (cadr r)))))))))))
;;; SHIFTF macro.
(defmacro shiftf (&environment env &rest rest )
(do ((r rest (cdr r))
(pairs nil)
(stores nil)
(store-forms nil)
(g (gensym))
(access-forms nil))
((endp (cdr r))
(setq stores (nreverse stores))
(setq store-forms (nreverse store-forms))
(setq access-forms (nreverse access-forms))
`(let* ,(nconc pairs
(list (list g (car access-forms)))
(mapcar #'list stores (cdr access-forms))
(list (list (car (last stores)) (car r))))
,@store-forms
,g))
(multiple-value-bind (vars vals stores1 store-form access-form)
(get-setf-method (car r) env)
(setq pairs (nconc pairs (mapcar #'list vars vals)))
(setq stores (cons (car stores1) stores))
(setq store-forms (cons store-form store-forms))
(setq access-forms (cons access-form access-forms)))))
;;; ROTATEF macro.
(defmacro rotatef (&environment env &rest rest )
(do ((r rest (cdr r))
(pairs nil)
(stores nil)
(store-forms nil)
(access-forms nil))
((endp r)
(setq stores (nreverse stores))
(setq store-forms (nreverse store-forms))
(setq access-forms (nreverse access-forms))
`(let* ,(nconc pairs
(mapcar #'list stores (cdr access-forms))
(list (list (car (last stores)) (car access-forms))))
,@store-forms
nil
))
(multiple-value-bind (vars vals stores1 store-form access-form)
(get-setf-method (car r) env)
(setq pairs (nconc pairs (mapcar #'list vars vals)))
(setq stores (cons (car stores1) stores))
(setq store-forms (cons store-form store-forms))
(setq access-forms (cons access-form access-forms)))))
;;; DEFINE-MODIFY-MACRO macro.
(defmacro define-modify-macro (name lambda-list function &optional doc-string)
(let ((update-form
(do ((l lambda-list (cdr l))
(vs nil))
((null l) `(list ',function access-form ,@(nreverse vs)))
(unless (eq (car l) '&optional)
(if (eq (car l) '&rest)
(return `(list* ',function
access-form
,@(nreverse vs)
,(cadr l))))
(if (symbolp (car l))
(setq vs (cons (car l) vs))
(setq vs (cons (caar l) vs)))))))
`(defmacro ,name (&environment env reference . ,lambda-list)
,@(if doc-string (list doc-string))
(when (symbolp reference)
(return-from ,name
(let ((access-form reference))
(list 'setq reference ,update-form))))
(multiple-value-bind (vars vals stores store-form access-form)
(get-setf-method reference env)
(list 'let*
(mapcar #'list
(append vars stores)
(append vals (list ,update-form)))
store-form))))))))))))))))))))
;;; Some macro definitions.
(defmacro remf (&environment env place indicator)
(multiple-value-bind (vars vals stores store-form access-form)
(get-setf-method place env)
`(let* ,(mapcar #'list vars vals)
(multiple-value-bind (,(car stores) flag)
(si:rem-f ,access-form ,indicator)
,store-form
flag))))
(define-modify-macro incf (&optional (delta 1)) +)
(define-modify-macro decf (&optional (delta 1)) -)
(defmacro push (&environment env item place)
(let ((myitem (gensym)))
(when (symbolp place)
(return-from push `(let* ((,myitem ,item))
(setq ,place (cons ,myitem ,place)))))
(multiple-value-bind (vars vals stores store-form access-form)
(get-setf-method place env)
`(let* ,(mapcar #'list
(append (list myitem) vars stores)
(append (list item) vals (list (list 'cons myitem access-form))))
,store-form))))
(defmacro pushnew (&environment env item place &rest rest)
(let ((myitem (gensym)))
(cond ((symbolp place)
(return-from pushnew `(let* ((,myitem ,item))
(setq ,place (adjoin ,myitem ,place ,@rest))))))
(multiple-value-bind (vars vals stores store-form access-form)
(get-setf-method place env)
`(let* ,(mapcar #'list
(append (list myitem) vars stores)
(append (list item) vals
(list (list* 'adjoin myitem access-form rest))))
,store-form))))
(defmacro pop (&environment env place)
(when (symbolp place)
(return-from pop
(let ((temp (gensym)))
`(let ((,temp (car ,place)))
(setq ,place (cdr ,place))
,temp))))
(multiple-value-bind (vars vals stores store-form access-form)
(get-setf-method place env)
`(let* ,(mapcar #'list
(append vars stores)
(append vals (list (list 'cdr access-form))))
(prog1 (car ,access-form)
,store-form))))
|