home *** CD-ROM | disk | FTP | other *** search
Unknown | 1992-07-21 | 45.8 KB |
view JSON data
|
view as text
|
open on a Mac
|
open on a PC
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| Emacs Compiled Lisp (other/emacsCompiledLisp)
| ext
| Unsupported |
100%
| file
| data
| default
| |
100%
| gt2
| Kopftext: ';;; compiled by jimb'
| default (weak)
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 3b 3b 20 63 6f 6d 70 | 69 6c 65 64 20 62 79 20 |;;; comp|iled by |
|00000010| 6a 69 6d 62 40 77 6f 6f | 6b 75 6d 7a 2e 67 6e 75 |jimb@woo|kumz.gnu|
|00000020| 2e 61 69 2e 6d 69 74 2e | 65 64 75 20 6f 6e 20 54 |.ai.mit.|edu on T|
|00000030| 75 65 20 4a 75 6c 20 32 | 31 20 30 31 3a 32 37 3a |ue Jul 2|1 01:27:|
|00000040| 31 31 20 31 39 39 32 0a | 3b 3b 3b 20 66 72 6f 6d |11 1992.|;;; from|
|00000050| 20 66 69 6c 65 20 2f 68 | 6f 6d 65 2f 67 64 2f 67 | file /h|ome/gd/g|
|00000060| 6e 75 2f 65 6d 61 63 73 | 2d 31 38 2e 35 38 2f 6c |nu/emacs|-18.58/l|
|00000070| 69 73 70 2f 63 6c 2e 65 | 6c 0a 3b 3b 3b 20 65 6d |isp/cl.e|l.;;; em|
|00000080| 61 63 73 20 76 65 72 73 | 69 6f 6e 20 31 38 2e 35 |acs vers|ion 18.5|
|00000090| 38 2e 31 2e 0a 3b 3b 3b | 20 62 79 74 65 63 6f 6d |8.1..;;;| bytecom|
|000000a0| 70 20 76 65 72 73 69 6f | 6e 20 32 2e 30 31 20 62 |p versio|n 2.01 b|
|000000b0| 65 74 61 3b 20 31 33 2d | 61 75 67 2d 39 31 2e 0a |eta; 13-|aug-91..|
|000000c0| 3b 3b 3b 20 6f 70 74 69 | 6d 69 7a 61 74 69 6f 6e |;;; opti|mization|
|000000d0| 20 69 73 20 6f 6e 3b 20 | 63 6f 6d 70 69 6c 65 64 | is on; |compiled|
|000000e0| 20 77 69 74 68 20 65 6d | 61 63 73 31 38 20 63 6f | with em|acs18 co|
|000000f0| 6d 70 61 74 69 62 69 6c | 69 74 79 2e 0a 0a 28 70 |mpatibil|ity...(p|
|00000100| 72 6f 76 69 64 65 20 28 | 71 75 6f 74 65 20 63 6c |rovide (|quote cl|
|00000110| 29 29 0a 28 64 65 66 6d | 61 63 72 6f 20 70 73 65 |)).(defm|acro pse|
|00000120| 74 71 20 28 26 72 65 73 | 74 20 70 61 69 72 73 29 |tq (&res|t pairs)|
|00000130| 20 22 5c 0a 28 70 73 65 | 74 71 20 7b 56 41 52 49 | "\.(pse|tq {VARI|
|00000140| 41 42 4c 45 20 56 41 4c | 55 45 7d 2e 2e 2e 29 3a |ABLE VAL|UE}...):|
|00000150| 20 49 6e 20 70 61 72 61 | 6c 6c 65 6c 2c 20 73 65 | In para|llel, se|
|00000160| 74 20 65 61 63 68 20 56 | 41 52 49 41 42 4c 45 20 |t each V|ARIABLE |
|00000170| 74 6f 20 69 74 73 20 56 | 41 4c 55 45 2e 0a 41 6c |to its V|ALUE..Al|
|00000180| 6c 20 74 68 65 20 56 41 | 4c 55 45 73 20 61 72 65 |l the VA|LUEs are|
|00000190| 20 65 76 61 6c 75 61 74 | 65 64 2c 20 61 6e 64 20 | evaluat|ed, and |
|000001a0| 74 68 65 6e 20 61 6c 6c | 20 74 68 65 20 56 41 52 |then all| the VAR|
|000001b0| 49 41 42 4c 45 73 20 61 | 72 65 20 73 65 74 2e 0a |IABLEs a|re set..|
|000001c0| 41 73 69 64 65 20 66 72 | 6f 6d 20 6f 72 64 65 72 |Aside fr|om order|
|000001d0| 20 6f 66 20 65 76 61 6c | 75 61 74 69 6f 6e 2c 20 | of eval|uation, |
|000001e0| 74 68 69 73 20 69 73 20 | 74 68 65 20 73 61 6d 65 |this is |the same|
|000001f0| 20 61 73 20 60 73 65 74 | 71 27 2e 22 20 28 62 79 | as `set|q'." (by|
|00000200| 74 65 2d 63 6f 64 65 20 | 22 08 47 c1 89 89 89 89 |te-code |".G.....|
|00000210| 89 1a 1b 1c 1d 1e 06 1e | 07 1e 08 c9 0e 08 ca 5c |........|.......\|
|00000220| 22 cb 55 84 20 00 cc cd | 21 88 08 c1 1e 0e 89 1e |".U. ...|!.......|
|00000230| 0f 83 56 00 0e 0f 40 89 | 16 0e 39 84 3c 00 cc d0 |..V...@.|..9.<...|
|00000240| d1 0e 0e 21 5c 22 88 0e | 0e 0e 07 42 16 07 0e 0f |...!\"..|...B....|
|00000250| 41 40 0e 06 42 16 06 0e | 0f 41 41 89 16 0f 84 2a |A@..B...|.AA....*|
|00000260| 00 2a 0e 06 c1 89 1e 12 | 1e 13 89 1e 0f 83 83 00 |.*......|........|
|00000270| 0e 0f 40 16 13 d4 20 89 | 16 12 0e 13 44 0d 42 15 |..@... .|....D.B.|
|00000280| 0e 12 0c 42 14 0e 0f 41 | 89 16 0f 84 65 00 2b d5 |...B...A|....e.+.|
|00000290| 0c 21 14 0e 07 0c 1e 16 | 1e 17 0e 17 83 ab 00 0e |.!......|........|
|000002a0| 17 40 0e 16 40 0b 42 42 | 13 0e 17 41 16 17 0e 16 |.@..@.BB|...A....|
|000002b0| 41 16 16 82 8f 00 2a d8 | 0d d9 0b 42 c1 46 2e 07 |A.....*.|...B.F..|
|000002c0| 87 22 20 5b 70 61 69 72 | 73 20 6e 69 6c 20 69 20 |." [pair|s nil i |
|000002d0| 61 73 73 69 67 6e 6d 65 | 6e 74 73 20 6e 65 77 73 |assignme|nts news|
|000002e0| 79 6d 73 20 62 69 6e 64 | 69 6e 67 73 20 66 6f 72 |yms bind|ings for|
|000002f0| 6d 73 20 73 79 6d 62 6f | 6c 73 20 6e 66 6f 72 6d |ms symbo|ls nform|
|00000300| 73 20 25 20 32 20 30 20 | 65 72 72 6f 72 20 22 4f |s % 2 0 |error "O|
|00000310| 64 64 20 6e 75 6d 62 65 | 72 20 6f 66 20 61 72 67 |dd numbe|r of arg|
|00000320| 75 6d 65 6e 74 73 20 74 | 6f 20 60 70 73 65 74 71 |uments t|o `psetq|
|00000330| 27 22 20 76 61 72 20 70 | 74 72 20 22 60 70 73 65 |'" var p|tr "`pse|
|00000340| 74 71 27 20 65 78 70 65 | 63 74 65 64 20 61 20 73 |tq' expe|cted a s|
|00000350| 79 6d 62 6f 6c 2c 20 66 | 6f 75 6e 64 20 27 25 73 |ymbol, f|ound '%s|
|00000360| 27 2e 22 20 70 72 69 6e | 31 2d 74 6f 2d 73 74 72 |'." prin|1-to-str|
|00000370| 69 6e 67 20 6e 65 77 73 | 79 6d 20 66 6f 72 6d 20 |ing news|ym form |
|00000380| 67 65 6e 73 79 6d 20 6e | 72 65 76 65 72 73 65 20 |gensym n|reverse |
|00000390| 70 74 72 32 20 70 74 72 | 31 20 6c 65 74 20 73 65 |ptr2 ptr|1 let se|
|000003a0| 74 71 5d 20 38 29 29 0a | 28 64 65 66 75 6e 20 70 |tq] 8)).|(defun p|
|000003b0| 61 69 72 2d 77 69 74 68 | 2d 6e 65 77 73 79 6d 73 |air-with|-newsyms|
|000003c0| 20 28 6f 6c 64 66 6f 72 | 6d 73 29 20 22 5c 0a 50 | (oldfor|ms) "\.P|
|000003d0| 41 49 52 2d 57 49 54 48 | 2d 4e 45 57 53 59 4d 53 |AIR-WITH|-NEWSYMS|
|000003e0| 20 4f 4c 44 46 4f 52 4d | 53 0a 54 68 65 20 74 6f | OLDFORM|S.The to|
|000003f0| 70 2d 6c 65 76 65 6c 20 | 63 6f 6d 70 6f 6e 65 6e |p-level |componen|
|00000400| 74 73 20 6f 66 20 74 68 | 65 20 6c 69 73 74 20 6f |ts of th|e list o|
|00000410| 6c 64 66 6f 72 6d 73 20 | 61 72 65 20 70 61 69 72 |ldforms |are pair|
|00000420| 65 64 20 77 69 74 68 20 | 66 72 65 73 68 0a 73 79 |ed with |fresh.sy|
|00000430| 6d 62 6f 6c 73 2c 20 74 | 68 65 20 70 61 69 72 69 |mbols, t|he pairi|
|00000440| 6e 67 73 20 6c 69 73 74 | 20 61 6e 64 20 74 68 65 |ngs list| and the|
|00000450| 20 6e 65 77 73 79 6d 73 | 20 6c 69 73 74 20 61 72 | newsyms| list ar|
|00000460| 65 20 72 65 74 75 72 6e | 65 64 2e 22 20 28 62 79 |e return|ed." (by|
|00000470| 74 65 2d 63 6f 64 65 20 | 22 08 c1 89 1a 1b 1c c5 |te-code |".......|
|00000480| 0c 21 84 27 00 c6 20 89 | 1e 07 0c 40 44 0b 42 13 |.!.'.. .|...@D.B.|
|00000490| 0e 07 5c 6e 42 12 29 0c | 41 89 1e 08 14 29 82 06 |..\nB.).|A....)..|
|000004a0| 00 c9 ca 0b 21 ca 5c 6e | 21 5c 22 2b 87 22 20 5b |....!.\n|!\"+." [|
|000004b0| 6f 6c 64 66 6f 72 6d 73 | 20 6e 69 6c 20 6e 65 77 |oldforms| nil new|
|000004c0| 73 79 6d 73 20 62 69 6e | 64 69 6e 67 73 20 70 74 |syms bin|dings pt|
|000004d0| 72 20 65 6e 64 70 20 67 | 65 6e 74 65 6d 70 20 6e |r endp g|entemp n|
|000004e0| 65 77 73 79 6d 20 47 24 | 24 5f 35 30 30 20 76 61 |ewsym G$|$_500 va|
|000004f0| 6c 75 65 73 20 6e 72 65 | 76 65 72 73 65 5d 20 35 |lues nre|verse] 5|
|00000500| 29 29 0a 28 64 65 66 75 | 6e 20 7a 69 70 2d 6c 69 |)).(defu|n zip-li|
|00000510| 73 74 73 20 28 65 76 65 | 6e 73 20 6f 64 64 73 29 |sts (eve|ns odds)|
|00000520| 20 22 5c 0a 4d 65 72 67 | 65 20 74 77 6f 20 6c 69 | "\.Merg|e two li|
|00000530| 73 74 73 20 45 56 45 4e | 53 20 61 6e 64 20 4f 44 |sts EVEN|S and OD|
|00000540| 44 53 2c 20 74 61 6b 69 | 6e 67 20 65 6c 74 73 20 |DS, taki|ng elts |
|00000550| 66 72 6f 6d 20 65 61 63 | 68 20 6c 69 73 74 20 61 |from eac|h list a|
|00000560| 6c 74 65 72 6e 61 74 69 | 6e 67 6c 79 2e 0a 45 56 |lternati|ngly..EV|
|00000570| 45 4e 53 20 61 6e 64 20 | 4f 44 44 53 20 61 72 65 |ENS and |ODDS are|
|00000580| 20 74 77 6f 20 6c 69 73 | 74 73 2e 20 20 5a 49 50 | two lis|ts. ZIP|
|00000590| 2d 4c 49 53 54 53 20 63 | 6f 6e 73 74 72 75 63 74 |-LISTS c|onstruct|
|000005a0| 73 20 61 20 6e 65 77 20 | 6c 69 73 74 2c 20 77 68 |s a new |list, wh|
|000005b0| 6f 73 65 0a 65 76 65 6e | 20 6e 75 6d 62 65 72 65 |ose.even| numbere|
|000005c0| 64 20 65 6c 65 6d 65 6e | 74 73 20 28 30 2c 32 2c |d elemen|ts (0,2,|
|000005d0| 2e 2e 2e 29 20 63 6f 6d | 65 20 66 72 6f 6d 20 45 |...) com|e from E|
|000005e0| 56 45 4e 53 20 61 6e 64 | 20 77 68 6f 73 65 20 6f |VENS and| whose o|
|000005f0| 64 64 0a 6e 75 6d 62 65 | 72 65 64 20 65 6c 65 6d |dd.numbe|red elem|
|00000600| 65 6e 74 73 20 28 31 2c | 33 2c 2e 2e 2e 29 20 63 |ents (1,|3,...) c|
|00000610| 6f 6d 65 20 66 72 6f 6d | 20 4f 44 44 53 2e 20 0a |ome from| ODDS. .|
|00000620| 54 68 65 20 63 6f 6e 73 | 74 72 75 63 74 69 6f 6e |The cons|truction|
|00000630| 20 73 74 6f 70 73 20 77 | 68 65 6e 20 74 68 65 20 | stops w|hen the |
|00000640| 73 68 6f 72 74 65 72 20 | 6c 69 73 74 20 69 73 20 |shorter |list is |
|00000650| 65 78 68 61 75 73 74 65 | 64 2e 22 20 28 62 79 74 |exhauste|d." (byt|
|00000660| 65 2d 63 6f 64 65 20 22 | 08 19 5c 6e 1b 09 40 1c |e-code "|..\n..@.|
|00000670| 0b 40 1d c6 1e 07 c8 09 | 21 84 30 00 c8 0b 21 84 |.@......|!.0...!.|
|00000680| 30 00 0d 0c 0e 07 42 42 | 16 07 09 41 11 0b 41 13 |0.....BB|...A..A.|
|00000690| 09 40 14 0b 40 15 82 0d | 00 c9 0e 07 21 2d 87 22 |.@..@...|....!-."|
|000006a0| 20 5b 65 76 65 6e 73 20 | 70 30 20 6f 64 64 73 20 | [evens |p0 odds |
|000006b0| 70 31 20 65 76 65 6e 20 | 6f 64 64 20 6e 69 6c 20 |p1 even |odd nil |
|000006c0| 72 65 73 75 6c 74 20 65 | 6e 64 70 20 6e 72 65 76 |result e|ndp nrev|
|000006d0| 65 72 73 65 5d 20 33 29 | 29 0a 28 64 65 66 75 6e |erse] 3)|).(defun|
|000006e0| 20 75 6e 7a 69 70 2d 6c | 69 73 74 20 28 6c 69 73 | unzip-l|ist (lis|
|000006f0| 74 29 20 22 5c 0a 45 78 | 74 72 61 63 74 20 65 76 |t) "\.Ex|tract ev|
|00000700| 65 6e 20 61 6e 64 20 6f | 64 64 20 65 6c 65 6d 65 |en and o|dd eleme|
|00000710| 6e 74 73 20 6f 66 20 4c | 49 53 54 20 69 6e 74 6f |nts of L|IST into|
|00000720| 20 74 77 6f 20 73 65 70 | 61 72 61 74 65 20 6c 69 | two sep|arate li|
|00000730| 73 74 73 2e 0a 54 68 65 | 20 61 72 67 75 6d 65 6e |sts..The| argumen|
|00000740| 74 20 4c 49 53 54 20 69 | 73 20 73 65 70 61 72 61 |t LIST i|s separa|
|00000750| 74 65 64 20 69 6e 20 74 | 77 6f 20 73 74 72 61 6e |ted in t|wo stran|
|00000760| 64 73 2c 20 74 68 65 20 | 65 76 65 6e 20 61 6e 64 |ds, the |even and|
|00000770| 20 74 68 65 20 6f 64 64 | 0a 6e 75 6d 62 65 72 65 | the odd|.numbere|
|00000780| 64 20 65 6c 65 6d 65 6e | 74 73 2e 20 20 4e 75 6d |d elemen|ts. Num|
|00000790| 62 65 72 69 6e 67 20 73 | 74 61 72 74 73 20 77 69 |bering s|tarts wi|
|000007a0| 74 68 20 30 2c 20 73 6f | 20 74 68 65 20 66 69 72 |th 0, so| the fir|
|000007b0| 73 74 20 65 6c 65 6d 65 | 6e 74 0a 62 65 6c 6f 6e |st eleme|nt.belon|
|000007c0| 67 73 20 69 6e 20 45 56 | 45 4e 53 2e 20 4e 6f 20 |gs in EV|ENS. No |
|000007d0| 63 68 65 63 6b 20 69 73 | 20 6d 61 64 65 20 74 68 |check is| made th|
|000007e0| 61 74 20 74 68 65 72 65 | 20 69 73 20 61 6e 20 65 |at there| is an e|
|000007f0| 76 65 6e 20 6e 75 6d 62 | 65 72 20 6f 66 0a 65 6c |ven numb|er of.el|
|00000800| 65 6d 65 6e 74 73 20 74 | 6f 20 73 74 61 72 74 20 |ements t|o start |
|00000810| 77 69 74 68 2e 22 20 28 | 62 79 74 65 2d 63 6f 64 |with." (|byte-cod|
|00000820| 65 20 22 08 89 19 40 1a | c3 09 21 1c c5 1e 06 c5 |e "...@.|..!.....|
|00000830| 1e 07 c8 09 21 84 2f 00 | 5c 6e 0e 06 42 16 06 0c |....!./.|\n..B...|
|00000840| 0e 07 42 16 07 c9 09 21 | 89 11 40 12 c3 09 21 14 |..B....!|..@...!.|
|00000850| 82 0f 00 ca cb 0e 06 21 | cb 0e 07 21 5c 22 2d 87 |.......!|...!\"-.|
|00000860| 22 20 5b 6c 69 73 74 20 | 70 74 72 20 74 68 69 73 |" [list |ptr this|
|00000870| 20 63 61 64 72 20 6e 65 | 78 74 20 6e 69 6c 20 65 | cadr ne|xt nil e|
|00000880| 76 65 6e 73 20 6f 64 64 | 73 20 65 6e 64 70 20 63 |vens odd|s endp c|
|00000890| 64 64 72 20 76 61 6c 75 | 65 73 20 6e 72 65 76 65 |ddr valu|es nreve|
|000008a0| 72 73 65 5d 20 35 29 29 | 0a 28 64 65 66 75 6e 20 |rse] 5))|.(defun |
|000008b0| 72 65 61 73 73 65 6d 62 | 6c 65 2d 61 72 67 73 6c |reassemb|le-argsl|
|000008c0| 69 73 74 73 20 28 61 72 | 67 73 6c 69 73 74 73 29 |ists (ar|gslists)|
|000008d0| 20 22 5c 0a 28 72 65 61 | 73 73 65 6d 62 6c 65 2d | "\.(rea|ssemble-|
|000008e0| 61 72 67 73 6c 69 73 74 | 73 20 41 52 47 53 4c 49 |argslist|s ARGSLI|
|000008f0| 53 54 53 29 2e 0a 41 52 | 47 53 4c 49 53 54 53 20 |STS)..AR|GSLISTS |
|00000900| 69 73 20 61 20 6c 69 73 | 74 20 6f 66 20 73 65 71 |is a lis|t of seq|
|00000910| 75 65 6e 63 65 73 2e 20 | 20 52 65 74 75 72 6e 20 |uences. | Return |
|00000920| 61 20 6c 69 73 74 20 6f | 66 20 6c 69 73 74 73 2c |a list o|f lists,|
|00000930| 20 74 68 65 20 66 69 72 | 73 74 0a 73 75 62 6c 69 | the fir|st.subli|
|00000940| 73 74 20 62 65 69 6e 67 | 20 61 6c 6c 20 74 68 65 |st being| all the|
|00000950| 20 65 6e 74 72 69 65 73 | 20 63 6f 6d 69 6e 67 20 | entries| coming |
|00000960| 66 72 6f 6d 20 45 4c 54 | 20 30 20 6f 66 20 74 68 |from ELT| 0 of th|
|00000970| 65 20 6f 72 69 67 69 6e | 61 6c 0a 73 75 62 6c 69 |e origin|al.subli|
|00000980| 73 74 73 2c 20 74 68 65 | 20 6e 65 78 74 20 74 68 |sts, the| next th|
|00000990| 6f 73 65 20 63 6f 6d 69 | 6e 67 20 66 72 6f 6d 20 |ose comi|ng from |
|000009a0| 45 4c 54 20 31 20 61 6e | 64 20 73 6f 20 6f 6e 2c |ELT 1 an|d so on,|
|000009b0| 20 75 6e 74 69 6c 20 74 | 68 65 0a 73 68 6f 72 74 | until t|he.short|
|000009c0| 65 73 74 20 6c 69 73 74 | 20 69 73 20 65 78 68 61 |est list| is exha|
|000009d0| 75 73 74 65 64 2e 22 20 | 28 62 79 74 65 2d 63 6f |usted." |(byte-co|
|000009e0| 64 65 20 22 c0 c1 c2 c3 | 0c 5c 22 5c 22 1d c6 1e |de "....|.\"\"...|
|000009f0| 07 0d 1e 08 c9 1e 5c 6e | c9 0e 08 59 84 2b 00 c2 |......\n|...Y.+..|
|00000a00| cb 0c 5c 22 0e 07 42 16 | 07 0e 5c 6e cc 5c 5c 89 |..\"..B.|..\n.\\.|
|00000a10| 16 5c 6e 82 12 00 cd 0e | 07 21 2c 87 22 20 5b 61 |.\n.....|.!,." [a|
|00000a20| 70 70 6c 79 20 6d 69 6e | 20 6d 61 70 63 61 72 20 |pply min| mapcar |
|00000a30| 6c 65 6e 67 74 68 20 61 | 72 67 73 6c 69 73 74 73 |length a|rgslists|
|00000a40| 20 6d 69 6e 6c 65 6e 20 | 6e 69 6c 20 72 65 73 75 | minlen |nil resu|
|00000a50| 6c 74 20 54 24 24 5f 30 | 20 30 20 69 20 28 6c 61 |lt T$$_0| 0 i (la|
|00000a60| 6d 62 64 61 20 28 73 75 | 62 6c 69 73 74 29 20 28 |mbda (su|blist) (|
|00000a70| 62 79 74 65 2d 63 6f 64 | 65 20 22 c0 09 5c 6e 5c |byte-cod|e "..\n\|
|00000a80| 22 87 22 20 5b 65 6c 74 | 20 73 75 62 6c 69 73 74 |"." [elt| sublist|
|00000a90| 20 69 5d 20 33 29 29 20 | 31 20 6e 72 65 76 65 72 | i] 3)) |1 nrever|
|00000aa0| 73 65 5d 20 36 29 29 0a | 28 64 65 66 75 6e 20 62 |se] 6)).|(defun b|
|00000ab0| 75 69 6c 64 2d 6b 6c 69 | 73 74 20 28 61 72 67 73 |uild-kli|st (args|
|00000ac0| 6c 69 73 74 20 61 63 63 | 65 70 74 61 62 6c 65 29 |list acc|eptable)|
|00000ad0| 20 22 5c 0a 44 65 63 6f | 64 65 20 61 20 6b 65 79 | "\.Deco|de a key|
|00000ae0| 77 6f 72 64 20 61 72 67 | 75 6d 65 6e 74 20 6c 69 |word arg|ument li|
|00000af0| 73 74 20 41 52 47 53 4c | 49 53 54 20 66 6f 72 20 |st ARGSL|IST for |
|00000b00| 6b 65 79 77 6f 72 64 73 | 20 69 6e 20 41 43 43 45 |keywords| in ACCE|
|00000b10| 50 54 41 42 4c 45 2e 0a | 41 52 47 53 4c 49 53 54 |PTABLE..|ARGSLIST|
|00000b20| 20 69 73 20 61 20 6c 69 | 73 74 2c 20 70 72 65 73 | is a li|st, pres|
|00000b30| 75 6d 61 62 6c 79 20 74 | 68 65 20 26 72 65 73 74 |umably t|he &rest|
|00000b40| 20 61 72 67 75 6d 65 6e | 74 20 6f 66 20 61 20 63 | argumen|t of a c|
|00000b50| 61 6c 6c 2c 20 77 68 6f | 73 65 0a 65 76 65 6e 20 |all, who|se.even |
|00000b60| 6e 75 6d 62 65 72 65 64 | 20 65 6c 65 6d 65 6e 74 |numbered| element|
|00000b70| 73 20 6d 75 73 74 20 62 | 65 20 6b 65 79 77 6f 72 |s must b|e keywor|
|00000b80| 64 73 2e 0a 41 43 43 45 | 50 54 41 42 4c 45 20 69 |ds..ACCE|PTABLE i|
|00000b90| 73 20 61 20 6c 69 73 74 | 20 6f 66 20 6b 65 79 77 |s a list| of keyw|
|00000ba0| 6f 72 64 73 2c 20 74 68 | 65 20 6f 6e 6c 79 20 6f |ords, th|e only o|
|00000bb0| 6e 65 73 20 74 68 61 74 | 20 61 72 65 20 74 72 75 |nes that| are tru|
|00000bc0| 6c 79 20 61 63 63 65 70 | 74 61 62 6c 65 2e 0a 54 |ly accep|table..T|
|00000bd0| 68 65 20 72 65 73 75 6c | 74 20 69 73 20 61 6e 20 |he resul|t is an |
|00000be0| 61 6c 69 73 74 20 63 6f | 6e 74 61 69 6e 69 6e 67 |alist co|ntaining|
|00000bf0| 20 74 68 65 20 61 72 67 | 75 6d 65 6e 74 73 20 6e | the arg|uments n|
|00000c00| 61 6d 65 64 20 62 79 20 | 74 68 65 20 6b 65 79 77 |amed by |the keyw|
|00000c10| 6f 72 64 73 0a 69 6e 20 | 41 43 43 45 50 54 41 42 |ords.in |ACCEPTAB|
|00000c20| 4c 45 2c 20 6f 72 20 6e | 69 6c 20 69 66 20 73 6f |LE, or n|il if so|
|00000c30| 6d 65 74 68 69 6e 67 20 | 66 61 69 6c 65 64 2e 22 |mething |failed."|
|00000c40| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 08 3c 83 | (byte-c|ode ".<.|
|00000c50| 0c 00 c1 08 47 21 84 10 | 00 c2 c3 21 88 0c 3c 83 |....G!..|...!..<.|
|00000c60| 1c 00 c5 c6 0c 5c 22 84 | 20 00 c2 c7 21 88 c8 16 |.....\".| ...!...|
|00000c70| 09 ca 20 89 1e 0b cc 08 | 21 4c 88 0e 09 83 39 00 |.. .....|!L....9.|
|00000c80| cd 0e 0e 21 82 46 00 cf | 16 09 0e 0b 4a 43 16 0e |...!.F..|....JC..|
|00000c90| cd 0e 0e 21 29 89 1e 10 | 41 40 1e 11 0e 10 40 1e |...!)...|A@....@.|
|00000ca0| 12 c5 c6 0e 12 5c 22 84 | 63 00 c2 d3 d4 0e 12 21 |.....\".|c......!|
|00000cb0| 5c 22 88 d5 0e 12 0e 11 | 5c 22 1e 16 0c 89 1e 17 |\"......|\"......|
|00000cc0| 40 1e 18 c8 1e 19 c8 1e | 1a db 0e 17 21 84 9e 00 |@.......|....!...|
|00000cd0| dc 0e 18 0e 16 5c 22 89 | 16 19 83 92 00 0e 19 0e |.....\".|........|
|00000ce0| 1a 42 16 1a 0e 17 41 89 | 16 17 40 16 18 82 78 00 |.B....A.|..@...x.|
|00000cf0| 0e 1a 2e 08 87 22 20 5b | 61 72 67 73 6c 69 73 74 |....." [|argslist|
|00000d00| 20 65 76 65 6e 70 20 65 | 72 72 6f 72 20 22 4f 64 | evenp e|rror "Od|
|00000d10| 64 20 6e 75 6d 62 65 72 | 20 6f 66 20 6b 65 79 77 |d number| of keyw|
|00000d20| 6f 72 64 2d 61 72 67 73 | 22 20 61 63 63 65 70 74 |ord-args|" accept|
|00000d30| 61 62 6c 65 20 65 76 65 | 72 79 20 6b 65 79 77 6f |able eve|ry keywo|
|00000d40| 72 64 70 20 22 53 65 63 | 6f 6e 64 20 61 72 67 20 |rdp "Sec|ond arg |
|00000d50| 73 68 6f 75 6c 64 20 62 | 65 20 61 20 6c 69 73 74 |should b|e a list|
|00000d60| 20 6f 66 20 6b 65 79 77 | 6f 72 64 73 22 20 6e 69 | of keyw|ords" ni|
|00000d70| 6c 20 2a 6d 76 61 6c 75 | 65 73 2d 63 6f 75 6e 74 |l *mvalu|es-count|
|00000d80| 2a 20 67 65 6e 73 79 6d | 20 69 74 20 75 6e 7a 69 |* gensym| it unzi|
|00000d90| 70 2d 6c 69 73 74 20 63 | 6f 70 79 2d 73 65 71 75 |p-list c|opy-sequ|
|00000da0| 65 6e 63 65 20 2a 6d 76 | 61 6c 75 65 73 2d 76 61 |ence *mv|alues-va|
|00000db0| 6c 75 65 73 2a 20 31 20 | 54 24 24 5f 31 20 66 6f |lues* 1 |T$$_1 fo|
|00000dc0| 72 6d 73 20 6b 65 79 77 | 6f 72 64 73 20 22 45 78 |rms keyw|ords "Ex|
|00000dd0| 70 65 63 74 65 64 20 6b | 65 79 77 6f 72 64 73 2c |pected k|eywords,|
|00000de0| 20 66 6f 75 6e 64 20 60 | 25 73 27 22 20 70 72 69 | found `|%s'" pri|
|00000df0| 6e 31 2d 74 6f 2d 73 74 | 72 69 6e 67 20 70 61 69 |n1-to-st|ring pai|
|00000e00| 72 6c 69 73 20 61 75 78 | 6c 69 73 74 20 70 74 72 |rlis aux|list ptr|
|00000e10| 20 74 68 69 73 20 61 75 | 78 76 61 6c 20 61 6c 69 | this au|xval ali|
|00000e20| 73 74 20 65 6e 64 70 20 | 61 73 73 6f 63 5d 20 35 |st endp |assoc] 5|
|00000e30| 29 29 0a 28 64 65 66 75 | 6e 20 64 75 70 6c 69 63 |)).(defu|n duplic|
|00000e40| 61 74 65 2d 73 79 6d 62 | 6f 6c 73 2d 70 20 28 6c |ate-symb|ols-p (l|
|00000e50| 69 73 74 29 20 22 5c 0a | 46 69 6e 64 20 61 6c 6c |ist) "\.|Find all|
|00000e60| 20 73 79 6d 62 6f 6c 73 | 20 61 70 70 65 61 72 69 | symbols| appeari|
|00000e70| 6e 67 20 6d 6f 72 65 20 | 74 68 61 6e 20 6f 6e 63 |ng more |than onc|
|00000e80| 65 20 69 6e 20 4c 49 53 | 54 2e 0a 52 65 74 75 72 |e in LIS|T..Retur|
|00000e90| 6e 20 61 20 6c 69 73 74 | 20 6f 66 20 61 6c 6c 20 |n a list| of all |
|00000ea0| 73 75 63 68 20 64 75 70 | 6c 69 63 61 74 65 73 3b |such dup|licates;|
|00000eb0| 20 60 6e 69 6c 27 20 69 | 66 20 74 68 65 72 65 20 | `nil' i|f there |
|00000ec0| 61 72 65 20 6e 6f 20 64 | 75 70 6c 69 63 61 74 65 |are no d|uplicate|
|00000ed0| 73 2e 22 20 28 62 79 74 | 65 2d 63 6f 64 65 20 22 |s." (byt|e-code "|
|00000ee0| c0 c1 20 1a 1b 0c 3c 83 | 11 00 c5 c6 0c 5c 22 84 |.. ...<.|.....\".|
|00000ef0| 15 00 c7 c8 21 88 c9 ca | 0c 5c 22 88 c9 cb 0c 5c |....!...|.\"....\|
|00000f00| 22 88 c9 cc 0c 5c 22 88 | 0b 2a 87 22 20 5b 6e 69 |"....\".|.*." [ni|
|00000f10| 6c 20 67 65 6e 73 79 6d | 20 70 72 6f 70 6e 61 6d |l gensym| propnam|
|00000f20| 65 20 64 75 70 6c 69 63 | 61 74 65 73 20 6c 69 73 |e duplic|ates lis|
|00000f30| 74 20 65 76 65 72 79 20 | 73 79 6d 62 6f 6c 70 20 |t every |symbolp |
|00000f40| 65 72 72 6f 72 20 22 41 | 20 6c 69 73 74 20 6f 66 |error "A| list of|
|00000f50| 20 73 79 6d 62 6f 6c 73 | 20 69 73 20 6e 65 65 64 | symbols| is need|
|00000f60| 65 64 22 20 6d 61 70 63 | 61 72 20 28 6c 61 6d 62 |ed" mapc|ar (lamb|
|00000f70| 64 61 20 28 78 29 20 28 | 62 79 74 65 2d 63 6f 64 |da (x) (|byte-cod|
|00000f80| 65 20 22 c0 09 5c 6e c3 | 23 87 22 20 5b 70 75 74 |e "..\n.|#." [put|
|00000f90| 20 78 20 70 72 6f 70 6e | 61 6d 65 20 30 5d 20 34 | x propn|ame 0] 4|
|00000fa0| 29 29 20 28 6c 61 6d 62 | 64 61 20 28 78 29 20 28 |)) (lamb|da (x) (|
|00000fb0| 62 79 74 65 2d 63 6f 64 | 65 20 22 c0 09 5c 6e 09 |byte-cod|e "..\n.|
|00000fc0| 5c 6e 4e 54 23 87 22 20 | 5b 70 75 74 20 78 20 70 |\nNT#." |[put x p|
|00000fd0| 72 6f 70 6e 61 6d 65 5d | 20 35 29 29 20 28 6c 61 |ropname]| 5)) (la|
|00000fe0| 6d 62 64 61 20 28 78 29 | 20 28 62 79 74 65 2d 63 |mbda (x)| (byte-c|
|00000ff0| 6f 64 65 20 22 08 09 4e | c2 56 85 0d 00 08 0b 42 |ode "..N|.V.....B|
|00001000| 89 13 87 22 20 5b 78 20 | 70 72 6f 70 6e 61 6d 65 |..." [x |propname|
|00001010| 20 31 20 64 75 70 6c 69 | 63 61 74 65 73 5d 20 32 | 1 dupli|cates] 2|
|00001020| 29 29 5d 20 33 29 29 0a | 28 64 65 66 6d 61 63 72 |))] 3)).|(defmacr|
|00001030| 6f 20 64 65 66 6b 65 79 | 77 6f 72 64 20 28 78 20 |o defkey|word (x |
|00001040| 26 6f 70 74 69 6f 6e 61 | 6c 20 64 6f 63 73 74 72 |&optiona|l docstr|
|00001050| 69 6e 67 29 20 22 5c 0a | 4d 61 6b 65 20 73 79 6d |ing) "\.|Make sym|
|00001060| 62 6f 6c 20 58 20 61 20 | 6b 65 79 77 6f 72 64 20 |bol X a |keyword |
|00001070| 28 73 79 6d 62 6f 6c 20 | 77 68 6f 73 65 20 76 61 |(symbol |whose va|
|00001080| 6c 75 65 20 69 73 20 69 | 74 73 65 6c 66 29 2e 0a |lue is i|tself)..|
|00001090| 4f 70 74 69 6f 6e 61 6c | 20 73 65 63 6f 6e 64 20 |Optional| second |
|000010a0| 61 72 67 75 6d 65 6e 74 | 20 69 73 20 61 20 64 6f |argument| is a do|
|000010b0| 63 75 6d 65 6e 74 61 74 | 69 6f 6e 20 73 74 72 69 |cumentat|ion stri|
|000010c0| 6e 67 20 66 6f 72 20 69 | 74 2e 22 20 28 62 79 74 |ng for i|t." (byt|
|000010d0| 65 2d 63 6f 64 65 20 22 | 08 39 83 0c 00 c1 08 c2 |e-code "|.9......|
|000010e0| 08 44 45 87 c3 c4 c5 08 | 21 5c 22 87 22 20 5b 78 |.DE.....|!\"." [x|
|000010f0| 20 64 65 66 63 6f 6e 73 | 74 20 71 75 6f 74 65 20 | defcons|t quote |
|00001100| 65 72 72 6f 72 20 22 60 | 25 73 27 20 69 73 20 6e |error "`|%s' is n|
|00001110| 6f 74 20 61 20 73 79 6d | 62 6f 6c 22 20 70 72 69 |ot a sym|bol" pri|
|00001120| 6e 31 2d 74 6f 2d 73 74 | 72 69 6e 67 5d 20 34 29 |n1-to-st|ring] 4)|
|00001130| 29 0a 28 64 65 66 75 6e | 20 6b 65 79 77 6f 72 64 |).(defun| keyword|
|00001140| 70 20 28 73 79 6d 29 20 | 22 5c 0a 52 65 74 75 72 |p (sym) |"\.Retur|
|00001150| 6e 20 60 74 27 20 69 66 | 20 53 59 4d 20 69 73 20 |n `t' if| SYM is |
|00001160| 61 20 6b 65 79 77 6f 72 | 64 2e 22 20 28 62 79 74 |a keywor|d." (byt|
|00001170| 65 2d 63 6f 64 65 20 22 | 08 39 83 14 00 c1 c2 08 |e-code "|.9......|
|00001180| 21 c3 48 c4 5c 22 83 14 | 00 08 89 4c 87 c5 87 22 |!.H.\"..|...L..."|
|00001190| 20 5b 73 79 6d 20 63 68 | 61 72 2d 65 71 75 61 6c | [sym ch|ar-equal|
|000011a0| 20 73 79 6d 62 6f 6c 2d | 6e 61 6d 65 20 30 20 35 | symbol-|name 0 5|
|000011b0| 38 20 6e 69 6c 5d 20 33 | 29 29 0a 28 64 65 66 75 |8 nil] 3|)).(defu|
|000011c0| 6e 20 6b 65 79 77 6f 72 | 64 2d 6f 66 20 28 73 79 |n keywor|d-of (sy|
|000011d0| 6d 29 20 22 5c 0a 52 65 | 74 75 72 6e 20 61 20 6b |m) "\.Re|turn a k|
|000011e0| 65 79 77 6f 72 64 20 74 | 68 61 74 20 69 73 20 6e |eyword t|hat is n|
|000011f0| 61 74 75 72 61 6c 6c 79 | 20 61 73 73 6f 63 69 61 |aturally| associa|
|00001200| 74 65 64 20 77 69 74 68 | 20 73 79 6d 62 6f 6c 20 |ted with| symbol |
|00001210| 53 59 4d 2e 0a 49 66 20 | 53 59 4d 20 69 73 20 6b |SYM..If |SYM is k|
|00001220| 65 79 77 6f 72 64 2c 20 | 74 68 65 20 76 61 6c 75 |eyword, |the valu|
|00001230| 65 20 69 73 20 53 59 4d | 2e 0a 4f 74 68 65 72 77 |e is SYM|..Otherw|
|00001240| 69 73 65 20 69 74 20 69 | 73 20 61 20 6b 65 79 77 |ise it i|s a keyw|
|00001250| 6f 72 64 20 77 68 6f 73 | 65 20 6e 61 6d 65 20 69 |ord whos|e name i|
|00001260| 73 20 60 3a 27 20 66 6f | 6c 6c 6f 77 65 64 20 62 |s `:' fo|llowed b|
|00001270| 79 20 53 59 4d 27 73 20 | 6e 61 6d 65 2e 22 20 28 |y SYM's |name." (|
|00001280| 62 79 74 65 2d 63 6f 64 | 65 20 22 c0 09 21 83 08 |byte-cod|e "..!..|
|00001290| 00 09 87 09 39 83 1a 00 | c2 c3 c4 09 21 50 21 89 |....9...|....!P!.|
|000012a0| 1d 89 4c 29 87 c6 c7 c8 | 09 21 5c 22 87 22 20 5b |..L)....|.!\"." [|
|000012b0| 6b 65 79 77 6f 72 64 70 | 20 73 79 6d 20 69 6e 74 |keywordp| sym int|
|000012c0| 65 72 6e 20 22 3a 22 20 | 73 79 6d 62 6f 6c 2d 6e |ern ":" |symbol-n|
|000012d0| 61 6d 65 20 6e 65 77 73 | 79 6d 20 65 72 72 6f 72 |ame news|ym error|
|000012e0| 20 22 45 78 70 65 63 74 | 65 64 20 61 20 73 79 6d | "Expect|ed a sym|
|000012f0| 62 6f 6c 2c 20 6e 6f 74 | 20 60 25 73 27 22 20 70 |bol, not| `%s'" p|
|00001300| 72 69 6e 31 2d 74 6f 2d | 73 74 72 69 6e 67 5d 20 |rin1-to-|string] |
|00001310| 35 29 29 0a 28 64 65 66 | 76 61 72 20 2a 67 65 6e |5)).(def|var *gen|
|00001320| 74 65 6d 70 2d 69 6e 64 | 65 78 2a 20 30 20 22 5c |temp-ind|ex* 0 "\|
|00001330| 0a 49 6e 74 65 67 65 72 | 20 75 73 65 64 20 62 79 |.Integer| used by|
|00001340| 20 67 65 6e 74 65 6d 70 | 20 74 6f 20 70 72 6f 64 | gentemp| to prod|
|00001350| 75 63 65 20 6e 65 77 20 | 6e 61 6d 65 73 2e 22 29 |uce new |names.")|
|00001360| 0a 28 64 65 66 76 61 72 | 20 2a 67 65 6e 74 65 6d |.(defvar| *gentem|
|00001370| 70 2d 70 72 65 66 69 78 | 2a 20 22 54 24 24 5f 22 |p-prefix|* "T$$_"|
|00001380| 20 22 5c 0a 4e 61 6d 65 | 73 20 67 65 6e 65 72 61 | "\.Name|s genera|
|00001390| 74 65 64 20 62 79 20 67 | 65 6e 74 65 6d 70 20 62 |ted by g|entemp b|
|000013a0| 65 67 69 6e 20 77 69 74 | 68 20 74 68 69 73 20 73 |egin wit|h this s|
|000013b0| 74 72 69 6e 67 20 62 79 | 20 64 65 66 61 75 6c 74 |tring by| default|
|000013c0| 2e 22 29 0a 28 64 65 66 | 75 6e 20 67 65 6e 74 65 |.").(def|un gente|
|000013d0| 6d 70 20 28 26 6f 70 74 | 69 6f 6e 61 6c 20 70 72 |mp (&opt|ional pr|
|000013e0| 65 66 69 78 20 6f 62 6c | 69 73 74 29 20 22 5c 0a |efix obl|ist) "\.|
|000013f0| 47 65 6e 65 72 61 74 65 | 20 61 20 66 72 65 73 68 |Generate| a fresh|
|00001400| 20 69 6e 74 65 72 6e 65 | 64 20 73 79 6d 62 6f 6c | interne|d symbol|
|00001410| 2e 0a 54 68 65 72 65 20 | 61 72 65 20 32 20 6f 70 |..There |are 2 op|
|00001420| 74 69 6f 6e 61 6c 20 61 | 72 67 75 6d 65 6e 74 73 |tional a|rguments|
|00001430| 2c 20 50 52 45 46 49 58 | 20 61 6e 64 20 4f 42 4c |, PREFIX| and OBL|
|00001440| 49 53 54 2e 20 20 50 52 | 45 46 49 58 20 69 73 20 |IST. PR|EFIX is |
|00001450| 74 68 65 0a 73 74 72 69 | 6e 67 20 74 68 61 74 20 |the.stri|ng that |
|00001460| 62 65 67 69 6e 73 20 74 | 68 65 20 6e 65 77 20 6e |begins t|he new n|
|00001470| 61 6d 65 2c 20 4f 42 4c | 49 53 54 20 69 73 20 74 |ame, OBL|IST is t|
|00001480| 68 65 20 6f 62 61 72 72 | 61 79 20 75 73 65 64 20 |he obarr|ay used |
|00001490| 74 6f 20 73 65 61 72 63 | 68 20 66 6f 72 0a 6f 6c |to searc|h for.ol|
|000014a0| 64 20 6e 61 6d 65 73 2e | 20 20 54 68 65 20 64 65 |d names.| The de|
|000014b0| 66 61 75 6c 74 73 20 61 | 72 65 20 6a 75 73 74 20 |faults a|re just |
|000014c0| 72 69 67 68 74 2c 20 59 | 4f 55 20 53 48 4f 55 4c |right, Y|OU SHOUL|
|000014d0| 44 20 4e 45 56 45 52 20 | 4e 45 45 44 20 54 48 45 |D NEVER |NEED THE|
|000014e0| 53 45 0a 41 52 47 55 4d | 45 4e 54 53 20 49 4e 20 |SE.ARGUM|ENTS IN |
|000014f0| 59 4f 55 52 20 4f 57 4e | 20 43 4f 44 45 2e 22 20 |YOUR OWN| CODE." |
|00001500| 28 62 79 74 65 2d 63 6f | 64 65 20 22 08 84 06 00 |(byte-co|de "....|
|00001510| 09 10 5c 6e 84 0c 00 0b | 12 c4 89 1d 1e 06 0e 06 |..\n....|........|
|00001520| 84 32 00 08 0e 07 50 15 | 0e 07 c8 5c 5c 16 07 c9 |.2....P.|...\\...|
|00001530| 0d 5c 6e 5c 22 84 11 00 | ca 0d 5c 6e 5c 22 89 16 |.\n\"...|..\n\"..|
|00001540| 06 83 16 00 0e 06 2a 87 | 22 20 5b 70 72 65 66 69 |......*.|" [prefi|
|00001550| 78 20 2a 67 65 6e 74 65 | 6d 70 2d 70 72 65 66 69 |x *gente|mp-prefi|
|00001560| 78 2a 20 6f 62 6c 69 73 | 74 20 6f 62 61 72 72 61 |x* oblis|t obarra|
|00001570| 79 20 6e 69 6c 20 6e 65 | 77 6e 61 6d 65 20 6e 65 |y nil ne|wname ne|
|00001580| 77 73 79 6d 62 6f 6c 20 | 2a 67 65 6e 74 65 6d 70 |wsymbol |*gentemp|
|00001590| 2d 69 6e 64 65 78 2a 20 | 31 20 69 6e 74 65 72 6e |-index* |1 intern|
|000015a0| 2d 73 6f 66 74 20 69 6e | 74 65 72 6e 5d 20 34 29 |-soft in|tern] 4)|
|000015b0| 29 0a 28 64 65 66 76 61 | 72 20 2a 67 65 6e 73 79 |).(defva|r *gensy|
|000015c0| 6d 2d 69 6e 64 65 78 2a | 20 30 20 22 5c 0a 49 6e |m-index*| 0 "\.In|
|000015d0| 74 65 67 65 72 20 75 73 | 65 64 20 62 79 20 67 65 |teger us|ed by ge|
|000015e0| 6e 73 79 6d 20 74 6f 20 | 70 72 6f 64 75 63 65 20 |nsym to |produce |
|000015f0| 6e 65 77 20 6e 61 6d 65 | 73 2e 22 29 0a 28 64 65 |new name|s.").(de|
|00001600| 66 76 61 72 20 2a 67 65 | 6e 73 79 6d 2d 70 72 65 |fvar *ge|nsym-pre|
|00001610| 66 69 78 2a 20 22 47 24 | 24 5f 22 20 22 5c 0a 4e |fix* "G$|$_" "\.N|
|00001620| 61 6d 65 73 20 67 65 6e | 65 72 61 74 65 64 20 62 |ames gen|erated b|
|00001630| 79 20 67 65 6e 73 79 6d | 20 62 65 67 69 6e 20 77 |y gensym| begin w|
|00001640| 69 74 68 20 74 68 69 73 | 20 73 74 72 69 6e 67 20 |ith this| string |
|00001650| 62 79 20 64 65 66 61 75 | 6c 74 2e 22 29 0a 28 64 |by defau|lt.").(d|
|00001660| 65 66 75 6e 20 67 65 6e | 73 79 6d 20 28 26 6f 70 |efun gen|sym (&op|
|00001670| 74 69 6f 6e 61 6c 20 70 | 72 65 66 69 78 29 20 22 |tional p|refix) "|
|00001680| 5c 0a 47 65 6e 65 72 61 | 74 65 20 61 20 66 72 65 |\.Genera|te a fre|
|00001690| 73 68 20 75 6e 69 6e 74 | 65 72 6e 65 64 20 73 79 |sh unint|erned sy|
|000016a0| 6d 62 6f 6c 2e 0a 54 68 | 65 72 65 20 69 73 20 61 |mbol..Th|ere is a|
|000016b0| 6e 20 20 6f 70 74 69 6f | 6e 61 6c 20 61 72 67 75 |n optio|nal argu|
|000016c0| 6d 65 6e 74 2c 20 50 52 | 45 46 49 58 2e 20 20 50 |ment, PR|EFIX. P|
|000016d0| 52 45 46 49 58 20 69 73 | 20 74 68 65 0a 73 74 72 |REFIX is| the.str|
|000016e0| 69 6e 67 20 74 68 61 74 | 20 62 65 67 69 6e 73 20 |ing that| begins |
|000016f0| 74 68 65 20 6e 65 77 20 | 6e 61 6d 65 2e 20 4d 6f |the new |name. Mo|
|00001700| 73 74 20 70 65 6f 70 6c | 65 20 74 61 6b 65 20 6a |st peopl|e take j|
|00001710| 75 73 74 20 74 68 65 20 | 64 65 66 61 75 6c 74 2c |ust the |default,|
|00001720| 0a 65 78 63 65 70 74 20 | 77 68 65 6e 20 64 65 62 |.except |when deb|
|00001730| 75 67 67 69 6e 67 20 6e | 65 65 64 73 20 73 75 67 |ugging n|eeds sug|
|00001740| 67 65 73 74 20 6f 74 68 | 65 72 77 69 73 65 2e 22 |gest oth|erwise."|
|00001750| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 08 84 06 | (byte-c|ode "...|
|00001760| 00 09 10 c2 c3 1c 1d 0d | 84 27 00 08 0e 06 50 14 |........|.'....P.|
|00001770| 0e 06 c7 5c 5c 16 06 c8 | 0c 21 84 5c 6e 00 c9 0c |...\\...|.!.\n...|
|00001780| 21 89 15 83 0e 00 0d 2a | 87 22 20 5b 70 72 65 66 |!......*|." [pref|
|00001790| 69 78 20 2a 67 65 6e 73 | 79 6d 2d 70 72 65 66 69 |ix *gens|ym-prefi|
|000017a0| 78 2a 20 6e 69 6c 20 22 | 22 20 6e 65 77 6e 61 6d |x* nil "|" newnam|
|000017b0| 65 20 6e 65 77 73 79 6d | 62 6f 6c 20 2a 67 65 6e |e newsym|bol *gen|
|000017c0| 73 79 6d 2d 69 6e 64 65 | 78 2a 20 31 20 69 6e 74 |sym-inde|x* 1 int|
|000017d0| 65 72 6e 2d 73 6f 66 74 | 20 6d 61 6b 65 2d 73 79 |ern-soft| make-sy|
|000017e0| 6d 62 6f 6c 5d 20 33 29 | 29 0a 28 62 79 74 65 2d |mbol] 3)|).(byte-|
|000017f0| 63 6f 64 65 20 22 c0 c1 | c2 c3 23 88 c0 c4 c2 c3 |code "..|..#.....|
|00001800| 23 88 c0 c5 c2 c3 23 88 | c0 c6 c2 c3 23 87 22 20 |#.....#.|....#." |
|00001810| 5b 70 75 74 20 63 61 73 | 65 20 6c 69 73 70 2d 69 |[put cas|e lisp-i|
|00001820| 6e 64 65 6e 74 2d 68 6f | 6f 6b 20 31 20 65 63 61 |ndent-ho|ok 1 eca|
|00001830| 73 65 20 77 68 65 6e 20 | 75 6e 6c 65 73 73 5d 20 |se when |unless] |
|00001840| 34 29 0a 28 64 65 66 6d | 61 63 72 6f 20 77 68 65 |4).(defm|acro whe|
|00001850| 6e 20 28 63 6f 6e 64 69 | 74 69 6f 6e 20 26 72 65 |n (condi|tion &re|
|00001860| 73 74 20 62 6f 64 79 29 | 20 22 5c 0a 28 77 68 65 |st body)| "\.(whe|
|00001870| 6e 20 43 4f 4e 44 49 54 | 49 4f 4e 20 2e 20 42 4f |n CONDIT|ION . BO|
|00001880| 44 59 29 20 3d 3e 20 65 | 76 61 6c 75 61 74 65 20 |DY) => e|valuate |
|00001890| 42 4f 44 59 20 69 66 20 | 43 4f 4e 44 49 54 49 4f |BODY if |CONDITIO|
|000018a0| 4e 20 69 73 20 74 72 75 | 65 2e 22 20 28 62 79 74 |N is tru|e." (byt|
|000018b0| 65 2d 63 6f 64 65 20 22 | c0 c1 c2 0b 44 c4 0d 24 |e-code "|....D..$|
|000018c0| 87 22 20 5b 6c 69 73 74 | 2a 20 69 66 20 6e 6f 74 |." [list|* if not|
|000018d0| 20 63 6f 6e 64 69 74 69 | 6f 6e 20 6e 69 6c 20 62 | conditi|on nil b|
|000018e0| 6f 64 79 5d 20 35 29 29 | 0a 28 64 65 66 6d 61 63 |ody] 5))|.(defmac|
|000018f0| 72 6f 20 75 6e 6c 65 73 | 73 20 28 63 6f 6e 64 69 |ro unles|s (condi|
|00001900| 74 69 6f 6e 20 26 72 65 | 73 74 20 62 6f 64 79 29 |tion &re|st body)|
|00001910| 20 22 5c 0a 28 75 6e 6c | 65 73 73 20 43 4f 4e 44 | "\.(unl|ess COND|
|00001920| 49 54 49 4f 4e 20 2e 20 | 42 4f 44 59 29 20 3d 3e |ITION . |BODY) =>|
|00001930| 20 65 76 61 6c 75 61 74 | 65 20 42 4f 44 59 20 69 | evaluat|e BODY i|
|00001940| 66 20 43 4f 4e 44 49 54 | 49 4f 4e 20 69 73 20 66 |f CONDIT|ION is f|
|00001950| 61 6c 73 65 2e 22 20 28 | 62 79 74 65 2d 63 6f 64 |alse." (|byte-cod|
|00001960| 65 20 22 c0 c1 5c 6e c3 | 0c 24 87 22 20 5b 6c 69 |e "..\n.|.$." [li|
|00001970| 73 74 2a 20 69 66 20 63 | 6f 6e 64 69 74 69 6f 6e |st* if c|ondition|
|00001980| 20 6e 69 6c 20 62 6f 64 | 79 5d 20 35 29 29 0a 28 | nil bod|y] 5)).(|
|00001990| 64 65 66 6d 61 63 72 6f | 20 63 61 73 65 20 28 65 |defmacro| case (e|
|000019a0| 78 70 72 20 26 72 65 73 | 74 20 63 61 73 65 73 29 |xpr &res|t cases)|
|000019b0| 20 22 5c 0a 28 63 61 73 | 65 20 45 58 50 52 20 2e | "\.(cas|e EXPR .|
|000019c0| 20 43 41 53 45 53 29 20 | 3d 3e 20 65 76 61 6c 73 | CASES) |=> evals|
|000019d0| 20 45 58 50 52 2c 20 63 | 68 6f 6f 73 65 73 20 66 | EXPR, c|hooses f|
|000019e0| 72 6f 6d 20 43 41 53 45 | 53 20 6f 6e 20 74 68 61 |rom CASE|S on tha|
|000019f0| 74 20 76 61 6c 75 65 2e | 0a 45 58 50 52 20 20 20 |t value.|.EXPR |
|00001a00| 2d 3e 20 61 6e 79 20 66 | 6f 72 6d 0a 43 41 53 45 |-> any f|orm.CASE|
|00001a10| 53 20 20 2d 3e 20 6c 69 | 73 74 20 6f 66 20 63 6c |S -> li|st of cl|
|00001a20| 61 75 73 65 73 2c 20 6e | 6f 6e 20 65 6d 70 74 79 |auses, n|on empty|
|00001a30| 0a 43 4c 41 55 53 45 20 | 2d 3e 20 48 45 41 44 20 |.CLAUSE |-> HEAD |
|00001a40| 2e 20 42 4f 44 59 0a 48 | 45 41 44 20 20 20 2d 3e |. BODY.H|EAD ->|
|00001a50| 20 74 20 20 20 20 20 20 | 20 20 20 20 20 20 20 3d | t | =|
|00001a60| 20 63 61 74 63 68 20 61 | 6c 6c 2c 20 6d 75 73 74 | catch a|ll, must|
|00001a70| 20 62 65 20 6c 61 73 74 | 20 63 6c 61 75 73 65 0a | be last| clause.|
|00001a80| 20 20 20 20 20 20 20 2d | 3e 20 6f 74 68 65 72 77 | -|> otherw|
|00001a90| 69 73 65 20 20 20 20 20 | 3d 20 73 61 6d 65 20 61 |ise |= same a|
|00001aa0| 73 20 74 0a 20 20 20 20 | 20 20 20 2d 3e 20 6e 69 |s t. | -> ni|
|00001ab0| 6c 20 20 20 20 20 20 20 | 20 20 20 20 3d 20 69 6c |l | = il|
|00001ac0| 6c 65 67 61 6c 0a 20 20 | 20 20 20 20 20 2d 3e 20 |legal. | -> |
|00001ad0| 61 74 6f 6d 20 20 20 20 | 20 20 20 20 20 20 3d 20 |atom | = |
|00001ae0| 61 63 74 69 76 61 74 65 | 64 20 69 66 20 28 65 71 |activate|d if (eq|
|00001af0| 6c 20 20 45 58 50 52 20 | 48 45 41 44 29 0a 20 20 |l EXPR |HEAD). |
|00001b00| 20 20 20 20 20 2d 3e 20 | 6c 69 73 74 20 6f 66 20 | -> |list of |
|00001b10| 61 74 6f 6d 73 20 3d 20 | 61 63 74 69 76 61 74 65 |atoms = |activate|
|00001b20| 64 20 69 66 20 28 6d 65 | 6d 62 65 72 20 45 58 50 |d if (me|mber EXP|
|00001b30| 52 20 48 45 41 44 29 0a | 42 4f 44 59 20 20 20 2d |R HEAD).|BODY -|
|00001b40| 3e 20 6c 69 73 74 20 6f | 66 20 66 6f 72 6d 73 2c |> list o|f forms,|
|00001b50| 20 69 6d 70 6c 69 63 69 | 74 20 50 52 4f 47 4e 20 | implici|t PROGN |
|00001b60| 69 73 20 62 75 69 6c 74 | 20 61 72 6f 75 6e 64 20 |is built| around |
|00001b70| 69 74 2e 0a 45 58 50 52 | 20 69 73 20 65 76 61 6c |it..EXPR| is eval|
|00001b80| 75 61 74 65 64 20 6f 6e | 6c 79 20 6f 6e 63 65 2e |uated on|ly once.|
|00001b90| 22 20 28 62 79 74 65 2d | 63 6f 64 65 20 22 c0 20 |" (byte-|code ". |
|00001ba0| 19 c2 0b 09 5c 22 1c c5 | 09 0e 06 44 43 c7 c8 c9 |....\"..|...DC...|
|00001bb0| 0c 21 5c 22 45 2a 87 22 | 20 5b 67 65 6e 74 65 6d |.!\"E*."| [gentem|
|00001bc0| 70 20 6e 65 77 73 79 6d | 20 63 61 73 65 2d 63 6c |p newsym| case-cl|
|00001bd0| 61 75 73 69 66 79 20 63 | 61 73 65 73 20 63 6c 61 |ausify c|ases cla|
|00001be0| 75 73 65 73 20 6c 65 74 | 20 65 78 70 72 20 6c 69 |uses let| expr li|
|00001bf0| 73 74 2a 20 63 6f 6e 64 | 20 6e 72 65 76 65 72 73 |st* cond| nrevers|
|00001c00| 65 5d 20 36 29 29 0a 28 | 64 65 66 6d 61 63 72 6f |e] 6)).(|defmacro|
|00001c10| 20 65 63 61 73 65 20 28 | 65 78 70 72 20 26 72 65 | ecase (|expr &re|
|00001c20| 73 74 20 63 61 73 65 73 | 29 20 22 5c 0a 28 65 63 |st cases|) "\.(ec|
|00001c30| 61 73 65 20 45 58 50 52 | 20 2e 20 43 41 53 45 53 |ase EXPR| . CASES|
|00001c40| 29 20 3d 3e 20 6c 69 6b | 65 20 60 63 61 73 65 27 |) => lik|e `case'|
|00001c50| 2c 20 62 75 74 20 65 72 | 72 6f 72 20 69 66 20 6e |, but er|ror if n|
|00001c60| 6f 20 63 61 73 65 20 66 | 69 74 73 2e 0a 60 74 27 |o case f|its..`t'|
|00001c70| 2d 63 6c 61 75 73 65 73 | 20 61 72 65 20 6e 6f 74 |-clauses| are not|
|00001c80| 20 61 6c 6c 6f 77 65 64 | 2e 22 20 28 62 79 74 65 | allowed|." (byte|
|00001c90| 2d 63 6f 64 65 20 22 c0 | 20 19 c2 0b 09 5c 22 1c |-code ".| ....\".|
|00001ca0| c5 0c 21 c6 3d 83 14 00 | c7 c8 21 88 c6 c7 c9 ca |..!.=...|..!.....|
|00001cb0| 0e 0b 44 cc 09 44 46 44 | 0c 42 14 cd 09 0e 0b 44 |..D..DFD|.B.....D|
|00001cc0| 43 ce cf d0 0c 21 5c 22 | 45 2a 87 22 20 5b 67 65 |C....!\"|E*." [ge|
|00001cd0| 6e 74 65 6d 70 20 6e 65 | 77 73 79 6d 20 63 61 73 |ntemp ne|wsym cas|
|00001ce0| 65 2d 63 6c 61 75 73 69 | 66 79 20 63 61 73 65 73 |e-clausi|fy cases|
|00001cf0| 20 63 6c 61 75 73 65 73 | 20 63 61 61 72 20 74 20 | clauses| caar t |
|00001d00| 65 72 72 6f 72 20 22 4e | 6f 20 63 6c 61 75 73 65 |error "N|o clause|
|00001d10| 2d 68 65 61 64 20 73 68 | 6f 75 6c 64 20 62 65 20 |-head sh|ould be |
|00001d20| 60 74 27 20 6f 72 20 60 | 6f 74 68 65 72 77 69 73 |`t' or `|otherwis|
|00001d30| 65 27 20 66 6f 72 20 60 | 65 63 61 73 65 27 22 20 |e' for `|ecase'" |
|00001d40| 22 65 63 61 73 65 20 6f | 6e 20 25 73 20 3d 20 25 |"ecase o|n %s = %|
|00001d50| 73 20 66 61 69 6c 65 64 | 20 74 6f 20 74 61 6b 65 |s failed| to take|
|00001d60| 20 61 6e 79 20 62 72 61 | 6e 63 68 2e 22 20 71 75 | any bra|nch." qu|
|00001d70| 6f 74 65 20 65 78 70 72 | 20 70 72 69 6e 31 2d 74 |ote expr| prin1-t|
|00001d80| 6f 2d 73 74 72 69 6e 67 | 20 6c 65 74 20 6c 69 73 |o-string| let lis|
|00001d90| 74 2a 20 63 6f 6e 64 20 | 6e 72 65 76 65 72 73 65 |t* cond |nreverse|
|00001da0| 5d 20 36 29 29 0a 28 64 | 65 66 75 6e 20 63 61 73 |] 6)).(d|efun cas|
|00001db0| 65 2d 63 6c 61 75 73 69 | 66 79 20 28 63 61 73 65 |e-clausi|fy (case|
|00001dc0| 73 20 6e 65 77 73 79 6d | 29 20 22 5c 0a 43 41 53 |s newsym|) "\.CAS|
|00001dd0| 45 2d 43 4c 41 55 53 49 | 46 59 20 43 41 53 45 53 |E-CLAUSI|FY CASES|
|00001de0| 20 4e 45 57 53 59 4d 20 | 3d 3e 20 63 6c 61 75 73 | NEWSYM |=> claus|
|00001df0| 65 73 20 66 6f 72 20 61 | 20 27 63 6f 6e 64 27 0a |es for a| 'cond'.|
|00001e00| 43 6f 6e 76 65 72 74 73 | 20 74 68 65 20 43 41 53 |Converts| the CAS|
|00001e10| 45 53 20 6f 66 20 61 20 | 5b 65 5d 63 61 73 65 20 |ES of a |[e]case |
|00001e20| 6d 61 63 72 6f 20 69 6e | 74 6f 20 63 6f 6e 64 20 |macro in|to cond |
|00001e30| 63 6c 61 75 73 65 73 20 | 74 6f 20 62 65 0a 65 76 |clauses |to be.ev|
|00001e40| 61 6c 75 61 74 65 64 20 | 69 6e 73 69 64 65 20 61 |aluated |inside a|
|00001e50| 20 6c 65 74 20 74 68 61 | 74 20 62 69 6e 64 73 20 | let tha|t binds |
|00001e60| 4e 45 57 53 59 4d 2e 20 | 20 52 65 74 75 72 6e 73 |NEWSYM. | Returns|
|00001e70| 20 74 68 65 20 63 6c 61 | 75 73 65 73 20 69 6e 0a | the cla|uses in.|
|00001e80| 72 65 76 65 72 73 65 20 | 6f 72 64 65 72 2e 22 20 |reverse |order." |
|00001e90| 28 62 79 74 65 2d 63 6f | 64 65 20 22 08 19 08 41 |(byte-co|de "...A|
|00001ea0| 1a 08 40 1b c4 1d c6 09 | 21 84 8b 00 0b 40 0b 41 |..@.....|!....@.A|
|00001eb0| 1e 07 89 1e 08 84 26 00 | c9 ca cb 0b 21 5c 22 88 |......&.|....!\".|
|00001ec0| 82 7e 00 0e 08 cc 3d 84 | 34 00 0e 08 cd 3d 83 48 |.~....=.|4....=.H|
|00001ed0| 00 c6 5c 6e 21 84 3e 00 | c9 ce 21 88 cc 0e 07 42 |..\n!.>.|..!....B|
|00001ee0| 0d 42 15 82 7e 00 0e 08 | 3a 84 5f 00 cf 0e 10 d1 |.B..~...|:._.....|
|00001ef0| 0e 08 44 45 0e 07 42 0d | 42 15 82 7e 00 0e 08 3c |..DE..B.|B..~...<|
|00001f00| 83 76 00 d2 0e 10 d1 0e | 08 44 45 0e 07 42 0d 42 |.v......|.DE..B.B|
|00001f10| 15 82 7e 00 c9 d3 cb 0e | 08 21 5c 22 88 2a 09 41 |..~.....|.!\".*.A|
|00001f20| 11 5c 6e 41 12 09 40 13 | 82 5c 6e 00 0d 2c 87 22 |.\nA..@.|.\n..,."|
|00001f30| 20 5b 63 61 73 65 73 20 | 63 75 72 72 65 6e 74 70 | [cases |currentp|
|00001f40| 6f 73 20 6e 65 78 74 70 | 6f 73 20 63 75 72 63 6c |os nextp|os curcl|
|00001f50| 61 75 73 65 20 6e 69 6c | 20 72 65 73 75 6c 74 20 |ause nil| result |
|00001f60| 65 6e 64 70 20 62 6f 64 | 79 20 68 65 61 64 20 65 |endp bod|y head e|
|00001f70| 72 72 6f 72 20 22 43 61 | 73 65 20 63 6c 61 75 73 |rror "Ca|se claus|
|00001f80| 65 73 20 63 61 6e 6e 6f | 74 20 68 61 76 65 20 6e |es canno|t have n|
|00001f90| 75 6c 6c 20 68 65 61 64 | 73 3a 20 60 25 73 27 22 |ull head|s: `%s'"|
|00001fa0| 20 70 72 69 6e 31 2d 74 | 6f 2d 73 74 72 69 6e 67 | prin1-t|o-string|
|00001fb0| 20 74 20 6f 74 68 65 72 | 77 69 73 65 20 22 43 6c | t other|wise "Cl|
|00001fc0| 61 75 73 65 20 77 69 74 | 68 20 60 74 27 20 6f 72 |ause wit|h `t' or|
|00001fd0| 20 60 6f 74 68 65 72 77 | 69 73 65 27 20 68 65 61 | `otherw|ise' hea|
|00001fe0| 64 20 6d 75 73 74 20 62 | 65 20 6c 61 73 74 22 20 |d must b|e last" |
|00001ff0| 65 71 6c 20 6e 65 77 73 | 79 6d 20 71 75 6f 74 65 |eql news|ym quote|
|00002000| 20 6d 65 6d 62 65 72 20 | 22 44 6f 6e 27 74 20 6b | member |"Don't k|
|00002010| 6e 6f 77 20 68 6f 77 20 | 74 6f 20 70 61 72 73 65 |now how |to parse|
|00002020| 20 63 61 73 65 20 63 6c | 61 75 73 65 20 60 25 73 | case cl|ause `%s|
|00002030| 27 2e 22 5d 20 35 29 29 | 0a 28 62 79 74 65 2d 63 |'."] 5))|.(byte-c|
|00002040| 6f 64 65 20 22 c0 c1 c2 | c3 23 88 c0 c4 c2 c3 23 |ode "...|.#.....#|
|00002050| 88 c0 c5 c2 c6 23 88 c0 | c7 c2 c6 23 88 c0 c8 c2 |.....#..|...#....|
|00002060| c6 23 88 c0 c9 c2 c6 23 | 87 22 20 5b 70 75 74 20 |.#.....#|." [put |
|00002070| 64 6f 20 6c 69 73 70 2d | 69 6e 64 65 6e 74 2d 68 |do lisp-|indent-h|
|00002080| 6f 6f 6b 20 32 20 64 6f | 2a 20 64 6f 6c 69 73 74 |ook 2 do|* dolist|
|00002090| 20 31 20 64 6f 74 69 6d | 65 73 20 64 6f 2d 73 79 | 1 dotim|es do-sy|
|000020a0| 6d 62 6f 6c 73 20 64 6f | 2d 61 6c 6c 2d 73 79 6d |mbols do|-all-sym|
|000020b0| 62 6f 6c 73 5d 20 34 29 | 0a 28 64 65 66 6d 61 63 |bols] 4)|.(defmac|
|000020c0| 72 6f 20 64 6f 20 28 73 | 74 65 70 66 6f 72 6d 73 |ro do (s|tepforms|
|000020d0| 20 65 6e 64 66 6f 72 6d | 73 20 26 72 65 73 74 20 | endform|s &rest |
|000020e0| 62 6f 64 79 29 20 22 5c | 0a 28 64 6f 20 53 54 45 |body) "\|.(do STE|
|000020f0| 50 46 4f 52 4d 53 20 45 | 4e 44 46 4f 52 4d 53 20 |PFORMS E|NDFORMS |
|00002100| 2e 20 42 4f 44 59 29 3a | 20 49 74 65 72 61 74 65 |. BODY):| Iterate|
|00002110| 20 42 4f 44 59 2c 20 73 | 74 65 70 70 69 6e 67 20 | BODY, s|tepping |
|00002120| 73 6f 6d 65 20 6c 6f 63 | 61 6c 20 76 61 72 69 61 |some loc|al varia|
|00002130| 62 6c 65 73 2e 0a 53 54 | 45 50 46 4f 52 4d 53 20 |bles..ST|EPFORMS |
|00002140| 6d 75 73 74 20 62 65 20 | 61 20 6c 69 73 74 20 6f |must be |a list o|
|00002150| 66 20 73 79 6d 62 6f 6c | 73 20 6f 72 20 6c 69 73 |f symbol|s or lis|
|00002160| 74 73 2e 20 20 49 6e 20 | 74 68 65 20 73 65 63 6f |ts. In |the seco|
|00002170| 6e 64 20 63 61 73 65 2c | 20 74 68 65 0a 6c 69 73 |nd case,| the.lis|
|00002180| 74 73 20 6d 75 73 74 20 | 73 74 61 72 74 20 77 69 |ts must |start wi|
|00002190| 74 68 20 61 20 73 79 6d | 62 6f 6c 20 61 6e 64 20 |th a sym|bol and |
|000021a0| 63 6f 6e 74 61 69 6e 20 | 75 70 20 74 6f 20 74 77 |contain |up to tw|
|000021b0| 6f 20 6d 6f 72 65 20 66 | 6f 72 6d 73 2e 20 49 6e |o more f|orms. In|
|000021c0| 0a 74 68 65 20 53 54 45 | 50 46 4f 52 4d 53 2c 20 |.the STE|PFORMS, |
|000021d0| 61 20 73 79 6d 62 6f 6c | 20 69 73 20 74 68 65 20 |a symbol| is the |
|000021e0| 73 61 6d 65 20 61 73 20 | 61 20 28 73 79 6d 62 6f |same as |a (symbo|
|000021f0| 6c 29 2e 20 20 54 68 65 | 20 6f 74 68 65 72 20 32 |l). The| other 2|
|00002200| 20 66 6f 72 6d 73 0a 61 | 72 65 20 74 68 65 20 69 | forms.a|re the i|
|00002210| 6e 69 74 69 61 6c 20 76 | 61 6c 75 65 20 28 64 65 |nitial v|alue (de|
|00002220| 66 2e 20 4e 49 4c 29 20 | 61 6e 64 20 74 68 65 20 |f. NIL) |and the |
|00002230| 66 6f 72 6d 20 74 6f 20 | 73 74 65 70 20 28 64 65 |form to |step (de|
|00002240| 66 2e 20 69 74 73 65 6c | 66 29 2e 0a 54 68 65 20 |f. itsel|f)..The |
|00002250| 76 61 6c 75 65 73 20 75 | 73 65 64 20 62 79 20 69 |values u|sed by i|
|00002260| 6e 69 74 69 61 6c 69 7a | 61 74 69 6f 6e 20 61 6e |nitializ|ation an|
|00002270| 64 20 73 74 65 70 70 69 | 6e 67 20 61 72 65 20 63 |d steppi|ng are c|
|00002280| 6f 6d 70 75 74 65 64 20 | 69 6e 20 70 61 72 61 6c |omputed |in paral|
|00002290| 6c 65 6c 2e 0a 54 68 65 | 20 45 4e 44 46 4f 52 4d |lel..The| ENDFORM|
|000022a0| 53 20 61 72 65 20 61 20 | 6c 69 73 74 20 28 43 4f |S are a |list (CO|
|000022b0| 4e 44 49 54 49 4f 4e 20 | 2e 20 45 4e 44 42 4f 44 |NDITION |. ENDBOD|
|000022c0| 59 29 2e 20 20 49 66 20 | 74 68 65 20 43 4f 4e 44 |Y). If |the COND|
|000022d0| 49 54 49 4f 4e 0a 65 76 | 61 6c 75 61 74 65 73 20 |ITION.ev|aluates |
|000022e0| 74 6f 20 74 72 75 65 20 | 69 6e 20 61 6e 79 20 69 |to true |in any i|
|000022f0| 74 65 72 61 74 69 6f 6e | 2c 20 45 4e 44 42 4f 44 |teration|, ENDBOD|
|00002300| 59 20 69 73 20 65 76 61 | 6c 75 61 74 65 64 20 61 |Y is eva|luated a|
|00002310| 6e 64 20 74 68 65 20 6c | 61 73 74 0a 66 6f 72 6d |nd the l|ast.form|
|00002320| 20 69 6e 20 69 74 20 69 | 73 20 72 65 74 75 72 6e | in it i|s return|
|00002330| 65 64 2e 0a 54 68 65 20 | 42 4f 44 59 20 28 77 68 |ed..The |BODY (wh|
|00002340| 69 63 68 20 6d 61 79 20 | 62 65 20 65 6d 70 74 79 |ich may |be empty|
|00002350| 29 20 69 73 20 65 76 61 | 6c 75 61 74 65 64 20 61 |) is eva|luated a|
|00002360| 74 20 65 76 65 72 79 20 | 69 74 65 72 61 74 69 6f |t every |iteratio|
|00002370| 6e 2c 20 77 69 74 68 0a | 74 68 65 20 73 79 6d 62 |n, with.|the symb|
|00002380| 6f 6c 73 20 6f 66 20 74 | 68 65 20 53 54 45 50 46 |ols of t|he STEPF|
|00002390| 4f 52 4d 53 20 62 6f 75 | 6e 64 20 74 6f 20 74 68 |ORMS bou|nd to th|
|000023a0| 65 20 69 6e 69 74 69 61 | 6c 20 6f 72 20 73 74 65 |e initia|l or ste|
|000023b0| 70 70 65 64 20 76 61 6c | 75 65 73 2e 22 20 28 62 |pped val|ues." (b|
|000023c0| 79 74 65 2d 63 6f 64 65 | 20 22 c0 09 21 83 5c 6e |yte-code| "..!.\n|
|000023d0| 00 c2 0b 21 88 c4 09 21 | c5 09 21 0b 40 0b 41 1e |...!...!|..!.@.A.|
|000023e0| 06 1e 07 1e 08 1e 09 ca | 0e 09 cb cc 0e 07 44 cd |........|......D.|
|000023f0| 0e 0e 0e 08 5c 22 42 42 | cd 0e 06 21 2c 42 42 42 |....\"BB|...!,BBB|
|00002400| 87 22 20 5b 63 68 65 63 | 6b 2d 64 6f 2d 73 74 65 |." [chec|k-do-ste|
|00002410| 70 66 6f 72 6d 73 20 73 | 74 65 70 66 6f 72 6d 73 |pforms s|tepforms|
|00002420| 20 63 68 65 63 6b 2d 64 | 6f 2d 65 6e 64 66 6f 72 | check-d|o-endfor|
|00002430| 6d 73 20 65 6e 64 66 6f | 72 6d 73 20 65 78 74 72 |ms endfo|rms extr|
|00002440| 61 63 74 2d 64 6f 2d 69 | 6e 69 74 73 20 65 78 74 |act-do-i|nits ext|
|00002450| 72 61 63 74 2d 64 6f 2d | 73 74 65 70 73 20 65 6e |ract-do-|steps en|
|00002460| 64 62 6f 64 79 20 65 6e | 64 63 6f 6e 64 20 73 74 |dbody en|dcond st|
|00002470| 65 70 6c 69 73 74 20 69 | 6e 69 74 6c 69 73 74 20 |eplist i|nitlist |
|00002480| 6c 65 74 20 77 68 69 6c | 65 20 6e 6f 74 20 61 70 |let whil|e not ap|
|00002490| 70 65 6e 64 20 62 6f 64 | 79 5d 20 37 29 29 0a 28 |pend bod|y] 7)).(|
|000024a0| 64 65 66 6d 61 63 72 6f | 20 64 6f 2a 20 28 73 74 |defmacro| do* (st|
|000024b0| 65 70 66 6f 72 6d 73 20 | 65 6e 64 66 6f 72 6d 73 |epforms |endforms|
|000024c0| 20 26 72 65 73 74 20 62 | 6f 64 79 29 20 22 5c 0a | &rest b|ody) "\.|
|000024d0| 60 64 6f 2a 27 20 69 73 | 20 74 6f 20 60 64 6f 27 |`do*' is| to `do'|
|000024e0| 20 61 73 20 60 6c 65 74 | 2a 27 20 69 73 20 74 6f | as `let|*' is to|
|000024f0| 20 60 6c 65 74 27 2e 0a | 53 54 45 50 46 4f 52 4d | `let'..|STEPFORM|
|00002500| 53 20 6d 75 73 74 20 62 | 65 20 61 20 6c 69 73 74 |S must b|e a list|
|00002510| 20 6f 66 20 73 79 6d 62 | 6f 6c 73 20 6f 72 20 6c | of symb|ols or l|
|00002520| 69 73 74 73 2e 20 20 49 | 6e 20 74 68 65 20 73 65 |ists. I|n the se|
|00002530| 63 6f 6e 64 20 63 61 73 | 65 2c 20 74 68 65 0a 6c |cond cas|e, the.l|
|00002540| 69 73 74 73 20 6d 75 73 | 74 20 73 74 61 72 74 20 |ists mus|t start |
|00002550| 77 69 74 68 20 61 20 73 | 79 6d 62 6f 6c 20 61 6e |with a s|ymbol an|
|00002560| 64 20 63 6f 6e 74 61 69 | 6e 20 75 70 20 74 6f 20 |d contai|n up to |
|00002570| 74 77 6f 20 6d 6f 72 65 | 20 66 6f 72 6d 73 2e 20 |two more| forms. |
|00002580| 49 6e 0a 74 68 65 20 53 | 54 45 50 46 4f 52 4d 53 |In.the S|TEPFORMS|
|00002590| 2c 20 61 20 73 79 6d 62 | 6f 6c 20 69 73 20 74 68 |, a symb|ol is th|
|000025a0| 65 20 73 61 6d 65 20 61 | 73 20 61 20 28 73 79 6d |e same a|s a (sym|
|000025b0| 62 6f 6c 29 2e 20 20 54 | 68 65 20 6f 74 68 65 72 |bol). T|he other|
|000025c0| 20 32 20 66 6f 72 6d 73 | 0a 61 72 65 20 74 68 65 | 2 forms|.are the|
|000025d0| 20 69 6e 69 74 69 61 6c | 20 76 61 6c 75 65 20 28 | initial| value (|
|000025e0| 64 65 66 2e 20 4e 49 4c | 29 20 61 6e 64 20 74 68 |def. NIL|) and th|
|000025f0| 65 20 66 6f 72 6d 20 74 | 6f 20 73 74 65 70 20 28 |e form t|o step (|
|00002600| 64 65 66 2e 20 69 74 73 | 65 6c 66 29 2e 0a 49 6e |def. its|elf)..In|
|00002610| 69 74 69 61 6c 69 7a 61 | 74 69 6f 6e 73 20 61 6e |itializa|tions an|
|00002620| 64 20 73 74 65 70 70 69 | 6e 67 73 20 61 72 65 20 |d steppi|ngs are |
|00002630| 64 6f 6e 65 20 69 6e 20 | 74 68 65 20 73 65 71 75 |done in |the sequ|
|00002640| 65 6e 63 65 20 74 68 65 | 79 20 61 72 65 20 77 72 |ence the|y are wr|
|00002650| 69 74 74 65 6e 2e 0a 54 | 68 65 20 45 4e 44 46 4f |itten..T|he ENDFO|
|00002660| 52 4d 53 20 61 72 65 20 | 61 20 6c 69 73 74 20 28 |RMS are |a list (|
|00002670| 43 4f 4e 44 49 54 49 4f | 4e 20 2e 20 45 4e 44 42 |CONDITIO|N . ENDB|
|00002680| 4f 44 59 29 2e 20 20 49 | 66 20 74 68 65 20 43 4f |ODY). I|f the CO|
|00002690| 4e 44 49 54 49 4f 4e 0a | 65 76 61 6c 75 61 74 65 |NDITION.|evaluate|
|000026a0| 73 20 74 6f 20 74 72 75 | 65 20 69 6e 20 61 6e 79 |s to tru|e in any|
|000026b0| 20 69 74 65 72 61 74 69 | 6f 6e 2c 20 45 4e 44 42 | iterati|on, ENDB|
|000026c0| 4f 44 59 20 69 73 20 65 | 76 61 6c 75 61 74 65 64 |ODY is e|valuated|
|000026d0| 20 61 6e 64 20 74 68 65 | 20 6c 61 73 74 0a 66 6f | and the| last.fo|
|000026e0| 72 6d 20 69 6e 20 69 74 | 20 69 73 20 72 65 74 75 |rm in it| is retu|
|000026f0| 72 6e 65 64 2e 0a 54 68 | 65 20 42 4f 44 59 20 28 |rned..Th|e BODY (|
|00002700| 77 68 69 63 68 20 6d 61 | 79 20 62 65 20 65 6d 70 |which ma|y be emp|
|00002710| 74 79 29 20 69 73 20 65 | 76 61 6c 75 61 74 65 64 |ty) is e|valuated|
|00002720| 20 61 74 20 65 76 65 72 | 79 20 69 74 65 72 61 74 | at ever|y iterat|
|00002730| 69 6f 6e 2c 20 77 69 74 | 68 0a 74 68 65 20 73 79 |ion, wit|h.the sy|
|00002740| 6d 62 6f 6c 73 20 6f 66 | 20 74 68 65 20 53 54 45 |mbols of| the STE|
|00002750| 50 46 4f 52 4d 53 20 62 | 6f 75 6e 64 20 74 6f 20 |PFORMS b|ound to |
|00002760| 74 68 65 20 69 6e 69 74 | 69 61 6c 20 6f 72 20 73 |the init|ial or s|
|00002770| 74 65 70 70 65 64 20 76 | 61 6c 75 65 73 2e 22 20 |tepped v|alues." |
|00002780| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c0 09 21 83 |(byte-co|de "..!.|
|00002790| 5c 6e 00 c2 0b 21 88 c4 | 09 21 c5 09 21 0b 40 0b |\n...!..|.!..!.@.|
|000027a0| 41 1e 06 1e 07 1e 08 1e | 09 ca 0e 09 cb cc 0e 07 |A.......|........|
|000027b0| 44 cd 0e 0e 0e 08 5c 22 | 42 42 cd 0e 06 21 2c 42 |D.....\"|BB...!,B|
|000027c0| 42 42 87 22 20 5b 63 68 | 65 63 6b 2d 64 6f 2d 73 |BB." [ch|eck-do-s|
|000027d0| 74 65 70 66 6f 72 6d 73 | 20 73 74 65 70 66 6f 72 |tepforms| stepfor|
|000027e0| 6d 73 20 63 68 65 63 6b | 2d 64 6f 2d 65 6e 64 66 |ms check|-do-endf|
|000027f0| 6f 72 6d 73 20 65 6e 64 | 66 6f 72 6d 73 20 65 78 |orms end|forms ex|
|00002800| 74 72 61 63 74 2d 64 6f | 2d 69 6e 69 74 73 20 65 |tract-do|-inits e|
|00002810| 78 74 72 61 63 74 2d 64 | 6f 2a 2d 73 74 65 70 73 |xtract-d|o*-steps|
|00002820| 20 65 6e 64 62 6f 64 79 | 20 65 6e 64 63 6f 6e 64 | endbody| endcond|
|00002830| 20 73 74 65 70 6c 69 73 | 74 20 69 6e 69 74 6c 69 | steplis|t initli|
|00002840| 73 74 20 6c 65 74 2a 20 | 77 68 69 6c 65 20 6e 6f |st let* |while no|
|00002850| 74 20 61 70 70 65 6e 64 | 20 62 6f 64 79 5d 20 37 |t append| body] 7|
|00002860| 29 29 0a 28 64 65 66 75 | 6e 20 63 68 65 63 6b 2d |)).(defu|n check-|
|00002870| 64 6f 2d 73 74 65 70 66 | 6f 72 6d 73 20 28 66 6f |do-stepf|orms (fo|
|00002880| 72 6d 73 29 20 22 5c 0a | 54 72 75 65 20 69 66 20 |rms) "\.|True if |
|00002890| 46 4f 52 4d 53 20 69 73 | 20 61 20 76 61 6c 69 64 |FORMS is| a valid|
|000028a0| 20 73 74 65 70 66 6f 72 | 6d 73 20 66 6f 72 20 74 | stepfor|ms for t|
|000028b0| 68 65 20 64 6f 5b 2a 5d | 20 6d 61 63 72 6f 20 28 |he do[*]| macro (|
|000028c0| 71 2e 76 2e 29 22 20 28 | 62 79 74 65 2d 63 6f 64 |q.v.)" (|byte-cod|
|000028d0| 65 20 22 08 3c 84 0c 00 | c1 c2 c3 08 21 5c 22 87 |e ".<...|....!\".|
|000028e0| c4 c5 08 5c 22 87 22 20 | 5b 66 6f 72 6d 73 20 65 |...\"." |[forms e|
|000028f0| 72 72 6f 72 20 22 49 6e | 69 74 2f 53 74 65 70 20 |rror "In|it/Step |
|00002900| 66 6f 72 6d 20 66 6f 72 | 20 64 6f 5b 2a 5d 20 73 |form for| do[*] s|
|00002910| 68 6f 75 6c 64 20 62 65 | 20 61 20 6c 69 73 74 2c |hould be| a list,|
|00002920| 20 6e 6f 74 20 60 25 73 | 27 22 20 70 72 69 6e 31 | not `%s|'" prin1|
|00002930| 2d 74 6f 2d 73 74 72 69 | 6e 67 20 6d 61 70 63 61 |-to-stri|ng mapca|
|00002940| 72 20 28 6c 61 6d 62 64 | 61 20 28 65 6e 74 72 79 |r (lambd|a (entry|
|00002950| 29 20 28 62 79 74 65 2d | 63 6f 64 65 20 22 08 39 |) (byte-|code ".9|
|00002960| 84 17 00 08 3c 83 19 00 | 08 40 39 83 19 00 08 47 |....<...|.@9....G|
|00002970| c1 57 83 19 00 c2 87 c3 | c4 c5 08 21 5c 22 87 22 |.W......|...!\"."|
|00002980| 20 5b 65 6e 74 72 79 20 | 34 20 74 20 65 72 72 6f | [entry |4 t erro|
|00002990| 72 20 22 49 6e 69 74 2f | 53 74 65 70 20 6d 75 73 |r "Init/|Step mus|
|000029a0| 74 20 62 65 20 73 79 6d | 62 6f 6c 20 6f 72 20 28 |t be sym|bol or (|
|000029b0| 73 79 6d 62 6f 6c 20 5b | 69 6e 69 74 20 5b 73 74 |symbol [|init [st|
|000029c0| 65 70 5d 5d 29 2c 20 6e | 6f 74 20 60 25 73 27 22 |ep]]), n|ot `%s'"|
|000029d0| 20 70 72 69 6e 31 2d 74 | 6f 2d 73 74 72 69 6e 67 | prin1-t|o-string|
|000029e0| 5d 20 34 29 29 5d 20 34 | 29 29 0a 28 64 65 66 75 |] 4))] 4|)).(defu|
|000029f0| 6e 20 63 68 65 63 6b 2d | 64 6f 2d 65 6e 64 66 6f |n check-|do-endfo|
|00002a00| 72 6d 73 20 28 66 6f 72 | 6d 73 29 20 22 5c 0a 54 |rms (for|ms) "\.T|
|00002a10| 72 75 65 20 69 66 20 46 | 4f 52 4d 53 20 69 73 20 |rue if F|ORMS is |
|00002a20| 61 20 76 61 6c 69 64 20 | 65 6e 64 66 6f 72 6d 73 |a valid |endforms|
|00002a30| 20 66 6f 72 20 74 68 65 | 20 64 6f 5b 2a 5d 20 6d | for the| do[*] m|
|00002a40| 61 63 72 6f 20 28 71 2e | 76 2e 29 22 20 28 62 79 |acro (q.|v.)" (by|
|00002a50| 74 65 2d 63 6f 64 65 20 | 22 08 3c 83 07 00 c1 87 |te-code |".<.....|
|00002a60| c2 c3 c4 08 21 5c 22 87 | 22 20 5b 66 6f 72 6d 73 |....!\".|" [forms|
|00002a70| 20 74 20 65 72 72 6f 72 | 20 22 54 65 72 6d 69 6e | t error| "Termin|
|00002a80| 61 74 69 6f 6e 20 66 6f | 72 6d 20 66 6f 72 20 64 |ation fo|rm for d|
|00002a90| 6f 20 6d 61 63 72 6f 20 | 73 68 6f 75 6c 64 20 62 |o macro |should b|
|00002aa0| 65 20 61 20 6c 69 73 74 | 2c 20 6e 6f 74 20 60 25 |e a list|, not `%|
|00002ab0| 73 27 22 20 70 72 69 6e | 31 2d 74 6f 2d 73 74 72 |s'" prin|1-to-str|
|00002ac0| 69 6e 67 5d 20 34 29 29 | 0a 28 64 65 66 75 6e 20 |ing] 4))|.(defun |
|00002ad0| 65 78 74 72 61 63 74 2d | 64 6f 2d 69 6e 69 74 73 |extract-|do-inits|
|00002ae0| 20 28 66 6f 72 6d 73 29 | 20 22 5c 0a 52 65 74 75 | (forms)| "\.Retu|
|00002af0| 72 6e 73 20 61 20 6c 69 | 73 74 20 6f 66 20 74 68 |rns a li|st of th|
|00002b00| 65 20 69 6e 69 74 69 61 | 6c 69 7a 61 74 69 6f 6e |e initia|lization|
|00002b10| 73 20 28 66 6f 72 20 64 | 6f 29 20 69 6e 20 46 4f |s (for d|o) in FO|
|00002b20| 52 4d 53 0a 2d 61 20 73 | 74 65 70 66 6f 72 6d 73 |RMS.-a s|tepforms|
|00002b30| 2c 20 73 65 65 20 74 68 | 65 20 64 6f 20 6d 61 63 |, see th|e do mac|
|00002b40| 72 6f 2d 2e 20 46 6f 72 | 6d 73 20 69 73 20 61 73 |ro-. For|ms is as|
|00002b50| 73 75 6d 65 64 20 73 79 | 6e 74 61 63 74 69 63 61 |sumed sy|ntactica|
|00002b60| 6c 6c 79 20 76 61 6c 69 | 64 2e 22 20 28 62 79 74 |lly vali|d." (byt|
|00002b70| 65 2d 63 6f 64 65 20 22 | c0 c1 5c 6e 5c 22 87 22 |e-code "|..\n\"."|
|00002b80| 20 5b 6d 61 70 63 61 72 | 20 28 6c 61 6d 62 64 61 | [mapcar| (lambda|
|00002b90| 20 28 65 6e 74 72 79 29 | 20 28 62 79 74 65 2d 63 | (entry)| (byte-c|
|00002ba0| 6f 64 65 20 22 08 39 83 | 09 00 08 c1 44 87 08 3c |ode ".9.|....D..<|
|00002bb0| 85 14 00 08 40 c2 08 21 | 44 87 22 20 5b 65 6e 74 |....@..!|D." [ent|
|00002bc0| 72 79 20 6e 69 6c 20 63 | 61 64 72 5d 20 33 29 29 |ry nil c|adr] 3))|
|00002bd0| 20 66 6f 72 6d 73 5d 20 | 33 29 29 0a 28 64 65 66 | forms] |3)).(def|
|00002be0| 75 6e 20 65 78 74 72 61 | 63 74 2d 64 6f 2d 73 74 |un extra|ct-do-st|
|00002bf0| 65 70 73 20 28 66 6f 72 | 6d 73 29 20 22 5c 0a 45 |eps (for|ms) "\.E|
|00002c00| 58 54 52 41 43 54 2d 44 | 4f 2d 53 54 45 50 53 20 |XTRACT-D|O-STEPS |
|00002c10| 46 4f 52 4d 53 20 3d 3e | 20 61 6e 20 73 2d 65 78 |FORMS =>| an s-ex|
|00002c20| 70 72 0a 46 4f 52 4d 53 | 20 69 73 20 74 68 65 20 |pr.FORMS| is the |
|00002c30| 73 74 65 70 66 6f 72 6d | 73 20 70 61 72 74 20 6f |stepform|s part o|
|00002c40| 66 20 61 20 44 4f 20 6d | 61 63 72 6f 20 28 71 2e |f a DO m|acro (q.|
|00002c50| 76 2e 29 2e 20 20 54 68 | 69 73 20 66 75 6e 63 74 |v.). Th|is funct|
|00002c60| 69 6f 6e 0a 63 6f 6e 73 | 74 72 75 63 74 73 20 61 |ion.cons|tructs a|
|00002c70| 6e 20 73 2d 65 78 70 72 | 65 73 73 69 6f 6e 20 74 |n s-expr|ession t|
|00002c80| 68 61 74 20 64 6f 65 73 | 20 74 68 65 20 73 74 65 |hat does| the ste|
|00002c90| 70 70 69 6e 67 20 61 74 | 20 74 68 65 20 65 6e 64 |pping at| the end|
|00002ca0| 20 6f 66 20 61 6e 0a 69 | 74 65 72 61 74 69 6f 6e | of an.i|teration|
|00002cb0| 2e 22 20 28 62 79 74 65 | 2d 63 6f 64 65 20 22 c0 |." (byte|-code ".|
|00002cc0| c1 5c 6e 21 42 43 87 22 | 20 5b 70 73 65 74 71 20 |.\n!BC."| [psetq |
|00002cd0| 73 65 6c 65 63 74 2d 73 | 74 65 70 70 69 6e 67 2d |select-s|tepping-|
|00002ce0| 66 6f 72 6d 73 20 66 6f | 72 6d 73 5d 20 33 29 29 |forms fo|rms] 3))|
|00002cf0| 0a 28 64 65 66 75 6e 20 | 65 78 74 72 61 63 74 2d |.(defun |extract-|
|00002d00| 64 6f 2a 2d 73 74 65 70 | 73 20 28 66 6f 72 6d 73 |do*-step|s (forms|
|00002d10| 29 20 22 5c 0a 45 58 54 | 52 41 43 54 2d 44 4f 2a |) "\.EXT|RACT-DO*|
|00002d20| 2d 53 54 45 50 53 20 46 | 4f 52 4d 53 20 3d 3e 20 |-STEPS F|ORMS => |
|00002d30| 61 6e 20 73 2d 65 78 70 | 72 0a 46 4f 52 4d 53 20 |an s-exp|r.FORMS |
|00002d40| 69 73 20 74 68 65 20 73 | 74 65 70 66 6f 72 6d 73 |is the s|tepforms|
|00002d50| 20 70 61 72 74 20 6f 66 | 20 61 20 44 4f 2a 20 6d | part of| a DO* m|
|00002d60| 61 63 72 6f 20 28 71 2e | 76 2e 29 2e 20 20 54 68 |acro (q.|v.). Th|
|00002d70| 69 73 20 66 75 6e 63 74 | 69 6f 6e 0a 63 6f 6e 73 |is funct|ion.cons|
|00002d80| 74 72 75 63 74 73 20 61 | 6e 20 73 2d 65 78 70 72 |tructs a|n s-expr|
|00002d90| 65 73 73 69 6f 6e 20 74 | 68 61 74 20 64 6f 65 73 |ession t|hat does|
|00002da0| 20 74 68 65 20 73 74 65 | 70 70 69 6e 67 20 61 74 | the ste|pping at|
|00002db0| 20 74 68 65 20 65 6e 64 | 20 6f 66 20 61 6e 0a 69 | the end| of an.i|
|00002dc0| 74 65 72 61 74 69 6f 6e | 2e 22 20 28 62 79 74 65 |teration|." (byte|
|00002dd0| 2d 63 6f 64 65 20 22 c0 | c1 5c 6e 21 42 43 87 22 |-code ".|.\n!BC."|
|00002de0| 20 5b 73 65 74 71 20 73 | 65 6c 65 63 74 2d 73 74 | [setq s|elect-st|
|00002df0| 65 70 70 69 6e 67 2d 66 | 6f 72 6d 73 20 66 6f 72 |epping-f|orms for|
|00002e00| 6d 73 5d 20 33 29 29 0a | 28 64 65 66 75 6e 20 73 |ms] 3)).|(defun s|
|00002e10| 65 6c 65 63 74 2d 73 74 | 65 70 70 69 6e 67 2d 66 |elect-st|epping-f|
|00002e20| 6f 72 6d 73 20 28 66 6f | 72 6d 73 29 20 22 5c 0a |orms (fo|rms) "\.|
|00002e30| 53 65 70 61 72 61 74 65 | 20 6f 6e 6c 79 20 74 68 |Separate| only th|
|00002e40| 65 20 66 6f 72 6d 73 20 | 74 68 61 74 20 63 61 75 |e forms |that cau|
|00002e50| 73 65 20 73 74 65 70 70 | 69 6e 67 2e 22 20 28 62 |se stepp|ing." (b|
|00002e60| 79 74 65 2d 63 6f 64 65 | 20 22 c0 09 c0 1a 1b 1c |yte-code| "......|
|00002e70| 0b 83 2a 00 0b 40 89 12 | 3c 83 23 00 5c 6e 47 c5 |..*..@..|<.#.\nG.|
|00002e80| 55 83 23 00 c6 c7 5c 6e | 21 5c 6e 40 44 0c 5c 22 |U.#...\n|!\n@D.\"|
|00002e90| 14 0b 41 89 13 84 5c 6e | 00 c8 0c 21 2b 87 22 20 |..A...\n|...!+." |
|00002ea0| 5b 6e 69 6c 20 66 6f 72 | 6d 73 20 65 6e 74 72 79 |[nil for|ms entry|
|00002eb0| 20 70 74 72 20 72 65 73 | 75 6c 74 20 33 20 61 70 | ptr res|ult 3 ap|
|00002ec0| 70 65 6e 64 20 63 61 64 | 64 72 20 6e 72 65 76 65 |pend cad|dr nreve|
|00002ed0| 72 73 65 5d 20 34 29 29 | 0a 28 64 65 66 6d 61 63 |rse] 4))|.(defmac|
|00002ee0| 72 6f 20 64 6f 6c 69 73 | 74 20 28 73 74 65 70 66 |ro dolis|t (stepf|
|00002ef0| 6f 72 6d 20 26 72 65 73 | 74 20 62 6f 64 79 29 20 |orm &res|t body) |
|00002f00| 22 5c 0a 28 64 6f 6c 69 | 73 74 20 28 56 41 52 20 |"\.(doli|st (VAR |
|00002f10| 4c 49 53 54 20 5b 52 45 | 53 55 4c 54 46 4f 52 4d |LIST [RE|SULTFORM|
|00002f20| 5d 29 20 2e 20 42 4f 44 | 59 29 3a 20 64 6f 20 42 |]) . BOD|Y): do B|
|00002f30| 4f 44 59 20 66 6f 72 20 | 65 61 63 68 20 65 6c 74 |ODY for |each elt|
|00002f40| 20 6f 66 20 4c 49 53 54 | 2e 0a 54 68 65 20 52 45 | of LIST|..The RE|
|00002f50| 53 55 4c 54 46 4f 52 4d | 20 64 65 66 61 75 6c 74 |SULTFORM| default|
|00002f60| 73 20 74 6f 20 6e 69 6c | 2e 20 20 54 68 65 20 56 |s to nil|. The V|
|00002f70| 41 52 20 69 73 20 62 6f | 75 6e 64 20 74 6f 20 73 |AR is bo|und to s|
|00002f80| 75 63 63 65 73 73 69 76 | 65 0a 65 6c 65 6d 65 6e |uccessiv|e.elemen|
|00002f90| 74 73 20 6f 66 20 74 68 | 65 20 76 61 6c 75 65 20 |ts of th|e value |
|00002fa0| 6f 66 20 4c 49 53 54 20 | 61 6e 64 20 72 65 6d 61 |of LIST |and rema|
|00002fb0| 69 6e 73 20 62 6f 75 6e | 64 20 28 74 6f 20 74 68 |ins boun|d (to th|
|00002fc0| 65 20 6e 69 6c 20 76 61 | 6c 75 65 29 20 77 68 65 |e nil va|lue) whe|
|00002fd0| 6e 20 74 68 65 0a 52 45 | 53 55 4c 54 46 4f 52 4d |n the.RE|SULTFORM|
|00002fe0| 20 69 73 20 65 76 61 6c | 75 61 74 65 64 2e 22 20 | is eval|uated." |
|00002ff0| 28 62 79 74 65 2d 63 6f | 64 65 20 22 08 3c 84 0f |(byte-co|de ".<..|
|00003000| 00 c1 c2 c3 08 21 5c 22 | 88 82 2e 00 08 40 39 84 |.....!\"|.....@9.|
|00003010| 20 00 c1 c4 c3 08 40 21 | 5c 22 88 82 2e 00 08 47 | .....@!|\".....G|
|00003020| c5 56 83 2e 00 c1 c6 c3 | 08 21 5c 22 88 08 40 1e |.V......|.!\"..@.|
|00003030| 07 c8 08 21 1e 09 ca 08 | 21 1e 0b cc cd ce cf 0e |...!....|!.......|
|00003040| 07 43 0e 10 42 42 44 0e | 09 45 d1 0e 07 d2 44 43 |.C..BBD.|.E....DC|
|00003050| 0e 0b 45 45 2b 87 22 20 | 5b 73 74 65 70 66 6f 72 |..EE+." |[stepfor|
|00003060| 6d 20 65 72 72 6f 72 20 | 22 53 74 65 70 66 6f 72 |m error |"Stepfor|
|00003070| 6d 20 66 6f 72 20 60 64 | 6f 6c 69 73 74 27 20 73 |m for `d|olist' s|
|00003080| 68 6f 75 6c 64 20 62 65 | 20 28 56 41 52 20 4c 49 |hould be| (VAR LI|
|00003090| 53 54 20 5b 52 45 53 55 | 4c 54 5d 29 2c 20 6e 6f |ST [RESU|LT]), no|
|000030a0| 74 20 60 25 73 27 22 20 | 70 72 69 6e 31 2d 74 6f |t `%s'" |prin1-to|
|000030b0| 2d 73 74 72 69 6e 67 20 | 22 46 69 72 73 74 20 63 |-string |"First c|
|000030c0| 6f 6d 70 6f 6e 65 6e 74 | 20 6f 66 20 73 74 65 70 |omponent| of step|
|000030d0| 66 6f 72 6d 20 73 68 6f | 75 6c 64 20 62 65 20 61 |form sho|uld be a|
|000030e0| 20 73 79 6d 62 6f 6c 2c | 20 6e 6f 74 20 60 25 73 | symbol,| not `%s|
|000030f0| 27 22 20 33 20 22 54 6f | 6f 20 6d 61 6e 79 20 63 |'" 3 "To|o many c|
|00003100| 6f 6d 70 6f 6e 65 6e 74 | 73 20 69 6e 20 73 74 65 |omponent|s in ste|
|00003110| 70 66 6f 72 6d 20 60 25 | 73 27 22 20 76 61 72 20 |pform `%|s'" var |
|00003120| 63 61 64 72 20 6c 69 73 | 74 66 6f 72 6d 20 63 61 |cadr lis|tform ca|
|00003130| 64 64 72 20 72 65 73 75 | 6c 74 66 6f 72 6d 20 70 |ddr resu|ltform p|
|00003140| 72 6f 67 6e 20 6d 61 70 | 63 61 72 20 66 75 6e 63 |rogn map|car func|
|00003150| 74 69 6f 6e 20 6c 61 6d | 62 64 61 20 62 6f 64 79 |tion lam|bda body|
|00003160| 20 6c 65 74 20 6e 69 6c | 5d 20 36 29 29 0a 28 64 | let nil|] 6)).(d|
|00003170| 65 66 6d 61 63 72 6f 20 | 64 6f 74 69 6d 65 73 20 |efmacro |dotimes |
|00003180| 28 73 74 65 70 66 6f 72 | 6d 20 26 72 65 73 74 20 |(stepfor|m &rest |
|00003190| 62 6f 64 79 29 20 22 5c | 0a 28 64 6f 74 69 6d 65 |body) "\|.(dotime|
|000031a0| 73 20 28 56 41 52 20 43 | 4f 55 4e 54 46 4f 52 4d |s (VAR C|OUNTFORM|
|000031b0| 20 5b 52 45 53 55 4c 54 | 46 4f 52 4d 5d 29 20 2e | [RESULT|FORM]) .|
|000031c0| 20 20 42 4f 44 59 29 3a | 20 52 65 70 65 61 74 20 | BODY):| Repeat |
|000031d0| 42 4f 44 59 2c 20 63 6f | 75 6e 74 69 6e 67 20 69 |BODY, co|unting i|
|000031e0| 6e 20 56 41 52 2e 0a 54 | 68 65 20 43 4f 55 4e 54 |n VAR..T|he COUNT|
|000031f0| 46 4f 52 4d 20 73 68 6f | 75 6c 64 20 72 65 74 75 |FORM sho|uld retu|
|00003200| 72 6e 20 61 20 70 6f 73 | 69 74 69 76 65 20 69 6e |rn a pos|itive in|
|00003210| 74 65 67 65 72 2e 20 20 | 54 68 65 20 56 41 52 20 |teger. |The VAR |
|00003220| 69 73 20 62 6f 75 6e 64 | 20 74 6f 0a 73 75 63 63 |is bound| to.succ|
|00003230| 65 73 73 69 76 65 20 69 | 6e 74 65 67 65 72 73 20 |essive i|ntegers |
|00003240| 66 72 6f 6d 20 30 20 74 | 6f 20 43 4f 55 4e 54 46 |from 0 t|o COUNTF|
|00003250| 4f 52 4d 2d 31 20 61 6e | 64 20 74 68 65 20 42 4f |ORM-1 an|d the BO|
|00003260| 44 59 20 69 73 20 72 65 | 70 65 61 74 65 64 20 66 |DY is re|peated f|
|00003270| 6f 72 0a 65 61 63 68 20 | 6f 66 20 74 68 65 6d 2e |or.each |of them.|
|00003280| 20 20 41 74 20 74 68 65 | 20 65 6e 64 2c 20 74 68 | At the| end, th|
|00003290| 65 20 52 45 53 55 4c 54 | 46 4f 52 4d 20 69 73 20 |e RESULT|FORM is |
|000032a0| 65 76 61 6c 75 61 74 65 | 64 20 61 6e 64 20 69 74 |evaluate|d and it|
|000032b0| 73 20 76 61 6c 75 65 0a | 72 65 74 75 72 6e 65 64 |s value.|returned|
|000032c0| 2e 20 44 75 72 69 6e 67 | 20 74 68 69 73 20 6c 61 |. During| this la|
|000032d0| 73 74 20 65 76 61 6c 75 | 61 74 69 6f 6e 2c 20 74 |st evalu|ation, t|
|000032e0| 68 65 20 56 41 52 20 69 | 73 20 73 74 69 6c 6c 20 |he VAR i|s still |
|000032f0| 62 6f 75 6e 64 2c 20 61 | 6e 64 20 69 74 73 0a 76 |bound, a|nd its.v|
|00003300| 61 6c 75 65 20 69 73 20 | 74 68 65 20 6e 75 6d 62 |alue is |the numb|
|00003310| 65 72 20 6f 66 20 74 69 | 6d 65 73 20 74 68 65 20 |er of ti|mes the |
|00003320| 69 74 65 72 61 74 69 6f | 6e 20 6f 63 63 75 72 72 |iteratio|n occurr|
|00003330| 65 64 2e 20 41 6e 20 6f | 6d 69 74 74 65 64 20 52 |ed. An o|mitted R|
|00003340| 45 53 55 4c 54 46 4f 52 | 4d 0a 64 65 66 61 75 6c |ESULTFOR|M.defaul|
|00003350| 74 73 20 74 6f 20 6e 69 | 6c 2e 22 20 28 62 79 74 |ts to ni|l." (byt|
|00003360| 65 2d 63 6f 64 65 20 22 | 08 3c 84 0f 00 c1 c2 c3 |e-code "|.<......|
|00003370| 08 21 5c 22 88 82 2e 00 | 08 40 39 84 20 00 c1 c4 |.!\"....|.@9. ...|
|00003380| c3 08 40 21 5c 22 88 82 | 2e 00 08 47 c5 56 83 2e |..@!\"..|...G.V..|
|00003390| 00 c1 c6 c3 08 21 5c 22 | 88 08 40 1e 07 c8 08 21 |.....!\"|..@....!|
|000033a0| 1e 09 ca 08 21 1e 0b cc | 20 1e 0d ce 0e 0d 0e 09 |....!...| .......|
|000033b0| 44 43 cf d0 0e 07 d1 d2 | 0e 07 d3 45 45 43 d4 0e |DC......|...EEC..|
|000033c0| 07 0e 0d 45 0e 0b 44 0e | 15 24 45 2c 87 22 20 5b |...E..D.|.$E,." [|
|000033d0| 73 74 65 70 66 6f 72 6d | 20 65 72 72 6f 72 20 22 |stepform| error "|
|000033e0| 53 74 65 70 66 6f 72 6d | 20 66 6f 72 20 60 64 6f |Stepform| for `do|
|000033f0| 74 69 6d 65 73 27 20 73 | 68 6f 75 6c 64 20 62 65 |times' s|hould be|
|00003400| 20 28 56 41 52 20 43 4f | 55 4e 54 20 5b 52 45 53 | (VAR CO|UNT [RES|
|00003410| 55 4c 54 5d 29 2c 20 6e | 6f 74 20 60 25 73 27 22 |ULT]), n|ot `%s'"|
|00003420| 20 70 72 69 6e 31 2d 74 | 6f 2d 73 74 72 69 6e 67 | prin1-t|o-string|
|00003430| 20 22 46 69 72 73 74 20 | 63 6f 6d 70 6f 6e 65 6e | "First |componen|
|00003440| 74 20 6f 66 20 73 74 65 | 70 66 6f 72 6d 20 73 68 |t of ste|pform sh|
|00003450| 6f 75 6c 64 20 62 65 20 | 61 20 73 79 6d 62 6f 6c |ould be |a symbol|
|00003460| 2c 20 6e 6f 74 20 60 25 | 73 27 22 20 33 20 22 54 |, not `%|s'" 3 "T|
|00003470| 6f 6f 20 6d 61 6e 79 20 | 63 6f 6d 70 6f 6e 65 6e |oo many |componen|
|00003480| 74 73 20 69 6e 20 73 74 | 65 70 66 6f 72 6d 20 60 |ts in st|epform `|
|00003490| 25 73 27 22 20 76 61 72 | 20 63 61 64 72 20 63 6f |%s'" var| cadr co|
|000034a0| 75 6e 74 66 6f 72 6d 20 | 63 61 64 64 72 20 72 65 |untform |caddr re|
|000034b0| 73 75 6c 74 66 6f 72 6d | 20 67 65 6e 74 65 6d 70 |sultform| gentemp|
|000034c0| 20 6e 65 77 73 79 6d 20 | 6c 65 74 2a 20 6c 69 73 | newsym |let* lis|
|000034d0| 74 2a 20 64 6f 2a 20 30 | 20 2b 20 31 20 3e 3d 20 |t* do* 0| + 1 >= |
|000034e0| 62 6f 64 79 5d 20 39 29 | 29 0a 28 64 65 66 6d 61 |body] 9)|).(defma|
|000034f0| 63 72 6f 20 64 6f 2d 73 | 79 6d 62 6f 6c 73 20 28 |cro do-s|ymbols (|
|00003500| 73 74 65 70 66 6f 72 6d | 20 26 72 65 73 74 20 62 |stepform| &rest b|
|00003510| 6f 64 79 29 20 22 5c 0a | 28 64 6f 5f 73 79 6d 62 |ody) "\.|(do_symb|
|00003520| 6f 6c 73 20 28 56 41 52 | 20 5b 4f 42 41 52 52 41 |ols (VAR| [OBARRA|
|00003530| 59 20 5b 52 45 53 55 4c | 54 46 4f 52 4d 5d 5d 29 |Y [RESUL|TFORM]])|
|00003540| 20 2e 20 42 4f 44 59 29 | 0a 54 68 65 20 56 41 52 | . BODY)|.The VAR|
|00003550| 20 69 73 20 62 6f 75 6e | 64 20 74 6f 20 65 61 63 | is boun|d to eac|
|00003560| 68 20 6f 66 20 74 68 65 | 20 73 79 6d 62 6f 6c 73 |h of the| symbols|
|00003570| 20 69 6e 20 4f 42 41 52 | 52 41 59 20 28 64 65 66 | in OBAR|RAY (def|
|00003580| 2e 20 6f 62 61 72 72 61 | 79 29 20 61 6e 64 0a 74 |. obarra|y) and.t|
|00003590| 68 65 20 42 4f 44 59 20 | 69 73 20 72 65 70 65 61 |he BODY |is repea|
|000035a0| 74 65 64 6c 79 20 70 65 | 72 66 6f 72 6d 65 64 20 |tedly pe|rformed |
|000035b0| 66 6f 72 20 65 61 63 68 | 20 6f 66 20 74 68 6f 73 |for each| of thos|
|000035c0| 65 20 62 69 6e 64 69 6e | 67 73 2e 20 41 74 20 74 |e bindin|gs. At t|
|000035d0| 68 65 0a 65 6e 64 2c 20 | 52 45 53 55 4c 54 46 4f |he.end, |RESULTFO|
|000035e0| 52 4d 20 28 64 65 66 2e | 20 6e 69 6c 29 20 69 73 |RM (def.| nil) is|
|000035f0| 20 65 76 61 6c 75 61 74 | 65 64 20 61 6e 64 20 69 | evaluat|ed and i|
|00003600| 74 73 20 76 61 6c 75 65 | 20 72 65 74 75 72 6e 65 |ts value| returne|
|00003610| 64 2e 0a 44 75 72 69 6e | 67 20 74 68 69 73 20 6c |d..Durin|g this l|
|00003620| 61 73 74 20 65 76 61 6c | 75 61 74 69 6f 6e 2c 20 |ast eval|uation, |
|00003630| 74 68 65 20 56 41 52 20 | 69 73 20 73 74 69 6c 6c |the VAR |is still|
|00003640| 20 62 6f 75 6e 64 20 61 | 6e 64 20 69 74 73 20 76 | bound a|nd its v|
|00003650| 61 6c 75 65 20 69 73 20 | 6e 69 6c 2e 0a 53 65 65 |alue is |nil..See|
|00003660| 20 61 6c 73 6f 20 74 68 | 65 20 66 75 6e 63 74 69 | also th|e functi|
|00003670| 6f 6e 20 60 6d 61 70 61 | 74 6f 6d 73 27 2e 22 20 |on `mapa|toms'." |
|00003680| 28 62 79 74 65 2d 63 6f | 64 65 20 22 08 3c 84 0f |(byte-co|de ".<..|
|00003690| 00 c1 c2 c3 08 21 5c 22 | 88 82 2e 00 08 40 39 84 |.....!\"|.....@9.|
|000036a0| 20 00 c1 c4 c3 08 40 21 | 5c 22 88 82 2e 00 08 47 | .....@!|\".....G|
|000036b0| c5 56 83 2e 00 c1 c6 c3 | 08 21 5c 22 88 08 40 1e |.V......|.!\"..@.|
|000036c0| 07 c8 08 21 1e 09 ca 08 | 21 1e 0b cc cd ce cf 0e |...!....|!.......|
|000036d0| 07 43 0e 10 42 42 44 0e | 09 45 d1 0e 07 d2 44 43 |.C..BBD.|.E....DC|
|000036e0| 0e 0b 45 45 2b 87 22 20 | 5b 73 74 65 70 66 6f 72 |..EE+." |[stepfor|
|000036f0| 6d 20 65 72 72 6f 72 20 | 22 53 74 65 70 66 6f 72 |m error |"Stepfor|
|00003700| 6d 20 66 6f 72 20 60 64 | 6f 2d 73 79 6d 62 6f 6c |m for `d|o-symbol|
|00003710| 73 27 20 73 68 6f 75 6c | 64 20 62 65 20 28 56 41 |s' shoul|d be (VA|
|00003720| 52 20 4f 42 41 52 52 41 | 59 20 5b 52 45 53 55 4c |R OBARRA|Y [RESUL|
|00003730| 54 5d 29 2c 20 6e 6f 74 | 20 60 25 73 27 22 20 70 |T]), not| `%s'" p|
|00003740| 72 69 6e 31 2d 74 6f 2d | 73 74 72 69 6e 67 20 22 |rin1-to-|string "|
|00003750| 46 69 72 73 74 20 63 6f | 6d 70 6f 6e 65 6e 74 20 |First co|mponent |
|00003760| 6f 66 20 73 74 65 70 66 | 6f 72 6d 20 73 68 6f 75 |of stepf|orm shou|
|00003770| 6c 64 20 62 65 20 61 20 | 73 79 6d 62 6f 6c 2c 20 |ld be a |symbol, |
|00003780| 6e 6f 74 20 60 25 73 27 | 22 20 33 20 22 54 6f 6f |not `%s'|" 3 "Too|
|00003790| 20 6d 61 6e 79 20 63 6f | 6d 70 6f 6e 65 6e 74 73 | many co|mponents|
|000037a0| 20 69 6e 20 73 74 65 70 | 66 6f 72 6d 20 60 25 73 | in step|form `%s|
|000037b0| 27 22 20 76 61 72 20 63 | 61 64 72 20 6f 62 6c 69 |'" var c|adr obli|
|000037c0| 73 74 20 63 61 64 64 72 | 20 72 65 73 75 6c 74 66 |st caddr| resultf|
|000037d0| 6f 72 6d 20 70 72 6f 67 | 6e 20 6d 61 70 61 74 6f |orm prog|n mapato|
|000037e0| 6d 73 20 66 75 6e 63 74 | 69 6f 6e 20 6c 61 6d 62 |ms funct|ion lamb|
|000037f0| 64 61 20 62 6f 64 79 20 | 6c 65 74 20 6e 69 6c 5d |da body |let nil]|
|00003800| 20 36 29 29 0a 28 64 65 | 66 6d 61 63 72 6f 20 64 | 6)).(de|fmacro d|
|00003810| 6f 2d 61 6c 6c 2d 73 79 | 6d 62 6f 6c 73 20 28 73 |o-all-sy|mbols (s|
|00003820| 74 65 70 66 6f 72 6d 20 | 26 72 65 73 74 20 62 6f |tepform |&rest bo|
|00003830| 64 79 29 20 22 5c 0a 28 | 64 6f 2d 61 6c 6c 2d 73 |dy) "\.(|do-all-s|
|00003840| 79 6d 62 6f 6c 73 20 28 | 56 41 52 20 5b 52 45 53 |ymbols (|VAR [RES|
|00003850| 55 4c 54 46 4f 52 4d 5d | 29 20 2e 20 42 4f 44 59 |ULTFORM]|) . BODY|
|00003860| 29 0a 49 73 20 74 68 65 | 20 73 61 6d 65 20 61 73 |).Is the| same as|
|00003870| 20 28 64 6f 2d 73 79 6d | 62 6f 6c 73 20 28 56 41 | (do-sym|bols (VA|
|00003880| 52 20 6f 62 61 72 72 61 | 79 20 52 45 53 55 4c 54 |R obarra|y RESULT|
|00003890| 46 4f 52 4d 29 20 2e 20 | 42 4f 44 59 29 2e 22 20 |FORM) . |BODY)." |
|000038a0| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c0 c1 5c 6e |(byte-co|de "..\n|
|000038b0| 40 c3 c4 5c 6e 21 45 0d | 23 87 22 20 5b 6c 69 73 |@..\n!E.|#." [lis|
|000038c0| 74 2a 20 64 6f 2d 73 79 | 6d 62 6f 6c 73 20 73 74 |t* do-sy|mbols st|
|000038d0| 65 70 66 6f 72 6d 20 6f | 62 61 72 72 61 79 20 63 |epform o|barray c|
|000038e0| 61 64 72 20 62 6f 64 79 | 5d 20 36 29 29 0a 28 64 |adr body|] 6)).(d|
|000038f0| 65 66 6d 61 63 72 6f 20 | 6c 6f 6f 70 20 28 26 72 |efmacro |loop (&r|
|00003900| 65 73 74 20 62 6f 64 79 | 29 20 22 5c 0a 28 6c 6f |est body|) "\.(lo|
|00003910| 6f 70 20 2e 20 42 4f 44 | 59 29 20 72 65 70 65 61 |op . BOD|Y) repea|
|00003920| 74 73 20 42 4f 44 59 20 | 69 6e 64 65 66 69 6e 69 |ts BODY |indefini|
|00003930| 74 65 6c 79 20 61 6e 64 | 20 64 6f 65 73 20 6e 6f |tely and| does no|
|00003940| 74 20 72 65 74 75 72 6e | 2e 0a 4e 6f 72 6d 61 6c |t return|..Normal|
|00003950| 6c 79 20 42 4f 44 59 20 | 75 73 65 73 20 60 74 68 |ly BODY |uses `th|
|00003960| 72 6f 77 27 20 6f 72 20 | 60 73 69 67 6e 61 6c 27 |row' or |`signal'|
|00003970| 20 74 6f 20 63 61 75 73 | 65 20 61 6e 20 65 78 69 | to caus|e an exi|
|00003980| 74 2e 0a 54 68 65 20 66 | 6f 72 6d 73 20 69 6e 20 |t..The f|orms in |
|00003990| 42 4f 44 59 20 73 68 6f | 75 6c 64 20 62 65 20 6c |BODY sho|uld be l|
|000039a0| 69 73 74 73 2c 20 61 73 | 20 6e 6f 6e 2d 6c 69 73 |ists, as| non-lis|
|000039b0| 74 73 20 61 72 65 20 72 | 65 73 65 72 76 65 64 20 |ts are r|eserved |
|000039c0| 66 6f 72 20 6e 65 77 20 | 66 65 61 74 75 72 65 73 |for new |features|
|000039d0| 2e 22 20 28 62 79 74 65 | 2d 63 6f 64 65 20 22 08 |." (byte|-code ".|
|000039e0| 3c 84 09 00 c1 c2 21 87 | c3 c4 08 5c 22 88 c5 c6 |<.....!.|...\"...|
|000039f0| 08 42 42 87 22 20 5b 62 | 6f 64 79 20 65 72 72 6f |.BB." [b|ody erro|
|00003a00| 72 20 22 42 6f 64 79 20 | 6f 66 20 60 6c 6f 6f 70 |r "Body |of `loop|
|00003a10| 27 20 73 68 6f 75 6c 64 | 20 62 65 20 61 20 6c 69 |' should| be a li|
|00003a20| 73 74 20 6f 66 20 6c 69 | 73 74 73 20 6f 72 20 6e |st of li|sts or n|
|00003a30| 69 6c 22 20 6d 61 70 63 | 61 72 20 28 6c 61 6d 62 |il" mapc|ar (lamb|
|00003a40| 64 61 20 28 63 6f 6d 70 | 6f 6e 65 6e 74 29 20 28 |da (comp|onent) (|
|00003a50| 62 79 74 65 2d 63 6f 64 | 65 20 22 08 3c 3f 85 09 |byte-cod|e ".<?..|
|00003a60| 00 c1 c2 21 87 22 20 5b | 63 6f 6d 70 6f 6e 65 6e |...!." [|componen|
|00003a70| 74 20 65 72 72 6f 72 20 | 22 43 6f 6d 70 6f 6e 65 |t error |"Compone|
|00003a80| 6e 74 73 20 6f 66 20 60 | 6c 6f 6f 70 27 20 73 68 |nts of `|loop' sh|
|00003a90| 6f 75 6c 64 20 62 65 20 | 6c 69 73 74 73 22 5d 20 |ould be |lists"] |
|00003aa0| 32 29 29 20 77 68 69 6c | 65 20 74 5d 20 33 29 29 |2)) whil|e t] 3))|
|00003ab0| 0a 28 64 65 66 75 6e 20 | 66 69 72 73 74 20 28 78 |.(defun |first (x|
|00003ac0| 29 20 22 5c 0a 53 79 6e | 6f 6e 79 6d 20 66 6f 72 |) "\.Syn|onym for|
|00003ad0| 20 60 63 61 72 27 22 20 | 28 62 79 74 65 2d 63 6f | `car'" |(byte-co|
|00003ae0| 64 65 20 22 08 40 87 22 | 20 5b 78 5d 20 31 29 29 |de ".@."| [x] 1))|
|00003af0| 0a 28 64 65 66 75 6e 20 | 73 65 63 6f 6e 64 20 28 |.(defun |second (|
|00003b00| 78 29 20 22 5c 0a 52 65 | 74 75 72 6e 20 74 68 65 |x) "\.Re|turn the|
|00003b10| 20 73 65 63 6f 6e 64 20 | 65 6c 65 6d 65 6e 74 20 | second |element |
|00003b20| 6f 66 20 74 68 65 20 6c | 69 73 74 20 4c 49 53 54 |of the l|ist LIST|
|00003b30| 2e 22 20 28 62 79 74 65 | 2d 63 6f 64 65 20 22 08 |." (byte|-code ".|
|00003b40| 41 40 87 22 20 5b 78 5d | 20 31 29 29 0a 28 64 65 |A@." [x]| 1)).(de|
|00003b50| 66 75 6e 20 74 68 69 72 | 64 20 28 78 29 20 22 5c |fun thir|d (x) "\|
|00003b60| 0a 52 65 74 75 72 6e 20 | 74 68 65 20 74 68 69 72 |.Return |the thir|
|00003b70| 64 20 65 6c 65 6d 65 6e | 74 20 6f 66 20 74 68 65 |d elemen|t of the|
|00003b80| 20 6c 69 73 74 20 4c 49 | 53 54 2e 22 20 28 62 79 | list LI|ST." (by|
|00003b90| 74 65 2d 63 6f 64 65 20 | 22 c0 09 38 87 22 20 5b |te-code |"..8." [|
|00003ba0| 32 20 78 5d 20 32 29 29 | 0a 28 64 65 66 75 6e 20 |2 x] 2))|.(defun |
|00003bb0| 66 6f 75 72 74 68 20 28 | 78 29 20 22 5c 0a 52 65 |fourth (|x) "\.Re|
|00003bc0| 74 75 72 6e 20 74 68 65 | 20 66 6f 75 72 74 68 20 |turn the| fourth |
|00003bd0| 65 6c 65 6d 65 6e 74 20 | 6f 66 20 74 68 65 20 6c |element |of the l|
|00003be0| 69 73 74 20 4c 49 53 54 | 2e 22 20 28 62 79 74 65 |ist LIST|." (byte|
|00003bf0| 2d 63 6f 64 65 20 22 c0 | 09 38 87 22 20 5b 33 20 |-code ".|.8." [3 |
|00003c00| 78 5d 20 32 29 29 0a 28 | 64 65 66 75 6e 20 66 69 |x] 2)).(|defun fi|
|00003c10| 66 74 68 20 28 78 29 20 | 22 5c 0a 52 65 74 75 72 |fth (x) |"\.Retur|
|00003c20| 6e 20 74 68 65 20 66 69 | 66 74 68 20 65 6c 65 6d |n the fi|fth elem|
|00003c30| 65 6e 74 20 6f 66 20 74 | 68 65 20 6c 69 73 74 20 |ent of t|he list |
|00003c40| 4c 49 53 54 2e 22 20 28 | 62 79 74 65 2d 63 6f 64 |LIST." (|byte-cod|
|00003c50| 65 20 22 c0 09 38 87 22 | 20 5b 34 20 78 5d 20 32 |e "..8."| [4 x] 2|
|00003c60| 29 29 0a 28 64 65 66 75 | 6e 20 73 69 78 74 68 20 |)).(defu|n sixth |
|00003c70| 28 78 29 20 22 5c 0a 52 | 65 74 75 72 6e 20 74 68 |(x) "\.R|eturn th|
|00003c80| 65 20 73 69 78 74 68 20 | 65 6c 65 6d 65 6e 74 20 |e sixth |element |
|00003c90| 6f 66 20 74 68 65 20 6c | 69 73 74 20 4c 49 53 54 |of the l|ist LIST|
|00003ca0| 2e 22 20 28 62 79 74 65 | 2d 63 6f 64 65 20 22 c0 |." (byte|-code ".|
|00003cb0| 09 38 87 22 20 5b 35 20 | 78 5d 20 32 29 29 0a 28 |.8." [5 |x] 2)).(|
|00003cc0| 64 65 66 75 6e 20 73 65 | 76 65 6e 74 68 20 28 78 |defun se|venth (x|
|00003cd0| 29 20 22 5c 0a 52 65 74 | 75 72 6e 20 74 68 65 20 |) "\.Ret|urn the |
|00003ce0| 73 65 76 65 6e 74 68 20 | 65 6c 65 6d 65 6e 74 20 |seventh |element |
|00003cf0| 6f 66 20 74 68 65 20 6c | 69 73 74 20 4c 49 53 54 |of the l|ist LIST|
|00003d00| 2e 22 20 28 62 79 74 65 | 2d 63 6f 64 65 20 22 c0 |." (byte|-code ".|
|00003d10| 09 38 87 22 20 5b 36 20 | 78 5d 20 32 29 29 0a 28 |.8." [6 |x] 2)).(|
|00003d20| 64 65 66 75 6e 20 65 69 | 67 68 74 68 20 28 78 29 |defun ei|ghth (x)|
|00003d30| 20 22 5c 0a 52 65 74 75 | 72 6e 20 74 68 65 20 65 | "\.Retu|rn the e|
|00003d40| 69 67 68 74 68 20 65 6c | 65 6d 65 6e 74 20 6f 66 |ighth el|ement of|
|00003d50| 20 74 68 65 20 6c 69 73 | 74 20 4c 49 53 54 2e 22 | the lis|t LIST."|
|00003d60| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c0 09 38 | (byte-c|ode "..8|
|00003d70| 87 22 20 5b 37 20 78 5d | 20 32 29 29 0a 28 64 65 |." [7 x]| 2)).(de|
|00003d80| 66 75 6e 20 6e 69 6e 74 | 68 20 28 78 29 20 22 5c |fun nint|h (x) "\|
|00003d90| 0a 52 65 74 75 72 6e 20 | 74 68 65 20 6e 69 6e 74 |.Return |the nint|
|00003da0| 68 20 65 6c 65 6d 65 6e | 74 20 6f 66 20 74 68 65 |h elemen|t of the|
|00003db0| 20 6c 69 73 74 20 4c 49 | 53 54 2e 22 20 28 62 79 | list LI|ST." (by|
|00003dc0| 74 65 2d 63 6f 64 65 20 | 22 c0 09 38 87 22 20 5b |te-code |"..8." [|
|00003dd0| 38 20 78 5d 20 32 29 29 | 0a 28 64 65 66 75 6e 20 |8 x] 2))|.(defun |
|00003de0| 74 65 6e 74 68 20 28 78 | 29 20 22 5c 0a 52 65 74 |tenth (x|) "\.Ret|
|00003df0| 75 72 6e 20 74 68 65 20 | 74 65 6e 74 68 20 65 6c |urn the |tenth el|
|00003e00| 65 6d 65 6e 74 20 6f 66 | 20 74 68 65 20 6c 69 73 |ement of| the lis|
|00003e10| 74 20 4c 49 53 54 2e 22 | 20 28 62 79 74 65 2d 63 |t LIST."| (byte-c|
|00003e20| 6f 64 65 20 22 c0 09 38 | 87 22 20 5b 39 20 78 5d |ode "..8|." [9 x]|
|00003e30| 20 32 29 29 0a 28 64 65 | 66 75 6e 20 72 65 73 74 | 2)).(de|fun rest|
|00003e40| 20 28 78 29 20 22 5c 0a | 53 79 6e 6f 6e 79 6d 20 | (x) "\.|Synonym |
|00003e50| 66 6f 72 20 60 63 64 72 | 27 22 20 28 62 79 74 65 |for `cdr|'" (byte|
|00003e60| 2d 63 6f 64 65 20 22 08 | 41 87 22 20 5b 78 5d 20 |-code ".|A." [x] |
|00003e70| 31 29 29 0a 28 64 65 66 | 75 6e 20 65 6e 64 70 20 |1)).(def|un endp |
|00003e80| 28 78 29 20 22 5c 0a 74 | 20 69 66 20 58 20 69 73 |(x) "\.t| if X is|
|00003e90| 20 6e 69 6c 2c 20 6e 69 | 6c 20 69 66 20 58 20 69 | nil, ni|l if X i|
|00003ea0| 73 20 61 20 63 6f 6e 73 | 3b 20 65 72 72 6f 72 20 |s a cons|; error |
|00003eb0| 6f 74 68 65 72 77 69 73 | 65 2e 22 20 28 62 79 74 |otherwis|e." (byt|
|00003ec0| 65 2d 63 6f 64 65 20 22 | 08 3c 83 08 00 08 3f 87 |e-code "|.<....?.|
|00003ed0| c1 c2 c3 08 21 5c 22 87 | 22 20 5b 78 20 65 72 72 |....!\".|" [x err|
|00003ee0| 6f 72 20 22 65 6e 64 70 | 20 72 65 63 65 69 76 65 |or "endp| receive|
|00003ef0| 64 20 61 20 6e 6f 6e 2d | 63 6f 6e 73 2c 20 6e 6f |d a non-|cons, no|
|00003f00| 6e 2d 6e 75 6c 6c 20 61 | 72 67 75 6d 65 6e 74 20 |n-null a|rgument |
|00003f10| 60 25 73 27 22 20 70 72 | 69 6e 31 2d 74 6f 2d 73 |`%s'" pr|in1-to-s|
|00003f20| 74 72 69 6e 67 5d 20 34 | 29 29 0a 28 64 65 66 75 |tring] 4|)).(defu|
|00003f30| 6e 20 6c 61 73 74 20 28 | 78 29 20 22 5c 0a 52 65 |n last (|x) "\.Re|
|00003f40| 74 75 72 6e 73 20 74 68 | 65 20 6c 61 73 74 20 6c |turns th|e last l|
|00003f50| 69 6e 6b 20 69 6e 20 74 | 68 65 20 6c 69 73 74 20 |ink in t|he list |
|00003f60| 4c 49 53 54 2e 22 20 28 | 62 79 74 65 2d 63 6f 64 |LIST." (|byte-cod|
|00003f70| 65 20 22 08 3c 84 09 00 | c1 c2 21 88 08 89 41 1b |e ".<...|..!...A.|
|00003f80| 1c c5 0b 21 84 25 00 0c | 41 0b 41 1e 06 89 1e 07 |...!.%..|A.A.....|
|00003f90| 14 0e 06 13 2a 82 0e 00 | 0c 2a 87 22 20 5b 78 20 |....*...|.*." [x |
|00003fa0| 65 72 72 6f 72 20 22 41 | 72 67 20 74 6f 20 60 6c |error "A|rg to `l|
|00003fb0| 61 73 74 27 20 6d 75 73 | 74 20 62 65 20 61 20 6c |ast' mus|t be a l|
|00003fc0| 69 73 74 22 20 6e 65 78 | 74 2d 63 6f 6e 73 20 63 |ist" nex|t-cons c|
|00003fd0| 75 72 72 65 6e 74 2d 63 | 6f 6e 73 20 65 6e 64 70 |urrent-c|ons endp|
|00003fe0| 20 47 24 24 5f 36 30 39 | 20 47 24 24 5f 36 31 30 | G$$_609| G$$_610|
|00003ff0| 5d 20 33 29 29 0a 28 64 | 65 66 75 6e 20 6c 69 73 |] 3)).(d|efun lis|
|00004000| 74 2d 6c 65 6e 67 74 68 | 20 28 78 29 20 22 5c 0a |t-length| (x) "\.|
|00004010| 52 65 74 75 72 6e 73 20 | 74 68 65 20 6c 65 6e 67 |Returns |the leng|
|00004020| 74 68 20 6f 66 20 61 20 | 6e 6f 6e 2d 63 69 72 63 |th of a |non-circ|
|00004030| 75 6c 61 72 20 6c 69 73 | 74 2c 20 6f 72 20 60 6e |ular lis|t, or `n|
|00004040| 69 6c 27 20 66 6f 72 20 | 61 20 63 69 72 63 75 6c |il' for |a circul|
|00004050| 61 72 20 6f 6e 65 2e 22 | 20 28 62 79 74 65 2d 63 |ar one."| (byte-c|
|00004060| 6f 64 65 20 22 c0 09 89 | c2 1b 1c 1d 1e 06 0b 84 |ode "...|........|
|00004070| 57 00 c7 0d 21 83 18 00 | c8 13 82 45 00 c7 0d 41 |W...!...|...E...A|
|00004080| 21 83 2a 00 0e 06 c9 5c | 5c 16 06 c8 13 82 45 00 |!.*....\|\.....E.|
|00004090| 0d 0c 3d 83 3f 00 0e 06 | c0 56 83 3f 00 c2 16 06 |..=.?...|.V.?....|
|000040a0| c8 13 82 45 00 0e 06 ca | 5c 5c 16 06 cb 0d 21 0c |...E....|\\....!.|
|000040b0| 41 1e 0c 89 1e 0d 15 0e | 0c 14 2a 82 09 00 0e 06 |A.......|..*.....|
|000040c0| 2c 87 22 20 5b 30 20 78 | 20 6e 69 6c 20 72 65 61 |,." [0 x| nil rea|
|000040d0| 64 79 20 73 6c 6f 77 20 | 66 61 73 74 20 6e 20 65 |dy slow |fast n e|
|000040e0| 6e 64 70 20 74 20 31 20 | 32 20 63 64 64 72 20 47 |ndp t 1 |2 cddr G|
|000040f0| 24 24 5f 36 31 31 20 47 | 24 24 5f 36 31 32 5d 20 |$$_611 G|$$_612] |
|00004100| 35 29 29 0a 28 64 65 66 | 75 6e 20 6d 65 6d 62 65 |5)).(def|un membe|
|00004110| 72 20 28 69 74 65 6d 20 | 6c 69 73 74 29 20 22 5c |r (item |list) "\|
|00004120| 0a 4c 6f 6f 6b 20 66 6f | 72 20 49 54 45 4d 20 69 |.Look fo|r ITEM i|
|00004130| 6e 20 4c 49 53 54 3b 20 | 72 65 74 75 72 6e 20 66 |n LIST; |return f|
|00004140| 69 72 73 74 20 6c 69 6e | 6b 20 69 6e 20 4c 49 53 |irst lin|k in LIS|
|00004150| 54 20 77 68 6f 73 65 20 | 63 61 72 20 69 73 20 60 |T whose |car is `|
|00004160| 65 71 6c 27 20 74 6f 20 | 49 54 45 4d 2e 22 20 28 |eql' to |ITEM." (|
|00004170| 62 79 74 65 2d 63 6f 64 | 65 20 22 08 c1 89 1a 1b |byte-cod|e ".....|
|00004180| 1c 0b 84 5c 22 00 c5 0c | 21 84 5c 22 00 0e 06 0c |...\"...|!.\"....|
|00004190| 40 3d 83 1c 00 c7 13 0c | 12 0c 41 14 82 06 00 5c |@=......|..A....\|
|000041a0| 6e 2b 87 22 20 5b 6c 69 | 73 74 20 6e 69 6c 20 72 |n+." [li|st nil r|
|000041b0| 65 73 75 6c 74 20 64 6f | 6e 65 20 70 74 72 20 65 |esult do|ne ptr e|
|000041c0| 6e 64 70 20 69 74 65 6d | 20 74 5d 20 33 29 29 0a |ndp item| t] 3)).|
|000041d0| 28 64 65 66 75 6e 20 62 | 75 74 6c 61 73 74 20 28 |(defun b|utlast (|
|000041e0| 6c 69 73 74 20 26 6f 70 | 74 69 6f 6e 61 6c 20 6e |list &op|tional n|
|000041f0| 29 20 22 5c 0a 52 65 74 | 75 72 6e 20 61 20 6e 65 |) "\.Ret|urn a ne|
|00004200| 77 20 6c 69 73 74 20 6c | 69 6b 65 20 4c 49 53 54 |w list l|ike LIST|
|00004210| 20 62 75 74 20 73 61 6e | 73 20 74 68 65 20 6c 61 | but san|s the la|
|00004220| 73 74 20 4e 20 65 6c 65 | 6d 65 6e 74 73 2e 0a 4e |st N ele|ments..N|
|00004230| 20 64 65 66 61 75 6c 74 | 73 20 74 6f 20 31 2e 20 | default|s to 1. |
|00004240| 20 49 66 20 74 68 65 20 | 6c 69 73 74 20 64 6f 65 | If the |list doe|
|00004250| 73 6e 27 74 20 68 61 76 | 65 20 4e 20 65 6c 65 6d |sn't hav|e N elem|
|00004260| 65 6e 74 73 2c 20 6e 69 | 6c 20 69 73 20 72 65 74 |ents, ni|l is ret|
|00004270| 75 72 6e 65 64 2e 22 20 | 28 62 79 74 65 2d 63 6f |urned." |(byte-co|
|00004280| 64 65 20 22 08 84 06 00 | c1 10 c2 c3 08 c2 0c 21 |de "....|.......!|
|00004290| 5c 22 21 87 22 20 5b 6e | 20 31 20 72 65 76 65 72 |\"!." [n| 1 rever|
|000042a0| 73 65 20 6e 74 68 63 64 | 72 20 6c 69 73 74 5d 20 |se nthcd|r list] |
|000042b0| 35 29 29 0a 28 64 65 66 | 75 6e 20 6c 69 73 74 2a |5)).(def|un list*|
|000042c0| 20 28 61 72 67 20 26 72 | 65 73 74 20 6f 74 68 65 | (arg &r|est othe|
|000042d0| 72 73 29 20 22 5c 0a 52 | 65 74 75 72 6e 20 61 20 |rs) "\.R|eturn a |
|000042e0| 6e 65 77 20 6c 69 73 74 | 20 63 6f 6e 74 61 69 6e |new list| contain|
|000042f0| 69 6e 67 20 74 68 65 20 | 66 69 72 73 74 20 61 72 |ing the |first ar|
|00004300| 67 75 6d 65 6e 74 73 20 | 63 6f 6e 73 65 64 20 6f |guments |consed o|
|00004310| 6e 74 6f 20 74 68 65 20 | 6c 61 73 74 20 61 72 67 |nto the |last arg|
|00004320| 2e 0a 54 68 75 73 2c 20 | 28 6c 69 73 74 2a 20 31 |..Thus, |(list* 1|
|00004330| 20 32 20 33 20 27 28 61 | 20 62 29 29 20 72 65 74 | 2 3 '(a| b)) ret|
|00004340| 75 72 6e 73 20 28 31 20 | 32 20 33 20 61 20 62 29 |urns (1 |2 3 a b)|
|00004350| 2e 22 20 28 62 79 74 65 | 2d 63 6f 64 65 20 22 08 |." (byte|-code ".|
|00004360| 84 06 00 09 87 09 08 42 | 1a c3 5c 6e 21 1c c5 5c |.......B|..\n!..\|
|00004370| 6e 21 1e 06 c7 c5 0c 21 | 0e 06 40 5c 22 88 0c 2b |n!.....!|..@\"..+|
|00004380| 87 22 20 5b 6f 74 68 65 | 72 73 20 61 72 67 20 61 |." [othe|rs arg a|
|00004390| 6c 6c 61 72 67 73 20 62 | 75 74 6c 61 73 74 20 66 |llargs b|utlast f|
|000043a0| 72 6f 6e 74 20 6c 61 73 | 74 20 62 61 63 6b 20 72 |ront las|t back r|
|000043b0| 70 6c 61 63 64 5d 20 33 | 29 29 0a 28 64 65 66 75 |placd] 3|)).(defu|
|000043c0| 6e 20 61 64 6a 6f 69 6e | 20 28 69 74 65 6d 20 6c |n adjoin| (item l|
|000043d0| 69 73 74 29 20 22 5c 0a | 52 65 74 75 72 6e 20 61 |ist) "\.|Return a|
|000043e0| 20 6c 69 73 74 20 77 68 | 69 63 68 20 63 6f 6e 74 | list wh|ich cont|
|000043f0| 61 69 6e 73 20 49 54 45 | 4d 20 62 75 74 20 69 73 |ains ITE|M but is|
|00004400| 20 6f 74 68 65 72 77 69 | 73 65 20 6c 69 6b 65 20 | otherwi|se like |
|00004410| 4c 49 53 54 2e 0a 49 66 | 20 49 54 45 4d 20 6f 63 |LIST..If| ITEM oc|
|00004420| 63 75 72 73 20 69 6e 20 | 4c 49 53 54 2c 20 74 68 |curs in |LIST, th|
|00004430| 65 20 76 61 6c 75 65 20 | 69 73 20 4c 49 53 54 2e |e value |is LIST.|
|00004440| 20 20 4f 74 68 65 72 77 | 69 73 65 20 69 74 20 69 | Otherw|ise it i|
|00004450| 73 20 28 63 6f 6e 73 20 | 49 54 45 4d 20 4c 49 53 |s (cons |ITEM LIS|
|00004460| 54 29 2e 0a 57 68 65 6e | 20 63 6f 6d 70 61 72 69 |T)..When| compari|
|00004470| 6e 67 20 49 54 45 4d 20 | 61 67 61 69 6e 73 74 20 |ng ITEM |against |
|00004480| 65 6c 65 6d 65 6e 74 73 | 2c 20 60 65 71 6c 27 20 |elements|, `eql' |
|00004490| 69 73 20 75 73 65 64 2e | 22 20 28 62 79 74 65 2d |is used.|" (byte-|
|000044a0| 63 6f 64 65 20 22 c0 09 | 5c 6e 5c 22 83 09 00 5c |code "..|\n\"...\|
|000044b0| 6e 87 09 5c 6e 42 87 22 | 20 5b 6d 65 6d 62 65 72 |n..\nB."| [member|
|000044c0| 20 69 74 65 6d 20 6c 69 | 73 74 5d 20 33 29 29 0a | item li|st] 3)).|
|000044d0| 28 64 65 66 75 6e 20 6c | 64 69 66 66 20 28 6c 69 |(defun l|diff (li|
|000044e0| 73 74 20 73 75 62 6c 69 | 73 74 29 20 22 5c 0a 52 |st subli|st) "\.R|
|000044f0| 65 74 75 72 6e 20 61 20 | 6e 65 77 20 6c 69 73 74 |eturn a |new list|
|00004500| 20 6c 69 6b 65 20 4c 49 | 53 54 20 62 75 74 20 73 | like LI|ST but s|
|00004510| 61 6e 73 20 53 55 42 4c | 49 53 54 2e 0a 53 55 42 |ans SUBL|IST..SUB|
|00004520| 4c 49 53 54 20 6d 75 73 | 74 20 62 65 20 6f 6e 65 |LIST mus|t be one|
|00004530| 20 6f 66 20 74 68 65 20 | 6c 69 6e 6b 73 20 69 6e | of the |links in|
|00004540| 20 4c 49 53 54 3b 20 6f | 74 68 65 72 77 69 73 65 | LIST; o|therwise|
|00004550| 20 74 68 65 20 76 61 6c | 75 65 20 69 73 20 4c 49 | the val|ue is LI|
|00004560| 53 54 20 69 74 73 65 6c | 66 2e 22 20 28 62 79 74 |ST itsel|f." (byt|
|00004570| 65 2d 63 6f 64 65 20 22 | c0 09 1a 1b c4 5c 6e 21 |e-code "|.....\n!|
|00004580| 84 1f 00 5c 6e 0d 3d 84 | 1f 00 5c 6e 40 0b 42 13 |...\n.=.|..\n@.B.|
|00004590| 5c 6e 41 89 1e 06 12 29 | 82 04 00 c7 0b 21 2a 87 |\nA....)|.....!*.|
|000045a0| 22 20 5b 6e 69 6c 20 6c | 69 73 74 20 63 75 72 63 |" [nil l|ist curc|
|000045b0| 6f 6e 73 20 72 65 73 75 | 6c 74 20 65 6e 64 70 20 |ons resu|lt endp |
|000045c0| 73 75 62 6c 69 73 74 20 | 47 24 24 5f 36 31 33 20 |sublist |G$$_613 |
|000045d0| 72 65 76 65 72 73 65 5d | 20 33 29 29 0a 28 64 65 |reverse]| 3)).(de|
|000045e0| 66 75 6e 20 63 61 61 72 | 20 28 58 29 20 22 5c 0a |fun caar| (X) "\.|
|000045f0| 52 65 74 75 72 6e 20 74 | 68 65 20 63 61 72 20 6f |Return t|he car o|
|00004600| 66 20 74 68 65 20 63 61 | 72 20 6f 66 20 58 2e 22 |f the ca|r of X."|
|00004610| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 08 40 40 | (byte-c|ode ".@@|
|00004620| 87 22 20 5b 58 5d 20 31 | 29 29 0a 28 64 65 66 75 |." [X] 1|)).(defu|
|00004630| 6e 20 63 61 64 72 20 28 | 58 29 20 22 5c 0a 52 65 |n cadr (|X) "\.Re|
|00004640| 74 75 72 6e 20 74 68 65 | 20 63 61 72 20 6f 66 20 |turn the| car of |
|00004650| 74 68 65 20 63 64 72 20 | 6f 66 20 58 2e 22 20 28 |the cdr |of X." (|
|00004660| 62 79 74 65 2d 63 6f 64 | 65 20 22 08 41 40 87 22 |byte-cod|e ".A@."|
|00004670| 20 5b 58 5d 20 31 29 29 | 0a 28 64 65 66 75 6e 20 | [X] 1))|.(defun |
|00004680| 63 64 61 72 20 28 58 29 | 20 22 5c 0a 52 65 74 75 |cdar (X)| "\.Retu|
|00004690| 72 6e 20 74 68 65 20 63 | 64 72 20 6f 66 20 74 68 |rn the c|dr of th|
|000046a0| 65 20 63 61 72 20 6f 66 | 20 58 2e 22 20 28 62 79 |e car of| X." (by|
|000046b0| 74 65 2d 63 6f 64 65 20 | 22 08 40 41 87 22 20 5b |te-code |".@A." [|
|000046c0| 58 5d 20 31 29 29 0a 28 | 64 65 66 75 6e 20 63 64 |X] 1)).(|defun cd|
|000046d0| 64 72 20 28 58 29 20 22 | 5c 0a 52 65 74 75 72 6e |dr (X) "|\.Return|
|000046e0| 20 74 68 65 20 63 64 72 | 20 6f 66 20 74 68 65 20 | the cdr| of the |
|000046f0| 63 64 72 20 6f 66 20 58 | 2e 22 20 28 62 79 74 65 |cdr of X|." (byte|
|00004700| 2d 63 6f 64 65 20 22 08 | 41 41 87 22 20 5b 58 5d |-code ".|AA." [X]|
|00004710| 20 31 29 29 0a 28 64 65 | 66 75 6e 20 63 61 61 61 | 1)).(de|fun caaa|
|00004720| 72 20 28 58 29 20 22 5c | 0a 52 65 74 75 72 6e 20 |r (X) "\|.Return |
|00004730| 74 68 65 20 63 61 72 20 | 6f 66 20 74 68 65 20 63 |the car |of the c|
|00004740| 61 72 20 6f 66 20 74 68 | 65 20 63 61 72 20 6f 66 |ar of th|e car of|
|00004750| 20 58 2e 22 20 28 62 79 | 74 65 2d 63 6f 64 65 20 | X." (by|te-code |
|00004760| 22 08 40 40 40 87 22 20 | 5b 58 5d 20 31 29 29 0a |".@@@." |[X] 1)).|
|00004770| 28 64 65 66 75 6e 20 63 | 61 61 64 72 20 28 58 29 |(defun c|aadr (X)|
|00004780| 20 22 5c 0a 52 65 74 75 | 72 6e 20 74 68 65 20 63 | "\.Retu|rn the c|
|00004790| 61 72 20 6f 66 20 74 68 | 65 20 63 61 72 20 6f 66 |ar of th|e car of|
|000047a0| 20 74 68 65 20 63 64 72 | 20 6f 66 20 58 2e 22 20 | the cdr| of X." |
|000047b0| 28 62 79 74 65 2d 63 6f | 64 65 20 22 08 41 40 40 |(byte-co|de ".A@@|
|000047c0| 87 22 20 5b 58 5d 20 31 | 29 29 0a 28 64 65 66 75 |." [X] 1|)).(defu|
|000047d0| 6e 20 63 61 64 61 72 20 | 28 58 29 20 22 5c 0a 52 |n cadar |(X) "\.R|
|000047e0| 65 74 75 72 6e 20 74 68 | 65 20 63 61 72 20 6f 66 |eturn th|e car of|
|000047f0| 20 74 68 65 20 63 64 72 | 20 6f 66 20 74 68 65 20 | the cdr| of the |
|00004800| 63 61 72 20 6f 66 20 58 | 2e 22 20 28 62 79 74 65 |car of X|." (byte|
|00004810| 2d 63 6f 64 65 20 22 08 | 40 41 40 87 22 20 5b 58 |-code ".|@A@." [X|
|00004820| 5d 20 31 29 29 0a 28 64 | 65 66 75 6e 20 63 64 61 |] 1)).(d|efun cda|
|00004830| 61 72 20 28 58 29 20 22 | 5c 0a 52 65 74 75 72 6e |ar (X) "|\.Return|
|00004840| 20 74 68 65 20 63 64 72 | 20 6f 66 20 74 68 65 20 | the cdr| of the |
|00004850| 63 61 72 20 6f 66 20 74 | 68 65 20 63 61 72 20 6f |car of t|he car o|
|00004860| 66 20 58 2e 22 20 28 62 | 79 74 65 2d 63 6f 64 65 |f X." (b|yte-code|
|00004870| 20 22 08 40 40 41 87 22 | 20 5b 58 5d 20 31 29 29 | ".@@A."| [X] 1))|
|00004880| 0a 28 64 65 66 75 6e 20 | 63 61 64 64 72 20 28 58 |.(defun |caddr (X|
|00004890| 29 20 22 5c 0a 52 65 74 | 75 72 6e 20 74 68 65 20 |) "\.Ret|urn the |
|000048a0| 63 61 72 20 6f 66 20 74 | 68 65 20 63 64 72 20 6f |car of t|he cdr o|
|000048b0| 66 20 74 68 65 20 63 64 | 72 20 6f 66 20 58 2e 22 |f the cd|r of X."|
|000048c0| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 08 41 41 | (byte-c|ode ".AA|
|000048d0| 40 87 22 20 5b 58 5d 20 | 31 29 29 0a 28 64 65 66 |@." [X] |1)).(def|
|000048e0| 75 6e 20 63 64 61 64 72 | 20 28 58 29 20 22 5c 0a |un cdadr| (X) "\.|
|000048f0| 52 65 74 75 72 6e 20 74 | 68 65 20 63 64 72 20 6f |Return t|he cdr o|
|00004900| 66 20 74 68 65 20 63 61 | 72 20 6f 66 20 74 68 65 |f the ca|r of the|
|00004910| 20 63 64 72 20 6f 66 20 | 58 2e 22 20 28 62 79 74 | cdr of |X." (byt|
|00004920| 65 2d 63 6f 64 65 20 22 | 08 41 40 41 87 22 20 5b |e-code "|.A@A." [|
|00004930| 58 5d 20 31 29 29 0a 28 | 64 65 66 75 6e 20 63 64 |X] 1)).(|defun cd|
|00004940| 64 61 72 20 28 58 29 20 | 22 5c 0a 52 65 74 75 72 |dar (X) |"\.Retur|
|00004950| 6e 20 74 68 65 20 63 64 | 72 20 6f 66 20 74 68 65 |n the cd|r of the|
|00004960| 20 63 64 72 20 6f 66 20 | 74 68 65 20 63 61 72 20 | cdr of |the car |
|00004970| 6f 66 20 58 2e 22 20 28 | 62 79 74 65 2d 63 6f 64 |of X." (|byte-cod|
|00004980| 65 20 22 08 40 41 41 87 | 22 20 5b 58 5d 20 31 29 |e ".@AA.|" [X] 1)|
|00004990| 29 0a 28 64 65 66 75 6e | 20 63 64 64 64 72 20 28 |).(defun| cdddr (|
|000049a0| 58 29 20 22 5c 0a 52 65 | 74 75 72 6e 20 74 68 65 |X) "\.Re|turn the|
|000049b0| 20 63 64 72 20 6f 66 20 | 74 68 65 20 63 64 72 20 | cdr of |the cdr |
|000049c0| 6f 66 20 74 68 65 20 63 | 64 72 20 6f 66 20 58 2e |of the c|dr of X.|
|000049d0| 22 20 28 62 79 74 65 2d | 63 6f 64 65 20 22 08 41 |" (byte-|code ".A|
|000049e0| 41 41 87 22 20 5b 58 5d | 20 31 29 29 0a 28 64 65 |AA." [X]| 1)).(de|
|000049f0| 66 75 6e 20 63 61 61 61 | 61 72 20 28 58 29 20 22 |fun caaa|ar (X) "|
|00004a00| 5c 0a 52 65 74 75 72 6e | 20 74 68 65 20 63 61 72 |\.Return| the car|
|00004a10| 20 6f 66 20 74 68 65 20 | 63 61 72 20 6f 66 20 74 | of the |car of t|
|00004a20| 68 65 20 63 61 72 20 6f | 66 20 74 68 65 20 63 61 |he car o|f the ca|
|00004a30| 72 20 6f 66 20 58 2e 22 | 20 28 62 79 74 65 2d 63 |r of X."| (byte-c|
|00004a40| 6f 64 65 20 22 08 40 40 | 40 40 87 22 20 5b 58 5d |ode ".@@|@@." [X]|
|00004a50| 20 31 29 29 0a 28 64 65 | 66 75 6e 20 63 61 61 61 | 1)).(de|fun caaa|
|00004a60| 64 72 20 28 58 29 20 22 | 5c 0a 52 65 74 75 72 6e |dr (X) "|\.Return|
|00004a70| 20 74 68 65 20 63 61 72 | 20 6f 66 20 74 68 65 20 | the car| of the |
|00004a80| 63 61 72 20 6f 66 20 74 | 68 65 20 63 61 72 20 6f |car of t|he car o|
|00004a90| 66 20 74 68 65 20 63 64 | 72 20 6f 66 20 58 2e 22 |f the cd|r of X."|
|00004aa0| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 08 41 40 | (byte-c|ode ".A@|
|00004ab0| 40 40 87 22 20 5b 58 5d | 20 31 29 29 0a 28 64 65 |@@." [X]| 1)).(de|
|00004ac0| 66 75 6e 20 63 61 61 64 | 61 72 20 28 58 29 20 22 |fun caad|ar (X) "|
|00004ad0| 5c 0a 52 65 74 75 72 6e | 20 74 68 65 20 63 61 72 |\.Return| the car|
|00004ae0| 20 6f 66 20 74 68 65 20 | 63 61 72 20 6f 66 20 74 | of the |car of t|
|00004af0| 68 65 20 63 64 72 20 6f | 66 20 74 68 65 20 63 61 |he cdr o|f the ca|
|00004b00| 72 20 6f 66 20 58 2e 22 | 20 28 62 79 74 65 2d 63 |r of X."| (byte-c|
|00004b10| 6f 64 65 20 22 08 40 41 | 40 40 87 22 20 5b 58 5d |ode ".@A|@@." [X]|
|00004b20| 20 31 29 29 0a 28 64 65 | 66 75 6e 20 63 61 64 61 | 1)).(de|fun cada|
|00004b30| 61 72 20 28 58 29 20 22 | 5c 0a 52 65 74 75 72 6e |ar (X) "|\.Return|
|00004b40| 20 74 68 65 20 63 61 72 | 20 6f 66 20 74 68 65 20 | the car| of the |
|00004b50| 63 64 72 20 6f 66 20 74 | 68 65 20 63 61 72 20 6f |cdr of t|he car o|
|00004b60| 66 20 74 68 65 20 63 61 | 72 20 6f 66 20 58 2e 22 |f the ca|r of X."|
|00004b70| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 08 40 40 | (byte-c|ode ".@@|
|00004b80| 41 40 87 22 20 5b 58 5d | 20 31 29 29 0a 28 64 65 |A@." [X]| 1)).(de|
|00004b90| 66 75 6e 20 63 64 61 61 | 61 72 20 28 58 29 20 22 |fun cdaa|ar (X) "|
|00004ba0| 5c 0a 52 65 74 75 72 6e | 20 74 68 65 20 63 64 72 |\.Return| the cdr|
|00004bb0| 20 6f 66 20 74 68 65 20 | 63 61 72 20 6f 66 20 74 | of the |car of t|
|00004bc0| 68 65 20 63 61 72 20 6f | 66 20 74 68 65 20 63 61 |he car o|f the ca|
|00004bd0| 72 20 6f 66 20 58 2e 22 | 20 28 62 79 74 65 2d 63 |r of X."| (byte-c|
|00004be0| 6f 64 65 20 22 08 40 40 | 40 41 87 22 20 5b 58 5d |ode ".@@|@A." [X]|
|00004bf0| 20 31 29 29 0a 28 64 65 | 66 75 6e 20 63 61 61 64 | 1)).(de|fun caad|
|00004c00| 64 72 20 28 58 29 20 22 | 5c 0a 52 65 74 75 72 6e |dr (X) "|\.Return|
|00004c10| 20 74 68 65 20 63 61 72 | 20 6f 66 20 74 68 65 20 | the car| of the |
|00004c20| 63 61 72 20 6f 66 20 74 | 68 65 20 63 64 72 20 6f |car of t|he cdr o|
|00004c30| 66 20 74 68 65 20 63 64 | 72 20 6f 66 20 58 2e 22 |f the cd|r of X."|
|00004c40| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 08 41 41 | (byte-c|ode ".AA|
|00004c50| 40 40 87 22 20 5b 58 5d | 20 31 29 29 0a 28 64 65 |@@." [X]| 1)).(de|
|00004c60| 66 75 6e 20 63 61 64 61 | 64 72 20 28 58 29 20 22 |fun cada|dr (X) "|
|00004c70| 5c 0a 52 65 74 75 72 6e | 20 74 68 65 20 63 61 72 |\.Return| the car|
|00004c80| 20 6f 66 20 74 68 65 20 | 63 64 72 20 6f 66 20 74 | of the |cdr of t|
|00004c90| 68 65 20 63 61 72 20 6f | 66 20 74 68 65 20 63 64 |he car o|f the cd|
|00004ca0| 72 20 6f 66 20 58 2e 22 | 20 28 62 79 74 65 2d 63 |r of X."| (byte-c|
|00004cb0| 6f 64 65 20 22 08 41 40 | 41 40 87 22 20 5b 58 5d |ode ".A@|A@." [X]|
|00004cc0| 20 31 29 29 0a 28 64 65 | 66 75 6e 20 63 64 61 61 | 1)).(de|fun cdaa|
|00004cd0| 64 72 20 28 58 29 20 22 | 5c 0a 52 65 74 75 72 6e |dr (X) "|\.Return|
|00004ce0| 20 74 68 65 20 63 64 72 | 20 6f 66 20 74 68 65 20 | the cdr| of the |
|00004cf0| 63 61 72 20 6f 66 20 74 | 68 65 20 63 61 72 20 6f |car of t|he car o|
|00004d00| 66 20 74 68 65 20 63 64 | 72 20 6f 66 20 58 2e 22 |f the cd|r of X."|
|00004d10| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 08 41 40 | (byte-c|ode ".A@|
|00004d20| 40 41 87 22 20 5b 58 5d | 20 31 29 29 0a 28 64 65 |@A." [X]| 1)).(de|
|00004d30| 66 75 6e 20 63 61 64 64 | 61 72 20 28 58 29 20 22 |fun cadd|ar (X) "|
|00004d40| 5c 0a 52 65 74 75 72 6e | 20 74 68 65 20 63 61 72 |\.Return| the car|
|00004d50| 20 6f 66 20 74 68 65 20 | 63 64 72 20 6f 66 20 74 | of the |cdr of t|
|00004d60| 68 65 20 63 64 72 20 6f | 66 20 74 68 65 20 63 61 |he cdr o|f the ca|
|00004d70| 72 20 6f 66 20 58 2e 22 | 20 28 62 79 74 65 2d 63 |r of X."| (byte-c|
|00004d80| 6f 64 65 20 22 08 40 41 | 41 40 87 22 20 5b 58 5d |ode ".@A|A@." [X]|
|00004d90| 20 31 29 29 0a 28 64 65 | 66 75 6e 20 63 64 61 64 | 1)).(de|fun cdad|
|00004da0| 61 72 20 28 58 29 20 22 | 5c 0a 52 65 74 75 72 6e |ar (X) "|\.Return|
|00004db0| 20 74 68 65 20 63 64 72 | 20 6f 66 20 74 68 65 20 | the cdr| of the |
|00004dc0| 63 61 72 20 6f 66 20 74 | 68 65 20 63 64 72 20 6f |car of t|he cdr o|
|00004dd0| 66 20 74 68 65 20 63 61 | 72 20 6f 66 20 58 2e 22 |f the ca|r of X."|
|00004de0| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 08 40 41 | (byte-c|ode ".@A|
|00004df0| 40 41 87 22 20 5b 58 5d | 20 31 29 29 0a 28 64 65 |@A." [X]| 1)).(de|
|00004e00| 66 75 6e 20 63 64 64 61 | 61 72 20 28 58 29 20 22 |fun cdda|ar (X) "|
|00004e10| 5c 0a 52 65 74 75 72 6e | 20 74 68 65 20 63 64 72 |\.Return| the cdr|
|00004e20| 20 6f 66 20 74 68 65 20 | 63 64 72 20 6f 66 20 74 | of the |cdr of t|
|00004e30| 68 65 20 63 61 72 20 6f | 66 20 74 68 65 20 63 61 |he car o|f the ca|
|00004e40| 72 20 6f 66 20 58 2e 22 | 20 28 62 79 74 65 2d 63 |r of X."| (byte-c|
|00004e50| 6f 64 65 20 22 08 40 40 | 41 41 87 22 20 5b 58 5d |ode ".@@|AA." [X]|
|00004e60| 20 31 29 29 0a 28 64 65 | 66 75 6e 20 63 61 64 64 | 1)).(de|fun cadd|
|00004e70| 64 72 20 28 58 29 20 22 | 5c 0a 52 65 74 75 72 6e |dr (X) "|\.Return|
|00004e80| 20 74 68 65 20 63 61 72 | 20 6f 66 20 74 68 65 20 | the car| of the |
|00004e90| 63 64 72 20 6f 66 20 74 | 68 65 20 63 64 72 20 6f |cdr of t|he cdr o|
|00004ea0| 66 20 74 68 65 20 63 64 | 72 20 6f 66 20 58 2e 22 |f the cd|r of X."|
|00004eb0| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 08 41 41 | (byte-c|ode ".AA|
|00004ec0| 41 40 87 22 20 5b 58 5d | 20 31 29 29 0a 28 64 65 |A@." [X]| 1)).(de|
|00004ed0| 66 75 6e 20 63 64 64 61 | 64 72 20 28 58 29 20 22 |fun cdda|dr (X) "|
|00004ee0| 5c 0a 52 65 74 75 72 6e | 20 74 68 65 20 63 64 72 |\.Return| the cdr|
|00004ef0| 20 6f 66 20 74 68 65 20 | 63 64 72 20 6f 66 20 74 | of the |cdr of t|
|00004f00| 68 65 20 63 61 72 20 6f | 66 20 74 68 65 20 63 64 |he car o|f the cd|
|00004f10| 72 20 6f 66 20 58 2e 22 | 20 28 62 79 74 65 2d 63 |r of X."| (byte-c|
|00004f20| 6f 64 65 20 22 08 41 40 | 41 41 87 22 20 5b 58 5d |ode ".A@|AA." [X]|
|00004f30| 20 31 29 29 0a 28 64 65 | 66 75 6e 20 63 64 61 64 | 1)).(de|fun cdad|
|00004f40| 64 72 20 28 58 29 20 22 | 5c 0a 52 65 74 75 72 6e |dr (X) "|\.Return|
|00004f50| 20 74 68 65 20 63 64 72 | 20 6f 66 20 74 68 65 20 | the cdr| of the |
|00004f60| 63 61 72 20 6f 66 20 74 | 68 65 20 63 64 72 20 6f |car of t|he cdr o|
|00004f70| 66 20 74 68 65 20 63 64 | 72 20 6f 66 20 58 2e 22 |f the cd|r of X."|
|00004f80| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 08 41 41 | (byte-c|ode ".AA|
|00004f90| 40 41 87 22 20 5b 58 5d | 20 31 29 29 0a 28 64 65 |@A." [X]| 1)).(de|
|00004fa0| 66 75 6e 20 63 64 64 64 | 61 72 20 28 58 29 20 22 |fun cddd|ar (X) "|
|00004fb0| 5c 0a 52 65 74 75 72 6e | 20 74 68 65 20 63 64 72 |\.Return| the cdr|
|00004fc0| 20 6f 66 20 74 68 65 20 | 63 64 72 20 6f 66 20 74 | of the |cdr of t|
|00004fd0| 68 65 20 63 64 72 20 6f | 66 20 74 68 65 20 63 61 |he cdr o|f the ca|
|00004fe0| 72 20 6f 66 20 58 2e 22 | 20 28 62 79 74 65 2d 63 |r of X."| (byte-c|
|00004ff0| 6f 64 65 20 22 08 40 41 | 41 41 87 22 20 5b 58 5d |ode ".@A|AA." [X]|
|00005000| 20 31 29 29 0a 28 64 65 | 66 75 6e 20 63 64 64 64 | 1)).(de|fun cddd|
|00005010| 64 72 20 28 58 29 20 22 | 5c 0a 52 65 74 75 72 6e |dr (X) "|\.Return|
|00005020| 20 74 68 65 20 63 64 72 | 20 6f 66 20 74 68 65 20 | the cdr| of the |
|00005030| 63 64 72 20 6f 66 20 74 | 68 65 20 63 64 72 20 6f |cdr of t|he cdr o|
|00005040| 66 20 74 68 65 20 63 64 | 72 20 6f 66 20 58 2e 22 |f the cd|r of X."|
|00005050| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 08 41 41 | (byte-c|ode ".AA|
|00005060| 41 41 87 22 20 5b 58 5d | 20 31 29 29 0a 28 64 65 |AA." [X]| 1)).(de|
|00005070| 66 75 6e 20 73 65 74 6e | 74 68 20 28 6e 20 6c 69 |fun setn|th (n li|
|00005080| 73 74 20 6e 65 77 76 61 | 6c 29 20 22 5c 0a 53 65 |st newva|l) "\.Se|
|00005090| 74 20 28 6e 74 68 20 4e | 20 4c 49 53 54 29 20 74 |t (nth N| LIST) t|
|000050a0| 6f 20 4e 45 57 56 41 4c | 2e 20 20 52 65 74 75 72 |o NEWVAL|. Retur|
|000050b0| 6e 73 20 4e 45 57 56 41 | 4c 2e 22 20 28 62 79 74 |ns NEWVA|L." (byt|
|000050c0| 65 2d 63 6f 64 65 20 22 | c0 c1 5c 6e 0b 5c 22 0c |e-code "|..\n.\".|
|000050d0| 5c 22 87 22 20 5b 72 70 | 6c 61 63 61 20 6e 74 68 |\"." [rp|laca nth|
|000050e0| 63 64 72 20 6e 20 6c 69 | 73 74 20 6e 65 77 76 61 |cdr n li|st newva|
|000050f0| 6c 5d 20 34 29 29 0a 28 | 64 65 66 75 6e 20 73 65 |l] 4)).(|defun se|
|00005100| 74 6e 74 68 63 64 72 20 | 28 6e 20 6c 69 73 74 20 |tnthcdr |(n list |
|00005110| 6e 65 77 76 61 6c 29 20 | 22 5c 0a 53 45 54 4e 54 |newval) |"\.SETNT|
|00005120| 48 43 44 52 20 4e 20 4c | 49 53 54 20 4e 45 57 56 |HCDR N L|IST NEWV|
|00005130| 41 4c 20 3d 3e 20 4e 45 | 57 56 41 4c 0a 41 73 20 |AL => NE|WVAL.As |
|00005140| 61 20 73 69 64 65 20 65 | 66 66 65 63 74 2c 20 73 |a side e|ffect, s|
|00005150| 65 74 73 20 74 68 65 20 | 4e 74 68 20 63 64 72 20 |ets the |Nth cdr |
|00005160| 6f 66 20 4c 49 53 54 20 | 74 6f 20 4e 45 57 56 41 |of LIST |to NEWVA|
|00005170| 4c 2e 22 20 28 62 79 74 | 65 2d 63 6f 64 65 20 22 |L." (byt|e-code "|
|00005180| 08 c1 57 83 0b 00 c2 c3 | 08 5c 22 87 08 c1 55 83 |..W.....|.\"...U.|
|00005190| 5c 22 00 c4 0d 0e 06 40 | 5c 22 88 c7 0d 0e 06 41 |\".....@|\".....A|
|000051a0| 5c 22 88 0e 06 87 c7 c8 | 08 c9 5a 0d 5c 22 0e 06 |\"......|..Z.\"..|
|000051b0| 5c 22 87 22 20 5b 6e 20 | 30 20 65 72 72 6f 72 20 |\"." [n |0 error |
|000051c0| 22 4e 20 6d 75 73 74 20 | 62 65 20 30 20 6f 72 20 |"N must |be 0 or |
|000051d0| 67 72 65 61 74 65 72 2c | 20 6e 6f 74 20 25 64 22 |greater,| not %d"|
|000051e0| 20 72 70 6c 61 63 61 20 | 6c 69 73 74 20 6e 65 77 | rplaca |list new|
|000051f0| 76 61 6c 20 72 70 6c 61 | 63 64 20 6e 74 68 63 64 |val rpla|cd nthcd|
|00005200| 72 20 31 5d 20 34 29 29 | 0a 28 64 65 66 75 6e 20 |r 1] 4))|.(defun |
|00005210| 61 63 6f 6e 73 20 28 6b | 65 79 20 69 74 65 6d 20 |acons (k|ey item |
|00005220| 61 6c 69 73 74 29 20 22 | 5c 0a 52 65 74 75 72 6e |alist) "|\.Return|
|00005230| 20 61 20 6e 65 77 20 61 | 6c 69 73 74 20 77 69 74 | a new a|list wit|
|00005240| 68 20 4b 45 59 20 70 61 | 69 72 65 64 20 77 69 74 |h KEY pa|ired wit|
|00005250| 68 20 49 54 45 4d 3b 20 | 6f 74 68 65 72 77 69 73 |h ITEM; |otherwis|
|00005260| 65 20 6c 69 6b 65 20 41 | 4c 49 53 54 2e 0a 44 6f |e like A|LIST..Do|
|00005270| 65 73 20 6e 6f 74 20 63 | 6f 70 79 20 41 4c 49 53 |es not c|opy ALIS|
|00005280| 54 2e 22 20 28 62 79 74 | 65 2d 63 6f 64 65 20 22 |T." (byt|e-code "|
|00005290| 08 09 42 5c 6e 42 87 22 | 20 5b 6b 65 79 20 69 74 |..B\nB."| [key it|
|000052a0| 65 6d 20 61 6c 69 73 74 | 5d 20 32 29 29 0a 28 64 |em alist|] 2)).(d|
|000052b0| 65 66 75 6e 20 70 61 69 | 72 6c 69 73 20 28 6b 65 |efun pai|rlis (ke|
|000052c0| 79 73 20 64 61 74 61 20 | 26 6f 70 74 69 6f 6e 61 |ys data |&optiona|
|000052d0| 6c 20 61 6c 69 73 74 29 | 20 22 5c 0a 52 65 74 75 |l alist)| "\.Retu|
|000052e0| 72 6e 20 61 20 6e 65 77 | 20 61 6c 69 73 74 20 77 |rn a new| alist w|
|000052f0| 69 74 68 20 65 61 63 68 | 20 65 6c 74 20 6f 66 20 |ith each| elt of |
|00005300| 4b 45 59 53 20 70 61 69 | 72 65 64 20 77 69 74 68 |KEYS pai|red with|
|00005310| 20 61 6e 20 65 6c 74 20 | 6f 66 20 44 41 54 41 3b | an elt |of DATA;|
|00005320| 0a 6f 70 74 69 6f 6e 61 | 6c 20 33 72 64 20 61 72 |.optiona|l 3rd ar|
|00005330| 67 20 41 4c 49 53 54 20 | 69 73 20 6e 63 6f 6e 63 |g ALIST |is nconc|
|00005340| 27 64 20 61 74 20 74 68 | 65 20 65 6e 64 2e 20 20 |'d at th|e end. |
|00005350| 4b 45 59 53 20 61 6e 64 | 20 44 41 54 41 20 6d 75 |KEYS and| DATA mu|
|00005360| 73 74 0a 68 61 76 65 20 | 74 68 65 20 73 61 6d 65 |st.have |the same|
|00005370| 20 6c 65 6e 67 74 68 2e | 22 20 28 62 79 74 65 2d | length.|" (byte-|
|00005380| 63 6f 64 65 20 22 08 47 | 09 47 55 84 0c 00 c2 c3 |code ".G|.GU.....|
|00005390| 21 88 08 1c 09 1d 0c 40 | 1e 06 0d 40 1e 07 0e 08 |!......@|...@....|
|000053a0| 1e 09 ca 0c 21 84 3d 00 | cb 0e 06 0e 07 0e 09 23 |....!.=.|.......#|
|000053b0| 16 09 0c 41 14 0d 41 15 | 0c 40 16 06 0d 40 16 07 |...A..A.|.@...@..|
|000053c0| 82 1c 00 0e 09 2d 87 22 | 20 5b 6b 65 79 73 20 64 |.....-."| [keys d|
|000053d0| 61 74 61 20 65 72 72 6f | 72 20 22 4b 65 79 73 20 |ata erro|r "Keys |
|000053e0| 61 6e 64 20 64 61 74 61 | 20 73 68 6f 75 6c 64 20 |and data| should |
|000053f0| 62 65 20 74 68 65 20 73 | 61 6d 65 20 6c 65 6e 67 |be the s|ame leng|
|00005400| 74 68 22 20 6b 70 74 72 | 20 64 70 74 72 20 6b 65 |th" kptr| dptr ke|
|00005410| 79 20 69 74 65 6d 20 61 | 6c 69 73 74 20 72 65 73 |y item a|list res|
|00005420| 75 6c 74 20 65 6e 64 70 | 20 61 63 6f 6e 73 5d 20 |ult endp| acons] |
|00005430| 34 29 29 0a 28 62 79 74 | 65 2d 63 6f 64 65 20 22 |4)).(byt|e-code "|
|00005440| c0 10 c1 11 c2 12 c3 13 | c4 14 c5 15 c6 16 06 c7 |........|........|
|00005450| 16 07 c8 16 08 c9 16 09 | ca 16 5c 6e cb 16 0b c0 |........|..\n....|
|00005460| 87 22 20 5b 3a 74 65 73 | 74 20 3a 74 65 73 74 2d |." [:tes|t :test-|
|00005470| 6e 6f 74 20 3a 6b 65 79 | 20 3a 70 72 65 64 69 63 |not :key| :predic|
|00005480| 61 74 65 20 3a 73 74 61 | 72 74 20 3a 65 6e 64 20 |ate :sta|rt :end |
|00005490| 3a 73 74 61 72 74 31 20 | 3a 73 74 61 72 74 32 20 |:start1 |:start2 |
|000054a0| 3a 65 6e 64 31 20 3a 65 | 6e 64 32 20 3a 63 6f 75 |:end1 :e|nd2 :cou|
|000054b0| 6e 74 20 3a 66 72 6f 6d | 2d 65 6e 64 5d 20 31 29 |nt :from|-end] 1)|
|000054c0| 0a 28 64 65 66 75 6e 20 | 73 6f 6d 65 20 28 70 72 |.(defun |some (pr|
|000054d0| 65 64 20 73 65 71 20 26 | 72 65 73 74 20 6d 6f 72 |ed seq &|rest mor|
|000054e0| 65 73 65 71 73 29 20 22 | 5c 0a 54 65 73 74 20 50 |eseqs) "|\.Test P|
|000054f0| 52 45 44 49 43 41 54 45 | 20 6f 6e 20 65 61 63 68 |REDICATE| on each|
|00005500| 20 65 6c 65 6d 65 6e 74 | 20 6f 66 20 53 45 51 55 | element| of SEQU|
|00005510| 45 4e 43 45 3b 20 69 73 | 20 69 74 20 65 76 65 72 |ENCE; is| it ever|
|00005520| 20 6e 6f 6e 2d 6e 69 6c | 3f 0a 45 78 74 72 61 20 | non-nil|?.Extra |
|00005530| 61 72 67 73 20 61 72 65 | 20 61 64 64 69 74 69 6f |args are| additio|
|00005540| 6e 61 6c 20 73 65 71 75 | 65 6e 63 65 73 3b 20 50 |nal sequ|ences; P|
|00005550| 52 45 44 49 43 41 54 45 | 20 67 65 74 73 20 6f 6e |REDICATE| gets on|
|00005560| 65 20 61 72 67 20 66 72 | 6f 6d 20 65 61 63 68 0a |e arg fr|om each.|
|00005570| 73 65 71 75 65 6e 63 65 | 20 61 6e 64 20 77 65 20 |sequence| and we |
|00005580| 61 64 76 61 6e 63 65 20 | 64 6f 77 6e 20 61 6c 6c |advance |down all|
|00005590| 20 74 68 65 20 73 65 71 | 75 65 6e 63 65 73 20 74 | the seq|uences t|
|000055a0| 6f 67 65 74 68 65 72 20 | 69 6e 20 6c 6f 63 6b 2d |ogether |in lock-|
|000055b0| 73 74 65 70 2e 0a 41 20 | 73 65 71 75 65 6e 63 65 |step..A |sequence|
|000055c0| 20 6d 65 61 6e 73 20 65 | 69 74 68 65 72 20 61 20 | means e|ither a |
|000055d0| 6c 69 73 74 20 6f 72 20 | 61 20 76 65 63 74 6f 72 |list or |a vector|
|000055e0| 2e 22 20 28 62 79 74 65 | 2d 63 6f 64 65 20 22 c0 |." (byte|-code ".|
|000055f0| c1 5c 6e 0b 5c 22 21 1c | c5 1e 06 c5 1e 07 c5 1e |.\n.\"!.|........|
|00005600| 08 0c 89 1e 09 40 1e 5c | 6e 0e 06 84 42 00 cb 0e |.....@.\|n...B...|
|00005610| 09 21 84 42 00 cc 0e 0d | 0e 5c 6e 5c 22 89 16 08 |.!.B....|.\n\"...|
|00005620| 83 36 00 ce 16 06 0e 08 | 16 07 0e 09 41 89 16 09 |.6......|....A...|
|00005630| 40 16 5c 6e 82 17 00 0e | 07 2e 06 87 22 20 5b 72 |@.\n....|...." [r|
|00005640| 65 61 73 73 65 6d 62 6c | 65 2d 61 72 67 73 6c 69 |eassembl|e-argsli|
|00005650| 73 74 73 20 6c 69 73 74 | 2a 20 73 65 71 20 6d 6f |sts list|* seq mo|
|00005660| 72 65 73 65 71 73 20 61 | 72 67 73 20 6e 69 6c 20 |reseqs a|rgs nil |
|00005670| 72 65 61 64 79 20 72 65 | 73 75 6c 74 20 61 70 70 |ready re|sult app|
|00005680| 6c 79 76 61 6c 20 72 65 | 6d 61 69 6e 69 6e 67 20 |lyval re|maining |
|00005690| 63 75 72 72 65 6e 74 20 | 65 6e 64 70 20 61 70 70 |current |endp app|
|000056a0| 6c 79 20 70 72 65 64 20 | 74 5d 20 35 29 29 0a 28 |ly pred |t] 5)).(|
|000056b0| 64 65 66 75 6e 20 65 76 | 65 72 79 20 28 70 72 65 |defun ev|ery (pre|
|000056c0| 64 20 73 65 71 20 26 72 | 65 73 74 20 6d 6f 72 65 |d seq &r|est more|
|000056d0| 73 65 71 73 29 20 22 5c | 0a 54 65 73 74 20 50 52 |seqs) "\|.Test PR|
|000056e0| 45 44 49 43 41 54 45 20 | 6f 6e 20 65 61 63 68 20 |EDICATE |on each |
|000056f0| 65 6c 65 6d 65 6e 74 20 | 6f 66 20 53 45 51 55 45 |element |of SEQUE|
|00005700| 4e 43 45 3b 20 69 73 20 | 69 74 20 61 6c 77 61 79 |NCE; is |it alway|
|00005710| 73 20 6e 6f 6e 2d 6e 69 | 6c 3f 0a 45 78 74 72 61 |s non-ni|l?.Extra|
|00005720| 20 61 72 67 73 20 61 72 | 65 20 61 64 64 69 74 69 | args ar|e additi|
|00005730| 6f 6e 61 6c 20 73 65 71 | 75 65 6e 63 65 73 3b 20 |onal seq|uences; |
|00005740| 50 52 45 44 49 43 41 54 | 45 20 67 65 74 73 20 6f |PREDICAT|E gets o|
|00005750| 6e 65 20 61 72 67 20 66 | 72 6f 6d 20 65 61 63 68 |ne arg f|rom each|
|00005760| 0a 73 65 71 75 65 6e 63 | 65 20 61 6e 64 20 77 65 |.sequenc|e and we|
|00005770| 20 61 64 76 61 6e 63 65 | 20 64 6f 77 6e 20 61 6c | advance| down al|
|00005780| 6c 20 74 68 65 20 73 65 | 71 75 65 6e 63 65 73 20 |l the se|quences |
|00005790| 74 6f 67 65 74 68 65 72 | 20 69 6e 20 6c 6f 63 6b |together| in lock|
|000057a0| 2d 73 74 65 70 2e 0a 41 | 20 73 65 71 75 65 6e 63 |-step..A| sequenc|
|000057b0| 65 20 6d 65 61 6e 73 20 | 65 69 74 68 65 72 20 61 |e means |either a|
|000057c0| 20 6c 69 73 74 20 6f 72 | 20 61 20 76 65 63 74 6f | list or| a vecto|
|000057d0| 72 2e 22 20 28 62 79 74 | 65 2d 63 6f 64 65 20 22 |r." (byt|e-code "|
|000057e0| c0 c1 5c 6e 0b 5c 22 21 | 1c c5 1e 06 c7 1e 08 c5 |..\n.\"!|........|
|000057f0| 1e 09 0c 89 1e 5c 6e 40 | 1e 0b 0e 06 84 41 00 cc |.....\n@|.....A..|
|00005800| 0e 5c 6e 21 84 41 00 cd | 0e 0e 0e 0b 5c 22 89 16 |.\n!.A..|....\"..|
|00005810| 09 84 35 00 c7 16 06 c5 | 16 08 0e 5c 6e 41 89 16 |..5.....|...\nA..|
|00005820| 5c 6e 40 16 0b 82 17 00 | 0e 08 2e 06 87 22 20 5b |\n@.....|....." [|
|00005830| 72 65 61 73 73 65 6d 62 | 6c 65 2d 61 72 67 73 6c |reassemb|le-argsl|
|00005840| 69 73 74 73 20 6c 69 73 | 74 2a 20 73 65 71 20 6d |ists lis|t* seq m|
|00005850| 6f 72 65 73 65 71 73 20 | 61 72 67 73 20 6e 69 6c |oreseqs |args nil|
|00005860| 20 72 65 61 64 79 20 74 | 20 72 65 73 75 6c 74 20 | ready t| result |
|00005870| 61 70 70 6c 79 76 61 6c | 20 72 65 6d 61 69 6e 69 |applyval| remaini|
|00005880| 6e 67 20 63 75 72 72 65 | 6e 74 20 65 6e 64 70 20 |ng curre|nt endp |
|00005890| 61 70 70 6c 79 20 70 72 | 65 64 5d 20 35 29 29 0a |apply pr|ed] 5)).|
|000058a0| 28 64 65 66 75 6e 20 6e | 6f 74 61 6e 79 20 28 70 |(defun n|otany (p|
|000058b0| 72 65 64 20 73 65 71 20 | 26 72 65 73 74 20 6d 6f |red seq |&rest mo|
|000058c0| 72 65 73 65 71 73 29 20 | 22 5c 0a 54 65 73 74 20 |reseqs) |"\.Test |
|000058d0| 50 52 45 44 49 43 41 54 | 45 20 6f 6e 20 65 61 63 |PREDICAT|E on eac|
|000058e0| 68 20 65 6c 65 6d 65 6e | 74 20 6f 66 20 53 45 51 |h elemen|t of SEQ|
|000058f0| 55 45 4e 43 45 3b 20 69 | 73 20 69 74 20 61 6c 77 |UENCE; i|s it alw|
|00005900| 61 79 73 20 6e 69 6c 3f | 0a 45 78 74 72 61 20 61 |ays nil?|.Extra a|
|00005910| 72 67 73 20 61 72 65 20 | 61 64 64 69 74 69 6f 6e |rgs are |addition|
|00005920| 61 6c 20 73 65 71 75 65 | 6e 63 65 73 3b 20 50 52 |al seque|nces; PR|
|00005930| 45 44 49 43 41 54 45 20 | 67 65 74 73 20 6f 6e 65 |EDICATE |gets one|
|00005940| 20 61 72 67 20 66 72 6f | 6d 20 65 61 63 68 0a 73 | arg fro|m each.s|
|00005950| 65 71 75 65 6e 63 65 20 | 61 6e 64 20 77 65 20 61 |equence |and we a|
|00005960| 64 76 61 6e 63 65 20 64 | 6f 77 6e 20 61 6c 6c 20 |dvance d|own all |
|00005970| 74 68 65 20 73 65 71 75 | 65 6e 63 65 73 20 74 6f |the sequ|ences to|
|00005980| 67 65 74 68 65 72 20 69 | 6e 20 6c 6f 63 6b 2d 73 |gether i|n lock-s|
|00005990| 74 65 70 2e 0a 41 20 73 | 65 71 75 65 6e 63 65 20 |tep..A s|equence |
|000059a0| 6d 65 61 6e 73 20 65 69 | 74 68 65 72 20 61 20 6c |means ei|ther a l|
|000059b0| 69 73 74 20 6f 72 20 61 | 20 76 65 63 74 6f 72 2e |ist or a| vector.|
|000059c0| 22 20 28 62 79 74 65 2d | 63 6f 64 65 20 22 c0 c1 |" (byte-|code "..|
|000059d0| 5c 6e 0b 5c 22 21 1c c5 | 1e 06 c7 1e 08 c5 1e 09 |\n.\"!..|........|
|000059e0| 0c 89 1e 5c 6e 40 1e 0b | 0e 06 84 41 00 cc 0e 5c |...\n@..|...A...\|
|000059f0| 6e 21 84 41 00 cd 0e 0e | 0e 0b 5c 22 89 16 09 83 |n!.A....|..\"....|
|00005a00| 35 00 c7 16 06 c5 16 08 | 0e 5c 6e 41 89 16 5c 6e |5.......|.\nA..\n|
|00005a10| 40 16 0b 82 17 00 0e 08 | 2e 06 87 22 20 5b 72 65 |@.......|..." [re|
|00005a20| 61 73 73 65 6d 62 6c 65 | 2d 61 72 67 73 6c 69 73 |assemble|-argslis|
|00005a30| 74 73 20 6c 69 73 74 2a | 20 73 65 71 20 6d 6f 72 |ts list*| seq mor|
|00005a40| 65 73 65 71 73 20 61 72 | 67 73 20 6e 69 6c 20 72 |eseqs ar|gs nil r|
|00005a50| 65 61 64 79 20 74 20 72 | 65 73 75 6c 74 20 61 70 |eady t r|esult ap|
|00005a60| 70 6c 79 76 61 6c 20 72 | 65 6d 61 69 6e 69 6e 67 |plyval r|emaining|
|00005a70| 20 63 75 72 72 65 6e 74 | 20 65 6e 64 70 20 61 70 | current| endp ap|
|00005a80| 70 6c 79 20 70 72 65 64 | 5d 20 35 29 29 0a 28 64 |ply pred|] 5)).(d|
|00005a90| 65 66 75 6e 20 6e 6f 74 | 65 76 65 72 79 20 28 70 |efun not|every (p|
|00005aa0| 72 65 64 20 73 65 71 20 | 26 72 65 73 74 20 6d 6f |red seq |&rest mo|
|00005ab0| 72 65 73 65 71 73 29 20 | 22 5c 0a 54 65 73 74 20 |reseqs) |"\.Test |
|00005ac0| 50 52 45 44 49 43 41 54 | 45 20 6f 6e 20 65 61 63 |PREDICAT|E on eac|
|00005ad0| 68 20 65 6c 65 6d 65 6e | 74 20 6f 66 20 53 45 51 |h elemen|t of SEQ|
|00005ae0| 55 45 4e 43 45 3b 20 69 | 73 20 69 74 20 73 6f 6d |UENCE; i|s it som|
|00005af0| 65 74 69 6d 65 73 20 6e | 69 6c 3f 0a 45 78 74 72 |etimes n|il?.Extr|
|00005b00| 61 20 61 72 67 73 20 61 | 72 65 20 61 64 64 69 74 |a args a|re addit|
|00005b10| 69 6f 6e 61 6c 20 73 65 | 71 75 65 6e 63 65 73 3b |ional se|quences;|
|00005b20| 20 50 52 45 44 49 43 41 | 54 45 20 67 65 74 73 20 | PREDICA|TE gets |
|00005b30| 6f 6e 65 20 61 72 67 20 | 66 72 6f 6d 20 65 61 63 |one arg |from eac|
|00005b40| 68 0a 73 65 71 75 65 6e | 63 65 20 61 6e 64 20 77 |h.sequen|ce and w|
|00005b50| 65 20 61 64 76 61 6e 63 | 65 20 64 6f 77 6e 20 61 |e advanc|e down a|
|00005b60| 6c 6c 20 74 68 65 20 73 | 65 71 75 65 6e 63 65 73 |ll the s|equences|
|00005b70| 20 74 6f 67 65 74 68 65 | 72 20 69 6e 20 6c 6f 63 | togethe|r in loc|
|00005b80| 6b 2d 73 74 65 70 2e 0a | 41 20 73 65 71 75 65 6e |k-step..|A sequen|
|00005b90| 63 65 20 6d 65 61 6e 73 | 20 65 69 74 68 65 72 20 |ce means| either |
|00005ba0| 61 20 6c 69 73 74 20 6f | 72 20 61 20 76 65 63 74 |a list o|r a vect|
|00005bb0| 6f 72 2e 22 20 28 62 79 | 74 65 2d 63 6f 64 65 20 |or." (by|te-code |
|00005bc0| 22 c0 c1 5c 6e 0b 5c 22 | 21 1c c5 1e 06 c5 1e 07 |"..\n.\"|!.......|
|00005bd0| c5 1e 08 0c 89 1e 09 40 | 1e 5c 6e 0e 06 84 41 00 |.......@|.\n...A.|
|00005be0| cb 0e 09 21 84 41 00 cc | 0e 0d 0e 5c 6e 5c 22 89 |...!.A..|...\n\".|
|00005bf0| 16 08 84 35 00 ce 16 06 | ce 16 07 0e 09 41 89 16 |...5....|.....A..|
|00005c00| 09 40 16 5c 6e 82 17 00 | 0e 07 2e 06 87 22 20 5b |.@.\n...|....." [|
|00005c10| 72 65 61 73 73 65 6d 62 | 6c 65 2d 61 72 67 73 6c |reassemb|le-argsl|
|00005c20| 69 73 74 73 20 6c 69 73 | 74 2a 20 73 65 71 20 6d |ists lis|t* seq m|
|00005c30| 6f 72 65 73 65 71 73 20 | 61 72 67 73 20 6e 69 6c |oreseqs |args nil|
|00005c40| 20 72 65 61 64 79 20 72 | 65 73 75 6c 74 20 61 70 | ready r|esult ap|
|00005c50| 70 6c 79 76 61 6c 20 72 | 65 6d 61 69 6e 69 6e 67 |plyval r|emaining|
|00005c60| 20 63 75 72 72 65 6e 74 | 20 65 6e 64 70 20 61 70 | current| endp ap|
|00005c70| 70 6c 79 20 70 72 65 64 | 20 74 5d 20 35 29 29 0a |ply pred| t] 5)).|
|00005c80| 28 64 65 66 75 6e 20 73 | 65 74 65 6c 74 20 28 73 |(defun s|etelt (s|
|00005c90| 65 71 20 6e 20 6e 65 77 | 76 61 6c 29 20 22 5c 0a |eq n new|val) "\.|
|00005ca0| 49 6e 20 53 45 51 55 45 | 4e 43 45 2c 20 73 65 74 |In SEQUE|NCE, set|
|00005cb0| 20 74 68 65 20 4e 74 68 | 20 65 6c 65 6d 65 6e 74 | the Nth| element|
|00005cc0| 20 74 6f 20 4e 45 57 56 | 41 4c 2e 20 20 52 65 74 | to NEWV|AL. Ret|
|00005cd0| 75 72 6e 73 20 4e 45 57 | 56 41 4c 2e 0a 41 20 73 |urns NEW|VAL..A s|
|00005ce0| 65 71 75 65 6e 63 65 20 | 6d 65 61 6e 73 20 65 69 |equence |means ei|
|00005cf0| 74 68 65 72 20 61 20 6c | 69 73 74 20 6f 72 20 61 |ther a l|ist or a|
|00005d00| 20 76 65 63 74 6f 72 2e | 22 20 28 62 79 74 65 2d | vector.|" (byte-|
|00005d10| 63 6f 64 65 20 22 08 47 | 19 5c 6e c3 57 84 0f 00 |code ".G|.\n.W...|
|00005d20| 5c 6e 09 59 83 17 00 c4 | c5 5c 6e 09 23 82 39 00 |\n.Y....|.\n.#.9.|
|00005d30| 08 3c 83 25 00 c6 5c 6e | 08 0e 07 23 82 39 00 c8 |.<.%..\n|...#.9..|
|00005d40| 08 21 83 33 00 08 5c 6e | 0e 07 49 82 39 00 c4 c9 |.!.3..\n|..I.9...|
|00005d50| ca 08 21 5c 22 29 87 22 | 20 5b 73 65 71 20 6c 20 |..!\")."| [seq l |
|00005d60| 6e 20 30 20 65 72 72 6f | 72 20 22 4e 28 25 64 29 |n 0 erro|r "N(%d)|
|00005d70| 20 73 68 6f 75 6c 64 20 | 62 65 20 62 65 74 77 65 | should |be betwe|
|00005d80| 65 6e 20 30 20 61 6e 64 | 20 25 64 22 20 73 65 74 |en 0 and| %d" set|
|00005d90| 6e 74 68 20 6e 65 77 76 | 61 6c 20 61 72 72 61 79 |nth newv|al array|
|00005da0| 70 20 22 53 45 51 20 73 | 68 6f 75 6c 64 20 62 65 |p "SEQ s|hould be|
|00005db0| 20 61 20 73 65 71 75 65 | 6e 63 65 2c 20 6e 6f 74 | a seque|nce, not|
|00005dc0| 20 60 25 73 27 22 20 70 | 72 69 6e 31 2d 74 6f 2d | `%s'" p|rin1-to-|
|00005dd0| 73 74 72 69 6e 67 5d 20 | 34 29 29 0a 28 64 65 66 |string] |4)).(def|
|00005de0| 75 6e 20 65 78 74 72 61 | 63 74 2d 66 72 6f 6d 2d |un extra|ct-from-|
|00005df0| 6b 6c 69 73 74 20 28 6b | 65 79 20 6b 6c 69 73 74 |klist (k|ey klist|
|00005e00| 20 26 6f 70 74 69 6f 6e | 61 6c 20 64 65 66 61 75 | &option|al defau|
|00005e10| 6c 74 29 20 22 5c 0a 45 | 58 54 52 41 43 54 2d 46 |lt) "\.E|XTRACT-F|
|00005e20| 52 4f 4d 2d 4b 4c 49 53 | 54 20 4b 45 59 20 4b 4c |ROM-KLIS|T KEY KL|
|00005e30| 49 53 54 20 5b 44 45 46 | 41 55 4c 54 5d 20 3d 3e |IST [DEF|AULT] =>|
|00005e40| 20 76 61 6c 75 65 20 6f | 66 20 4b 45 59 20 6f 72 | value o|f KEY or|
|00005e50| 20 44 45 46 41 55 4c 54 | 0a 45 78 74 72 61 63 74 | DEFAULT|.Extract|
|00005e60| 20 76 61 6c 75 65 20 61 | 73 73 6f 63 69 61 74 65 | value a|ssociate|
|00005e70| 64 20 77 69 74 68 20 4b | 45 59 20 69 6e 20 4b 4c |d with K|EY in KL|
|00005e80| 49 53 54 20 28 72 65 74 | 75 72 6e 20 44 45 46 41 |IST (ret|urn DEFA|
|00005e90| 55 4c 54 20 69 66 20 6e | 69 6c 29 2e 22 20 28 62 |ULT if n|il)." (b|
|00005ea0| 79 74 65 2d 63 6f 64 65 | 20 22 c0 09 5c 6e 5c 22 |yte-code| "..\n\"|
|00005eb0| 41 89 1b 86 0b 00 0c 29 | 87 22 20 5b 61 73 73 6f |A......)|." [asso|
|00005ec0| 63 20 6b 65 79 20 6b 6c | 69 73 74 20 72 65 74 72 |c key kl|ist retr|
|00005ed0| 69 65 76 65 64 20 64 65 | 66 61 75 6c 74 5d 20 34 |ieved de|fault] 4|
|00005ee0| 29 29 0a 28 64 65 66 75 | 6e 20 61 64 64 2d 74 6f |)).(defu|n add-to|
|00005ef0| 2d 6b 6c 69 73 74 20 28 | 6b 65 79 20 69 74 65 6d |-klist (|key item|
|00005f00| 20 6b 6c 69 73 74 29 20 | 22 5c 0a 41 44 44 2d 54 | klist) |"\.ADD-T|
|00005f10| 4f 2d 4b 4c 49 53 54 20 | 4b 45 59 20 49 54 45 4d |O-KLIST |KEY ITEM|
|00005f20| 20 4b 4c 49 53 54 20 3d | 3e 20 6e 65 77 20 4b 4c | KLIST =|> new KL|
|00005f30| 49 53 54 0a 41 64 64 20 | 61 73 73 6f 63 69 61 74 |IST.Add |associat|
|00005f40| 69 6f 6e 20 28 4b 45 59 | 20 2e 20 49 54 45 4d 29 |ion (KEY| . ITEM)|
|00005f50| 20 74 6f 20 4b 4c 49 53 | 54 2e 22 20 28 62 79 74 | to KLIS|T." (byt|
|00005f60| 65 2d 63 6f 64 65 20 22 | c0 09 5c 6e 0b 23 89 13 |e-code "|..\n.#..|
|00005f70| 87 22 20 5b 61 63 6f 6e | 73 20 6b 65 79 20 69 74 |." [acon|s key it|
|00005f80| 65 6d 20 6b 6c 69 73 74 | 5d 20 34 29 29 0a 28 64 |em klist|] 4)).(d|
|00005f90| 65 66 75 6e 20 65 6c 74 | 2d 73 61 74 69 73 66 69 |efun elt|-satisfi|
|00005fa0| 65 73 2d 74 65 73 74 2d | 70 20 28 69 74 65 6d 20 |es-test-|p (item |
|00005fb0| 65 6c 74 20 6b 6c 69 73 | 74 29 20 22 5c 0a 45 4c |elt klis|t) "\.EL|
|00005fc0| 54 2d 53 41 54 49 53 46 | 49 45 53 2d 54 45 53 54 |T-SATISF|IES-TEST|
|00005fd0| 2d 50 20 49 54 45 4d 20 | 45 4c 54 20 4b 4c 49 53 |-P ITEM |ELT KLIS|
|00005fe0| 54 20 3d 3e 20 74 20 6f | 72 20 6e 69 6c 0a 4b 4c |T => t o|r nil.KL|
|00005ff0| 49 53 54 20 65 6e 63 6f | 64 65 73 20 61 20 6b 65 |IST enco|des a ke|
|00006000| 79 77 6f 72 64 2d 61 72 | 67 75 6d 65 6e 74 73 20 |yword-ar|guments |
|00006010| 74 65 73 74 2c 20 61 73 | 20 69 6e 20 43 48 2e 20 |test, as| in CH. |
|00006020| 31 34 20 6f 66 20 43 4c | 74 4c 2e 0a 54 72 75 65 |14 of CL|tL..True|
|00006030| 20 69 66 20 74 68 65 20 | 67 69 76 65 6e 20 49 54 | if the |given IT|
|00006040| 45 4d 20 61 6e 64 20 45 | 4c 54 20 73 61 74 69 73 |EM and E|LT satis|
|00006050| 66 79 20 74 68 65 20 74 | 65 73 74 2e 22 20 28 62 |fy the t|est." (b|
|00006060| 79 74 65 2d 63 6f 64 65 | 20 22 c0 09 5c 6e 5c 22 |yte-code| "..\n\"|
|00006070| c0 0b 5c 6e 5c 22 c0 0c | 5c 6e c5 23 1e 06 1e 07 |..\n\"..|\n.#....|
|00006080| 89 1e 08 83 24 00 0e 08 | 0e 09 0e 06 0e 5c 6e 21 |....$...|.....\n!|
|00006090| 5c 22 82 3d 00 0e 07 83 | 37 00 0e 07 0e 09 0e 06 |\".=....|7.......|
|000060a0| 0e 5c 6e 21 5c 22 3f 82 | 3d 00 cb cc cd 5c 6e 21 |.\n!\"?.|=....\n!|
|000060b0| 5c 22 2b 87 22 20 5b 65 | 78 74 72 61 63 74 2d 66 |\"+." [e|xtract-f|
|000060c0| 72 6f 6d 2d 6b 6c 69 73 | 74 20 3a 74 65 73 74 20 |rom-klis|t :test |
|000060d0| 6b 6c 69 73 74 20 3a 74 | 65 73 74 2d 6e 6f 74 20 |klist :t|est-not |
|000060e0| 3a 6b 65 79 20 69 64 65 | 6e 74 69 74 79 20 6b 65 |:key ide|ntity ke|
|000060f0| 79 66 6e 20 74 65 73 74 | 2d 6e 6f 74 20 74 65 73 |yfn test|-not tes|
|00006100| 74 20 69 74 65 6d 20 65 | 6c 74 20 65 72 72 6f 72 |t item e|lt error|
|00006110| 20 22 4e 65 69 74 68 65 | 72 20 3a 74 65 73 74 20 | "Neithe|r :test |
|00006120| 6e 6f 72 20 3a 74 65 73 | 74 2d 6e 6f 74 20 69 6e |nor :tes|t-not in|
|00006130| 20 60 25 73 27 22 20 70 | 72 69 6e 31 2d 74 6f 2d | `%s'" p|rin1-to-|
|00006140| 73 74 72 69 6e 67 5d 20 | 37 29 29 0a 28 64 65 66 |string] |7)).(def|
|00006150| 75 6e 20 65 6c 74 2d 73 | 61 74 69 73 66 69 65 73 |un elt-s|atisfies|
|00006160| 2d 69 66 2d 70 20 28 69 | 74 65 6d 20 6b 6c 69 73 |-if-p (i|tem klis|
|00006170| 74 29 20 22 5c 0a 45 4c | 54 2d 53 41 54 49 53 46 |t) "\.EL|T-SATISF|
|00006180| 49 45 53 2d 49 46 2d 50 | 20 49 54 45 4d 20 4b 4c |IES-IF-P| ITEM KL|
|00006190| 49 53 54 20 3d 3e 20 74 | 20 6f 72 20 6e 69 6c 0a |IST => t| or nil.|
|000061a0| 54 72 75 65 20 69 66 20 | 61 6e 20 2d 69 66 20 73 |True if |an -if s|
|000061b0| 74 79 6c 65 20 66 75 6e | 63 74 69 6f 6e 20 77 61 |tyle fun|ction wa|
|000061c0| 73 20 63 61 6c 6c 65 64 | 20 61 6e 64 20 49 54 45 |s called| and ITE|
|000061d0| 4d 20 73 61 74 69 73 66 | 69 65 73 20 74 68 65 0a |M satisf|ies the.|
|000061e0| 70 72 65 64 69 63 61 74 | 65 20 75 6e 64 65 72 20 |predicat|e under |
|000061f0| 3a 70 72 65 64 69 63 61 | 74 65 20 69 6e 20 4b 4c |:predica|te in KL|
|00006200| 49 53 54 2e 22 20 28 62 | 79 74 65 2d 63 6f 64 65 |IST." (b|yte-code|
|00006210| 20 22 c0 09 5c 6e 5c 22 | c0 0b c4 5c 22 1d 89 1e | "..\n\"|...\"...|
|00006220| 06 0e 07 0d 0e 08 21 5c | 22 2a 87 22 20 5b 65 78 |......!\|"*." [ex|
|00006230| 74 72 61 63 74 2d 66 72 | 6f 6d 2d 6b 6c 69 73 74 |tract-fr|om-klist|
|00006240| 20 3a 70 72 65 64 69 63 | 61 74 65 20 6b 6c 69 73 | :predic|ate klis|
|00006250| 74 20 3a 6b 65 79 20 69 | 64 65 6e 74 69 74 79 20 |t :key i|dentity |
|00006260| 6b 65 79 66 6e 20 70 72 | 65 64 69 63 61 74 65 20 |keyfn pr|edicate |
|00006270| 69 74 65 6d 20 65 6c 74 | 5d 20 35 29 29 0a 28 64 |item elt|] 5)).(d|
|00006280| 65 66 75 6e 20 65 6c 74 | 2d 73 61 74 69 73 66 69 |efun elt|-satisfi|
|00006290| 65 73 2d 69 66 2d 6e 6f | 74 2d 70 20 28 69 74 65 |es-if-no|t-p (ite|
|000062a0| 6d 20 6b 6c 69 73 74 29 | 20 22 5c 0a 45 4c 54 2d |m klist)| "\.ELT-|
|000062b0| 53 41 54 49 53 46 49 45 | 53 2d 49 46 2d 4e 4f 54 |SATISFIE|S-IF-NOT|
|000062c0| 2d 50 20 49 54 45 4d 20 | 4b 4c 49 53 54 20 3d 3e |-P ITEM |KLIST =>|
|000062d0| 20 74 20 6f 72 20 6e 69 | 6c 0a 4b 4c 49 53 54 20 | t or ni|l.KLIST |
|000062e0| 65 6e 63 6f 64 65 73 20 | 61 20 6b 65 79 77 6f 72 |encodes |a keywor|
|000062f0| 64 2d 61 72 67 75 6d 65 | 6e 74 73 20 74 65 73 74 |d-argume|nts test|
|00006300| 2c 20 61 73 20 69 6e 20 | 43 48 2e 20 31 34 20 6f |, as in |CH. 14 o|
|00006310| 66 20 43 4c 74 4c 2e 0a | 54 72 75 65 20 69 66 20 |f CLtL..|True if |
|00006320| 61 6e 20 2d 69 66 2d 6e | 6f 74 20 73 74 79 6c 65 |an -if-n|ot style|
|00006330| 20 66 75 6e 63 74 69 6f | 6e 20 77 61 73 20 63 61 | functio|n was ca|
|00006340| 6c 6c 65 64 20 61 6e 64 | 20 49 54 45 4d 20 64 6f |lled and| ITEM do|
|00006350| 65 73 20 6e 6f 74 20 73 | 61 74 69 73 66 79 0a 74 |es not s|atisfy.t|
|00006360| 68 65 20 70 72 65 64 69 | 63 61 74 65 20 75 6e 64 |he predi|cate und|
|00006370| 65 72 20 3a 70 72 65 64 | 69 63 61 74 65 20 69 6e |er :pred|icate in|
|00006380| 20 4b 4c 49 53 54 2e 22 | 20 28 62 79 74 65 2d 63 | KLIST."| (byte-c|
|00006390| 6f 64 65 20 22 c0 09 5c | 6e 5c 22 c0 0b c4 5c 22 |ode "..\|n\"...\"|
|000063a0| 1d 89 1e 06 0e 07 0d 0e | 08 21 5c 22 2a 3f 87 22 |........|.!\"*?."|
|000063b0| 20 5b 65 78 74 72 61 63 | 74 2d 66 72 6f 6d 2d 6b | [extrac|t-from-k|
|000063c0| 6c 69 73 74 20 3a 70 72 | 65 64 69 63 61 74 65 20 |list :pr|edicate |
|000063d0| 6b 6c 69 73 74 20 3a 6b | 65 79 20 69 64 65 6e 74 |klist :k|ey ident|
|000063e0| 69 74 79 20 6b 65 79 66 | 6e 20 70 72 65 64 69 63 |ity keyf|n predic|
|000063f0| 61 74 65 20 69 74 65 6d | 20 65 6c 74 5d 20 35 29 |ate item| elt] 5)|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.