1
2
3
4
5
6
7
8
9
10 (defun barf macro (x)
11 (displace x (list 'printmes (cadr x) (caddr x) (list 'quote (cadddr x))) ))
12
13 (defun warn macro (x) (displace x (list 'printmes (cadr x) (caddr x) ''warn)))
14 (defun specialp macro (x) (displace x (list 'get (cadr x) '(quote special))))
15
16 (defun memq-max macro (x) (displace x (list 'quote 11.)))
17
18
19 (defun assq-max macro (x) (displace x (list 'quote 4)))
20 (defun push macro (x)
21 (displace x (list 'setq (caddr x) (list 'cons (cadr x) (caddr x)))))
22 (defun pop macro (x) (displace x (list 'setq (cadr x) (list 'cdr (cadr x)))))
23 (defun pnamep macro (x) (displace x (subst (cadr x) 'x '(eq (typep x) 'symbol))))
24
25
26
27