home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacOS Resource Fork
(archive/rsrc).
You can browse this item here: ReWrite 0.2.7 Docs.rsrc
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| MacOS Resource Fork (archive/rsrc)
| magic
| Supported |
10%
| dexvert
| Jesper Olsen Module (music/jesperOlsen)
| magic
| Supported |
1%
| dexvert
| BeOS Resource Data (archive/beOSResourceData)
| ext
| Unsupported |
1%
| dexvert
| AppleSingle (archive/appleSingle)
| fallback
| Supported |
0%
| dexvert
| TTComp Archive (archive/ttcomp)
| fallback
| Supported |
100%
| file
| AppleDouble encoded Macintosh file
| default
| |
99%
| file
| data
| default
| |
66%
| TrID
| Mac AppleDouble encoded
| default
| |
33%
| TrID
| TTComp archive compressed (bin-2K)
| default (weak)
| |
100%
| lsar
| AppleSingle
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [eDoc] |
macFileCreator | [eDcR] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 05 16 07 00 02 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 02 00 00 00 09 00 00 |........|........|
|00000020| 00 32 00 00 00 20 00 00 | 00 02 00 00 00 52 00 03 |.2... ..|.....R..|
|00000030| 01 fb 65 44 6f 63 65 44 | 63 52 01 00 00 00 00 00 |..eDoceD|cR......|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 01 00 00 02 | fe 59 00 02 fd 59 00 00 |........|.Y...Y..|
|00000060| 03 a2 00 0f 00 00 00 0f | 00 00 00 00 f0 00 00 f0 |........|........|
|00000070| 00 00 00 00 0f 00 0f 00 | 00 00 00 00 00 f0 f0 00 |........|........|
|00000080| 00 00 12 52 65 57 72 69 | 74 65 20 30 2e 32 2e 37 |...ReWri|te 0.2.7|
|00000090| 20 44 6f 63 73 37 02 00 | 00 00 50 61 72 74 53 49 | Docs7..|..PartSI|
|000000a0| 54 21 00 00 50 61 72 74 | 53 49 54 21 00 00 00 00 |T!..Part|SIT!....|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 ae 03 2d 63 | 00 00 00 00 00 03 01 fb |......-c|........|
|000000d0| bf 10 10 00 00 10 11 ef | ff 10 10 00 00 10 11 fb |........|........|
|000000e0| ff 10 10 00 00 10 11 fb | ff 10 10 00 00 10 11 ef |........|........|
|000000f0| bb 10 10 00 00 10 11 fb | f7 10 10 00 00 10 11 df |........|........|
|00000100| bf 10 10 00 00 10 10 00 | 00 10 10 00 00 10 1f ff |........|........|
|00000110| ff f0 1f ff fc 00 1f ff | fe 00 1f ff ff 00 1f ff |........|........|
|00000120| ff 80 1f ff ff c0 1f ff | ff e0 1f ff ff f0 1f ff |........|........|
|00000130| ff f0 1f ff ff f0 1f ff | ff f0 1f ff ff f0 1f ff |........|........|
|00000140| ff f0 1f ff ff f0 1f ff | ff f0 1f ff ff f0 1f ff |........|........|
|00000150| ff f0 00 00 08 2a 08 2a | 00 00 00 00 03 18 02 64 |.....*.*|.......d|
|00000160| 00 11 02 ff 0c 00 ff ff | ff ff 00 00 00 00 00 00 |........|........|
|00000170| 00 00 02 64 00 00 03 18 | 00 00 00 00 00 00 00 1e |...d....|........|
|00000180| 00 0c ff b6 ff bc 00 01 | 00 0a 00 00 00 00 02 90 |........|........|
|00000190| 01 d0 00 07 00 00 00 00 | 00 23 00 00 00 23 00 00 |........|.#...#..|
|000001a0| 00 0c 00 00 ff ec 00 01 | 00 0a 00 00 00 00 02 7c |........|.......||
|000001b0| 01 d0 00 23 00 00 00 1a | 00 00 00 00 ff ff 00 01 |...#....|........|
|000001c0| 00 0a ff dc ff dc 02 7c | 01 f4 00 2c 00 0c 00 15 |.......||...,....|
|000001d0| 09 48 65 6c 76 65 74 69 | 63 61 00 03 00 15 00 04 |.Helveti|ca......|
|000001e0| 01 00 00 0d 00 30 00 2e | 00 04 00 00 01 00 00 2b |.....0..|.......+|
|000001f0| 51 25 0d 52 65 57 72 69 | 74 65 20 30 2e 32 2e 37 |Q%.ReWri|te 0.2.7|
|00000200| 00 0d 00 18 00 2b 21 1f | 13 57 72 69 74 74 65 6e |.....+!.|.Written|
|00000210| 20 62 79 20 52 6f 79 20 | 57 61 72 64 00 1a 00 00 | by Roy |Ward....|
|00000220| 00 00 00 00 00 2c 00 08 | 00 14 05 54 69 6d 65 73 |.....,..|...Times|
|00000230| 00 03 00 14 00 04 00 00 | 00 0d 00 0c 00 28 00 60 |........|.....(.`|
|00000240| 00 08 5b 50 6c 65 61 73 | 65 20 66 65 65 6c 20 66 |..[Pleas|e feel f|
|00000250| 72 65 65 20 74 6f 20 63 | 6f 6e 74 61 63 74 20 6d |ree to c|ontact m|
|00000260| 65 20 77 69 74 68 20 61 | 6e 79 20 63 6f 6d 6d 65 |e with a|ny comme|
|00000270| 6e 74 73 2c 20 73 75 67 | 67 65 73 74 69 6f 6e 73 |nts, sug|gestions|
|00000280| 20 66 6f 72 20 69 6d 70 | 72 6f 76 65 6d 65 6e 74 | for imp|rovement|
|00000290| 73 2c 20 62 75 67 20 72 | 65 70 6f 72 74 73 00 2b |s, bug r|eports.+|
|000002a0| 4c 0c 3e 65 74 63 2e 20 | 61 62 6f 75 74 20 52 65 |L.>etc. |about Re|
|000002b0| 57 72 69 74 65 2e 20 20 | 49 20 63 61 6e 20 62 65 |Write. |I can be|
|000002c0| 20 63 6f 6e 74 61 63 74 | 65 64 20 69 6e 20 74 68 | contact|ed in th|
|000002d0| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 77 61 79 73 |e follow|ing ways|
|000002e0| 3a 00 00 2c 00 09 00 03 | 06 47 65 6e 65 76 61 00 |:..,....|.Geneva.|
|000002f0| 00 03 00 03 00 2b 2e 1b | 0f 45 2d 6d 61 69 6c 20 |.....+..|.E-mail |
|00000300| 41 64 64 72 65 73 73 3a | 00 03 00 15 00 29 63 01 |Address:|.....)c.|
|00000310| 20 00 00 03 00 03 00 0d | 00 0a 00 15 d5 80 00 29 | .......|.......)|
|00000320| 03 03 72 6f 79 00 00 15 | d5 80 00 29 11 11 40 65 |..roy...|...)..@e|
|00000330| 61 72 74 68 6c 69 67 68 | 74 2e 63 6f 2e 6e 7a 00 |arthligh|t.co.nz.|
|00000340| 00 0d 00 0c 00 28 00 a3 | 00 85 0f 50 6f 73 74 61 |.....(..|...Posta|
|00000350| 6c 20 41 64 64 72 65 73 | 73 3a 00 0d 00 0a 00 29 |l Addres|s:.....)|
|00000360| 61 01 20 00 00 1a ff ff | 00 00 00 00 00 29 03 12 |a. .....|.....)..|
|00000370| 28 6f 6e 6c 79 20 64 75 | 72 69 6e 67 20 31 39 39 |(only du|ring 199|
|00000380| 36 29 00 1a 00 00 00 00 | 00 00 00 28 00 b1 00 c0 |6)......|...(....|
|00000390| 0f 33 37 37 61 20 53 6f | 75 74 68 20 52 6f 61 64 |.377a So|uth Road|
|000003a0| 00 2b 15 0d 07 44 75 6e | 65 64 69 6e 00 28 00 cb |.+...Dun|edin.(..|
|000003b0| 00 cb 0b 4e 65 77 20 5a | 65 61 6c 61 6e 64 00 0d |...New Z|ealand..|
|000003c0| 00 0c 00 28 00 e6 00 a5 | 14 57 6f 72 6c 64 20 57 |...(....|.World W|
|000003d0| 69 64 65 20 57 65 62 20 | 70 61 67 65 3a 00 00 0d |ide Web |page:...|
|000003e0| 00 0a 00 28 00 f4 00 60 | 35 68 74 74 70 3a 2f 2f |...(...`|5http://|
|000003f0| 67 6f 6c 64 66 69 73 68 | 2e 70 68 79 73 69 63 73 |goldfish|.physics|
|00000400| 2e 75 74 6f 72 6f 6e 74 | 6f 2e 63 61 2f 7e 72 6f |.utoront|o.ca/~ro|
|00000410| 79 2f 52 65 57 72 69 74 | 65 2e 68 74 6d 6c 00 28 |y/ReWrit|e.html.(|
|00000420| 01 0e 00 55 3c 55 70 64 | 61 74 65 73 20 61 72 65 |...U<Upd|ates are|
|00000430| 20 61 6c 73 6f 20 61 76 | 61 69 6c 61 62 6c 65 20 | also av|ailable |
|00000440| 6f 6e 20 61 6e 79 20 27 | 69 6e 66 6f 2d 6d 61 63 |on any '|info-mac|
|00000450| 27 20 61 72 63 68 69 76 | 65 20 6d 69 72 72 6f 72 |' archiv|e mirror|
|00000460| 2e 00 00 03 00 14 00 0d | 00 0c 00 28 01 27 00 2d |........|...(.'.-|
|00000470| 4d 49 20 77 69 73 68 20 | 74 6f 20 74 68 61 6e 6b |MI wish |to thank|
|00000480| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 70 | the fol|lowing p|
|00000490| 65 6f 70 6c 65 20 66 6f | 72 20 74 68 65 69 72 20 |eople fo|r their |
|000004a0| 73 75 67 67 65 73 74 69 | 6f 6e 73 20 61 6e 64 20 |suggesti|ons and |
|000004b0| 65 6e 63 6f 75 72 61 67 | 65 6d 65 6e 74 3a 00 0d |encourag|ement:..|
|000004c0| 00 12 00 2b 75 1d 13 44 | 72 2e 20 47 65 72 72 61 |...+u..D|r. Gerra|
|000004d0| 72 64 20 4c 69 64 64 65 | 6c 6c 00 2b 08 13 0f 44 |rd Lidde|ll.+...D|
|000004e0| 72 2e 20 54 69 6d 20 4d | 6f 6c 74 65 6e 6f 00 2b |r. Tim M|olteno.+|
|000004f0| 11 13 0c 4a 61 73 6f 6e | 20 48 61 72 72 69 73 00 |...Jason| Harris.|
|00000500| 00 1a ff ff 00 00 00 00 | 00 0d 00 0c 00 28 01 84 |........|.....(..|
|00000510| 00 49 3f 52 65 57 72 69 | 74 65 20 69 73 20 63 6f |.I?ReWri|te is co|
|00000520| 70 79 72 69 67 68 74 20 | a9 20 31 39 39 34 2d 31 |pyright |. 1994-1|
|00000530| 39 39 36 20 52 6f 79 20 | 57 61 72 64 2e 20 41 6c |996 Roy |Ward. Al|
|00000540| 6c 20 72 69 67 68 74 73 | 20 72 65 73 65 72 76 65 |l rights| reserve|
|00000550| 64 2e 00 28 01 90 00 0a | 5f 52 65 57 72 69 74 65 |d..(....|_ReWrite|
|00000560| 20 69 73 20 66 72 65 65 | 77 61 72 65 20 61 6e 64 | is free|ware and|
|00000570| 20 6d 61 79 20 62 65 20 | 64 69 73 74 72 69 62 75 | may be |distribu|
|00000580| 74 65 64 20 66 72 65 65 | 6c 79 20 69 6e 20 69 74 |ted free|ly in it|
|00000590| 73 20 6f 72 69 67 69 6e | 61 6c 20 66 6f 72 6d 20 |s origin|al form |
|000005a0| 28 6f 72 20 69 6e 20 69 | 74 73 20 6f 72 69 67 69 |(or in i|ts origi|
|000005b0| 6e 61 6c 20 66 6f 72 6d | 00 28 01 9c 00 03 64 61 |nal form|.(....da|
|000005c0| 6c 6f 6e 67 20 77 69 74 | 68 20 61 6e 79 20 73 6f |long wit|h any so|
|000005d0| 75 72 63 65 20 63 6f 64 | 65 20 77 72 69 74 74 65 |urce cod|e writte|
|000005e0| 6e 20 62 79 20 6f 74 68 | 65 72 73 20 74 68 61 74 |n by oth|ers that|
|000005f0| 20 69 73 20 63 6c 65 61 | 72 6c 79 20 6c 61 62 65 | is clea|rly labe|
|00000600| 6c 6c 65 64 20 61 73 20 | 73 75 63 68 29 2c 20 61 |lled as |such), a|
|00000610| 73 20 6c 6f 6e 67 20 61 | 73 20 69 74 20 69 73 20 |s long a|s it is |
|00000620| 6e 6f 74 00 00 28 01 a8 | 00 02 5f 64 69 73 74 72 |not..(..|.._distr|
|00000630| 69 62 75 74 65 64 20 66 | 6f 72 20 70 72 6f 66 69 |ibuted f|or profi|
|00000640| 74 20 77 69 74 68 6f 75 | 74 20 65 78 70 72 65 73 |t withou|t expres|
|00000650| 73 20 70 65 72 6d 69 73 | 73 69 6f 6e 20 66 72 6f |s permis|sion fro|
|00000660| 6d 20 74 68 65 20 61 75 | 74 68 6f 72 2e 20 52 65 |m the au|thor. Re|
|00000670| 57 72 69 74 65 20 68 61 | 73 20 62 65 65 6e 20 64 |Write ha|s been d|
|00000680| 65 73 69 67 6e 65 64 20 | 74 6f 00 2b 11 0c 5a 62 |esigned |to.+..Zb|
|00000690| 65 20 72 6f 62 75 73 74 | 2c 20 62 75 74 20 69 73 |e robust|, but is|
|000006a0| 20 64 69 73 74 72 69 62 | 75 74 65 64 20 77 69 74 | distrib|uted wit|
|000006b0| 68 6f 75 74 20 61 6e 79 | 20 77 61 72 72 61 6e 74 |hout any| warrant|
|000006c0| 69 65 73 2c 20 61 6e 64 | 20 69 6e 20 74 68 65 20 |ies, and| in the |
|000006d0| 75 6e 6c 69 6b 65 6c 79 | 20 65 76 65 6e 74 20 6f |unlikely| event o|
|000006e0| 66 20 52 65 57 72 69 74 | 65 00 00 2b 21 0c 48 63 |f ReWrit|e..+!.Hc|
|000006f0| 61 75 73 69 6e 67 20 64 | 61 6d 61 67 65 20 74 68 |ausing d|amage th|
|00000700| 65 20 61 75 74 68 6f 72 | 20 61 73 73 75 6d 65 73 |e author| assumes|
|00000710| 20 6e 6f 20 72 65 73 70 | 6f 6e 73 69 62 69 6c 69 | no resp|onsibili|
|00000720| 74 79 20 66 6f 72 20 61 | 6e 79 20 73 75 63 68 20 |ty for a|ny such |
|00000730| 64 61 6d 61 67 65 2e 00 | 00 1a 00 00 00 00 00 00 |damage..|........|
|00000740| 00 28 01 d8 00 00 4e 50 | 65 72 6d 69 73 73 69 6f |.(....NP|ermissio|
|00000750| 6e 20 69 73 20 67 72 61 | 6e 74 65 64 20 74 6f 20 |n is gra|nted to |
|00000760| 69 6e 63 6c 75 64 65 20 | 74 68 69 73 20 72 65 6c |include |this rel|
|00000770| 65 61 73 65 20 6f 66 20 | 52 65 57 72 69 74 65 20 |ease of |ReWrite |
|00000780| 6f 6e 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |on the f|ollowing|
|00000790| 20 43 44 73 3a 00 00 2b | 10 0c 2d a5 20 54 68 65 | CDs:..+|..-. The|
|000007a0| 20 41 70 70 72 65 6e 74 | 69 63 65 20 43 44 2c 20 | Apprent|ice CD, |
|000007b0| 62 79 20 43 65 6c 65 73 | 74 69 6e 20 43 6f 6d 70 |by Celes|tin Comp|
|000007c0| 61 6e 79 20 49 6e 63 2c | 00 2a 0c 4f a5 20 41 6e |any Inc,|.*.O. An|
|000007d0| 79 20 43 44 20 72 65 6c | 65 61 73 65 73 20 6f 66 |y CD rel|eases of|
|000007e0| 20 28 70 6f 72 74 69 6f | 6e 73 20 6f 66 29 20 74 | (portio|ns of) t|
|000007f0| 68 65 20 69 6e 66 6f 2d | 6d 61 63 20 61 72 63 68 |he info-|mac arch|
|00000800| 69 76 65 73 20 72 65 6c | 65 61 73 65 64 20 62 79 |ives rel|eased by|
|00000810| 20 73 75 6d 65 78 2d 61 | 69 6d 2e 00 00 28 02 08 | sumex-a|im...(..|
|00000820| 00 00 1e 53 6f 66 74 77 | 61 72 65 20 75 73 65 64 |...Softw|are used|
|00000830| 20 69 6e 20 74 68 69 73 | 20 70 72 6f 6a 65 63 74 | in this| project|
|00000840| 3a 00 00 2a 18 0e 55 73 | 65 72 20 69 6e 74 65 72 |:..*..Us|er inter|
|00000850| 66 61 63 65 00 29 6a 3c | 2d 20 54 48 49 4e 4b 20 |face.)j<|- THINK |
|00000860| 50 61 73 63 61 6c aa 2c | 20 43 6f 70 79 72 69 67 |Pascal.,| Copyrig|
|00000870| 68 74 20 a9 20 31 39 38 | 38 2d 31 39 39 31 20 53 |ht . 198|8-1991 S|
|00000880| 79 6d 61 6e 74 65 63 aa | 20 43 6f 72 70 6f 72 61 |ymantec.| Corpora|
|00000890| 74 69 6f 6e 00 28 02 2c | 00 00 0d 44 6f 63 75 6d |tion.(.,|...Docum|
|000008a0| 65 6e 74 61 74 69 6f 6e | 00 29 6a 38 2d 20 43 6c |entation|.)j8- Cl|
|000008b0| 61 72 69 73 57 6f 72 6b | 73 a8 2c 20 43 6f 70 79 |arisWork|s., Copy|
|000008c0| 72 69 67 68 74 20 a9 20 | 31 39 39 31 2d 31 39 39 |right . |1991-199|
|000008d0| 34 20 43 6c 61 72 69 73 | 20 43 6f 72 70 6f 72 61 |4 Claris| Corpora|
|000008e0| 74 69 6f 6e 00 2a 0c 33 | 2d 20 65 44 4f 43 aa 2c |tion.*.3|- eDOC.,|
|000008f0| 20 43 6f 70 79 72 69 67 | 68 74 20 a9 20 31 39 39 | Copyrig|ht . 199|
|00000900| 35 20 4d 69 63 68 65 6c | 20 26 20 46 72 61 6e 8d |5 Michel| & Fran.|
|00000910| 6f 69 73 20 54 6f 75 63 | 68 6f 74 00 00 0c 00 00 |ois Touc|hot.....|
|00000920| 00 14 00 01 00 0a 00 00 | 00 00 00 13 01 d0 00 23 |........|.......#|
|00000930| 00 00 00 01 00 0a ff dc | ff dc 00 13 01 f4 00 03 |........|........|
|00000940| 00 15 00 28 00 0a 00 6c | 1f 2d 20 52 65 57 72 69 |...(...l|.- ReWri|
|00000950| 74 65 20 30 2e 32 2e 37 | 20 64 6f 63 75 6d 65 6e |te 0.2.7| documen|
|00000960| 74 61 74 69 6f 6e 20 2d | 00 28 00 0a 01 8c 05 50 |tation -|.(.....P|
|00000970| 61 67 65 20 00 15 d9 c0 | 00 29 1f 01 31 00 00 ff |age ....|.)..1...|
|00000980| 00 00 05 b8 05 b8 00 00 | 00 00 03 18 02 64 00 11 |........|.....d..|
|00000990| 02 ff 0c 00 ff ff ff ff | 00 00 00 00 00 00 00 00 |........|........|
|000009a0| 02 64 00 00 03 18 00 00 | 00 00 00 00 00 1e 00 0c |.d......|........|
|000009b0| ff b6 ff bc 00 01 00 0a | 00 00 00 00 02 90 01 d0 |........|........|
|000009c0| 00 07 00 00 00 00 00 23 | 00 00 00 23 00 00 00 0c |.......#|...#....|
|000009d0| 00 00 ff ec 00 01 00 0a | 00 00 00 00 02 7c 01 d0 |........|.....|..|
|000009e0| 00 23 00 00 00 01 00 0a | ff dc ff dc 02 7c 01 f4 |.#......|.....|..|
|000009f0| 00 2c 00 0c 00 15 09 48 | 65 6c 76 65 74 69 63 61 |.,.....H|elvetica|
|00000a00| 00 03 00 15 00 04 01 00 | 00 0d 00 18 00 2e 00 04 |........|........|
|00000a10| 00 00 01 00 00 2a 14 08 | 43 6f 6e 74 65 6e 74 73 |.....*..|Contents|
|00000a20| 00 0d 00 0e 00 2a 1b 18 | 43 68 61 70 74 65 72 20 |.....*..|Chapter |
|00000a30| 31 20 2d 20 49 6e 74 72 | 6f 64 75 63 74 69 6f 6e |1 - Intr|oduction|
|00000a40| 00 28 00 2f 01 3a 01 34 | 00 2c 00 08 00 14 05 54 |.(./.:.4|.,.....T|
|00000a50| 69 6d 65 73 00 03 00 14 | 00 04 00 00 00 0d 00 0c |imes....|........|
|00000a60| 00 28 00 3c 00 10 0c 49 | 6e 74 72 6f 64 75 63 74 |.(.<...I|ntroduct|
|00000a70| 69 6f 6e 00 00 2a 0c 13 | 53 79 73 74 65 6d 20 72 |ion..*..|System r|
|00000a80| 65 71 75 69 72 65 6d 65 | 6e 74 73 00 00 2a 0c 0f |equireme|nts..*..|
|00000a90| 47 65 74 74 69 6e 67 20 | 73 74 61 72 74 65 64 00 |Getting |started.|
|00000aa0| 00 03 00 15 00 04 01 00 | 00 0d 00 0e 00 28 00 6e |........|.....(.n|
|00000ab0| 00 00 1b 43 68 61 70 74 | 65 72 20 32 20 2d 20 53 |...Chapt|er 2 - S|
|00000ac0| 69 6d 70 6c 65 20 45 78 | 61 6d 70 6c 65 73 00 28 |imple Ex|amples.(|
|00000ad0| 00 6e 01 3a 01 39 00 03 | 00 14 00 04 00 00 00 0d |.n.:.9..|........|
|00000ae0| 00 0c 00 28 00 7b 00 10 | 09 46 61 63 74 6f 72 69 |...(.{..|.Factori|
|00000af0| 61 6c 00 2a 0c 06 45 71 | 75 61 6c 73 00 2a 0c 18 |al.*..Eq|uals.*..|
|00000b00| 49 6e 73 65 72 74 20 69 | 6e 74 6f 20 6f 72 64 65 |Insert i|nto orde|
|00000b10| 72 65 64 20 6c 69 73 74 | 00 2a 0c 0a 42 75 62 62 |red list|.*..Bubb|
|00000b20| 6c 65 73 6f 72 74 00 2a | 0c 09 51 75 69 63 6b 73 |lesort.*|..Quicks|
|00000b30| 6f 72 74 00 00 03 00 15 | 00 04 01 00 00 0d 00 0e |ort.....|........|
|00000b40| 00 28 00 c5 00 00 1f 43 | 68 61 70 74 65 72 20 33 |.(.....C|hapter 3|
|00000b50| 20 2d 20 4c 61 6e 67 75 | 61 67 65 20 44 65 66 69 | - Langu|age Defi|
|00000b60| 6e 69 74 69 6f 6e 00 28 | 00 c5 01 32 02 31 33 00 |nition.(|...2.13.|
|00000b70| 00 03 00 14 00 04 00 00 | 00 0d 00 0c 00 28 00 d2 |........|.....(..|
|00000b80| 00 10 0b 44 65 66 69 6e | 69 74 69 6f 6e 73 00 2a |...Defin|itions.*|
|00000b90| 0c 0e 52 65 57 72 69 74 | 65 20 53 79 6e 74 61 78 |..ReWrit|e Syntax|
|00000ba0| 00 2a 0c 11 52 65 57 72 | 69 74 65 20 53 65 6d 61 |.*..ReWr|ite Sema|
|00000bb0| 6e 74 69 63 73 00 00 2a | 0c 18 50 72 65 63 65 64 |ntics..*|..Preced|
|00000bc0| 65 6e 63 65 20 6f 66 20 | 6f 70 65 72 61 74 69 6f |ence of |operatio|
|00000bd0| 6e 73 00 2a 0c 0d 53 6f | 6d 65 20 66 65 61 74 75 |ns.*..So|me featu|
|00000be0| 72 65 73 00 00 03 00 15 | 00 04 01 00 00 0d 00 0e |res.....|........|
|00000bf0| 00 28 01 1c 00 00 1a 43 | 68 61 70 74 65 72 20 34 |.(.....C|hapter 4|
|00000c00| 20 2d 20 55 73 65 72 20 | 49 6e 74 65 72 66 61 63 | - User |Interfac|
|00000c10| 65 00 00 28 01 1c 01 32 | 02 31 39 00 00 03 00 14 |e..(...2|.19.....|
|00000c20| 00 04 00 00 00 0d 00 0c | 00 28 01 29 00 10 11 50 |........|.(.)...P|
|00000c30| 72 6f 6a 65 63 74 20 73 | 74 72 75 63 74 75 72 65 |roject s|tructure|
|00000c40| 00 2a 0c 06 4f 75 74 70 | 75 74 00 2a 0c 0f 52 75 |.*..Outp|ut.*..Ru|
|00000c50| 6e 6e 69 6e 67 20 52 65 | 57 72 69 74 65 00 00 2a |nning Re|Write..*|
|00000c60| 0c 0b 4c 69 6d 69 74 61 | 74 69 6f 6e 73 00 00 2a |..Limita|tions..*|
|00000c70| 0c 13 43 6f 6e 66 69 67 | 75 72 69 6e 67 20 52 65 |..Config|uring Re|
|00000c80| 57 72 69 74 65 00 00 2a | 0c 14 46 75 74 75 72 65 |Write..*|..Future|
|00000c90| 20 43 6f 6d 70 61 74 69 | 62 69 6c 69 74 79 00 03 | Compati|bility..|
|00000ca0| 00 15 00 04 01 00 00 0d | 00 0e 00 28 01 7f 00 00 |........|...(....|
|00000cb0| 20 43 68 61 70 74 65 72 | 20 35 20 2d 20 4c 69 73 | Chapter| 5 - Lis|
|00000cc0| 74 73 2c 20 45 71 20 61 | 6e 64 20 4f 75 74 70 75 |ts, Eq a|nd Outpu|
|00000cd0| 74 00 00 28 01 7f 01 32 | 02 32 33 00 00 03 00 14 |t..(...2|.23.....|
|00000ce0| 00 04 00 00 00 0d 00 0c | 00 28 01 8c 00 10 0f 4c |........|.(.....L|
|00000cf0| 69 73 74 20 4f 70 65 72 | 61 74 69 6f 6e 73 00 2a |ist Oper|ations.*|
|00000d00| 0c 13 45 71 75 61 6c 69 | 74 79 20 4f 70 65 72 61 |..Equali|ty Opera|
|00000d10| 74 69 6f 6e 73 00 00 2a | 0c 0d 53 63 72 65 65 6e |tions..*|..Screen|
|00000d20| 20 4f 75 74 70 75 74 00 | 00 03 00 15 00 04 01 00 | Output.|........|
|00000d30| 00 0d 00 0e 00 28 01 be | 00 00 1e 43 68 61 70 74 |.....(..|...Chapt|
|00000d40| 65 72 20 36 20 2d 20 4e | 75 6d 65 72 69 63 61 6c |er 6 - N|umerical|
|00000d50| 2c 20 42 6f 6f 6c 65 61 | 6e 00 00 28 01 be 01 32 |, Boolea|n..(...2|
|00000d60| 02 32 38 00 00 03 00 14 | 00 04 00 00 00 0d 00 0c |.28.....|........|
|00000d70| 00 28 01 cb 00 10 14 4e | 75 6d 65 72 69 63 61 6c |.(.....N|umerical|
|00000d80| 20 4f 70 65 72 61 74 69 | 6f 6e 73 00 00 2a 0c 12 | Operati|ons..*..|
|00000d90| 4c 6f 67 69 63 61 6c 20 | 4f 70 65 72 61 74 69 6f |Logical |Operatio|
|00000da0| 6e 73 00 2a 0c 0e 42 69 | 74 20 4f 70 65 72 61 74 |ns.*..Bi|t Operat|
|00000db0| 69 6f 6e 73 00 03 00 15 | 00 04 01 00 00 0d 00 0e |ions....|........|
|00000dc0| 00 28 01 fd 00 00 1d 43 | 68 61 70 74 65 72 20 37 |.(.....C|hapter 7|
|00000dd0| 20 2d 20 46 75 6e 63 74 | 69 6f 6e 20 70 6f 69 6e | - Funct|ion poin|
|00000de0| 74 65 72 73 00 28 01 fd | 01 32 02 33 32 00 00 28 |ters.(..|.2.32..(|
|00000df0| 02 18 00 00 1d 43 68 61 | 70 74 65 72 20 38 20 2d |.....Cha|pter 8 -|
|00000e00| 20 54 72 65 65 73 2c 20 | 53 65 74 73 2c 20 4d 69 | Trees, |Sets, Mi|
|00000e10| 73 63 00 28 02 18 01 32 | 02 33 36 00 00 03 00 14 |sc.(...2|.36.....|
|00000e20| 00 04 00 00 00 0d 00 0c | 00 28 02 25 00 10 0f 54 |........|.(.%...T|
|00000e30| 72 65 65 20 6f 70 65 72 | 61 74 69 6f 6e 73 00 2a |ree oper|ations.*|
|00000e40| 0c 0e 53 65 74 20 4f 70 | 65 72 61 74 69 6f 6e 73 |..Set Op|erations|
|00000e50| 00 2a 0c 18 4f 74 68 65 | 72 20 66 75 6e 63 74 69 |.*..Othe|r functi|
|00000e60| 6f 6e 73 20 69 6e 20 62 | 72 69 65 66 00 03 00 15 |ons in b|rief....|
|00000e70| 00 04 01 00 00 0d 00 0e | 00 28 02 57 00 00 2b 43 |........|.(.W..+C|
|00000e80| 68 61 70 74 65 72 20 39 | 20 2d 20 41 20 62 69 67 |hapter 9| - A big|
|00000e90| 67 65 72 20 45 78 61 6d | 70 6c 65 20 2d 20 6e 70 |ger Exam|ple - np|
|00000ea0| 72 69 6d 65 2c 20 61 74 | 6f 69 00 28 02 57 01 32 |rime, at|oi.(.W.2|
|00000eb0| 02 34 35 00 00 03 00 14 | 00 04 00 00 00 0d 00 0c |.45.....|........|
|00000ec0| 00 28 02 64 00 10 06 6e | 70 72 69 6d 65 00 00 2a |.(.d...n|prime..*|
|00000ed0| 0c 05 61 74 6f 69 32 00 | 00 0c 00 00 00 14 00 01 |..atoi2.|........|
|00000ee0| 00 0a 00 00 00 00 00 13 | 01 d0 00 23 00 00 00 01 |........|...#....|
|00000ef0| 00 0a ff dc ff dc 00 13 | 01 f4 00 03 00 15 00 28 |........|.......(|
|00000f00| 00 0a 00 6c 1f 2d 20 52 | 65 57 72 69 74 65 20 30 |...l.- R|eWrite 0|
|00000f10| 2e 32 2e 37 20 64 6f 63 | 75 6d 65 6e 74 61 74 69 |.2.7 doc|umentati|
|00000f20| 6f 6e 20 2d 00 28 00 0a | 01 8c 05 50 61 67 65 20 |on -.(..|...Page |
|00000f30| 00 15 d9 c0 00 29 1f 01 | 32 00 00 ff 00 00 03 7a |.....)..|2......z|
|00000f40| 03 7a 00 00 00 00 03 18 | 02 64 00 11 02 ff 0c 00 |.z......|.d......|
|00000f50| ff ff ff ff 00 00 00 00 | 00 00 00 00 02 64 00 00 |........|.....d..|
|00000f60| 03 18 00 00 00 00 00 00 | 00 1e 00 0c ff b6 ff bc |........|........|
|00000f70| 00 01 00 0a 00 00 00 00 | 02 90 01 d0 00 07 00 00 |........|........|
|00000f80| 00 00 00 23 00 00 00 23 | 00 00 00 0c 00 00 ff ec |...#...#|........|
|00000f90| 00 01 00 0a 00 00 00 00 | 02 7c 01 d0 00 23 00 00 |........|.|...#..|
|00000fa0| 00 01 00 0a ff dc ff dc | 02 7c 01 f4 00 2c 00 0c |........|.|...,..|
|00000fb0| 00 15 09 48 65 6c 76 65 | 74 69 63 61 00 03 00 15 |...Helve|tica....|
|00000fc0| 00 04 01 00 00 0d 00 0e | 00 2e 00 04 00 00 01 00 |........|........|
|00000fd0| 00 2a 0b 18 41 70 70 65 | 6e 64 69 78 20 31 20 2d |.*..Appe|ndix 1 -|
|00000fe0| 20 43 6f 6e 76 65 6e 74 | 69 6f 6e 73 00 28 00 0b | Convent|ions.(..|
|00000ff0| 01 32 02 35 30 00 00 28 | 00 26 00 00 1a 41 70 70 |.2.50..(|.&...App|
|00001000| 65 6e 64 69 78 20 32 20 | 2d 20 46 75 6e 63 74 69 |endix 2 |- Functi|
|00001010| 6f 6e 20 4c 69 73 74 00 | 00 28 00 26 01 32 02 35 |on List.|.(.&.2.5|
|00001020| 31 00 00 28 00 41 00 00 | 17 41 70 70 65 6e 64 69 |1..(.A..|.Appendi|
|00001030| 78 20 33 20 2d 20 55 73 | 65 64 20 4e 61 6d 65 73 |x 3 - Us|ed Names|
|00001040| 00 28 00 41 01 32 02 35 | 35 00 00 28 00 5c 00 00 |.(.A.2.5|5..(.\..|
|00001050| 1b 41 70 70 65 6e 64 69 | 78 20 34 20 2d 20 49 6d |.Appendi|x 4 - Im|
|00001060| 70 6c 65 6d 65 6e 74 61 | 74 69 6f 6e 00 28 00 5c |plementa|tion.(.\|
|00001070| 01 32 02 35 36 00 00 2c | 00 08 00 14 05 54 69 6d |.2.56..,|.....Tim|
|00001080| 65 73 00 03 00 14 00 04 | 00 00 00 0d 00 0c 00 28 |es......|.......(|
|00001090| 00 69 00 10 07 53 74 6f | 72 61 67 65 00 2a 0c 0a |.i...Sto|rage.*..|
|000010a0| 45 76 61 6c 75 61 74 69 | 6f 6e 00 2a 0c 09 43 6f |Evaluati|on.*..Co|
|000010b0| 6d 70 69 6c 69 6e 67 00 | 00 03 00 15 00 04 01 00 |mpiling.|........|
|000010c0| 00 0d 00 0e 00 28 00 9b | 00 00 1d 41 70 70 65 6e |.....(..|...Appen|
|000010d0| 64 69 78 20 35 20 2d 20 | 45 66 66 69 63 69 65 6e |dix 5 - |Efficien|
|000010e0| 74 20 43 6f 64 69 6e 67 | 00 28 00 9b 01 32 02 36 |t Coding|.(...2.6|
|000010f0| 31 00 00 28 00 b6 00 00 | 19 41 70 70 65 6e 64 69 |1..(....|.Appendi|
|00001100| 78 20 36 20 2d 20 4d 61 | 74 68 65 6d 61 74 69 63 |x 6 - Ma|thematic|
|00001110| 61 aa 00 28 00 b6 01 32 | 02 36 35 00 00 28 00 d1 |a..(...2|.65..(..|
|00001120| 00 00 22 41 70 70 65 6e | 64 69 78 20 37 20 2d 20 |.."Appen|dix 7 - |
|00001130| 56 65 72 73 69 6f 6e 20 | 48 69 73 74 6f 72 79 2c |Version |History,|
|00001140| 20 42 75 67 73 00 00 28 | 00 d1 01 32 02 36 36 00 | Bugs..(|...2.66.|
|00001150| 00 03 00 14 00 04 00 00 | 00 0d 00 0c 00 28 00 de |........|.....(..|
|00001160| 00 10 0f 56 65 72 73 69 | 6f 6e 20 48 69 73 74 6f |...Versi|on Histo|
|00001170| 72 79 00 2a 0c 0a 4b 6e | 6f 77 6e 20 42 75 67 73 |ry.*..Kn|own Bugs|
|00001180| 00 03 00 15 00 04 01 00 | 00 0d 00 0e 00 28 01 04 |........|.....(..|
|00001190| 00 00 1b 41 70 70 65 6e | 64 69 78 20 38 20 2d 20 |...Appen|dix 8 - |
|000011a0| 53 79 6e 74 61 78 20 43 | 68 61 6e 67 65 73 00 28 |Syntax C|hanges.(|
|000011b0| 01 04 01 32 02 36 37 00 | 00 03 00 14 00 04 00 00 |...2.67.|........|
|000011c0| 00 0d 00 0c 00 28 01 11 | 00 10 0b 55 6e 64 65 72 |.....(..|...Under|
|000011d0| 73 63 6f 72 65 73 00 2a | 0c 14 4f 74 68 65 72 20 |scores.*|..Other |
|000011e0| 73 79 6e 74 61 78 20 63 | 68 61 6e 67 65 73 00 03 |syntax c|hanges..|
|000011f0| 00 15 00 04 01 00 00 0d | 00 0e 00 28 01 3a 00 00 |........|...(.:..|
|00001200| 1c 41 70 70 65 6e 64 69 | 78 20 39 20 2d 20 46 75 |.Appendi|x 9 - Fu|
|00001210| 74 75 72 65 20 56 65 72 | 73 69 6f 6e 73 00 00 28 |ture Ver|sions..(|
|00001220| 01 3a 01 32 02 36 39 00 | 00 03 00 14 00 04 00 00 |.:.2.69.|........|
|00001230| 00 0d 00 0c 00 28 01 47 | 00 10 0b 52 65 57 72 69 |.....(.G|...ReWri|
|00001240| 74 65 20 30 2e 33 00 2a | 0c 0c 52 65 57 72 69 74 |te 0.3.*|..ReWrit|
|00001250| 65 20 30 2e 34 2b 00 0c | 00 00 00 14 00 01 00 0a |e 0.4+..|........|
|00001260| 00 00 00 00 00 13 01 d0 | 00 23 00 00 00 01 00 0a |........|.#......|
|00001270| ff dc ff dc 00 13 01 f4 | 00 03 00 15 00 28 00 0a |........|.....(..|
|00001280| 00 6c 1f 2d 20 52 65 57 | 72 69 74 65 20 30 2e 32 |.l.- ReW|rite 0.2|
|00001290| 2e 37 20 64 6f 63 75 6d | 65 6e 74 61 74 69 6f 6e |.7 docum|entation|
|000012a0| 20 2d 00 28 00 0a 01 8c | 05 50 61 67 65 20 00 15 | -.(....|.Page ..|
|000012b0| d9 c0 00 29 1f 01 33 00 | 00 ff 00 00 0b 64 0b 64 |...)..3.|.....d.d|
|000012c0| 00 00 00 00 03 18 02 64 | 00 11 02 ff 0c 00 ff ff |.......d|........|
|000012d0| ff ff 00 00 00 00 00 00 | 00 00 02 64 00 00 03 18 |........|...d....|
|000012e0| 00 00 00 00 00 00 00 1e | 00 0c ff b6 ff bc 00 01 |........|........|
|000012f0| 00 0a 00 00 00 00 02 90 | 01 d0 00 07 00 00 00 00 |........|........|
|00001300| 00 23 00 00 00 23 00 00 | 00 0c 00 00 ff ec 00 01 |.#...#..|........|
|00001310| 00 0a 00 00 00 00 02 7c | 01 d0 00 23 00 00 00 01 |.......||...#....|
|00001320| 00 0a ff dc ff dc 02 7c | 01 f4 00 2c 00 0c 00 15 |.......||...,....|
|00001330| 09 48 65 6c 76 65 74 69 | 63 61 00 03 00 15 00 04 |.Helveti|ca......|
|00001340| 01 00 00 0d 00 18 00 2e | 00 04 00 00 01 00 00 2a |........|.......*|
|00001350| 14 18 43 68 61 70 74 65 | 72 20 31 20 2d 20 49 6e |..Chapte|r 1 - In|
|00001360| 74 72 6f 64 75 63 74 69 | 6f 6e 00 2c 00 08 00 14 |troducti|on.,....|
|00001370| 05 54 69 6d 65 73 00 03 | 00 14 00 04 00 00 00 0d |.Times..|........|
|00001380| 00 0c 00 2a 19 5d 45 61 | 63 68 20 63 68 61 70 74 |...*.]Ea|ch chapt|
|00001390| 65 72 20 68 61 73 20 61 | 20 73 68 6f 72 74 20 70 |er has a| short p|
|000013a0| 61 72 61 67 72 61 70 68 | 20 77 72 69 74 74 65 6e |aragraph| written|
|000013b0| 20 61 74 20 74 68 65 20 | 74 6f 70 20 74 6f 20 67 | at the |top to g|
|000013c0| 69 76 65 20 61 6e 20 69 | 64 65 61 20 6f 66 20 74 |ive an i|dea of t|
|000013d0| 68 65 20 63 6f 6e 74 65 | 6e 74 73 20 6f 66 20 74 |he conte|nts of t|
|000013e0| 68 65 20 00 00 2a 0c 5d | 63 68 61 70 74 65 72 2e |he ..*.]|chapter.|
|000013f0| 20 54 68 69 73 20 63 68 | 61 70 74 65 72 20 67 69 | This ch|apter gi|
|00001400| 76 65 73 20 61 20 62 72 | 69 65 66 20 6f 76 65 72 |ves a br|ief over|
|00001410| 76 69 65 77 20 6f 66 20 | 77 68 61 74 20 52 65 57 |view of |what ReW|
|00001420| 72 69 74 65 20 69 73 2c | 20 61 6e 64 20 77 68 61 |rite is,| and wha|
|00001430| 74 20 79 6f 75 20 6e 65 | 65 64 20 74 6f 20 72 75 |t you ne|ed to ru|
|00001440| 6e 20 69 74 2e 00 00 03 | 00 15 00 04 01 00 00 0d |n it....|........|
|00001450| 00 12 00 2a 1c 0c 49 6e | 74 72 6f 64 75 63 74 69 |...*..In|troducti|
|00001460| 6f 6e 00 03 00 14 00 04 | 00 00 00 0d 00 0c 00 2b |on......|.......+|
|00001470| 10 1e 38 52 65 57 72 69 | 74 65 20 69 73 20 61 20 |..8ReWri|te is a |
|00001480| 73 6d 61 6c 6c 20 73 65 | 6c 66 20 63 6f 6e 74 61 |small se|lf conta|
|00001490| 69 6e 65 64 20 63 6f 6d | 70 69 6c 65 72 20 77 68 |ined com|piler wh|
|000014a0| 69 63 68 20 75 73 65 73 | 20 61 20 00 00 04 01 00 |ich uses| a .....|
|000014b0| 00 15 63 c0 00 28 00 73 | 01 20 0c 72 65 77 72 69 |..c..(.s|. .rewri|
|000014c0| 74 65 20 72 75 6c 65 00 | 00 04 00 00 00 15 57 80 |te rule.|......W.|
|000014d0| 00 29 3d 11 20 73 79 6e | 74 61 78 20 77 68 69 63 |.)=. syn|tax whic|
|000014e0| 68 20 69 73 20 00 00 28 | 00 80 00 00 60 75 73 75 |h is ..(|....`usu|
|000014f0| 61 6c 6c 79 20 74 68 65 | 20 64 6f 6d 61 69 6e 20 |ally the| domain |
|00001500| 6f 66 20 66 75 6e 63 74 | 69 6f 6e 61 6c 20 6c 61 |of funct|ional la|
|00001510| 6e 67 75 61 67 65 73 2c | 20 62 75 74 20 75 6e 64 |nguages,| but und|
|00001520| 65 72 6e 65 61 74 68 20 | 77 6f 72 6b 73 20 69 6e |erneath |works in|
|00001530| 20 61 6e 20 61 70 70 6c | 69 63 61 74 69 76 65 20 | an appl|icative |
|00001540| 77 61 79 2c 20 69 6e 20 | 74 68 61 74 20 00 00 2a |way, in |that ..*|
|00001550| 0c 60 69 74 20 69 73 20 | 63 6f 6d 70 6c 65 74 65 |.`it is |complete|
|00001560| 6c 79 20 63 6f 6d 70 69 | 6c 65 64 20 28 74 68 65 |ly compi|led (the|
|00001570| 72 65 20 69 73 20 6e 6f | 20 27 65 76 61 6c 27 20 |re is no| 'eval' |
|00001580| 6d 65 63 68 61 6e 69 73 | 6d 29 20 61 6e 64 20 63 |mechanis|m) and c|
|00001590| 6f 6d 70 69 6c 65 73 20 | 74 6f 20 63 6f 64 65 20 |ompiles |to code |
|000015a0| 74 68 61 74 20 64 6f 65 | 73 6e 27 74 20 6e 65 65 |that doe|sn't nee|
|000015b0| 64 20 00 2a 0c 39 63 6f | 6d 70 6c 69 63 61 74 65 |d .*.9co|mplicate|
|000015c0| 64 20 6d 65 6d 6f 72 79 | 20 6d 61 6e 61 67 65 6d |d memory| managem|
|000015d0| 65 6e 74 20 73 75 63 68 | 20 61 73 20 67 61 72 62 |ent such| as garb|
|000015e0| 61 67 65 20 63 6f 6c 6c | 65 63 74 69 6f 6e 2e 00 |age coll|ection..|
|000015f0| 00 2b 10 0c 5b 49 74 20 | 69 73 20 64 65 73 69 67 |.+..[It |is desig|
|00001600| 6e 65 64 20 61 73 20 61 | 20 74 65 73 74 62 65 6e |ned as a| testben|
|00001610| 63 68 20 66 6f 72 20 65 | 78 70 6c 6f 72 69 6e 67 |ch for e|xploring|
|00001620| 20 74 68 65 20 70 6f 77 | 65 72 20 6f 66 20 74 68 | the pow|er of th|
|00001630| 69 73 20 73 74 79 6c 65 | 20 6f 66 20 70 72 6f 67 |is style| of prog|
|00001640| 72 61 6d 6d 69 6e 67 20 | 77 69 74 68 6f 75 74 20 |ramming |without |
|00001650| 00 28 00 b0 00 00 5d 6d | 6f 76 69 6e 67 20 74 6f |.(....]m|oving to|
|00001660| 20 61 20 66 75 6c 6c 20 | 66 75 6e 63 74 69 6f 6e | a full |function|
|00001670| 61 6c 20 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 20 73 |al envir|onment s|
|00001680| 75 63 68 20 61 73 20 48 | 61 73 6b 65 6c 6c 2c 20 |uch as H|askell, |
|00001690| 4d 4c 2c 20 4d 69 72 61 | 6e 64 61 2c 20 43 6c 65 |ML, Mira|nda, Cle|
|000016a0| 61 6e 20 65 74 63 2e 2c | 20 6f 72 20 64 65 61 6c |an etc.,| or deal|
|000016b0| 69 6e 67 20 00 2a 0c 59 | 77 69 74 68 20 73 6c 6f |ing .*.Y|with slo|
|000016c0| 77 20 69 6e 74 65 72 70 | 72 65 74 65 72 73 20 73 |w interp|reters s|
|000016d0| 75 63 68 20 61 73 20 4d | 61 74 68 65 6d 61 74 69 |uch as M|athemati|
|000016e0| 63 61 aa 2e 20 49 74 20 | 69 73 20 65 76 65 6e 74 |ca.. It |is event|
|000016f0| 75 61 6c 6c 79 20 69 6e | 74 65 6e 64 65 64 20 66 |ually in|tended f|
|00001700| 6f 72 20 75 73 65 20 61 | 73 20 61 20 66 75 6c 6c |or use a|s a full|
|00001710| 20 00 00 2a 0c 3c 70 72 | 6f 67 72 61 6d 6d 69 6e | ..*.<pr|ogrammin|
|00001720| 67 20 6c 61 6e 67 75 61 | 67 65 2c 20 62 75 74 20 |g langua|ge, but |
|00001730| 74 68 69 73 20 77 69 6c | 6c 20 72 65 71 75 69 72 |this wil|l requir|
|00001740| 65 20 61 20 6c 6f 74 20 | 6d 6f 72 65 20 77 6f 72 |e a lot |more wor|
|00001750| 6b 2e 00 2b 10 0c 57 4f | 6e 65 20 6f 66 20 74 68 |k..+..WO|ne of th|
|00001760| 65 20 6d 6f 73 74 20 6e | 6f 74 61 62 6c 65 20 66 |e most n|otable f|
|00001770| 65 61 74 75 72 65 73 20 | 6f 66 20 52 65 57 72 69 |eatures |of ReWri|
|00001780| 74 65 20 69 73 20 74 68 | 61 74 20 74 68 65 20 63 |te is th|at the c|
|00001790| 6f 6d 70 69 6c 65 72 20 | 69 73 20 77 72 69 74 74 |ompiler |is writt|
|000017a0| 65 6e 20 69 6e 20 69 74 | 73 65 6c 66 2c 20 00 28 |en in it|self, .(|
|000017b0| 00 e0 00 00 3f 64 65 6d | 6f 6e 73 74 72 61 74 69 |....?dem|onstrati|
|000017c0| 6e 67 20 74 68 65 20 70 | 6f 77 65 72 20 6f 66 20 |ng the p|ower of |
|000017d0| 75 73 69 6e 67 20 72 65 | 77 72 69 74 65 20 72 75 |using re|write ru|
|000017e0| 6c 65 73 20 66 6f 72 20 | 70 72 6f 67 72 61 6d 6d |les for |programm|
|000017f0| 69 6e 67 2e 00 2a 18 21 | 54 68 65 20 6d 61 69 6e |ing..*.!|The main|
|00001800| 20 66 65 61 74 75 72 65 | 73 20 6f 66 20 52 65 57 | feature|s of ReW|
|00001810| 72 69 74 65 20 61 72 65 | 3a 00 00 2b 10 18 19 a5 |rite are|:..+....|
|00001820| 20 20 69 74 20 75 73 65 | 73 20 74 68 65 20 73 79 | it use|s the sy|
|00001830| 6e 74 61 78 20 6f 66 20 | 00 04 01 00 00 15 01 c0 |ntax of |........|
|00001840| 00 29 6d 0d 72 65 77 72 | 69 74 65 20 72 75 6c 65 |.)m.rewr|ite rule|
|00001850| 73 00 00 04 00 00 00 15 | a0 40 00 29 41 15 20 74 |s.......|.@.)A. t|
|00001860| 6f 20 64 65 66 69 6e 65 | 20 66 75 6e 63 74 69 6f |o define| functio|
|00001870| 6e 73 3b 00 00 28 01 28 | 00 10 62 a5 20 20 69 74 |ns;..(.(|..b. it|
|00001880| 20 68 61 73 20 74 68 65 | 20 6e 6f 6e 2d 64 65 73 | has the| non-des|
|00001890| 74 72 75 63 74 69 76 65 | 20 61 74 74 72 69 62 75 |tructive| attribu|
|000018a0| 74 65 73 20 6f 66 20 61 | 20 66 75 6e 63 74 69 6f |tes of a| functio|
|000018b0| 6e 61 6c 20 6c 61 6e 67 | 75 61 67 65 2c 20 69 6e |nal lang|uage, in|
|000018c0| 20 74 68 61 74 20 74 68 | 61 74 20 74 68 65 72 65 | that th|at there|
|000018d0| 20 61 72 65 20 6e 6f 20 | 73 69 64 65 20 00 00 28 | are no |side ..(|
|000018e0| 01 34 00 00 2e 65 66 66 | 65 63 74 73 20 28 65 78 |.4...eff|ects (ex|
|000018f0| 63 65 70 74 20 73 75 63 | 68 20 74 68 69 6e 67 73 |cept suc|h things|
|00001900| 20 61 73 20 73 63 72 65 | 65 6e 20 6f 75 74 70 75 | as scre|en outpu|
|00001910| 74 29 3b 00 00 2b 10 18 | 31 a5 20 69 74 20 68 61 |t);..+..|1. it ha|
|00001920| 73 20 6e 6f 20 65 76 61 | 6c 75 61 74 69 6f 6e 20 |s no eva|luation |
|00001930| 6d 65 63 68 61 6e 69 73 | 6d 2c 20 73 6f 20 69 73 |mechanis|m, so is|
|00001940| 20 61 20 70 75 72 65 6c | 79 20 00 04 02 00 00 15 | a purel|y ......|
|00001950| a2 80 00 29 e7 05 65 61 | 67 65 72 00 00 04 00 00 |...)..ea|ger.....|
|00001960| 00 15 f4 40 00 29 1b 19 | 20 20 6c 61 6e 67 75 61 |...@.)..| langua|
|00001970| 67 65 20 28 6c 69 6b 65 | 20 50 61 73 63 61 6c 29 |ge (like| Pascal)|
|00001980| 3b 00 00 28 01 64 00 10 | 40 a5 20 20 69 74 20 63 |;..(.d..|@. it c|
|00001990| 6f 6d 70 69 6c 65 73 20 | 74 6f 20 6d 6f 64 65 72 |ompiles |to moder|
|000019a0| 61 74 65 6c 79 20 65 66 | 66 69 63 69 65 6e 74 20 |ately ef|ficient |
|000019b0| 36 38 30 32 30 2f 36 38 | 30 33 30 20 6d 61 63 68 |68020/68|030 mach|
|000019c0| 69 6e 65 20 63 6f 64 65 | 3b 00 00 2a 18 4c a5 20 |ine code|;..*.L. |
|000019d0| 20 69 6e 20 74 68 65 20 | 63 6f 6d 70 69 6c 65 72 | in the |compiler|
|000019e0| 2c 20 72 75 6c 65 73 20 | 61 72 65 20 69 6e 74 65 |, rules |are inte|
|000019f0| 72 6c 65 61 76 65 64 2c | 20 73 6f 20 73 69 6d 69 |rleaved,| so simi|
|00001a00| 6c 61 72 20 72 75 6c 65 | 73 20 65 78 65 63 75 74 |lar rule|s execut|
|00001a10| 65 20 71 75 69 63 6b 6c | 79 3b 00 2a 18 3b a5 20 |e quickl|y;.*.;. |
|00001a20| 20 69 74 20 75 73 65 73 | 20 64 79 6e 61 6d 69 63 | it uses| dynamic|
|00001a30| 20 74 79 70 65 73 20 2d | 20 74 79 70 65 73 20 6d | types -| types m|
|00001a40| 61 79 20 62 65 20 63 68 | 65 63 6b 65 64 20 61 74 |ay be ch|ecked at|
|00001a50| 20 72 75 6e 74 69 6d 65 | 3b 00 00 2a 18 45 a5 20 | runtime|;..*.E. |
|00001a60| 20 69 74 20 69 73 20 69 | 6e 20 61 20 73 65 6e 73 | it is i|n a sens|
|00001a70| 65 20 61 20 6d 69 6e 69 | 6d 61 6c 20 6c 61 6e 67 |e a mini|mal lang|
|00001a80| 75 61 67 65 20 2d 20 69 | 74 20 6f 6e 6c 79 20 68 |uage - i|t only h|
|00001a90| 61 73 20 61 20 73 69 6d | 70 6c 65 20 73 79 6e 74 |as a sim|ple synt|
|00001aa0| 61 78 3b 00 00 2a 18 5e | a5 20 20 61 6c 74 68 6f |ax;..*.^|. altho|
|00001ab0| 75 67 68 20 6d 61 6b 69 | 6e 67 20 65 78 74 65 6e |ugh maki|ng exten|
|00001ac0| 73 69 76 65 20 75 73 65 | 20 6f 66 20 6c 69 73 74 |sive use| of list|
|00001ad0| 73 2c 20 69 74 20 6e 65 | 69 74 68 65 72 20 68 61 |s, it ne|ither ha|
|00001ae0| 73 20 6e 6f 74 20 72 65 | 71 75 69 72 65 73 20 61 |s not re|quires a|
|00001af0| 6e 79 20 67 61 72 62 61 | 67 65 20 63 6f 6c 6c 65 |ny garba|ge colle|
|00001b00| 63 74 69 6f 6e 20 00 28 | 01 d0 00 00 34 6d 65 63 |ction .(|....4mec|
|00001b10| 68 61 6e 69 73 6d 20 2d | 20 61 6c 6c 20 66 75 6e |hanism -| all fun|
|00001b20| 63 74 69 6f 6e 73 20 63 | 6c 65 61 6e 20 75 70 20 |ctions c|lean up |
|00001b30| 61 66 74 65 72 20 74 68 | 65 6d 73 65 6c 76 65 73 |after th|emselves|
|00001b40| 3b 00 00 2b 10 18 54 a5 | 20 20 54 68 65 20 52 65 |;..+..T.| The Re|
|00001b50| 57 72 69 74 65 20 63 6f | 6d 70 69 6c 65 72 20 69 |Write co|mpiler i|
|00001b60| 73 20 72 65 6c 61 74 69 | 76 65 6c 79 20 73 6d 61 |s relati|vely sma|
|00001b70| 6c 6c 20 61 6e 64 20 63 | 6c 65 61 6e 20 61 6e 64 |ll and c|lean and|
|00001b80| 20 77 72 69 74 74 65 6e | 20 69 6e 20 52 65 57 72 | written| in ReWr|
|00001b90| 69 74 65 20 69 74 73 65 | 6c 66 2e 00 00 03 00 15 |ite itse|lf......|
|00001ba0| 00 04 01 00 00 0d 00 12 | 00 28 02 05 00 00 13 53 |........|.(.....S|
|00001bb0| 79 73 74 65 6d 20 72 65 | 71 75 69 72 65 6d 65 6e |ystem re|quiremen|
|00001bc0| 74 73 00 03 00 14 00 04 | 00 00 00 0d 00 0c 00 2b |ts......|.......+|
|00001bd0| 10 19 27 52 65 57 72 69 | 74 65 20 77 69 6c 6c 20 |..'ReWri|te will |
|00001be0| 72 75 6e 20 6f 6e 20 61 | 6e 79 20 4d 61 63 69 6e |run on a|ny Macin|
|00001bf0| 74 6f 73 68 20 77 69 74 | 68 20 00 1a ff ff 00 00 |tosh wit|h ......|
|00001c00| 00 00 00 04 01 00 00 15 | 1d 00 00 29 c6 14 61 74 |........|...)..at|
|00001c10| 20 6c 65 61 73 74 20 61 | 20 36 38 30 32 30 20 43 | least a| 68020 C|
|00001c20| 50 55 00 1a 00 00 00 00 | 00 00 00 04 00 00 00 15 |PU......|........|
|00001c30| 15 40 00 29 6a 1c 20 61 | 6e 64 20 61 74 20 6c 65 |.@.)j. a|nd at le|
|00001c40| 61 73 74 20 31 20 4d 65 | 67 61 62 79 74 65 20 6f |ast 1 Me|gabyte o|
|00001c50| 66 20 00 28 02 2a 00 00 | 23 6d 65 6d 6f 72 79 20 |f .(.*..|#memory |
|00001c60| 74 6f 20 72 75 6e 20 69 | 74 2e 20 49 74 20 70 72 |to run i|t. It pr|
|00001c70| 6f 62 61 62 6c 79 20 61 | 6c 73 6f 20 00 1a ff ff |obably a|lso ....|
|00001c80| 00 00 00 00 00 04 01 00 | 00 15 ca 40 00 29 a5 1c |........|...@.)..|
|00001c90| 72 65 71 75 69 72 65 73 | 20 53 79 73 74 65 6d 20 |requires| System |
|00001ca0| 37 2e 30 20 6f 72 20 6c | 61 74 65 72 00 1a 00 00 |7.0 or l|ater....|
|00001cb0| 00 00 00 00 00 04 00 00 | 00 15 64 c0 00 29 8e 20 |........|..d..). |
|00001cc0| 2e 20 49 74 20 77 69 6c | 6c 20 72 75 6e 20 69 6e |. It wil|l run in|
|00001cd0| 20 65 6d 75 6c 61 74 69 | 6f 6e 20 6f 6e 20 61 20 | emulati|on on a |
|00001ce0| 00 28 02 36 00 00 4c 50 | 6f 77 65 72 4d 61 63 2c |.(.6..LP|owerMac,|
|00001cf0| 20 61 6c 74 68 6f 75 67 | 68 20 77 69 6c 6c 20 74 | althoug|h will t|
|00001d00| 61 6b 65 20 6e 6f 20 61 | 64 76 61 6e 74 61 67 65 |ake no a|dvantage|
|00001d10| 20 6f 66 20 74 68 65 20 | 61 62 69 6c 69 74 79 20 | of the |ability |
|00001d20| 74 6f 20 72 75 6e 20 6e | 61 74 69 76 65 20 63 6f |to run n|ative co|
|00001d30| 64 65 2e 00 00 2b 10 18 | 53 52 65 57 72 69 74 65 |de...+..|SReWrite|
|00001d40| 20 77 61 73 20 64 65 73 | 69 67 6e 65 64 20 6d 6f | was des|igned mo|
|00001d50| 73 74 6c 79 20 6f 6e 20 | 61 20 4d 61 63 69 6e 74 |stly on |a Macint|
|00001d60| 6f 73 68 20 43 6c 61 73 | 73 69 63 2c 20 74 68 65 |osh Clas|sic, the|
|00001d70| 6e 20 6d 6f 76 65 64 20 | 74 6f 20 61 6e 20 4c 43 |n moved |to an LC|
|00001d80| 20 49 49 49 20 28 77 68 | 65 72 65 20 00 28 02 5a | III (wh|ere .(.Z|
|00001d90| 00 00 2b 36 38 30 30 30 | 20 63 6f 6d 70 61 74 69 |..+68000| compati|
|00001da0| 62 69 6c 69 74 79 20 77 | 61 73 20 71 75 69 63 6b |bility w|as quick|
|00001db0| 6c 79 20 61 62 61 6e 64 | 6f 6e 65 64 29 2e 00 0c |ly aband|oned)...|
|00001dc0| 00 00 00 14 00 01 00 0a | 00 00 00 00 00 13 01 d0 |........|........|
|00001dd0| 00 23 00 00 00 01 00 0a | ff dc ff dc 00 13 01 f4 |.#......|........|
|00001de0| 00 03 00 15 00 28 00 0a | 00 6c 1f 2d 20 52 65 57 |.....(..|.l.- ReW|
|00001df0| 72 69 74 65 20 30 2e 32 | 2e 37 20 64 6f 63 75 6d |rite 0.2|.7 docum|
|00001e00| 65 6e 74 61 74 69 6f 6e | 20 2d 00 28 00 0a 01 8c |entation| -.(....|
|00001e10| 05 50 61 67 65 20 00 15 | d9 c0 00 29 1f 01 34 00 |.Page ..|...)..4.|
|00001e20| 00 ff 00 00 0a a0 0a a0 | 00 00 00 00 03 18 02 64 |........|.......d|
|00001e30| 00 11 02 ff 0c 00 ff ff | ff ff 00 00 00 00 00 00 |........|........|
|00001e40| 00 00 02 64 00 00 03 18 | 00 00 00 00 00 00 00 1e |...d....|........|
|00001e50| 00 0c ff b6 ff bc 00 01 | 00 0a 00 00 00 00 02 90 |........|........|
|00001e60| 01 d0 00 07 00 00 00 00 | 00 23 00 00 00 23 00 00 |........|.#...#..|
|00001e70| 00 0c 00 00 ff ec 00 01 | 00 0a 00 00 00 00 02 7c |........|.......||
|00001e80| 01 d0 00 23 00 00 00 01 | 00 0a ff dc ff dc 02 7c |...#....|.......||
|00001e90| 01 f4 00 2c 00 0c 00 15 | 09 48 65 6c 76 65 74 69 |...,....|.Helveti|
|00001ea0| 63 61 00 03 00 15 00 04 | 01 00 00 0d 00 12 00 2e |ca......|........|
|00001eb0| 00 04 00 00 01 00 00 2a | 0e 0f 47 65 74 74 69 6e |.......*|..Gettin|
|00001ec0| 67 20 73 74 61 72 74 65 | 64 00 00 2c 00 08 00 14 |g starte|d..,....|
|00001ed0| 05 54 69 6d 65 73 00 03 | 00 14 00 04 00 00 00 0d |.Times..|........|
|00001ee0| 00 0c 00 2a 19 43 54 68 | 69 73 20 73 65 63 74 69 |...*.CTh|is secti|
|00001ef0| 6f 6e 20 67 69 76 65 73 | 20 61 20 62 72 69 65 66 |on gives| a brief|
|00001f00| 20 69 64 65 61 20 6f 66 | 20 68 6f 77 20 74 6f 20 | idea of| how to |
|00001f10| 67 65 74 20 73 74 61 72 | 74 65 64 20 75 73 69 6e |get star|ted usin|
|00001f20| 67 20 52 65 57 72 69 74 | 65 00 00 03 00 15 00 04 |g ReWrit|e.......|
|00001f30| 01 00 00 0d 00 0e 00 2a | 1a 10 42 65 66 6f 72 65 |.......*|..Before|
|00001f40| 20 79 6f 75 20 73 74 61 | 72 74 00 03 00 14 00 04 | you sta|rt......|
|00001f50| 00 00 00 0d 00 0c 00 2b | 10 19 5c 59 6f 75 20 6e |.......+|..\You n|
|00001f60| 65 65 64 20 74 6f 20 62 | 65 20 75 73 69 6e 67 20 |eed to b|e using |
|00001f70| 61 20 4d 61 63 69 6e 74 | 6f 73 68 20 63 6f 6d 70 |a Macint|osh comp|
|00001f80| 75 74 65 72 20 77 69 74 | 68 20 61 20 36 38 30 32 |uter wit|h a 6802|
|00001f90| 30 20 6f 72 20 62 65 74 | 74 65 72 2c 20 53 79 73 |0 or bet|ter, Sys|
|00001fa0| 74 65 6d 20 37 20 61 6e | 64 20 61 74 20 6c 65 61 |tem 7 an|d at lea|
|00001fb0| 73 74 20 31 2e 35 20 00 | 00 28 00 66 00 00 16 6d |st 1.5 .|.(.f...m|
|00001fc0| 65 67 61 62 79 74 65 73 | 20 6f 66 20 66 72 65 65 |egabytes| of free|
|00001fd0| 20 52 41 4d 2e 00 00 2b | 10 18 5b 46 69 72 73 74 | RAM...+|..[First|
|00001fe0| 20 6d 61 6b 65 20 73 75 | 72 65 20 74 68 61 74 20 | make su|re that |
|00001ff0| 79 6f 75 20 68 61 76 65 | 20 74 68 65 20 77 68 6f |you have| the who|
|00002000| 6c 65 20 70 61 63 6b 61 | 67 65 2e 20 49 66 20 79 |le packa|ge. If y|
|00002010| 6f 75 20 64 6f 77 6e 6c | 6f 61 64 65 64 20 69 74 |ou downl|oaded it|
|00002020| 20 66 72 6f 6d 20 69 6e | 66 6f 2d 6d 61 63 2c 20 | from in|fo-mac, |
|00002030| 52 6f 79 d5 73 20 00 28 | 00 8a 00 00 32 57 65 62 |Roy.s .(|....2Web|
|00002040| 20 70 61 67 65 20 6f 72 | 20 66 72 6f 6d 20 43 44 | page or| from CD|
|00002050| 20 74 68 65 6e 20 65 76 | 65 72 79 74 68 69 6e 67 | then ev|erything|
|00002060| 20 77 69 6c 6c 20 62 65 | 20 74 68 65 72 65 2e 00 | will be| there..|
|00002070| 00 2a 18 0e 54 68 65 20 | 66 69 6c 65 73 20 61 72 |.*..The |files ar|
|00002080| 65 3a 00 2b 10 0c 14 52 | 65 57 72 69 74 65 20 30 |e:.+...R|eWrite 0|
|00002090| 2e 32 2e 37 20 52 45 41 | 44 4d 45 00 00 2a 0c 0d |.2.7 REA|DME..*..|
|000020a0| 52 65 57 72 69 74 65 20 | 30 2e 32 2e 37 00 00 29 |ReWrite |0.2.7..)|
|000020b0| a2 11 28 74 68 65 20 61 | 70 70 6c 69 63 61 74 69 |..(the a|pplicati|
|000020c0| 6f 6e 29 00 00 28 00 c6 | 00 10 12 52 65 57 72 69 |on)..(..|...ReWri|
|000020d0| 74 65 20 30 2e 32 2e 37 | 20 44 6f 63 73 00 00 29 |te 0.2.7| Docs..)|
|000020e0| a2 0f 28 74 68 69 73 20 | 64 6f 63 75 6d 65 6e 74 |..(this |document|
|000020f0| 29 00 00 28 00 d2 00 10 | 0b 65 44 4f 43 20 52 65 |)..(....|.eDOC Re|
|00002100| 61 64 65 72 00 2a 0c 0e | 53 61 6d 70 6c 65 20 50 |ader.*..|Sample P|
|00002110| 72 6f 6a 65 63 74 00 29 | a2 0a 28 61 20 66 6f 6c |roject.)|..(a fol|
|00002120| 64 65 72 29 00 28 00 f6 | 00 00 32 53 61 6d 70 6c |der).(..|..2Sampl|
|00002130| 65 20 50 72 6f 6a 65 63 | 74 20 73 68 6f 75 6c 64 |e Projec|t should|
|00002140| 20 63 6f 6e 74 61 69 6e | 20 74 68 65 20 66 6f 6c | contain| the fol|
|00002150| 6c 6f 77 69 6e 67 20 66 | 69 6c 65 73 3a 00 00 1a |lowing f|iles:...|
|00002160| ff ff 00 00 ff ff 00 2c | 00 0a 00 16 07 43 6f 75 |.......,|.....Cou|
|00002170| 72 69 65 72 00 03 00 16 | 00 2a 0d 2a 30 50 72 6f |rier....|.*.*0Pro|
|00002180| 6a 65 63 74 20 20 20 72 | 2e 73 65 74 75 70 20 20 |ject r|.setup |
|00002190| 20 72 2e 67 6f 20 20 20 | 6c 2e 73 65 74 75 70 20 | r.go |l.setup |
|000021a0| 20 20 6c 2e 67 6f 00 1a | 00 00 00 00 00 00 00 03 | l.go..|........|
|000021b0| 00 14 00 2b 10 18 44 49 | 66 20 79 6f 75 20 61 72 |...+..DI|f you ar|
|000021c0| 65 20 72 75 6e 6e 69 6e | 67 20 52 65 57 72 69 74 |e runnin|g ReWrit|
|000021d0| 65 20 6f 66 66 20 61 20 | 43 44 2c 20 69 74 20 69 |e off a |CD, it i|
|000021e0| 73 20 6d 6f 73 74 20 69 | 6d 70 6f 72 74 61 6e 74 |s most i|mportant|
|000021f0| 20 74 68 61 74 20 74 68 | 65 20 27 00 00 1a ee ee | that th|e '.....|
|00002200| 00 00 00 00 00 04 01 00 | 00 15 8e 00 00 28 01 1b |........|.....(..|
|00002210| 01 4f 0e 53 61 6d 70 6c | 65 20 50 72 6f 6a 65 63 |.O.Sampl|e Projec|
|00002220| 74 00 00 1a 00 00 00 00 | 00 00 00 04 00 00 00 15 |t.......|........|
|00002230| d8 40 00 29 4e 0c 27 20 | 66 6f 6c 64 65 72 20 62 |.@.)N.' |folder b|
|00002240| 65 20 00 1a ee ee 00 00 | 00 00 00 04 01 00 00 28 |e ......|.......(|
|00002250| 01 27 00 00 44 63 6f 70 | 69 65 64 20 6f 6e 74 6f |.'..Dcop|ied onto|
|00002260| 20 61 20 77 72 69 74 61 | 62 6c 65 20 6d 65 64 69 | a writa|ble medi|
|00002270| 61 20 73 75 63 68 20 61 | 73 20 61 20 68 61 72 64 |a such a|s a hard|
|00002280| 20 64 69 73 6b 20 61 6e | 64 20 75 73 65 64 20 66 | disk an|d used f|
|00002290| 72 6f 6d 20 74 68 65 72 | 65 00 00 1a 00 00 00 00 |rom ther|e.......|
|000022a0| 00 00 00 04 00 00 00 15 | 1b c0 00 28 01 27 01 64 |........|...(.'.d|
|000022b0| 15 2c 20 61 73 20 52 65 | 57 72 69 74 65 20 61 73 |., as Re|Write as|
|000022c0| 73 75 6d 65 73 20 00 28 | 01 33 00 00 64 74 68 61 |sumes .(|.3..dtha|
|000022d0| 74 20 69 74 20 63 61 6e | 20 75 70 64 61 74 65 20 |t it can| update |
|000022e0| 74 68 65 20 6f 62 6a 65 | 63 74 20 66 69 6c 65 73 |the obje|ct files|
|000022f0| 2e 20 54 68 65 20 52 65 | 57 72 69 74 65 20 61 70 |. The Re|Write ap|
|00002300| 70 6c 69 63 61 74 69 6f | 6e 20 64 6f 65 73 20 6e |plicatio|n does n|
|00002310| 6f 74 20 6d 6f 64 69 66 | 79 20 69 74 73 65 6c 66 |ot modif|y itself|
|00002320| 2c 20 73 6f 20 63 61 6e | 20 62 65 20 6c 65 66 74 |, so can| be left|
|00002330| 20 00 00 2a 0c 0a 6f 6e | 20 74 68 65 20 43 44 2e | ..*..on| the CD.|
|00002340| 00 1a ee ee 00 00 00 00 | 00 04 01 00 00 2b 10 18 |........|.....+..|
|00002350| 04 4e 6f 74 65 00 00 1a | 00 00 00 00 00 00 00 04 |.Note...|........|
|00002360| 00 00 00 15 7b 80 00 29 | 18 28 3a 20 69 74 20 69 |....{..)|.(: it i|
|00002370| 73 20 61 20 67 6f 6f 64 | 20 69 64 65 61 20 74 6f |s a good| idea to|
|00002380| 20 6d 61 6b 65 20 61 20 | 62 61 63 6b 75 70 20 6f | make a |backup o|
|00002390| 66 20 00 15 17 00 00 29 | ba 04 74 68 65 20 00 04 |f .....)|..the ..|
|000023a0| 01 00 00 15 c0 00 00 29 | 11 0e 53 61 6d 70 6c 65 |.......)|..Sample|
|000023b0| 20 50 72 6f 6a 65 63 74 | 00 04 00 00 00 15 0a 40 | Project|.......@|
|000023c0| 00 29 4f 03 20 66 6f 00 | 00 15 08 80 00 29 0d 1c |.)O. fo.|.....)..|
|000023d0| 6c 64 65 72 20 69 6e 20 | 61 6e 79 20 63 61 73 65 |lder in |any case|
|000023e0| 2c 20 61 73 20 69 6e 20 | 74 68 65 20 00 28 01 63 |, as in |the .(.c|
|000023f0| 00 00 3c 66 6f 6c 6c 6f | 77 69 6e 67 20 73 65 63 |..<follo|wing sec|
|00002400| 74 69 6f 6e 20 77 65 20 | 77 69 6c 6c 20 6d 61 6b |tion we |will mak|
|00002410| 65 20 73 6f 6d 65 20 63 | 68 61 6e 67 65 73 20 74 |e some c|hanges t|
|00002420| 6f 20 74 68 65 20 63 6f | 6e 74 65 6e 74 73 2e 00 |o the co|ntents..|
|00002430| 00 03 00 15 00 04 01 00 | 00 0d 00 0e 00 2a 1a 05 |........|.....*..|
|00002440| 55 73 69 6e 67 00 00 15 | 62 00 00 29 27 10 20 74 |Using...|b..)'. t|
|00002450| 68 65 20 41 70 70 6c 69 | 63 61 74 69 6f 6e 00 03 |he Appli|cation..|
|00002460| 00 14 00 04 00 00 00 0d | 00 0c 00 28 01 96 00 00 |........|...(....|
|00002470| 02 a5 20 00 00 15 b2 c0 | 00 29 07 5e 44 6f 75 62 |.. .....|.).^Doub|
|00002480| 6c 65 2d 63 6c 69 63 6b | 20 74 68 65 20 61 70 70 |le-click| the app|
|00002490| 6c 69 63 61 74 69 6f 6e | 20 52 65 57 72 69 74 65 |lication| ReWrite|
|000024a0| 20 30 2e 32 2e 37 2e 20 | 28 44 6f 6e d5 74 20 6f | 0.2.7. |(Don.t o|
|000024b0| 70 65 6e 20 52 65 57 72 | 69 74 65 20 62 79 20 64 |pen ReWr|ite by d|
|000024c0| 6f 75 62 6c 65 2d 63 6c | 69 63 6b 69 6e 67 20 6f |ouble-cl|icking o|
|000024d0| 6e 65 20 6f 66 20 69 74 | 73 20 00 28 01 a2 00 00 |ne of it|s .(....|
|000024e0| 63 66 69 6c 65 73 2c 20 | 61 73 20 52 65 57 72 69 |cfiles, |as ReWri|
|000024f0| 74 65 20 77 69 6c 6c 20 | 70 72 6f 6d 70 74 20 66 |te will |prompt f|
|00002500| 6f 72 20 61 20 66 69 6c | 65 20 69 6e 20 61 6e 79 |or a fil|e in any|
|00002510| 20 63 61 73 65 20 61 6e | 64 20 74 68 65 20 64 6f | case an|d the do|
|00002520| 75 62 6c 65 2d 63 6c 69 | 63 6b 65 64 20 66 69 6c |uble-cli|cked fil|
|00002530| 65 20 77 69 6c 6c 20 62 | 65 20 6f 70 65 6e 65 64 |e will b|e opened|
|00002540| 20 61 73 20 00 2a 0c 0d | 61 20 74 65 78 74 20 66 | as .*..|a text f|
|00002550| 69 6c 65 2e 29 00 00 2a | 18 62 a5 20 41 20 73 65 |ile.)..*|.b. A se|
|00002560| 6c 65 63 74 69 6f 6e 20 | 62 6f 78 20 77 69 6c 6c |lection |box will|
|00002570| 20 62 65 20 62 72 6f 75 | 67 68 74 20 75 70 2c 20 | be brou|ght up, |
|00002580| 61 73 6b 69 6e 67 20 79 | 6f 75 20 74 6f 20 70 69 |asking y|ou to pi|
|00002590| 63 6b 20 61 20 70 72 6f | 6a 65 63 74 20 66 69 6c |ck a pro|ject fil|
|000025a0| 65 2e 20 46 6f 72 20 74 | 68 65 20 6d 6f 6d 65 6e |e. For t|he momen|
|000025b0| 74 2c 20 6e 61 76 69 67 | 61 74 65 20 00 2a 0d 17 |t, navig|ate .*..|
|000025c0| 74 6f 20 61 6e 64 20 73 | 65 6c 65 63 74 20 74 68 |to and s|elect th|
|000025d0| 65 20 66 69 6c 65 20 00 | 00 1a ff ff 00 00 ff ff |e file .|........|
|000025e0| 00 03 00 16 00 15 1f 00 | 00 29 64 08 30 50 72 6f |........|.)d.0Pro|
|000025f0| 6a 65 63 74 00 1a 00 00 | 00 00 00 00 00 03 00 14 |ject....|........|
|00002600| 00 15 1f 00 00 29 38 08 | 20 69 6e 20 74 68 65 20 |.....)8.| in the |
|00002610| 00 1a ff ff 00 00 ff ff | 00 03 00 16 00 15 1d 80 |........|........|
|00002620| 00 29 21 07 53 61 6d 70 | 6c 65 20 00 00 15 1d 80 |.)!.Samp|le .....|
|00002630| 00 29 31 07 50 72 6f 6a | 65 63 74 00 00 1a 00 00 |.)1.Proj|ect.....|
|00002640| 00 00 00 00 00 03 00 14 | 00 15 1d 80 00 29 31 06 |........|.....)1.|
|00002650| 20 66 69 6c 65 2e 00 28 | 01 eb 00 00 24 52 65 57 | file..(|....$ReW|
|00002660| 72 69 74 65 20 77 69 6c | 6c 20 6e 6f 77 20 6f 70 |rite wil|l now op|
|00002670| 65 6e 20 61 20 77 69 6e | 64 6f 77 20 63 61 6c 6c |en a win|dow call|
|00002680| 65 00 00 15 6e 40 00 29 | bc 02 64 20 00 04 01 00 |e...n@.)|..d ....|
|00002690| 00 15 6e 40 00 29 09 06 | 4f 75 74 70 75 74 00 04 |..n@.)..|Output..|
|000026a0| 00 00 00 15 c3 80 00 29 | 25 02 20 77 00 15 6d 40 |.......)|%. w..m@|
|000026b0| 00 29 0c 2e 69 74 68 20 | 74 68 65 20 63 6f 6e 74 |.)..ith |the cont|
|000026c0| 65 6e 74 73 20 73 6f 6d | 65 74 68 69 6e 67 20 6c |ents som|ething l|
|000026d0| 69 6b 65 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |ike the |followin|
|000026e0| 67 3a 00 1a 00 00 00 00 | ff ff 00 2c 00 09 00 03 |g:......|...,....|
|000026f0| 06 47 65 6e 65 76 61 00 | 00 03 00 03 00 0d 00 09 |.Geneva.|........|
|00002700| 00 28 02 04 00 00 45 52 | 65 57 72 69 74 65 20 30 |.(....ER|eWrite 0|
|00002710| 2e 32 2e 37 2c 20 43 6f | 70 79 72 69 67 68 74 20 |.2.7, Co|pyright |
|00002720| 28 43 29 20 31 39 39 34 | 2d 31 39 39 36 20 52 6f |(C) 1994|-1996 Ro|
|00002730| 79 20 57 61 72 64 2e 20 | 41 6c 6c 20 72 69 67 68 |y Ward. |All righ|
|00002740| 74 73 20 72 65 73 65 72 | 76 65 64 2e 00 2a 0c 09 |ts reser|ved..*..|
|00002750| 4c 69 6e 6b 20 64 6f 6e | 65 00 00 2a 0c 12 4d 65 |Link don|e..*..Me|
|00002760| 6d 6f 72 79 20 69 6e 69 | 74 69 61 6c 69 7a 65 64 |mory ini|tialized|
|00002770| 00 1a 00 00 00 00 00 00 | 00 03 00 14 00 0d 00 0c |........|........|
|00002780| 00 2a 17 5f 54 68 69 73 | 20 77 69 6e 64 6f 77 20 |.*._This| window |
|00002790| 69 73 20 77 68 65 72 65 | 20 61 6c 6c 20 74 68 65 |is where| all the|
|000027a0| 20 6f 75 74 70 75 74 20 | 6f 66 20 52 65 57 72 69 | output |of ReWri|
|000027b0| 74 65 20 77 69 6c 6c 20 | 67 6f 2e 20 49 74 20 69 |te will |go. It i|
|000027c0| 73 20 6a 75 73 74 20 61 | 20 54 65 78 74 45 64 69 |s just a| TextEdi|
|000027d0| 74 20 77 69 6e 64 6f 77 | 20 73 6f 20 63 61 6e 20 |t window| so can |
|000027e0| 62 65 20 00 00 2a 0c 62 | 65 64 69 74 65 64 20 69 |be ..*.b|edited i|
|000027f0| 6e 20 74 68 65 20 75 73 | 75 61 6c 20 77 61 79 2c |n the us|ual way,|
|00002800| 20 62 75 74 20 74 68 69 | 73 20 77 69 6c 6c 20 6e | but thi|s will n|
|00002810| 6f 74 20 61 66 66 65 63 | 74 20 52 65 57 72 69 74 |ot affec|t ReWrit|
|00002820| 65 20 65 78 63 65 70 74 | 20 74 68 61 74 20 6f 75 |e except| that ou|
|00002830| 74 70 75 74 20 77 69 6c | 6c 20 61 6c 77 61 79 73 |tput wil|l always|
|00002840| 20 6f 63 63 75 72 20 61 | 74 20 00 2a 0c 14 74 68 | occur a|t .*..th|
|00002850| 65 20 69 6e 73 65 72 74 | 69 6f 6e 20 70 6f 69 6e |e insert|ion poin|
|00002860| 74 2e 00 0c 00 00 00 14 | 00 01 00 0a 00 00 00 00 |t.......|........|
|00002870| 00 13 01 d0 00 23 00 00 | 00 01 00 0a ff dc ff dc |.....#..|........|
|00002880| 00 13 01 f4 00 03 00 15 | 00 28 00 0a 00 6c 1f 2d |........|.(...l.-|
|00002890| 20 52 65 57 72 69 74 65 | 20 30 2e 32 2e 37 20 64 | ReWrite| 0.2.7 d|
|000028a0| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 20 2d 00 28 |ocumenta|tion -.(|
|000028b0| 00 0a 01 8c 05 50 61 67 | 65 20 00 15 d9 c0 00 29 |.....Pag|e .....)|
|000028c0| 1f 01 35 00 00 ff 00 00 | 0d d6 0d d6 00 00 00 00 |..5.....|........|
|000028d0| 03 18 02 64 00 11 02 ff | 0c 00 ff ff ff ff 00 00 |...d....|........|
|000028e0| 00 00 00 00 00 00 02 64 | 00 00 03 18 00 00 00 00 |.......d|........|
|000028f0| 00 00 00 1e 00 0c ff b6 | ff bc 00 01 00 0a 00 00 |........|........|
|00002900| 00 00 02 90 01 d0 00 07 | 00 00 00 00 00 23 00 00 |........|.....#..|
|00002910| 00 23 00 00 00 0c 00 00 | ff ec 00 01 00 0a 00 00 |.#......|........|
|00002920| 00 00 02 7c 01 d0 00 23 | 00 00 00 01 00 0a ff dc |...|...#|........|
|00002930| ff dc 02 7c 01 f4 00 2c | 00 08 00 14 05 54 69 6d |...|...,|.....Tim|
|00002940| 65 73 00 03 00 14 00 0d | 00 0c 00 2e 00 04 00 00 |es......|........|
|00002950| 01 00 00 2a 09 18 54 68 | 65 20 72 69 67 68 74 6d |...*..Th|e rightm|
|00002960| 6f 73 74 20 6d 65 6e 75 | 20 28 74 68 65 20 00 04 |ost menu| (the ..|
|00002970| 01 00 00 15 77 40 00 29 | 7a 07 57 69 6e 64 6f 77 |....w@.)|z.Window|
|00002980| 73 00 00 04 00 00 00 15 | 78 c0 00 29 30 28 20 6d |s.......|x..)0( m|
|00002990| 65 6e 75 29 20 77 69 6c | 6c 20 63 6f 6e 74 61 69 |enu) wil|l contai|
|000029a0| 6e 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |n the fo|llowing |
|000029b0| 69 74 65 6d 73 3a 00 0c | ff 3f ff e8 00 01 00 0a |items:..|.?......|
|000029c0| 00 00 00 00 00 5f 00 4e | 00 23 00 00 00 1a ff ff |....._.N|.#......|
|000029d0| ff ff ff ff 00 09 00 00 | 00 00 00 00 00 00 00 31 |........|.......1|
|000029e0| 00 13 00 01 00 5d 00 41 | 00 23 00 00 00 a1 00 b6 |.....].A|.#......|
|000029f0| 00 04 00 01 00 01 00 a1 | 00 b6 00 04 00 01 00 01 |........|........|
|00002a00| 00 1a 00 00 00 00 00 00 | 00 07 00 01 00 01 00 09 |........|........|
|00002a10| ff ff ff ff ff ff ff ff | 00 38 00 31 00 01 00 01 |........|.8.1....|
|00002a20| 00 14 00 4c 00 07 00 00 | 00 00 00 23 00 00 00 a1 |...L....|...#....|
|00002a30| 00 b6 00 04 00 01 00 01 | 00 a1 00 b6 00 04 00 01 |........|........|
|00002a40| 00 01 00 07 00 01 00 01 | 00 38 00 0c ff f7 ff fd |........|.8......|
|00002a50| 00 01 00 0a 00 00 00 00 | 00 0f 00 3e 00 07 00 00 |........|...>....|
|00002a60| 00 00 00 23 00 00 00 1a | ff ff ff ff ff ff 00 01 |...#....|........|
|00002a70| 00 0a ff dc ff fb 00 0f | 00 43 00 03 00 00 00 05 |........|.C......|
|00002a80| 00 03 00 28 00 0c 00 00 | 01 57 00 29 0c 06 69 6e |...(....|.W.)..in|
|00002a90| 64 6f 77 73 00 1a 00 00 | 00 00 00 00 00 0c ff ff |dows....|........|
|00002aa0| ff ee 00 01 00 0a 00 00 | 00 00 00 40 00 35 00 23 |........|...@.5.#|
|00002ab0| 00 00 00 01 00 0a ff dc | ff fb 00 40 00 3a 00 05 |........|...@.:..|
|00002ac0| 00 01 00 28 00 0c 00 00 | 06 4f 75 74 70 75 74 00 |...(....|.Output.|
|00002ad0| 00 2a 20 05 73 65 74 75 | 70 00 00 2a 10 02 67 6f |.* .setu|p..*..go|
|00002ae0| 00 0c 00 0a 00 15 00 01 | 00 0a 00 00 00 00 00 5f |........|......._|
|00002af0| 00 4e 00 22 00 3c 00 10 | 00 00 00 a1 00 b6 00 04 |.N.".<..|........|
|00002b00| 00 01 00 01 00 a1 00 b6 | 00 04 00 01 00 01 00 1a |........|........|
|00002b10| 77 77 77 77 77 77 00 07 | 00 01 00 01 00 22 00 2c |wwwwww..|.....".,|
|00002b20| 00 3f c3 00 00 1a 00 00 | 00 00 00 00 00 0c 00 c1 |.?......|........|
|00002b30| 00 18 00 01 00 0a ff dc | ff dc 02 7c 01 f4 00 03 |........|...|....|
|00002b40| 00 14 00 2a 47 64 54 68 | 65 20 66 69 6c 65 73 20 |...*GdTh|e files |
|00002b50| 62 65 6c 6f 77 20 74 68 | 65 20 64 69 76 69 64 65 |below th|e divide|
|00002b60| 72 20 6c 69 6e 65 20 69 | 73 20 74 68 65 20 6c 69 |r line i|s the li|
|00002b70| 73 74 20 6f 66 20 66 69 | 6c 65 73 20 74 68 65 20 |st of fi|les the |
|00002b80| 52 65 57 72 69 74 65 20 | 77 69 6c 6c 20 75 73 65 |ReWrite |will use|
|00002b90| 20 61 73 20 73 6f 75 72 | 63 65 20 66 69 6c 65 73 | as sour|ce files|
|00002ba0| 2e 20 59 6f 75 20 63 61 | 6e 20 00 2a 0c 5e 6f 70 |. You ca|n .*.^op|
|00002bb0| 65 6e 20 74 68 65 6d 20 | 62 79 20 73 65 6c 65 63 |en them |by selec|
|00002bc0| 74 69 6e 67 20 74 68 65 | 20 66 69 6c 65 20 79 6f |ting the| file yo|
|00002bd0| 75 20 77 61 6e 74 20 69 | 6e 20 74 68 65 20 6d 65 |u want i|n the me|
|00002be0| 6e 75 2e 20 28 54 68 65 | 20 73 6f 75 72 63 65 20 |nu. (The| source |
|00002bf0| 66 69 6c 65 6e 61 6d 65 | 20 77 69 6c 6c 20 61 63 |filename| will ac|
|00002c00| 74 75 61 6c 6c 79 20 68 | 61 76 65 20 00 2a 0d 03 |tually h|ave .*..|
|00002c10| 61 6e 20 00 00 1a ff ff | 00 00 ff ff 00 2c 00 0a |an .....|.....,..|
|00002c20| 00 16 07 43 6f 75 72 69 | 65 72 00 03 00 16 00 15 |...Couri|er......|
|00002c30| d3 80 00 29 0e 02 72 2e | 00 1a 00 00 00 00 00 00 |...)..r.|........|
|00002c40| 00 03 00 14 00 15 d3 80 | 00 29 0e 42 20 70 72 65 |........|.).B pre|
|00002c50| 70 65 6e 64 65 64 20 74 | 6f 20 69 74 2c 20 62 75 |pended t|o it, bu|
|00002c60| 74 20 73 65 65 20 74 68 | 65 20 75 73 65 72 20 69 |t see th|e user i|
|00002c70| 6e 74 65 72 66 61 63 65 | 20 63 68 61 70 74 65 72 |nterface| chapter|
|00002c80| 20 66 6f 72 20 64 65 74 | 61 69 6c 73 29 2e 00 2c | for det|ails)..,|
|00002c90| 00 0c 00 15 09 48 65 6c | 76 65 74 69 63 61 00 03 |.....Hel|vetica..|
|00002ca0| 00 15 00 04 01 00 00 0d | 00 0e 00 28 00 b6 00 00 |........|...(....|
|00002cb0| 11 52 75 6e 6e 69 6e 67 | 20 61 20 70 72 6f 67 72 |.Running| a progr|
|00002cc0| 61 6d 00 03 00 14 00 04 | 00 00 00 0d 00 0c 00 2a |am......|.......*|
|00002cd0| 1a 02 a5 20 00 15 b2 c0 | 00 29 07 09 4f 70 65 6e |... ....|.)..Open|
|00002ce0| 20 74 68 65 20 00 00 1a | ff ff 00 00 ff ff 00 03 | the ...|........|
|00002cf0| 00 16 00 15 59 00 00 29 | 2f 02 67 6f 00 1a 00 00 |....Y..)|/.go....|
|00002d00| 00 00 00 00 00 03 00 14 | 00 15 59 00 00 29 0e 24 |........|..Y..).$|
|00002d10| 20 73 6f 75 72 63 65 20 | 66 69 6c 65 20 62 79 20 | source |file by |
|00002d20| 73 65 6c 65 63 74 69 6e | 67 20 69 74 20 69 6e 20 |selectin|g it in |
|00002d30| 74 68 65 20 00 04 01 00 | 00 15 f5 00 00 29 9c 07 |the ....|.....)..|
|00002d40| 57 69 6e 64 6f 77 73 00 | 00 04 00 00 00 15 f6 80 |Windows.|........|
|00002d50| 00 29 30 08 20 6d 65 6e | 75 2e 20 28 00 1a ee ee |.)0. men|u. (....|
|00002d60| 00 00 00 00 00 04 01 00 | 00 15 9d c0 00 29 28 05 |........|.....)(.|
|00002d70| 4e 6f 74 65 3a 00 00 1a | 00 00 00 00 00 00 00 04 |Note:...|........|
|00002d80| 00 00 00 15 97 80 00 29 | 1c 19 20 69 74 20 69 73 |.......)|.. it is|
|00002d90| 20 6d 6f 73 74 20 69 6d | 70 6f 72 74 61 6e 74 20 | most im|portant |
|00002da0| 74 6f 20 00 00 28 00 dc | 00 00 12 64 6f 20 74 68 |to ..(..|...do th|
|00002db0| 69 73 20 75 73 69 6e 67 | 20 74 68 65 20 00 00 04 |is using| the ...|
|00002dc0| 01 00 00 15 7f 00 00 29 | 52 07 57 69 6e 64 6f 77 |.......)|R.Window|
|00002dd0| 73 00 00 04 00 00 00 15 | 80 80 00 29 30 12 20 6d |s.......|...)0. m|
|00002de0| 65 6e 75 20 72 61 74 68 | 65 72 20 74 68 61 6e 20 |enu rath|er than |
|00002df0| 00 04 01 00 00 15 cb 80 | 00 29 57 05 4f 70 65 6e |........|.)W.Open|
|00002e00| c9 00 00 04 00 00 00 15 | cc 00 00 29 28 08 20 69 |........|...)(. i|
|00002e10| 6e 20 74 68 65 20 00 04 | 01 00 00 15 ca 80 00 29 |n the ..|.......)|
|00002e20| 21 04 46 69 6c 65 00 04 | 00 00 00 15 1d 80 00 29 |!.File..|.......)|
|00002e30| 14 0f 20 6d 65 6e 75 2c | 20 61 73 20 77 69 74 68 |.. menu,| as with|
|00002e40| 20 00 00 04 01 00 00 15 | 19 80 00 29 49 05 4f 70 | .......|...)I.Op|
|00002e50| 65 6e c9 00 00 04 00 00 | 00 15 1a 00 00 29 28 03 |en......|.....)(.|
|00002e60| 20 2c 20 00 00 28 00 e8 | 00 00 60 52 65 57 72 69 | , ..(..|..`ReWri|
|00002e70| 74 65 20 77 6f 6e d5 74 | 20 72 65 63 6f 67 6e 69 |te won.t| recogni|
|00002e80| 73 65 20 61 73 20 62 65 | 69 6e 67 20 61 20 73 6f |se as be|ing a so|
|00002e90| 75 72 63 65 20 66 69 6c | 65 20 61 6e 64 20 77 6f |urce fil|e and wo|
|00002ea0| 6e d5 74 20 72 65 63 6f | 6d 70 69 6c 65 20 61 6e |n.t reco|mpile an|
|00002eb0| 79 20 63 68 61 6e 67 65 | 73 29 2e 20 54 68 69 73 |y change|s). This|
|00002ec0| 20 66 69 6c 65 20 77 69 | 6c 6c 20 00 00 2a 0c 46 | file wi|ll ..*.F|
|00002ed0| 62 65 20 73 6f 6d 65 74 | 68 69 6e 67 20 6c 69 6b |be somet|hing lik|
|00002ee0| 65 20 28 74 68 65 20 61 | 63 74 75 61 6c 20 73 6f |e (the a|ctual so|
|00002ef0| 75 72 63 65 20 6d 61 79 | 20 64 69 66 66 65 72 20 |urce may| differ |
|00002f00| 66 72 6f 6d 20 74 68 61 | 74 20 73 68 6f 77 6e 20 |from tha|t shown |
|00002f10| 68 65 72 65 29 3a 00 1a | 00 00 00 00 ff ff 00 2c |here):..|.......,|
|00002f20| 00 09 00 03 06 47 65 6e | 65 76 61 00 00 03 00 03 |.....Gen|eva.....|
|00002f30| 00 0d 00 09 00 2a 19 16 | 74 6f 70 5b 5d 20 2d 3e |.....*..|top[] ->|
|00002f40| 20 48 61 6d 6d 69 6e 67 | 5b 31 30 30 5d 3b 00 2a | Hamming|[100];.*|
|00002f50| 18 36 74 6f 70 5b 5d 20 | 2d 3e 20 6f 75 74 6e 75 |.6top[] |-> outnu|
|00002f60| 6d 5b 6e 70 72 69 6d 65 | 5b 31 30 5d 2c 61 74 6f |m[nprime|[10],ato|
|00002f70| 69 32 5b 22 24 31 64 66 | 63 22 5d 2c 61 74 6f 69 |i2["$1df|c"],atoi|
|00002f80| 32 5b 22 78 22 5d 5d 3b | 00 1a 00 00 00 00 00 00 |2["x"]];|........|
|00002f90| 00 03 00 14 00 0d 00 0c | 00 2a 17 09 a5 20 53 65 |........|.*... Se|
|00002fa0| 6c 65 63 74 20 00 00 04 | 01 00 00 15 04 00 00 29 |lect ...|.......)|
|00002fb0| 28 01 47 00 00 15 59 80 | 00 29 09 01 6f 00 00 04 |(.G...Y.|.)..o...|
|00002fc0| 00 00 00 15 59 80 00 29 | 06 08 20 69 6e 20 74 68 |....Y..)|.. in th|
|00002fd0| 65 20 00 04 01 00 00 15 | 58 00 00 29 21 07 50 72 |e ......|X..)!.Pr|
|00002fe0| 6f 6a 65 63 74 00 00 04 | 00 00 00 15 a3 80 00 29 |oject...|.......)|
|00002ff0| 25 43 20 6d 65 6e 75 2e | 20 54 68 69 73 20 72 75 |%C menu.| This ru|
|00003000| 6e 73 20 74 68 65 20 70 | 72 6f 67 72 61 6d 2e 20 |ns the p|rogram. |
|00003010| 52 65 57 72 69 74 65 20 | 64 6f 65 73 20 74 68 69 |ReWrite |does thi|
|00003020| 73 20 62 79 20 6c 6f 6f | 6b 69 6e 67 20 66 6f 72 |s by loo|king for|
|00003030| 20 74 68 65 20 00 00 04 | 01 00 00 28 01 48 00 00 | the ...|...(.H..|
|00003040| 05 66 69 72 73 74 00 04 | 00 00 00 15 d0 40 00 29 |.first..|.....@.)|
|00003050| 15 01 20 00 00 15 d0 40 | 00 29 03 12 73 74 61 74 |.. ....@|.)..stat|
|00003060| 65 6d 65 6e 74 20 73 74 | 61 72 74 69 6e 67 00 1a |ement st|arting..|
|00003070| 00 00 00 00 ff ff 00 03 | 00 16 00 28 01 55 00 10 |........|...(.U..|
|00003080| 08 74 6f 70 5b 5d 20 2d | 3e 00 00 1a 00 00 00 00 |.top[] -|>.......|
|00003090| 00 00 00 03 00 14 00 28 | 01 61 00 00 28 69 6e 20 |.......(|.a..(in |
|000030a0| 74 68 65 20 6c 61 73 74 | 20 66 69 6c 65 20 28 77 |the last| file (w|
|000030b0| 68 69 63 68 20 69 6e 20 | 74 68 69 73 20 63 61 73 |hich in |this cas|
|000030c0| 65 20 69 73 20 00 00 1a | ff ff 00 00 ff ff 00 03 |e is ...|........|
|000030d0| 00 16 00 15 c6 40 00 29 | ac 02 67 6f 00 1a 00 00 |.....@.)|..go....|
|000030e0| 00 00 00 00 00 03 00 14 | 00 15 c6 40 00 29 0e 02 |........|...@.)..|
|000030f0| 29 2e 00 28 01 6e 00 00 | 1a 49 74 20 74 68 65 6e |)..(.n..|.It then|
|00003100| 20 72 75 6e 73 20 74 68 | 65 20 66 75 6e 63 74 69 | runs th|e functi|
|00003110| 6f 6e 20 00 00 1a 00 00 | 00 00 ff ff 00 03 00 16 |on .....|........|
|00003120| 00 15 cb 80 00 29 76 07 | 48 61 6d 6d 69 6e 67 00 |.....)v.|Hamming.|
|00003130| 00 1a 00 00 00 00 00 00 | 00 03 00 14 00 15 cb 80 |........|........|
|00003140| 00 29 31 19 20 67 69 76 | 69 6e 67 20 69 74 20 74 |.)1. giv|ing it t|
|00003150| 68 65 20 70 61 72 61 6d | 65 74 65 72 20 00 00 1a |he param|eter ...|
|00003160| 00 00 00 00 ff ff 00 03 | 00 16 00 15 c0 00 00 29 |........|.......)|
|00003170| 73 03 31 30 30 00 00 1a | 00 00 00 00 00 00 00 03 |s.100...|........|
|00003180| 00 14 00 15 c0 00 00 29 | 15 1d 2e 20 28 54 68 65 |.......)|... (The|
|00003190| 20 6f 74 68 65 72 20 6c | 69 6e 65 20 69 73 20 69 | other l|ine is i|
|000031a0| 67 6e 6f 72 65 64 20 00 | 00 28 01 7b 00 00 13 62 |gnored .|.(.{...b|
|000031b0| 65 63 61 75 73 65 20 6f | 6e 6c 79 20 66 69 72 73 |ecause o|nly firs|
|000031c0| 74 20 00 1a 00 00 00 00 | ff ff 00 03 00 16 00 15 |t ......|........|
|000031d0| 20 80 00 29 58 08 74 6f | 70 5b 5d 20 2d 3e 00 1a | ..)X.to|p[] ->..|
|000031e0| 00 00 00 00 00 00 00 03 | 00 14 00 15 20 80 00 29 |........|.... ..)|
|000031f0| 38 43 20 73 74 61 74 65 | 6d 65 6e 74 20 69 73 20 |8C state|ment is |
|00003200| 72 75 6e 2e 29 20 54 68 | 69 73 20 77 69 6c 6c 20 |run.) Th|is will |
|00003210| 72 65 74 75 72 6e 20 74 | 68 65 20 66 69 72 73 74 |return t|he first|
|00003220| 20 31 30 30 20 48 61 6d | 6d 69 6e 67 20 6e 75 6d | 100 Ham|ming num|
|00003230| 62 65 72 73 20 00 00 28 | 01 87 00 00 07 69 6e 20 |bers ..(|.....in |
|00003240| 74 68 65 20 00 04 01 00 | 00 15 7e 80 00 29 1e 02 |the ....|..~..)..|
|00003250| 4f 75 00 15 7f c0 00 29 | 10 04 74 70 75 74 00 04 |Ou.....)|..tput..|
|00003260| 00 00 00 15 d3 c0 00 29 | 15 07 20 77 69 6e 64 6f |.......)|.. windo|
|00003270| 77 00 00 15 7c c0 00 29 | 2a 01 3a 00 00 1a 00 00 |w...|..)|*.:.....|
|00003280| 00 00 ff ff 00 03 00 03 | 00 0d 00 09 00 28 01 a0 |........|.....(..|
|00003290| 00 00 58 31 2c 32 2c 33 | 2c 34 2c 35 2c 36 2c 38 |..X1,2,3|,4,5,6,8|
|000032a0| 2c 39 2c 31 30 2c 31 32 | 2c 31 35 2c 31 36 2c 31 |,9,10,12|,15,16,1|
|000032b0| 38 2c 32 30 2c 32 34 2c | 32 35 2c 32 37 2c 33 30 |8,20,24,|25,27,30|
|000032c0| 2c 33 32 2c 33 36 2c 34 | 30 2c 34 35 2c 34 38 2c |,32,36,4|0,45,48,|
|000032d0| 35 30 2c 35 34 2c 36 30 | 2c 36 34 2c 37 32 2c 37 |50,54,60|,64,72,7|
|000032e0| 35 2c 38 30 2c 38 31 2c | 39 30 2c 00 00 2a 0c 54 |5,80,81,|90,..*.T|
|000032f0| 39 36 2c 31 30 30 2c 31 | 30 38 2c 31 32 30 2c 31 |96,100,1|08,120,1|
|00003300| 32 35 2c 31 32 38 2c 31 | 33 35 2c 31 34 34 2c 31 |25,128,1|35,144,1|
|00003310| 35 30 2c 31 36 30 2c 31 | 36 32 2c 31 38 30 2c 31 |50,160,1|62,180,1|
|00003320| 39 32 2c 32 30 30 2c 32 | 31 36 2c 32 32 35 2c 32 |92,200,2|16,225,2|
|00003330| 34 30 2c 32 34 33 2c 32 | 35 30 2c 32 35 36 2c 32 |40,243,2|50,256,2|
|00003340| 37 30 2c 32 00 2a 0c 54 | 38 38 2c 33 30 30 2c 33 |70,2.*.T|88,300,3|
|00003350| 32 30 2c 33 32 34 2c 33 | 36 30 2c 33 37 35 2c 33 |20,324,3|60,375,3|
|00003360| 38 34 2c 34 30 30 2c 34 | 30 35 2c 34 33 32 2c 34 |84,400,4|05,432,4|
|00003370| 35 30 2c 34 38 30 2c 34 | 38 36 2c 35 30 30 2c 35 |50,480,4|86,500,5|
|00003380| 31 32 2c 35 34 30 2c 35 | 37 36 2c 36 30 30 2c 36 |12,540,5|76,600,6|
|00003390| 32 35 2c 36 34 30 2c 36 | 34 38 2c 36 00 2a 0c 53 |25,640,6|48,6.*.S|
|000033a0| 37 35 2c 37 32 30 2c 37 | 32 39 2c 37 35 30 2c 37 |75,720,7|29,750,7|
|000033b0| 36 38 2c 38 30 30 2c 38 | 31 30 2c 38 36 34 2c 39 |68,800,8|10,864,9|
|000033c0| 30 30 2c 39 36 30 2c 39 | 37 32 2c 31 30 30 30 2c |00,960,9|72,1000,|
|000033d0| 31 30 32 34 2c 31 30 38 | 30 2c 31 31 32 35 2c 31 |1024,108|0,1125,1|
|000033e0| 31 35 32 2c 31 32 30 30 | 2c 31 32 31 35 2c 31 32 |152,1200|,1215,12|
|000033f0| 35 30 2c 00 00 2a 0c 22 | 31 32 38 30 2c 31 32 39 |50,..*."|1280,129|
|00003400| 36 2c 31 33 35 30 2c 31 | 34 34 30 2c 31 34 35 38 |6,1350,1|440,1458|
|00003410| 2c 31 35 30 30 2c 31 35 | 33 36 00 2a 18 28 4d 65 |,1500,15|36.*.(Me|
|00003420| 6d 6f 72 79 20 75 6e 75 | 73 65 64 3a 20 20 20 35 |mory unu|sed: 5|
|00003430| 31 39 36 36 38 20 2c 20 | 54 69 6d 65 3a 20 20 20 |19668 , |Time: |
|00003440| 20 20 20 20 20 34 00 1a | 00 00 00 00 00 00 00 03 | 4..|........|
|00003450| 00 14 00 0d 00 0c 00 2a | 17 59 54 68 65 20 4d 65 |.......*|.YThe Me|
|00003460| 6d 6f 72 79 20 75 6e 75 | 73 65 64 20 69 73 20 74 |mory unu|sed is t|
|00003470| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 62 79 74 |he numbe|r of byt|
|00003480| 65 73 20 6f 66 20 52 65 | 57 72 69 74 65 20 6d 65 |es of Re|Write me|
|00003490| 6d 6f 72 79 20 74 68 61 | 74 20 68 61 76 65 20 6e |mory tha|t have n|
|000034a0| 6f 74 20 62 65 65 6e 20 | 75 73 65 64 20 73 69 6e |ot been |used sin|
|000034b0| 63 65 20 00 00 2a 0c 3b | 74 68 65 20 6d 65 6d 6f |ce ..*.;|the memo|
|000034c0| 72 79 20 77 61 73 20 6c | 61 73 74 20 69 6e 69 74 |ry was l|ast init|
|000034d0| 69 61 6c 69 7a 65 64 2c | 20 74 68 65 20 54 69 6d |ialized,| the Tim|
|000034e0| 65 20 69 73 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |e is the| number |
|000034f0| 6f 66 20 00 00 04 01 00 | 00 15 bd 40 00 28 02 0b |of .....|...@.(..|
|00003500| 01 1b 05 74 69 63 6b 73 | 00 04 00 00 00 15 bb 00 |...ticks|........|
|00003510| 00 29 18 20 20 28 31 2f | 36 30 74 68 73 20 6f 66 |.). (1/|60ths of|
|00003520| 20 61 20 73 65 63 6f 6e | 64 29 20 74 68 61 74 20 | a secon|d) that |
|00003530| 74 68 65 20 00 28 02 17 | 00 00 14 70 72 6f 67 72 |the .(..|...progr|
|00003540| 61 6d 20 74 6f 6f 6b 20 | 74 6f 20 72 75 6e 2e 00 |am took |to run..|
|00003550| 00 2a 18 02 5b 20 00 15 | 7e 40 00 29 07 56 41 20 |.*..[ ..|~@.).VA |
|00003560| 48 61 6d 6d 69 6e 67 20 | 6e 75 6d 62 65 72 20 69 |Hamming |number i|
|00003570| 73 20 61 20 6e 75 6d 62 | 65 72 20 74 68 61 74 20 |s a numb|er that |
|00003580| 6f 6e 6c 79 20 68 61 73 | 20 32 2c 33 20 61 6e 64 |only has| 2,3 and|
|00003590| 20 35 20 61 73 20 70 72 | 69 6d 65 20 66 61 63 74 | 5 as pr|ime fact|
|000035a0| 6f 72 73 2c 20 73 6f 20 | 34 35 20 3d 20 33 5e 32 |ors, so |45 = 3^2|
|000035b0| 20 2a 20 35 00 28 02 3b | 00 00 5f 69 73 20 61 20 | * 5.(.;|.._is a |
|000035c0| 48 61 6d 6d 69 6e 67 20 | 6e 75 6d 62 65 72 20 77 |Hamming |number w|
|000035d0| 68 65 72 65 61 73 20 33 | 35 20 3d 20 35 20 2a 20 |hereas 3|5 = 5 * |
|000035e0| 37 20 69 73 20 6e 6f 74 | 2e 20 55 6e 64 65 72 73 |7 is not|. Unders|
|000035f0| 74 61 6e 64 69 6e 67 20 | 74 68 65 20 64 65 74 61 |tanding |the deta|
|00003600| 69 6c 73 20 69 73 20 6e | 6f 74 20 74 68 61 74 20 |ils is n|ot that |
|00003610| 69 6d 70 6f 72 74 61 6e | 74 20 00 2a 0c 13 66 6f |importan|t .*..fo|
|00003620| 72 20 74 68 69 73 20 65 | 78 61 6d 70 6c 65 2e 20 |r this e|xample. |
|00003630| 5d 00 00 0c 00 00 00 14 | 00 01 00 0a 00 00 00 00 |].......|........|
|00003640| 00 13 01 d0 00 07 00 00 | 00 00 00 22 00 00 00 00 |........|..."....|
|00003650| 00 00 00 01 00 0a ff dc | ff dc 00 13 01 f4 00 03 |........|........|
|00003660| 00 15 00 28 00 0a 00 6c | 1f 2d 20 52 65 57 72 69 |...(...l|.- ReWri|
|00003670| 74 65 20 30 2e 32 2e 37 | 20 64 6f 63 75 6d 65 6e |te 0.2.7| documen|
|00003680| 74 61 74 69 6f 6e 20 2d | 00 28 00 0a 01 8c 05 50 |tation -|.(.....P|
|00003690| 61 67 65 20 00 15 d9 c0 | 00 29 1f 01 36 00 00 ff |age ....|.)..6...|
|000036a0| 00 00 08 2e 08 2e 00 00 | 00 00 03 18 02 64 00 11 |........|.....d..|
|000036b0| 02 ff 0c 00 ff ff ff ff | 00 00 00 00 00 00 00 00 |........|........|
|000036c0| 02 64 00 00 03 18 00 00 | 00 00 00 00 00 1e 00 0c |.d......|........|
|000036d0| ff b6 ff bc 00 01 00 0a | 00 00 00 00 02 90 01 d0 |........|........|
|000036e0| 00 07 00 00 00 00 00 23 | 00 00 00 23 00 00 00 0c |.......#|...#....|
|000036f0| 00 00 ff ec 00 01 00 0a | 00 00 00 00 02 7c 01 d0 |........|.....|..|
|00003700| 00 23 00 00 00 01 00 0a | ff dc ff dc 02 7c 01 f4 |.#......|.....|..|
|00003710| 00 2c 00 08 00 14 05 54 | 69 6d 65 73 00 03 00 14 |.,.....T|imes....|
|00003720| 00 0d 00 0c 00 2e 00 04 | 00 00 01 00 00 2a 0a 12 |........|.....*..|
|00003730| 49 66 20 79 6f 75 20 63 | 68 61 6e 67 65 20 74 68 |If you c|hange th|
|00003740| 65 20 00 1a 00 00 00 00 | ff ff 00 2c 00 0a 00 16 |e ......|...,....|
|00003750| 07 43 6f 75 72 69 65 72 | 00 03 00 16 00 15 20 00 |.Courier|...... .|
|00003760| 00 29 57 03 31 30 30 00 | 00 1a 00 00 00 00 00 00 |.)W.100.|........|
|00003770| 00 03 00 14 00 15 20 00 | 00 29 15 04 20 74 6f 20 |...... .|.).. to |
|00003780| 00 1a 00 00 00 00 ff ff | 00 03 00 16 00 15 75 80 |........|......u.|
|00003790| 00 29 0f 02 31 30 00 1a | 00 00 00 00 00 00 00 03 |.)..10..|........|
|000037a0| 00 14 00 15 75 80 00 29 | 0e 0b 2c 20 74 68 65 6e |....u..)|.., then|
|000037b0| 20 74 72 79 20 00 00 04 | 01 00 00 15 72 40 00 29 | try ...|....r@.)|
|000037c0| 2e 02 47 6f 00 04 00 00 | 00 15 c7 c0 00 29 0f 1e |..Go....|.....)..|
|000037d0| 20 61 67 61 69 6e 2c 20 | 74 68 65 6e 20 74 68 69 | again, |then thi|
|000037e0| 73 20 77 69 6c 6c 20 68 | 61 70 70 65 6e 3a 00 1a |s will h|appen:..|
|000037f0| 00 00 00 00 ff ff 00 2c | 00 09 00 03 06 47 65 6e |.......,|.....Gen|
|00003800| 65 76 61 00 00 03 00 03 | 00 0d 00 09 00 28 00 23 |eva.....|.....(.#|
|00003810| 00 00 02 2e 2e 00 00 2a | 0c 03 74 6f 70 00 00 2a |.......*|..top..*|
|00003820| 0c 01 20 00 00 2a 0c 19 | 6c 2e 67 6f 20 63 6f 6d |.. ..*..|l.go com|
|00003830| 70 69 6c 65 64 20 74 6f | 20 30 30 38 37 31 33 32 |piled to| 0087132|
|00003840| 34 00 00 2a 0c 17 4c 69 | 6e 6b 65 64 2c 20 72 75 |4..*..Li|nked, ru|
|00003850| 6c 65 73 20 6c 65 66 74 | 3a 20 32 36 30 00 00 2a |les left|: 260..*|
|00003860| 18 01 4d 00 00 29 08 27 | 65 6d 6f 72 79 20 75 6e |..M..).'|emory un|
|00003870| 75 73 65 64 3a 20 20 20 | 35 31 34 35 34 38 20 2c |used: |514548 ,|
|00003880| 20 54 69 6d 65 3a 20 20 | 20 20 20 20 20 32 30 00 | Time: | 20.|
|00003890| 00 28 00 77 00 00 15 31 | 2c 32 2c 33 2c 34 2c 35 |.(.w...1|,2,3,4,5|
|000038a0| 2c 36 2c 38 2c 39 2c 31 | 30 2c 31 32 00 2a 18 28 |,6,8,9,1|0,12.*.(|
|000038b0| 4d 65 6d 6f 72 79 20 75 | 6e 75 73 65 64 3a 20 20 |Memory u|nused: |
|000038c0| 20 35 31 34 35 34 38 20 | 2c 20 54 69 6d 65 3a 20 | 514548 |, Time: |
|000038d0| 20 20 20 20 20 20 20 31 | 00 1a 00 00 00 00 00 00 | 1|........|
|000038e0| 00 03 00 14 00 0d 00 0c | 00 2a 17 20 54 68 72 65 |........|.*. Thre|
|000038f0| 65 20 74 68 69 6e 67 73 | 20 68 61 76 65 20 68 61 |e things| have ha|
|00003900| 70 70 65 6e 65 64 20 68 | 65 72 65 3a 00 2b 10 0d |ppened h|ere:.+..|
|00003910| 06 2a 20 74 68 65 20 00 | 00 1a ff ff 00 00 ff ff |.* the .|........|
|00003920| 00 03 00 16 00 15 29 00 | 00 29 1b 03 74 6f 70 00 |......).|.)..top.|
|00003930| 00 1a 00 00 00 00 00 00 | 00 03 00 14 00 15 29 00 |........|......).|
|00003940| 00 29 15 24 20 73 6f 75 | 72 63 65 20 63 6f 64 65 |.).$ sou|rce code|
|00003950| 20 68 61 73 20 62 65 65 | 6e 20 73 61 76 65 64 20 | has bee|n saved |
|00003960| 74 6f 20 64 69 73 6b 2c | 00 28 00 bf 00 10 2c 2a |to disk,|.(....,*|
|00003970| 20 74 68 65 20 73 6f 75 | 72 63 65 20 68 61 73 20 | the sou|rce has |
|00003980| 62 65 65 6e 20 63 6f 6d | 70 69 6c 65 64 20 28 74 |been com|piled (t|
|00003990| 6f 20 6c 6f 63 61 74 69 | 6f 6e 20 00 00 15 c1 00 |o locati|on .....|
|000039a0| 00 29 d3 2e 24 38 37 31 | 33 32 34 20 69 6e 20 4d |.)..$871|324 in M|
|000039b0| 65 6d 6f 72 79 20 69 66 | 20 77 61 6e 74 20 74 6f |emory if| want to|
|000039c0| 20 69 6e 76 65 73 74 69 | 67 61 74 65 20 77 69 74 | investi|gate wit|
|000039d0| 68 20 00 28 00 cb 00 00 | 09 4d 61 63 73 62 75 67 |h .(....|.Macsbug|
|000039e0| 29 2c 00 2b 10 0c 1f 2a | 20 74 68 65 20 6e 65 77 |),.+...*| the new|
|000039f0| 20 70 72 6f 67 72 61 6d | 20 68 61 73 20 62 65 65 | program| has bee|
|00003a00| 6e 20 72 75 6e 2e 00 28 | 00 f0 00 00 0f a5 20 4e |n run..(|...... N|
|00003a10| 6f 77 20 6f 70 65 6e 20 | 74 68 65 20 00 1a ff ff |ow open |the ....|
|00003a20| 00 00 ff ff 00 03 00 16 | 00 15 02 c0 00 29 4e 05 |........|.....)N.|
|00003a30| 73 65 74 75 70 00 00 1a | 00 00 00 00 00 00 00 03 |setup...|........|
|00003a40| 00 14 00 15 02 c0 00 29 | 23 21 20 73 6f 75 72 63 |.......)|#! sourc|
|00003a50| 65 20 66 69 6c 65 20 28 | 72 65 6d 65 6d 62 65 72 |e file (|remember|
|00003a60| 2c 20 66 72 6f 6d 20 74 | 68 65 20 00 00 04 01 00 |, from t|he .....|
|00003a70| 00 15 ea c0 00 29 9e 07 | 57 69 6e 64 6f 77 73 00 |.....)..|Windows.|
|00003a80| 00 04 00 00 00 15 ec 40 | 00 29 30 07 20 6d 65 6e |.......@|.)0. men|
|00003a90| 75 29 2e 00 00 28 01 08 | 00 00 12 59 6f 75 20 77 |u)...(..|...You w|
|00003aa0| 69 6c 6c 20 73 65 65 20 | 74 68 69 73 3a 00 00 1a |ill see |this:...|
|00003ab0| 00 00 00 00 ff ff 00 03 | 00 03 00 0d 00 09 00 2a |........|.......*|
|00003ac0| 19 3d 28 2a 20 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |.=(* ===|========|
|00003ad0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 20 48 61 6d 6d 69 |========|== Hammi|
|00003ae0| 6e 67 20 65 78 61 6d 70 | 6c 65 20 3d 3d 3d 3d 3d |ng examp|le =====|
|00003af0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 20 2a 29 00 |========|==== *).|
|00003b00| 00 2a 18 2c 48 61 6d 6d | 69 6e 67 5b 6e 3a 69 6e |.*.,Hamm|ing[n:in|
|00003b10| 74 5d 20 2d 3e 20 6f 75 | 74 6e 75 6d 5b 48 61 6d |t] -> ou|tnum[Ham|
|00003b20| 6d 69 6e 67 41 75 78 5b | 6e 2c 7b 31 7d 5d 5d 3b |mingAux[|n,{1}]];|
|00003b30| 00 2a 18 18 48 61 6d 6d | 69 6e 67 41 75 78 5b 30 |.*..Hamm|ingAux[0|
|00003b40| 2c 61 3a 6c 69 73 5d 20 | 2d 3e 20 3b 00 2a 0c 53 |,a:lis] |-> ;.*.S|
|00003b50| 48 61 6d 6d 69 6e 67 41 | 75 78 5b 6e 3a 69 6e 74 |HammingA|ux[n:int|
|00003b60| 2c 7b 78 3a 69 6e 74 2c | 2e 72 65 73 74 7d 5d 20 |,{x:int,|.rest}] |
|00003b70| 2d 3e 20 78 2c 48 61 6d | 6d 69 6e 67 41 75 78 5b |-> x,Ham|mingAux[|
|00003b80| 6e 2d 31 2c 7b 48 6d 65 | 72 67 65 5b 7b 32 2a 78 |n-1,{Hme|rge[{2*x|
|00003b90| 2c 33 2a 78 2c 35 2a 78 | 7d 2c 2e 72 65 73 74 5d |,3*x,5*x|},.rest]|
|00003ba0| 7d 5d 3b 00 00 2a 18 1a | 48 6d 65 72 67 65 5b 7b |}];..*..|Hmerge[{|
|00003bb0| 7d 2c 2e 74 6f 64 6f 5d | 20 2d 3e 20 2e 74 6f 64 |},.todo]| -> .tod|
|00003bc0| 6f 3b 00 2a 0c 3a 48 6d | 65 72 67 65 5b 7b 78 3a |o;.*.:Hm|erge[{x:|
|00003bd0| 69 6e 74 2c 2e 72 65 73 | 74 7d 2c 2e 61 2c 78 3a |int,.res|t},.a,x:|
|00003be0| 69 6e 74 2c 2e 62 5d 20 | 2d 3e 20 2e 61 2c 78 2c |int,.b] |-> .a,x,|
|00003bf0| 48 6d 65 72 67 65 5b 72 | 65 73 74 2c 2e 62 5d 3b |Hmerge[r|est,.b];|
|00003c00| 00 2a 0c 42 48 6d 65 72 | 67 65 5b 7b 78 3a 69 6e |.*.BHmer|ge[{x:in|
|00003c10| 74 2c 2e 72 65 73 74 7d | 2c 2e 61 2c 79 3a 69 6e |t,.rest}|,.a,y:in|
|00003c20| 74 2c 2e 62 5d 3a 3a 79 | 3e 3d 78 20 2d 3e 20 2e |t,.b]::y|>=x -> .|
|00003c30| 61 2c 78 2c 79 2c 48 6d | 65 72 67 65 5b 72 65 73 |a,x,y,Hm|erge[res|
|00003c40| 74 2c 2e 62 5d 3b 00 2a | 0c 1e 48 6d 65 72 67 65 |t,.b];.*|..Hmerge|
|00003c50| 5b 6d 65 72 67 65 2c 2e | 61 5d 20 2d 3e 20 2e 61 |[merge,.|a] -> .a|
|00003c60| 2c 2e 6d 65 72 67 65 3b | 00 2a 18 3f 28 2a 20 3d |,.merge;|.*.?(* =|
|00003c70| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003c80| 3d 3d 3d 3d 3d 3d 73 6d | 61 6c 6c 20 65 78 61 6d |======sm|all exam|
|00003c90| 70 6c 65 73 20 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |ples ===|========|
|00003ca0| 3d 3d 3d 3d 3d 3d 3d 3d | 20 2a 29 00 00 2a 18 0c |========| *)..*..|
|00003cb0| 66 69 62 5b 30 5d 20 2d | 3e 20 31 3b 00 2a 0c 0c |fib[0] -|> 1;.*..|
|00003cc0| 66 69 62 5b 31 5d 20 2d | 3e 20 31 3b 00 2a 0c 20 |fib[1] -|> 1;.*. |
|00003cd0| 66 69 62 5b 6e 3a 69 6e | 74 5d 20 2d 3e 20 66 69 |fib[n:in|t] -> fi|
|00003ce0| 62 5b 6e 2d 31 5d 2b 66 | 69 62 5b 6e 2d 32 5d 3b |b[n-1]+f|ib[n-2];|
|00003cf0| 00 2a 18 1e 6a 6f 69 6e | 78 5b 78 3a 6c 69 73 2c |.*..join|x[x:lis,|
|00003d00| 79 3a 6c 69 73 5d 20 2d | 3e 20 7b 2e 78 2c 2e 79 |y:lis] -|> {.x,.y|
|00003d10| 7d 3b 00 2a 18 2c 73 6f | 72 74 5b 7b 2e 61 2c 62 |};.*.,so|rt[{.a,b|
|00003d20| 2c 63 2c 2e 64 7d 5d 3a | 3a 62 3e 63 20 2d 3e 20 |,c,.d}]:|:b>c -> |
|00003d30| 73 6f 72 74 5b 7b 2e 61 | 2c 63 2c 62 2c 2e 64 7d |sort[{.a|,c,b,.d}|
|00003d40| 5d 3b 00 2a 0c 0d 73 6f | 72 74 5b 78 5d 20 2d 3e |];.*..so|rt[x] ->|
|00003d50| 20 78 3b 00 00 1a 00 00 | 00 00 00 00 00 03 00 14 | x;.....|........|
|00003d60| 00 0d 00 0c 00 2a 17 1a | 5b 72 65 73 74 20 64 65 |.....*..|[rest de|
|00003d70| 6c 65 74 65 64 20 66 6f | 72 20 62 72 65 76 69 74 |leted fo|r brevit|
|00003d80| 79 5d 00 2a 19 18 54 68 | 69 73 20 73 68 6f 77 73 |y].*..Th|is shows|
|00003d90| 20 74 68 65 20 66 75 6e | 63 74 69 6f 6e 20 00 1a | the fun|ction ..|
|00003da0| 00 00 00 00 ff ff 00 03 | 00 16 00 15 79 c0 00 29 |........|....y..)|
|00003db0| 76 07 48 61 6d 6d 69 6e | 67 00 00 1a 00 00 00 00 |v.Hammin|g.......|
|00003dc0| 00 00 00 03 00 14 00 15 | 79 c0 00 29 31 24 20 74 |........|y..)1$ t|
|00003dd0| 68 61 74 20 77 61 73 20 | 75 73 65 64 20 62 79 20 |hat was |used by |
|00003de0| 74 68 65 20 61 62 6f 76 | 65 20 65 78 61 6d 70 6c |the abov|e exampl|
|00003df0| 65 2e 00 28 02 66 00 00 | 13 4c 65 74 27 73 20 70 |e..(.f..|.Let's p|
|00003e00| 75 74 20 69 6e 20 61 20 | 6e 65 77 20 00 1a 00 00 |ut in a |new ....|
|00003e10| 00 00 ff ff 00 03 00 16 | 00 15 4c c0 00 29 58 09 |........|..L..)X.|
|00003e20| 66 61 63 74 6f 72 69 61 | 6c 00 00 1a 00 00 00 00 |factoria|l.......|
|00003e30| 00 00 00 03 00 14 00 15 | 4c c0 00 29 3f 1f 20 66 |........|L..)?. f|
|00003e40| 75 6e 63 74 69 6f 6e 20 | 69 6e 20 61 20 6e 65 77 |unction |in a new|
|00003e50| 20 73 6f 75 72 63 65 20 | 66 69 6c 65 2e 00 00 0c | source |file....|
|00003e60| 00 00 00 14 00 01 00 0a | 00 00 00 00 00 13 01 d0 |........|........|
|00003e70| 00 23 00 00 00 01 00 0a | ff dc ff dc 00 13 01 f4 |.#......|........|
|00003e80| 00 2c 00 0c 00 15 09 48 | 65 6c 76 65 74 69 63 61 |.,.....H|elvetica|
|00003e90| 00 03 00 15 00 28 00 0a | 00 6c 1f 2d 20 52 65 57 |.....(..|.l.- ReW|
|00003ea0| 72 69 74 65 20 30 2e 32 | 2e 37 20 64 6f 63 75 6d |rite 0.2|.7 docum|
|00003eb0| 65 6e 74 61 74 69 6f 6e | 20 2d 00 28 00 0a 01 8c |entation| -.(....|
|00003ec0| 05 50 61 67 65 20 00 15 | d9 c0 00 29 1f 01 37 00 |.Page ..|...)..7.|
|00003ed0| 00 ff 00 00 0a 1a 0a 1a | 00 00 00 00 03 18 02 64 |........|.......d|
|00003ee0| 00 11 02 ff 0c 00 ff ff | ff ff 00 00 00 00 00 00 |........|........|
|00003ef0| 00 00 02 64 00 00 03 18 | 00 00 00 00 00 00 00 1e |...d....|........|
|00003f00| 00 0c ff b6 ff bc 00 01 | 00 0a 00 00 00 00 02 90 |........|........|
|00003f10| 01 d0 00 07 00 00 00 00 | 00 23 00 00 00 23 00 00 |........|.#...#..|
|00003f20| 00 0c 00 00 ff ec 00 01 | 00 0a 00 00 00 00 02 7c |........|.......||
|00003f30| 01 d0 00 23 00 00 00 01 | 00 0a ff dc ff dc 02 7c |...#....|.......||
|00003f40| 01 f4 00 2c 00 0c 00 15 | 09 48 65 6c 76 65 74 69 |...,....|.Helveti|
|00003f50| 63 61 00 03 00 15 00 04 | 01 00 00 0d 00 0e 00 2e |ca......|........|
|00003f60| 00 04 00 00 01 00 00 2a | 0b 1a 43 72 65 61 74 69 |.......*|..Creati|
|00003f70| 6e 67 20 61 20 6e 65 77 | 20 73 6f 75 72 63 65 20 |ng a new| source |
|00003f80| 66 69 6c 65 00 2c 00 08 | 00 14 05 54 69 6d 65 73 |file.,..|...Times|
|00003f90| 00 03 00 14 00 04 00 00 | 00 0d 00 0c 00 2a 1a 07 |........|.....*..|
|00003fa0| a5 20 4f 70 65 6e 20 00 | 00 1a ff ff 00 00 ff ff |. Open .|........|
|00003fb0| 00 2c 00 0a 00 16 07 43 | 6f 75 72 69 65 72 00 03 |.,.....C|ourier..|
|00003fc0| 00 16 00 15 b0 00 00 29 | 24 08 30 50 72 6f 6a 65 |.......)|$.0Proje|
|00003fd0| 63 74 00 1a 00 00 00 00 | 00 00 00 03 00 14 00 15 |ct......|........|
|00003fe0| b0 00 00 29 38 08 20 75 | 73 69 6e 67 20 20 00 04 |...)8. u|sing ..|
|00003ff0| 01 00 00 15 b0 40 00 29 | 23 05 4f 70 65 6e c9 00 |.....@.)|#.Open..|
|00004000| 00 04 00 00 00 15 b0 c0 | 00 29 28 08 20 69 6e 20 |........|.)(. in |
|00004010| 74 68 65 20 00 04 01 00 | 00 15 af 40 00 29 21 04 |the ....|...@.)!.|
|00004020| 46 69 6c 65 00 04 00 00 | 00 15 02 40 00 29 14 17 |File....|...@.)..|
|00004030| 20 6d 65 6e 75 20 28 74 | 68 61 74 27 73 20 74 68 | menu (t|hat's th|
|00004040| 65 20 73 61 6d 65 20 00 | 00 1a ff ff 00 00 ff ff |e same .|........|
|00004050| 00 03 00 16 00 15 cb c0 | 00 29 6d 08 30 50 72 6f |........|.)m.0Pro|
|00004060| 6a 65 63 74 00 1a 00 00 | 00 00 00 00 00 03 00 14 |ject....|........|
|00004070| 00 15 cb c0 00 29 38 0a | 20 74 68 61 74 20 79 6f |.....)8.| that yo|
|00004080| 75 20 00 28 00 31 00 00 | 23 73 65 6c 65 63 74 65 |u .(.1..|#selecte|
|00004090| 64 20 77 68 65 6e 20 79 | 6f 75 20 73 74 61 72 74 |d when y|ou start|
|000040a0| 65 64 20 52 65 57 72 69 | 74 65 29 2e 00 2a 18 33 |ed ReWri|te)..*.3|
|000040b0| 54 68 69 73 20 77 69 6c | 6c 20 6a 75 73 74 20 62 |This wil|l just b|
|000040c0| 65 20 61 20 74 65 78 74 | 20 66 69 6c 65 20 74 68 |e a text| file th|
|000040d0| 61 74 20 6c 6f 6f 6b 73 | 20 6c 69 6b 65 20 74 68 |at looks| like th|
|000040e0| 69 73 3a 00 00 1a 00 00 | 00 00 ff ff 00 2c 00 09 |is:.....|.....,..|
|000040f0| 00 03 06 47 65 6e 65 76 | 61 00 00 03 00 03 00 0d |...Genev|a.......|
|00004100| 00 09 00 2a 19 05 73 65 | 74 75 70 00 00 2a 0c 02 |...*..se|tup..*..|
|00004110| 67 6f 00 1a 00 00 00 00 | 00 00 00 03 00 14 00 0d |go......|........|
|00004120| 00 0c 00 2a 17 02 a5 20 | 00 15 b2 c0 00 29 07 4e |...*... |.....).N|
|00004130| 41 64 64 20 61 6e 6f 74 | 68 65 72 20 6c 69 6e 65 |Add anot|her line|
|00004140| 20 62 65 74 77 65 65 6e | 20 74 68 65 6d 20 74 6f | between| them to|
|00004150| 20 6d 61 6b 65 20 74 68 | 65 20 63 6f 6e 74 65 6e | make th|e conten|
|00004160| 74 73 20 6f 66 20 74 68 | 65 20 66 69 6c 65 20 6c |ts of th|e file l|
|00004170| 6f 6f 6b 20 6c 69 6b 65 | 20 74 68 69 73 3a 00 1a |ook like| this:..|
|00004180| 00 00 00 00 ff ff 00 03 | 00 03 00 0d 00 09 00 28 |........|.......(|
|00004190| 00 9e 00 00 05 73 65 74 | 75 70 00 2a 0c 07 6d 79 |.....set|up.*..my|
|000041a0| 73 74 75 66 66 00 00 2a | 0c 02 67 6f 00 1a 00 00 |stuff..*|..go....|
|000041b0| 00 00 00 00 00 03 00 14 | 00 0d 00 0c 00 2a 17 42 |........|.....*.B|
|000041c0| 6d 61 6b 65 20 73 75 72 | 65 20 74 68 65 72 65 20 |make sur|e there |
|000041d0| 61 72 65 20 6e 6f 20 65 | 78 74 72 61 20 73 70 61 |are no e|xtra spa|
|000041e0| 63 65 73 20 6f 72 20 6c | 69 6e 65 2d 62 72 65 61 |ces or l|ine-brea|
|000041f0| 6b 73 20 68 61 6e 67 69 | 6e 67 20 61 72 6f 75 6e |ks hangi|ng aroun|
|00004200| 64 2e 00 2a 19 09 a5 20 | 53 65 6c 65 63 74 20 00 |d..*... |Select .|
|00004210| 00 04 01 00 00 15 04 00 | 00 29 28 0e 43 68 61 6e |........|.)(.Chan|
|00004220| 67 65 20 50 72 6f 6a 65 | 63 74 00 04 00 00 00 15 |ge Proje|ct......|
|00004230| a4 40 00 29 4f 08 20 69 | 6e 20 74 68 65 20 00 04 |.@.)O. i|n the ..|
|00004240| 01 00 00 15 a2 c0 00 29 | 21 08 50 72 6f 6a 65 63 |.......)|!.Projec|
|00004250| 74 20 00 04 00 00 00 15 | ee 40 00 29 28 28 4d 65 |t ......|.@.)((Me|
|00004260| 6e 75 2e 20 59 6f 75 20 | 77 69 6c 6c 20 62 65 20 |nu. You |will be |
|00004270| 70 72 6f 6d 70 74 65 64 | 20 61 62 6f 75 74 20 73 |prompted| about s|
|00004280| 61 76 69 6e 67 20 00 1a | ff ff 00 00 ff ff 00 03 |aving ..|........|
|00004290| 00 16 00 15 8d 80 00 29 | cf 08 30 50 72 6f 6a 65 |.......)|..0Proje|
|000042a0| 63 74 00 1a 00 00 00 00 | 00 00 00 03 00 14 00 15 |ct......|........|
|000042b0| 8d 80 00 29 38 02 2e 20 | 00 28 00 f2 00 00 0f 43 |...)8.. |.(.....C|
|000042c0| 6c 69 63 6b 20 79 65 73 | 20 28 79 6f 75 20 00 04 |lick yes| (you ..|
|000042d0| 01 00 00 15 7c 00 00 29 | 49 03 64 69 64 00 00 04 |....|..)|I.did...|
|000042e0| 00 00 00 15 29 00 00 29 | 11 2d 20 6d 61 6b 65 20 |....)..)|.- make |
|000042f0| 61 20 62 61 63 6b 75 70 | 20 62 65 66 6f 72 65 20 |a backup| before |
|00004300| 64 6f 69 6e 67 20 74 68 | 69 73 20 64 69 64 6e 27 |doing th|is didn'|
|00004310| 74 20 79 6f 75 3f 29 00 | 00 28 01 0a 00 00 02 a5 |t you?).|.(......|
|00004320| 20 00 00 15 b2 c0 00 29 | 07 5d 41 6c 6c 20 74 68 | ......)|.]All th|
|00004330| 65 20 66 69 6c 65 73 20 | 77 69 6c 6c 20 6e 6f 77 |e files |will now|
|00004340| 20 62 65 20 63 6c 6f 73 | 65 64 20 62 79 20 52 65 | be clos|ed by Re|
|00004350| 57 72 69 74 65 2c 20 61 | 6e 64 20 79 6f 75 20 77 |Write, a|nd you w|
|00004360| 69 6c 6c 20 62 65 20 70 | 72 6f 6d 70 74 65 64 20 |ill be p|rompted |
|00004370| 66 6f 72 20 61 20 6e 65 | 77 20 70 72 6f 6a 65 63 |for a ne|w projec|
|00004380| 74 2e 20 50 69 63 6b 00 | 00 1a ff ff 00 00 ff ff |t. Pick.|........|
|00004390| 00 03 00 16 00 28 01 17 | 00 00 08 30 50 72 6f 6a |.....(..|...0Proj|
|000043a0| 65 63 74 00 00 1a 00 00 | 00 00 00 00 00 03 00 14 |ect.....|........|
|000043b0| 00 29 38 07 20 61 67 61 | 69 6e 2e 00 00 28 01 2f |.)8. aga|in...(./|
|000043c0| 00 00 02 a5 20 00 00 15 | b2 c0 00 29 07 08 4e 6f |.... ...|...)..No|
|000043d0| 77 20 74 68 65 20 00 04 | 01 00 00 15 af 40 00 29 |w the ..|.....@.)|
|000043e0| 2c 07 57 69 6e 64 6f 77 | 73 00 00 04 00 00 00 15 |,.Window|s.......|
|000043f0| b0 c0 00 29 30 25 20 6d | 65 6e 75 20 77 69 6c 6c |...)0% m|enu will|
|00004400| 20 68 61 76 65 20 61 6e | 20 73 6f 75 72 63 65 20 | have an| source |
|00004410| 66 69 6c 65 20 63 61 6c | 6c 65 64 00 00 15 f0 c0 |file cal|led.....|
|00004420| 00 29 b0 01 20 00 00 04 | 01 00 00 15 f0 c0 00 29 |.).. ...|.......)|
|00004430| 03 07 6d 79 73 74 75 66 | 66 00 00 04 00 00 00 15 |..mystuf|f.......|
|00004440| 40 40 00 29 28 1b 2e 20 | 53 65 6c 65 63 74 20 69 |@@.)(.. |Select i|
|00004450| 74 2c 20 61 6e 64 20 65 | 6e 74 65 72 20 74 68 65 |t, and e|nter the|
|00004460| 20 00 00 28 01 3b 00 00 | 34 66 6f 6c 6c 6f 77 69 | ..(.;..|4followi|
|00004470| 6e 67 20 69 6e 74 6f 20 | 74 68 65 20 65 6d 70 74 |ng into |the empt|
|00004480| 79 20 66 69 6c 65 20 74 | 68 61 74 20 69 73 20 6f |y file t|hat is o|
|00004490| 70 65 6e 65 64 20 28 75 | 73 69 6e 67 20 00 00 04 |pened (u|sing ...|
|000044a0| 01 00 00 15 1c 00 00 29 | f4 1a 43 6f 70 79 20 74 |.......)|..Copy t|
|000044b0| 65 78 74 20 77 69 74 68 | 20 6c 69 6e 65 20 62 72 |ext with| line br|
|000044c0| 65 61 6b 73 00 04 00 00 | 00 15 be 40 00 29 86 0f |eaks....|...@.)..|
|000044d0| 20 66 72 6f 6d 20 65 44 | 4f 43 20 6d 61 79 20 00 | from eD|OC may .|
|000044e0| 00 28 01 47 00 00 12 6d | 61 6b 65 20 74 68 69 73 |.(.G...m|ake this|
|000044f0| 20 65 61 73 69 65 72 29 | 3a 00 00 1a 00 00 00 00 | easier)|:.......|
|00004500| ff ff 00 03 00 03 00 0d | 00 09 00 2a 19 12 66 61 |........|...*..fa|
|00004510| 63 74 6f 72 69 61 6c 5b | 30 5d 20 2d 3e 20 31 3b |ctorial[|0] -> 1;|
|00004520| 00 2a 0c 21 66 61 63 74 | 6f 72 69 61 6c 5b 6e 5d |.*.!fact|orial[n]|
|00004530| 20 2d 3e 20 6e 2a 66 61 | 63 74 6f 72 69 61 6c 5b | -> n*fa|ctorial[|
|00004540| 6e 2d 31 5d 3b 00 00 1a | 00 00 00 00 00 00 00 03 |n-1];...|........|
|00004550| 00 14 00 0d 00 0c 00 2a | 17 3e a5 20 4e 6f 77 20 |.......*|.>. Now |
|00004560| 6f 70 65 6e 20 74 68 65 | 20 67 6f 20 77 69 6e 64 |open the| go wind|
|00004570| 6f 77 20 61 67 61 69 6e | 20 61 6e 64 20 65 6e 74 |ow again| and ent|
|00004580| 65 72 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |er the f|ollowing|
|00004590| 20 61 74 20 74 68 65 20 | 00 04 01 00 00 15 9a 00 | at the |........|
|000045a0| 00 28 01 83 01 33 03 74 | 6f 70 00 04 00 00 00 15 |.(...3.t|op......|
|000045b0| 44 00 00 29 11 15 20 6f | 66 20 74 68 65 20 66 69 |D..).. o|f the fi|
|000045c0| 6c 65 20 28 62 65 66 6f | 72 65 20 00 00 28 01 8f |le (befo|re ..(..|
|000045d0| 00 00 11 65 76 65 72 79 | 74 68 69 6e 67 20 65 6c |...every|thing el|
|000045e0| 73 65 29 3a 00 1a 00 00 | 00 00 ff ff 00 03 00 03 |se):....|........|
|000045f0| 00 0d 00 09 00 2a 19 1f | 74 6f 70 5b 5d 20 2d 3e |.....*..|top[] ->|
|00004600| 20 6f 75 74 6e 75 6d 5b | 66 61 63 74 6f 72 69 61 | outnum[|factoria|
|00004610| 6c 5b 31 30 5d 5d 3b 00 | 00 1a 00 00 00 00 00 00 |l[10]];.|........|
|00004620| 00 03 00 14 00 0d 00 0c | 00 2a 17 13 a5 20 52 75 |........|.*... Ru|
|00004630| 6e 20 74 68 65 20 70 72 | 6f 67 72 61 6d 20 28 00 |n the pr|ogram (.|
|00004640| 00 04 01 00 00 15 00 80 | 00 29 60 02 47 6f 00 04 |........|.)`.Go..|
|00004650| 00 00 00 15 56 00 00 29 | 0f 08 20 69 6e 20 74 68 |....V..)|.. in th|
|00004660| 65 20 00 04 01 00 00 15 | 54 80 00 29 21 07 70 72 |e ......|T..)!.pr|
|00004670| 6f 6a 65 63 74 00 00 04 | 00 00 00 15 f7 40 00 29 |oject...|.....@.)|
|00004680| 24 37 20 6d 65 6e 75 29 | 2e 20 49 66 20 79 6f 75 |$7 menu)|. If you|
|00004690| 20 68 61 76 65 20 64 6f | 6e 65 20 65 76 65 72 79 | have do|ne every|
|000046a0| 74 68 69 6e 67 2c 20 63 | 6f 72 72 65 63 74 6c 79 |thing, c|orrectly|
|000046b0| 20 69 74 20 77 69 6c 6c | 20 00 00 28 01 cb 00 00 | it will| ..(....|
|000046c0| 12 72 65 74 75 72 6e 20 | 74 68 65 20 6e 75 6d 62 |.return |the numb|
|000046d0| 65 72 3a 00 00 1a 00 00 | 00 00 ff ff 00 03 00 03 |er:.....|........|
|000046e0| 00 0d 00 09 00 2a 19 07 | 33 36 32 38 38 30 30 00 |.....*..|3628800.|
|000046f0| 00 1a ee ee 00 00 00 00 | 00 03 00 14 00 04 01 00 |........|........|
|00004700| 00 0d 00 0c 00 2a 17 04 | 4e 6f 74 65 00 1a 00 00 |.....*..|Note....|
|00004710| 00 00 00 00 00 04 00 00 | 00 15 7b 80 00 29 18 5b |........|..{..).[|
|00004720| 3a 20 69 66 20 52 65 57 | 72 69 74 65 20 63 72 61 |: if ReW|rite cra|
|00004730| 73 68 65 73 20 69 6e 20 | 74 68 69 73 20 6c 61 73 |shes in |this las|
|00004740| 74 20 73 74 65 70 2c 20 | 69 74 20 6d 61 79 20 62 |t step, |it may b|
|00004750| 65 20 74 68 61 74 20 61 | 20 6c 6f 6e 67 20 73 74 |e that a| long st|
|00004760| 61 6e 64 69 6e 67 20 73 | 70 6f 72 61 64 69 63 20 |anding s|poradic |
|00004770| 62 75 67 20 69 6e 20 74 | 68 65 20 00 00 28 02 07 |bug in t|he ..(..|
|00004780| 00 00 62 52 65 57 72 69 | 74 65 20 66 69 6c 65 20 |..bReWri|te file |
|00004790| 68 61 6e 64 6c 69 6e 67 | 20 68 61 73 6e 27 74 20 |handling| hasn't |
|000047a0| 62 65 65 6e 20 70 72 6f | 70 65 72 6c 79 20 66 69 |been pro|perly fi|
|000047b0| 78 65 64 20 79 65 74 2e | 20 28 49 20 74 68 69 6e |xed yet.| (I thin|
|000047c0| 6b 20 69 74 20 68 61 73 | 29 20 50 6c 65 61 73 65 |k it has|) Please|
|000047d0| 20 6c 65 74 20 6d 65 20 | 6b 6e 6f 77 20 69 66 20 | let me |know if |
|000047e0| 74 68 69 73 20 00 00 2a | 0c 08 68 61 70 70 65 6e |this ..*|..happen|
|000047f0| 73 2e 00 2a 18 5a 59 6f | 75 27 76 65 20 6a 75 73 |s..*.ZYo|u've jus|
|00004800| 74 20 65 6e 74 65 72 65 | 64 20 61 6e 20 72 75 6e |t entere|d an run|
|00004810| 20 61 20 52 65 57 72 69 | 74 65 20 70 72 6f 67 72 | a ReWri|te progr|
|00004820| 61 6d 20 74 6f 20 63 61 | 6c 63 75 6c 61 74 65 20 |am to ca|lculate |
|00004830| 66 61 63 74 6f 72 69 61 | 6c 73 21 20 52 65 61 64 |factoria|ls! Read|
|00004840| 20 6f 6e 20 74 6f 20 74 | 68 65 20 6e 65 78 74 20 | on to t|he next |
|00004850| 00 2a 0c 38 63 68 61 70 | 74 65 72 20 74 6f 20 73 |.*.8chap|ter to s|
|00004860| 65 65 20 68 6f 77 20 74 | 68 65 20 66 61 63 74 6f |ee how t|he facto|
|00004870| 72 69 61 6c 20 70 72 6f | 67 72 61 6d 20 61 63 74 |rial pro|gram act|
|00004880| 75 61 6c 6c 79 20 77 6f | 72 6b 73 2e 00 0c 00 00 |ually wo|rks.....|
|00004890| 00 14 00 01 00 0a 00 00 | 00 00 00 13 01 d0 00 23 |........|.......#|
|000048a0| 00 00 00 01 00 0a ff dc | ff dc 00 13 01 f4 00 03 |........|........|
|000048b0| 00 15 00 28 00 0a 00 6c | 1f 2d 20 52 65 57 72 69 |...(...l|.- ReWri|
|000048c0| 74 65 20 30 2e 32 2e 37 | 20 64 6f 63 75 6d 65 6e |te 0.2.7| documen|
|000048d0| 74 61 74 69 6f 6e 20 2d | 00 28 00 0a 01 8c 05 50 |tation -|.(.....P|
|000048e0| 61 67 65 20 00 15 d9 c0 | 00 29 1f 01 38 00 00 ff |age ....|.)..8...|
|000048f0| 00 00 0c 60 0c 60 00 00 | 00 00 03 18 02 64 00 11 |...`.`..|.....d..|
|00004900| 02 ff 0c 00 ff ff ff ff | 00 00 00 00 00 00 00 00 |........|........|
|00004910| 02 64 00 00 03 18 00 00 | 00 00 00 00 00 1e 00 0c |.d......|........|
|00004920| ff b6 ff bc 00 01 00 0a | 00 00 00 00 02 90 01 d0 |........|........|
|00004930| 00 07 00 00 00 00 00 23 | 00 00 00 23 00 00 00 0c |.......#|...#....|
|00004940| 00 00 ff ec 00 01 00 0a | 00 00 00 00 02 7c 01 d0 |........|.....|..|
|00004950| 00 23 00 00 00 01 00 0a | ff dc ff dc 02 7c 01 f4 |.#......|.....|..|
|00004960| 00 2c 00 0c 00 15 09 48 | 65 6c 76 65 74 69 63 61 |.,.....H|elvetica|
|00004970| 00 03 00 15 00 04 01 00 | 00 0d 00 18 00 2e 00 04 |........|........|
|00004980| 00 00 01 00 00 2a 14 1b | 43 68 61 70 74 65 72 20 |.....*..|Chapter |
|00004990| 32 20 2d 20 53 69 6d 70 | 6c 65 20 45 78 61 6d 70 |2 - Simp|le Examp|
|000049a0| 6c 65 73 00 00 2c 00 08 | 00 14 05 54 69 6d 65 73 |les..,..|...Times|
|000049b0| 00 03 00 14 00 04 00 00 | 00 0d 00 0c 00 2a 19 5f |........|.....*._|
|000049c0| 54 68 69 73 20 63 68 61 | 70 74 65 72 20 63 6f 6e |This cha|pter con|
|000049d0| 74 61 69 6e 73 20 73 6f | 6d 65 20 73 69 6d 70 6c |tains so|me simpl|
|000049e0| 65 20 65 78 61 6d 70 6c | 65 73 20 6f 66 20 70 72 |e exampl|es of pr|
|000049f0| 6f 67 72 61 6d 73 20 77 | 72 69 74 74 65 6e 20 69 |ograms w|ritten i|
|00004a00| 6e 20 74 68 65 20 6c 61 | 6e 67 75 61 67 65 20 74 |n the la|nguage t|
|00004a10| 6f 20 67 69 76 65 20 61 | 6e 20 69 64 65 61 20 00 |o give a|n idea .|
|00004a20| 00 2a 0c 16 6f 66 20 77 | 68 61 74 20 69 74 20 6c |.*..of w|hat it l|
|00004a30| 6f 6f 6b 73 20 6c 69 6b | 65 2e 00 03 00 15 00 04 |ooks lik|e.......|
|00004a40| 01 00 00 0d 00 12 00 2a | 1d 09 46 61 63 74 6f 72 |.......*|..Factor|
|00004a50| 69 61 6c 00 00 03 00 14 | 00 04 00 00 00 0d 00 0c |ial.....|........|
|00004a60| 00 2a 19 36 54 68 69 73 | 20 65 78 61 6d 70 6c 65 |.*.6This| example|
|00004a70| 20 63 61 6c 63 75 6c 61 | 74 65 73 20 74 68 65 20 | calcula|tes the |
|00004a80| 66 61 63 74 6f 72 69 61 | 6c 20 6f 66 20 61 6e 20 |factoria|l of an |
|00004a90| 61 72 67 75 6d 65 6e 74 | 2e 20 00 1a 00 00 00 00 |argument|. ......|
|00004aa0| ff ff 00 2c 00 0a 00 16 | 07 43 6f 75 72 69 65 72 |...,....|.Courier|
|00004ab0| 00 03 00 16 00 2a 19 14 | 20 20 66 61 63 74 6f 72 |.....*..| factor|
|00004ac0| 69 61 6c 5b 30 5d 20 2d | 3e 20 31 3b 00 2a 0c 25 |ial[0] -|> 1;.*.%|
|00004ad0| 20 20 66 61 63 74 6f 72 | 69 61 6c 5b 6e 5d 20 2d | factor|ial[n] -|
|00004ae0| 3e 20 6e 20 2a 20 66 61 | 63 74 6f 72 69 61 6c 5b |> n * fa|ctorial[|
|00004af0| 6e 2d 31 5d 3b 00 00 2a | 18 20 20 20 74 6f 70 5b |n-1];..*|. top[|
|00004b00| 5d 20 2d 3e 20 6f 75 74 | 6e 75 6d 5b 66 61 63 74 |] -> out|num[fact|
|00004b10| 6f 72 69 61 6c 5b 36 5d | 5d 3b 00 1a 00 00 00 00 |orial[6]|];......|
|00004b20| 00 00 00 03 00 14 00 2b | 10 17 28 41 20 52 65 57 |.......+|..(A ReW|
|00004b30| 72 69 74 65 20 70 72 6f | 67 72 61 6d 20 63 6f 6e |rite pro|gram con|
|00004b40| 73 69 73 74 73 20 6f 66 | 20 61 20 6c 69 73 74 20 |sists of| a list |
|00004b50| 6f 66 20 00 00 04 01 00 | 00 15 6e 00 00 29 c0 0d |of .....|..n..)..|
|00004b60| 72 65 77 72 69 74 65 20 | 72 75 6c 65 73 00 00 04 |rewrite |rules...|
|00004b70| 00 00 00 15 0c 80 00 29 | 42 1a 20 73 65 70 61 72 |.......)|B. separ|
|00004b80| 61 74 65 64 20 62 79 20 | 73 65 6d 69 2d 63 6f 6c |ated by |semi-col|
|00004b90| 6f 6e 73 3b 00 28 00 cf | 00 00 54 65 61 63 68 20 |ons;.(..|..Teach |
|00004ba0| 72 75 6c 65 20 64 65 66 | 69 6e 65 73 20 61 20 74 |rule def|ines a t|
|00004bb0| 72 61 6e 73 66 6f 72 6d | 61 74 69 6f 6e 20 61 6e |ransform|ation an|
|00004bc0| 64 20 69 73 20 70 61 72 | 74 20 6f 66 20 61 20 66 |d is par|t of a f|
|00004bd0| 75 6e 63 74 69 6f 6e 2e | 20 54 68 65 20 62 61 73 |unction.| The bas|
|00004be0| 69 63 20 73 74 72 75 63 | 74 75 72 65 20 69 73 00 |ic struc|ture is.|
|00004bf0| 00 1a 00 00 00 00 ff ff | 00 03 00 16 00 04 02 00 |........|........|
|00004c00| 00 2a 0d 06 20 20 72 75 | 6c 65 00 04 00 00 00 29 |.*.. ru|le.....)|
|00004c10| 2a 02 20 5b 00 04 02 00 | 00 29 0e 08 70 61 74 74 |*. [....|.)..patt|
|00004c20| 65 72 6e 73 00 04 00 00 | 00 29 38 07 20 5d 20 20 |erns....|.)8. ] |
|00004c30| 2d 3e 20 00 00 04 02 00 | 00 29 31 03 72 68 73 00 |-> .....|.)1.rhs.|
|00004c40| 00 04 00 00 00 29 15 02 | 20 3b 00 1a 00 00 00 00 |.....)..| ;......|
|00004c50| 00 00 00 03 00 14 00 28 | 00 e7 00 00 02 41 20 00 |.......(|.....A .|
|00004c60| 00 04 01 00 00 15 29 c0 | 00 29 0c 05 6d 61 74 63 |......).|.)..matc|
|00004c70| 68 00 00 04 00 00 00 15 | 25 80 00 29 20 58 20 6e |h.......|%..) X n|
|00004c80| 65 65 64 73 20 74 6f 20 | 62 65 20 6d 61 64 65 20 |eeds to |be made |
|00004c90| 77 69 74 68 20 74 68 65 | 20 70 61 74 74 65 72 6e |with the| pattern|
|00004ca0| 73 20 69 6e 20 6f 72 64 | 65 72 20 66 6f 72 20 61 |s in ord|er for a|
|00004cb0| 20 70 61 72 74 69 63 75 | 6c 61 72 20 72 75 6c 65 | particu|lar rule|
|00004cc0| 20 74 6f 20 62 65 20 75 | 73 65 64 2e 20 54 68 65 | to be u|sed. The|
|00004cd0| 20 72 75 6c 65 20 00 28 | 00 f3 00 00 28 75 73 65 | rule .(|....(use|
|00004ce0| 64 20 77 69 6c 6c 20 62 | 65 20 74 68 65 20 66 69 |d will b|e the fi|
|00004cf0| 72 73 74 20 6f 6e 65 20 | 74 68 61 74 20 6d 61 74 |rst one |that mat|
|00004d00| 63 68 65 73 2e 00 00 2b | 10 19 1f 46 6f 72 20 65 |ches...+|...For e|
|00004d10| 78 61 6d 70 6c 65 2c 20 | 77 69 74 68 20 74 68 65 |xample, |with the|
|00004d20| 20 66 75 6e 63 74 69 6f | 6e 20 00 1a 00 00 00 00 | functio|n ......|
|00004d30| ff ff 00 03 00 16 00 15 | ca 00 00 29 97 09 66 61 |........|...)..fa|
|00004d40| 63 74 6f 72 69 61 6c 00 | 00 1a 00 00 00 00 00 00 |ctorial.|........|
|00004d50| 00 03 00 14 00 15 ca 00 | 00 29 3f 20 20 64 65 66 |........|.)? def|
|00004d60| 69 6e 65 64 20 61 62 6f | 76 65 2c 20 69 66 20 69 |ined abo|ve, if i|
|00004d70| 74 20 69 73 20 63 61 6c | 6c 65 64 3a 00 28 01 18 |t is cal|led:.(..|
|00004d80| 00 10 3b 2d 20 77 69 74 | 68 20 6d 6f 72 65 20 74 |..;- wit|h more t|
|00004d90| 68 61 6e 20 74 77 6f 20 | 61 72 67 75 6d 65 6e 74 |han two |argument|
|00004da0| 73 20 6f 72 20 6e 6f 20 | 61 72 67 75 6d 65 6e 74 |s or no |argument|
|00004db0| 20 69 74 20 77 69 6c 6c | 20 66 61 69 6c 3b 00 2a | it will| fail;.*|
|00004dc0| 0d 13 2d 20 77 69 74 68 | 20 74 68 65 20 69 6e 74 |..- with| the int|
|00004dd0| 65 67 65 72 20 00 00 1a | 00 00 00 00 ff ff 00 03 |eger ...|........|
|00004de0| 00 16 00 15 cc 40 00 29 | 55 01 30 00 00 1a 00 00 |.....@.)|U.0.....|
|00004df0| 00 00 00 00 00 03 00 14 | 00 15 cc 40 00 29 07 26 |........|...@.).&|
|00004e00| 20 74 68 65 20 66 69 72 | 73 74 20 72 75 6c 65 20 | the fir|st rule |
|00004e10| 77 69 6c 6c 20 62 65 20 | 61 63 74 69 76 61 74 65 |will be |activate|
|00004e20| 64 20 61 6e 64 20 00 1a | 00 00 00 00 ff ff 00 03 |d and ..|........|
|00004e30| 00 16 00 15 0e 80 00 29 | a8 01 31 00 00 1a 00 00 |.......)|..1.....|
|00004e40| 00 00 00 00 00 03 00 14 | 00 15 0e 80 00 29 07 12 |........|.....)..|
|00004e50| 20 77 69 6c 6c 20 62 65 | 20 72 65 74 75 72 6e 65 | will be| returne|
|00004e60| 64 3b 00 28 01 32 00 10 | 11 2d 20 77 69 74 68 20 |d;.(.2..|.- with |
|00004e70| 61 6e 79 20 76 61 6c 75 | 65 20 00 1a 00 00 00 00 |any valu|e ......|
|00004e80| ff ff 00 03 00 16 00 15 | 23 00 00 29 51 01 6e 00 |........|#..)Q.n.|
|00004e90| 00 1a 00 00 00 00 00 00 | 00 03 00 14 00 15 23 00 |........|......#.|
|00004ea0| 00 29 07 34 20 6f 74 68 | 65 72 20 74 68 61 6e 20 |.).4 oth|er than |
|00004eb0| 30 20 74 68 65 20 73 65 | 63 6f 6e 64 20 72 75 6c |0 the se|cond rul|
|00004ec0| 65 20 77 69 6c 6c 20 62 | 65 20 61 63 74 69 76 61 |e will b|e activa|
|00004ed0| 74 65 64 2c 20 61 6e 64 | 00 03 00 16 00 28 01 3f |ted, and|.....(.?|
|00004ee0| 00 00 0f 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |... | |
|00004ef0| 20 20 00 1a 00 00 00 00 | ff ff 00 29 69 12 6e 20 | ......|...)i.n |
|00004f00| 2a 20 66 61 63 74 6f 72 | 69 61 6c 5b 6e 2d 31 5d |* factor|ial[n-1]|
|00004f10| 00 1a 00 00 00 00 00 00 | 00 03 00 14 00 28 01 4a |........|.....(.J|
|00004f20| 00 10 4d 77 69 6c 6c 20 | 62 65 20 63 61 6c 63 75 |..Mwill |be calcu|
|00004f30| 6c 61 74 65 64 2c 20 63 | 61 6c 6c 69 6e 67 20 66 |lated, c|alling f|
|00004f40| 61 63 74 6f 72 69 61 6c | 20 61 67 61 69 6e 2e 20 |actorial| again. |
|00004f50| 28 49 66 20 6e 3c 30 2c | 20 74 68 69 73 20 77 69 |(If n<0,| this wi|
|00004f60| 6c 6c 20 62 65 20 61 20 | 70 72 6f 62 6c 65 6d 29 |ll be a |problem)|
|00004f70| 00 2a 19 28 41 20 70 72 | 6f 67 72 61 6d 20 6d 75 |.*.(A pr|ogram mu|
|00004f80| 73 74 20 73 6f 6d 65 77 | 68 65 72 65 20 63 6f 6e |st somew|here con|
|00004f90| 74 61 69 6e 20 61 20 72 | 75 6c 65 20 00 1a 00 00 |tain a r|ule ....|
|00004fa0| 00 00 ff ff 00 03 00 16 | 00 15 14 80 00 29 d0 0c |........|.....)..|
|00004fb0| 74 6f 70 5b 5d 20 2d 3e | 20 2e 2e 2e 00 1a 00 00 |top[] ->| .......|
|00004fc0| 00 00 00 00 00 03 00 14 | 00 28 01 6f 00 00 5c 57 |........|.(.o..\W|
|00004fd0| 68 65 6e 20 61 20 70 72 | 6f 67 72 61 6d 20 69 73 |hen a pr|ogram is|
|00004fe0| 20 65 78 65 63 75 74 65 | 64 2c 20 69 74 20 6e 65 | execute|d, it ne|
|00004ff0| 65 64 73 20 74 6f 20 68 | 61 76 65 20 61 20 77 65 |eds to h|ave a we|
|00005000| 6c 6c 20 64 65 66 69 6e | 65 64 20 73 74 61 72 74 |ll defin|ed start|
|00005010| 69 6e 67 20 70 6f 69 6e | 74 2c 20 73 6f 20 74 68 |ing poin|t, so th|
|00005020| 65 20 66 75 6e 63 74 69 | 6f 6e 20 00 00 1a 00 00 |e functi|on .....|
|00005030| 00 00 ff ff 00 03 00 16 | 00 2a 0d 05 74 6f 70 5b |........|.*..top[|
|00005040| 5d 00 00 1a 00 00 00 00 | 00 00 00 03 00 14 00 29 |].......|.......)|
|00005050| 23 38 20 69 73 20 63 61 | 6c 6c 65 64 2c 20 61 6e |#8 is ca|lled, an|
|00005060| 64 20 77 68 61 74 65 76 | 65 72 20 72 75 6c 65 20 |d whatev|er rule |
|00005070| 74 68 61 74 20 6d 61 74 | 63 68 65 73 20 69 73 20 |that mat|ches is |
|00005080| 61 63 74 69 76 61 74 65 | 64 2e 00 28 01 94 00 10 |activate|d..(....|
|00005090| 61 54 68 65 20 61 62 6f | 76 65 20 66 75 6e 63 74 |aThe abo|ve funct|
|000050a0| 69 6f 6e 20 77 69 6c 6c | 20 66 61 69 6c 20 74 6f |ion will| fail to|
|000050b0| 20 74 65 72 6d 69 6e 61 | 74 65 20 69 66 20 74 68 | termina|te if th|
|000050c0| 65 20 61 72 67 75 6d 65 | 6e 74 20 69 73 20 6e 6f |e argume|nt is no|
|000050d0| 74 20 61 6e 20 69 6e 74 | 65 67 65 72 20 6f 72 20 |t an int|eger or |
|000050e0| 69 73 20 6e 65 67 61 74 | 69 76 65 2e 20 54 68 69 |is negat|ive. Thi|
|000050f0| 73 20 00 28 01 a0 00 00 | 41 70 72 6f 62 6c 65 6d |s .(....|Aproblem|
|00005100| 20 63 6f 75 6c 64 20 62 | 65 20 70 72 65 76 65 6e | could b|e preven|
|00005110| 74 65 64 20 75 73 69 6e | 67 20 74 68 65 20 66 6f |ted usin|g the fo|
|00005120| 6c 6c 6f 77 69 6e 67 20 | 6d 6f 64 69 66 69 65 64 |llowing |modified|
|00005130| 20 66 75 6e 63 74 69 6f | 6e 3a 00 1a 00 00 00 00 | functio|n:......|
|00005140| ff ff 00 03 00 16 00 2a | 19 14 20 20 66 61 63 74 |.......*|.. fact|
|00005150| 6f 72 69 61 6c 5b 30 5d | 20 2d 3e 20 31 3b 00 2a |orial[0]| -> 1;.*|
|00005160| 0c 2e 20 20 66 61 63 74 | 6f 72 69 61 6c 5b 6e 3a |.. fact|orial[n:|
|00005170| 69 6e 74 5d 3a 3a 6e 3e | 30 20 2d 3e 20 6e 20 2a |int]::n>|0 -> n *|
|00005180| 20 66 61 63 74 6f 72 69 | 61 6c 5b 6e 2d 31 5d 3b | factori|al[n-1];|
|00005190| 00 1a 00 00 00 00 00 00 | 00 03 00 14 00 2b 10 17 |........|.....+..|
|000051a0| 2e 54 68 69 73 20 69 6e | 74 72 6f 64 75 63 65 73 |.This in|troduces|
|000051b0| 20 61 6e 6f 74 68 65 72 | 20 69 64 65 61 20 75 73 | another| idea us|
|000051c0| 65 64 20 69 6e 20 52 65 | 57 72 69 74 65 3b 20 00 |ed in Re|Write; .|
|000051d0| 00 04 01 00 00 15 15 00 | 00 29 e0 0a 63 6f 6e 64 |........|.)..cond|
|000051e0| 69 74 69 6f 6e 73 00 04 | 00 00 00 15 bf c0 00 29 |itions..|.......)|
|000051f0| 34 13 20 28 73 6f 6d 65 | 74 69 6d 65 73 20 63 61 |4. (some|times ca|
|00005200| 6c 6c 65 64 20 00 00 04 | 01 00 00 15 b6 00 00 29 |lled ...|.......)|
|00005210| 5d 06 67 75 61 72 64 73 | 00 04 00 00 00 15 0b c0 |].guards|........|
|00005220| 00 29 24 04 20 69 6e 20 | 00 28 01 e8 00 00 41 66 |.)$. in |.(....Af|
|00005230| 75 6e 63 74 69 6f 6e 61 | 6c 20 70 72 6f 67 72 61 |unctiona|l progra|
|00005240| 6d 6d 69 6e 67 20 6c 61 | 6e 67 75 61 67 65 73 29 |mming la|nguages)|
|00005250| 2e 20 54 68 65 72 65 20 | 61 72 65 20 74 77 6f 20 |. There |are two |
|00005260| 73 6f 72 74 73 20 75 73 | 65 64 20 68 65 72 65 3a |sorts us|ed here:|
|00005270| 00 2a 19 04 a5 20 20 20 | 00 1a 00 00 00 00 ff ff |.*... |........|
|00005280| 00 03 00 16 00 04 02 00 | 00 15 b2 c0 00 29 0d 09 |........|.....)..|
|00005290| 70 61 72 61 6d 65 74 65 | 72 00 00 04 00 00 00 15 |paramete|r.......|
|000052a0| b2 c0 00 29 3f 02 20 3a | 00 04 02 00 00 15 b2 c0 |...)?. :|........|
|000052b0| 00 29 0e 04 74 79 70 65 | 00 03 00 14 00 15 b2 c0 |.)..type|........|
|000052c0| 00 29 1c 01 20 00 00 1a | 00 00 00 00 00 00 00 04 |.).. ...|........|
|000052d0| 00 00 00 28 02 19 00 10 | 61 54 68 69 73 20 69 73 |...(....|aThis is|
|000052e0| 20 75 73 65 64 20 74 6f | 20 69 6e 64 69 63 61 74 | used to| indicat|
|000052f0| 65 20 74 68 61 74 20 61 | 20 70 61 72 61 6d 65 74 |e that a| paramet|
|00005300| 65 72 20 74 6f 20 61 20 | 66 75 6e 63 74 69 6f 6e |er to a |function|
|00005310| 20 6d 75 73 74 20 62 65 | 20 61 20 63 65 72 74 61 | must be| a certa|
|00005320| 69 6e 20 74 79 70 65 20 | 6f 72 20 74 68 65 20 72 |in type |or the r|
|00005330| 75 6c 65 20 77 6f 6e 27 | 74 20 00 28 02 25 00 00 |ule won'|t .(.%..|
|00005340| 06 6d 61 74 63 68 2e 00 | 00 2a 19 04 a5 20 20 20 |.match..|.*... |
|00005350| 00 1a 00 00 00 00 ff ff | 00 03 00 16 00 04 02 00 |........|........|
|00005360| 00 15 b2 c0 00 29 0d 04 | 72 75 6c 65 00 04 00 00 |.....)..|rule....|
|00005370| 00 15 b2 c0 00 29 1c 02 | 20 5b 00 04 02 00 00 15 |.....)..| [......|
|00005380| b2 c0 00 29 0e 08 70 61 | 74 74 65 72 6e 73 00 04 |...)..pa|tterns..|
|00005390| 00 00 00 15 b2 c0 00 29 | 38 04 20 5d 3a 3a 00 04 |.......)|8. ]::..|
|000053a0| 02 00 00 15 b2 c0 00 29 | 1c 09 63 6f 6e 64 69 74 |.......)|..condit|
|000053b0| 69 6f 6e 00 00 04 00 00 | 00 15 b2 c0 00 29 3f 05 |ion.....|.....)?.|
|000053c0| 20 20 2d 3e 20 00 00 04 | 02 00 00 15 b2 c0 00 29 | -> ...|.......)|
|000053d0| 23 03 72 68 73 00 00 04 | 00 00 00 15 b2 c0 00 29 |#.rhs...|.......)|
|000053e0| 15 02 20 3b 00 1a 00 00 | 00 00 00 00 00 03 00 14 |.. ;....|........|
|000053f0| 00 28 02 57 00 10 10 49 | 6e 20 74 68 69 73 20 63 |.(.W...I|n this c|
|00005400| 61 73 65 20 74 68 65 00 | 00 03 00 16 00 04 02 00 |ase the.|........|
|00005410| 00 15 22 40 00 29 48 01 | 20 00 00 1a 00 00 00 00 |.."@.)H.| .......|
|00005420| ff ff 00 15 22 40 00 29 | 07 08 70 61 74 74 65 72 |...."@.)|..patter|
|00005430| 6e 73 00 1a 00 00 00 00 | 00 00 00 15 22 40 00 29 |ns......|...."@.)|
|00005440| 38 01 20 00 00 03 00 14 | 00 04 00 00 00 15 22 40 |8. .....|......"@|
|00005450| 00 29 07 14 20 6d 75 73 | 74 20 6d 61 74 63 68 20 |.).. mus|t match |
|00005460| 61 6e 64 20 74 68 65 20 | 00 1a 00 00 00 00 ff ff |and the |........|
|00005470| 00 03 00 16 00 04 02 00 | 00 15 c6 80 00 29 63 09 |........|.....)c.|
|00005480| 63 6f 6e 64 69 74 69 6f | 6e 00 00 1a 00 00 00 00 |conditio|n.......|
|00005490| 00 00 00 15 c6 80 00 29 | 3f 01 20 00 00 03 00 14 |.......)|?. .....|
|000054a0| 00 15 c6 80 00 29 07 01 | 20 00 00 04 00 00 00 15 |.....)..| .......|
|000054b0| c6 80 00 29 03 1d 6d 75 | 73 74 20 62 65 20 73 61 |...)..mu|st be sa|
|000054c0| 74 69 73 66 69 65 64 2c | 20 6f 74 68 65 72 77 69 |tisfied,| otherwi|
|000054d0| 73 65 20 00 00 28 02 63 | 00 00 15 74 68 65 20 72 |se ..(.c|...the r|
|000054e0| 75 6c 65 20 77 6f 6e 27 | 74 20 6d 61 74 63 68 2e |ule won'|t match.|
|000054f0| 00 0c 00 00 00 14 00 01 | 00 0a 00 00 00 00 00 13 |........|........|
|00005500| 01 d0 00 23 00 00 00 01 | 00 0a ff dc ff dc 00 13 |...#....|........|
|00005510| 01 f4 00 03 00 15 00 28 | 00 0a 00 6c 1f 2d 20 52 |.......(|...l.- R|
|00005520| 65 57 72 69 74 65 20 30 | 2e 32 2e 37 20 64 6f 63 |eWrite 0|.2.7 doc|
|00005530| 75 6d 65 6e 74 61 74 69 | 6f 6e 20 2d 00 28 00 0a |umentati|on -.(..|
|00005540| 01 8c 05 50 61 67 65 20 | 00 15 d9 c0 00 29 1f 01 |...Page |.....)..|
|00005550| 39 00 00 ff 00 00 0f 28 | 0f 28 00 00 00 00 03 18 |9......(|.(......|
|00005560| 02 64 00 11 02 ff 0c 00 | ff ff ff ff 00 00 00 00 |.d......|........|
|00005570| 00 00 00 00 02 64 00 00 | 03 18 00 00 00 00 00 00 |.....d..|........|
|00005580| 00 1e 00 0c ff b6 ff bc | 00 01 00 0a 00 00 00 00 |........|........|
|00005590| 02 90 01 d0 00 07 00 00 | 00 00 00 23 00 00 00 23 |........|...#...#|
|000055a0| 00 00 00 0c 00 00 ff ec | 00 01 00 0a 00 00 00 00 |........|........|
|000055b0| 02 7c 01 d0 00 23 00 00 | 00 01 00 0a ff dc ff dc |.|...#..|........|
|000055c0| 02 7c 01 f4 00 2c 00 0c | 00 15 09 48 65 6c 76 65 |.|...,..|...Helve|
|000055d0| 74 69 63 61 00 03 00 15 | 00 04 01 00 00 0d 00 12 |tica....|........|
|000055e0| 00 2e 00 04 00 00 01 00 | 00 2a 0e 06 45 71 75 61 |........|.*..Equa|
|000055f0| 6c 73 00 1a 00 00 00 00 | ff ff 00 2c 00 0a 00 16 |ls......|...,....|
|00005600| 07 43 6f 75 72 69 65 72 | 00 03 00 16 00 04 00 00 |.Courier|........|
|00005610| 00 0d 00 0c 00 2a 1a 15 | 20 20 65 71 75 61 6c 5b |.....*..| equal[|
|00005620| 78 2c 78 5d 20 2d 3e 20 | 74 72 75 65 3b 00 00 2a |x,x] -> |true;..*|
|00005630| 0c 16 20 20 65 71 75 61 | 6c 5b 78 2c 79 5d 20 2d |.. equa|l[x,y] -|
|00005640| 3e 20 66 61 6c 73 65 3b | 00 1a 00 00 00 00 00 00 |> false;|........|
|00005650| 00 2c 00 08 00 14 05 54 | 69 6d 65 73 00 03 00 14 |.,.....T|imes....|
|00005660| 00 2b 10 18 1a 54 68 69 | 73 20 66 75 6e 63 74 69 |.+...Thi|s functi|
|00005670| 6f 6e 20 77 69 6c 6c 20 | 72 65 74 75 72 6e 20 00 |on will |return .|
|00005680| 00 1a 00 00 00 00 ff ff | 00 03 00 16 00 15 21 40 |........|......!@|
|00005690| 00 29 79 04 74 72 75 65 | 00 1a 00 00 00 00 00 00 |.)y.true|........|
|000056a0| 00 03 00 14 00 15 21 40 | 00 29 1c 3c 20 69 66 20 |......!@|.).< if |
|000056b0| 63 61 6c 6c 65 64 20 77 | 69 74 68 20 61 6e 79 20 |called w|ith any |
|000056c0| 74 77 6f 20 61 72 67 75 | 6d 65 6e 74 73 20 74 68 |two argu|ments th|
|000056d0| 61 74 20 61 72 65 20 74 | 68 65 20 73 61 6d 65 2c |at are t|he same,|
|000056e0| 20 61 73 20 74 68 65 20 | 00 28 00 58 00 00 62 6d | as the |.(.X..bm|
|000056f0| 61 74 63 68 20 77 69 74 | 68 20 74 68 65 20 66 69 |atch wit|h the fi|
|00005700| 72 73 74 20 72 75 6c 65 | 20 77 69 6c 6c 20 6f 6e |rst rule| will on|
|00005710| 6c 79 20 73 75 63 63 65 | 65 64 20 69 66 20 69 74 |ly succe|ed if it|
|00005720| 20 69 73 20 67 69 76 65 | 6e 20 74 77 6f 20 65 71 | is give|n two eq|
|00005730| 75 61 6c 20 61 72 67 75 | 6d 65 6e 74 73 2c 20 73 |ual argu|ments, s|
|00005740| 69 6e 63 65 20 62 6f 74 | 68 20 6f 66 20 74 68 65 |ince bot|h of the|
|00005750| 20 00 00 2a 0d 23 61 72 | 67 75 6d 65 6e 74 73 20 | ..*.#ar|guments |
|00005760| 68 61 76 65 20 74 68 65 | 20 73 61 6d 65 20 6e 61 |have the| same na|
|00005770| 6d 65 2e 20 28 74 68 65 | 20 00 00 1a 00 00 00 00 |me. (the| .......|
|00005780| ff ff 00 03 00 16 00 15 | 16 00 00 29 b2 01 78 00 |........|...)..x.|
|00005790| 00 1a 00 00 00 00 00 00 | 00 03 00 14 00 15 16 00 |........|........|
|000057a0| 00 29 07 1c 20 61 70 70 | 65 61 72 69 6e 67 20 74 |.).. app|earing t|
|000057b0| 77 69 63 65 20 6d 61 6b | 65 73 20 69 74 20 61 20 |wice mak|es it a |
|000057c0| 00 04 01 00 00 15 05 c0 | 00 29 86 0a 6e 6f 6e 2d |........|.)..non-|
|000057d0| 6c 69 6e 65 61 72 00 04 | 00 00 00 15 59 40 00 29 |linear..|....Y@.)|
|000057e0| 35 08 20 72 75 6c 65 29 | 2e 20 00 1a 00 00 00 00 |5. rule)|. ......|
|000057f0| ff ff 00 03 00 16 00 15 | fe c0 00 29 1f 05 66 61 |........|...)..fa|
|00005800| 6c 73 65 00 00 1a 00 00 | 00 00 00 00 00 03 00 14 |lse.....|........|
|00005810| 00 15 fe c0 00 29 23 06 | 20 77 69 6c 6c 20 00 28 |.....)#.| will .(|
|00005820| 00 71 00 00 2f 62 65 20 | 72 65 74 75 72 6e 65 64 |.q../be |returned|
|00005830| 20 69 66 20 74 68 65 20 | 74 77 6f 20 61 72 67 75 | if the |two argu|
|00005840| 6d 65 6e 74 73 20 61 72 | 65 20 64 69 66 66 65 72 |ments ar|e differ|
|00005850| 65 6e 74 2e 00 2b 10 0c | 42 4e 6f 6e 2d 6c 69 6e |ent..+..|BNon-lin|
|00005860| 65 61 72 20 72 75 6c 65 | 73 20 61 72 65 20 61 20 |ear rule|s are a |
|00005870| 76 65 72 79 20 70 6f 77 | 65 72 66 75 6c 20 70 61 |very pow|erful pa|
|00005880| 72 74 20 6f 66 20 74 68 | 65 20 70 61 74 74 65 72 |rt of th|e patter|
|00005890| 6e 20 6d 61 74 63 68 69 | 6e 67 2e 00 00 03 00 15 |n matchi|ng......|
|000058a0| 00 04 01 00 00 0d 00 12 | 00 28 00 9a 00 00 18 49 |........|.(.....I|
|000058b0| 6e 73 65 72 74 20 69 6e | 74 6f 20 6f 72 64 65 72 |nsert in|to order|
|000058c0| 65 64 20 6c 69 73 74 00 | 00 03 00 14 00 04 00 00 |ed list.|........|
|000058d0| 00 0d 00 0c 00 2a 19 5d | 54 68 69 73 20 66 75 6e |.....*.]|This fun|
|000058e0| 63 74 69 6f 6e 20 69 6e | 73 65 72 74 73 20 61 20 |ction in|serts a |
|000058f0| 76 61 6c 75 65 20 28 61 | 20 6e 75 6d 62 65 72 29 |value (a| number)|
|00005900| 20 69 6e 74 6f 20 69 74 | 73 20 63 6f 72 72 65 63 | into it|s correc|
|00005910| 74 20 70 6c 61 63 65 20 | 6f 66 20 61 20 6c 69 73 |t place |of a lis|
|00005920| 74 20 6f 66 20 61 73 63 | 65 6e 64 69 6e 67 20 6f |t of asc|ending o|
|00005930| 72 64 65 72 2e 00 00 1a | 00 00 00 00 ff ff 00 03 |rder....|........|
|00005940| 00 16 00 2a 19 14 20 20 | 69 6e 73 65 72 74 5b 78 |...*.. |insert[x|
|00005950| 2c 7b 7d 5d 20 2d 3e 20 | 78 3b 00 2a 0c 2a 20 20 |,{}] -> |x;.*.* |
|00005960| 69 6e 73 65 72 74 5b 78 | 2c 7b 61 2c 2e 72 65 73 |insert[x|,{a,.res|
|00005970| 74 7d 5d 3a 3a 78 3c 61 | 20 2d 3e 20 7b 78 2c 61 |t}]::x<a| -> {x,a|
|00005980| 2c 2e 72 65 73 74 7d 3b | 00 2a 0c 2d 20 20 69 6e |,.rest};|.*.- in|
|00005990| 73 65 72 74 5b 78 2c 7b | 61 2c 2e 72 65 73 74 7d |sert[x,{|a,.rest}|
|000059a0| 5d 20 2d 3e 20 7b 61 2c | 2e 69 6e 73 65 72 74 5b |] -> {a,|.insert[|
|000059b0| 78 2c 72 65 73 74 5d 7d | 3b 00 00 1a 00 00 00 00 |x,rest]}|;.......|
|000059c0| 00 00 00 03 00 14 00 2b | 10 18 02 41 20 00 00 04 |.......+|...A ...|
|000059d0| 01 00 00 15 29 c0 00 29 | 0c 04 6c 69 73 74 00 04 |....)..)|..list..|
|000059e0| 00 00 00 15 7d c0 00 29 | 0f 0e 20 28 72 65 70 72 |....}..)|.. (repr|
|000059f0| 65 73 65 6e 74 65 64 20 | 00 1a 00 00 00 00 ff ff |esented |........|
|00005a00| 00 03 00 16 00 15 c6 c0 | 00 29 41 01 7b 00 00 1a |........|.)A.{...|
|00005a10| 00 00 00 00 00 00 00 03 | 00 14 00 15 c6 c0 00 29 |........|.......)|
|00005a20| 07 03 2e 2e 2e 00 00 1a | 00 00 00 00 ff ff 00 03 |........|........|
|00005a30| 00 16 00 15 c6 c0 00 29 | 09 01 7d 00 00 1a 00 00 |.......)|..}.....|
|00005a40| 00 00 00 00 00 03 00 14 | 00 15 c6 c0 00 29 07 46 |........|.....).F|
|00005a50| 29 20 69 73 20 61 20 77 | 61 79 20 6f 66 20 67 61 |) is a w|ay of ga|
|00005a60| 74 68 65 72 69 6e 67 20 | 61 20 63 6f 6c 6c 65 63 |thering |a collec|
|00005a70| 74 69 6f 6e 20 6f 66 20 | 76 61 6c 75 65 73 20 69 |tion of |values i|
|00005a80| 6e 74 6f 20 61 20 73 69 | 6e 67 6c 65 20 76 61 6c |nto a si|ngle val|
|00005a90| 75 65 2e 20 41 20 00 04 | 01 00 00 28 01 09 00 00 |ue. A ..|...(....|
|00005aa0| 06 73 70 6c 69 63 65 00 | 00 04 00 00 00 15 28 80 |.splice.|......(.|
|00005ab0| 00 29 1d 1d 20 28 72 65 | 70 72 65 73 65 6e 74 65 |.).. (re|presente|
|00005ac0| 64 20 62 79 20 61 20 70 | 72 65 63 65 64 69 6e 67 |d by a p|receding|
|00005ad0| 20 00 00 1a 00 00 00 00 | ff ff 00 03 00 16 00 15 | .......|........|
|00005ae0| 13 40 00 29 8b 01 2e 00 | 00 1a 00 00 00 00 00 00 |.@.)....|........|
|00005af0| 00 03 00 14 00 15 13 40 | 00 29 07 42 29 20 69 73 |.......@|.).B) is|
|00005b00| 20 74 68 65 20 72 65 76 | 65 72 73 65 20 6f 66 20 | the rev|erse of |
|00005b10| 61 20 6c 69 73 74 3b 20 | 69 74 20 74 61 6b 65 73 |a list; |it takes|
|00005b20| 20 61 20 6c 69 73 74 20 | 61 6e 64 20 74 75 72 6e | a list |and turn|
|00005b30| 73 20 69 74 20 69 6e 74 | 6f 20 69 74 73 20 00 28 |s it int|o its .(|
|00005b40| 01 15 00 00 0b 63 6f 6d | 70 6f 6e 65 6e 74 73 2e |.....com|ponents.|
|00005b50| 00 2b 10 18 15 49 6e 20 | 74 68 65 20 65 78 61 6d |.+...In |the exam|
|00005b60| 70 6c 65 20 61 62 6f 76 | 65 2c 00 1a 00 00 00 00 |ple abov|e,......|
|00005b70| ff ff 00 03 00 16 00 28 | 01 3a 00 00 15 20 20 69 |.......(|.:... i|
|00005b80| 6e 73 65 72 74 5b 78 2c | 7b 61 2c 2e 72 65 73 74 |nsert[x,|{a,.rest|
|00005b90| 7d 5d 00 1a 00 00 00 00 | 00 00 00 03 00 14 00 2a |}]......|.......*|
|00005ba0| 0b 63 77 69 6c 6c 20 62 | 65 20 6d 61 74 63 68 65 |.cwill b|e matche|
|00005bb0| 64 20 69 66 20 74 68 65 | 20 66 69 72 73 74 20 61 |d if the| first a|
|00005bc0| 72 67 75 6d 65 6e 74 20 | 69 73 20 61 6e 79 20 76 |rgument |is any v|
|00005bd0| 61 6c 75 65 20 61 6e 64 | 20 74 68 65 20 73 65 63 |alue and| the sec|
|00005be0| 6f 6e 64 20 61 72 67 75 | 6d 65 6e 74 20 69 73 20 |ond argu|ment is |
|00005bf0| 61 20 6c 69 73 74 20 63 | 6f 6e 74 61 69 6e 69 6e |a list c|ontainin|
|00005c00| 67 20 61 74 20 00 00 2a | 0d 40 6c 65 61 73 74 20 |g at ..*|.@least |
|00005c10| 6f 6e 65 20 65 6c 65 6d | 65 6e 74 2e 20 54 68 65 |one elem|ent. The|
|00005c20| 20 66 69 72 73 74 20 65 | 6c 65 6d 65 6e 74 20 6f | first e|lement o|
|00005c30| 66 20 74 68 65 20 6c 69 | 73 74 20 77 69 6c 6c 20 |f the li|st will |
|00005c40| 62 65 20 63 61 6c 6c 65 | 64 20 00 1a 00 00 00 00 |be calle|d ......|
|00005c50| ff ff 00 03 00 16 00 15 | b6 40 00 28 01 52 01 22 |........|.@.(.R."|
|00005c60| 01 61 00 1a 00 00 00 00 | 00 00 00 03 00 14 00 15 |.a......|........|
|00005c70| b6 40 00 29 07 21 3b 20 | 74 68 65 20 72 65 73 74 |.@.).!; |the rest|
|00005c80| 20 77 69 6c 6c 20 62 65 | 20 67 61 74 68 65 72 65 | will be| gathere|
|00005c90| 64 20 69 6e 74 6f 20 00 | 00 28 01 5f 00 00 14 61 |d into .|.(._...a|
|00005ca0| 6e 6f 74 68 65 72 20 6c | 69 73 74 20 63 61 6c 6c |nother l|ist call|
|00005cb0| 65 64 20 00 00 1a 00 00 | 00 00 ff ff 00 03 00 16 |ed .....|........|
|00005cc0| 00 15 cb 80 00 29 58 04 | 72 65 73 74 00 1a 00 00 |.....)X.|rest....|
|00005cd0| 00 00 00 00 00 03 00 14 | 00 15 cb 80 00 29 1c 43 |........|.....).C|
|00005ce0| 2e 20 46 72 6f 6d 20 74 | 68 69 73 20 65 78 61 6d |. From t|his exam|
|00005cf0| 70 6c 65 20 69 74 20 63 | 61 6e 20 62 65 20 73 65 |ple it c|an be se|
|00005d00| 65 6e 20 74 68 61 74 20 | 6c 69 73 74 20 61 6e 64 |en that |list and|
|00005d10| 20 73 70 6c 69 63 65 20 | 61 63 74 20 69 6e 20 74 | splice |act in t|
|00005d20| 68 65 20 00 00 28 01 6b | 00 00 42 27 6f 70 70 6f |he ..(.k|..B'oppo|
|00005d30| 73 69 74 65 27 20 77 61 | 79 20 77 68 65 6e 20 75 |site' wa|y when u|
|00005d40| 73 65 64 20 61 73 20 70 | 61 72 74 20 6f 66 20 61 |sed as p|art of a|
|00005d50| 20 6d 61 74 63 68 20 6f | 6e 20 74 68 65 20 6c 65 | match o|n the le|
|00005d60| 66 74 20 68 61 6e 64 20 | 73 69 64 65 2e 00 00 2b |ft hand |side...+|
|00005d70| 10 18 0e 46 6f 72 20 65 | 78 61 6d 70 6c 65 20 69 |...For e|xample i|
|00005d80| 66 00 00 1a 00 00 00 00 | ff ff 00 03 00 16 00 28 |f.......|.......(|
|00005d90| 01 90 00 00 13 20 20 69 | 6e 73 65 72 74 5b 33 2c |..... i|nsert[3,|
|00005da0| 7b 31 2c 34 2c 35 7d 5d | 00 1a 00 00 00 00 00 00 |{1,4,5}]|........|
|00005db0| 00 03 00 14 00 29 85 10 | 20 77 61 73 20 63 61 6c |.....)..| was cal|
|00005dc0| 6c 65 64 20 74 68 65 6e | 00 1a 00 00 00 00 ff ff |led then|........|
|00005dd0| 00 03 00 16 00 28 01 9d | 00 10 01 78 00 1a 00 00 |.....(..|...x....|
|00005de0| 00 00 00 00 00 03 00 14 | 00 29 07 16 20 77 6f 75 |........|.).. wou|
|00005df0| 6c 64 20 68 61 76 65 20 | 74 68 65 20 76 61 6c 75 |ld have |the valu|
|00005e00| 65 20 00 1a 00 00 00 00 | ff ff 00 03 00 16 00 15 |e ......|........|
|00005e10| cb c0 00 29 6c 01 33 00 | 00 1a 00 00 00 00 00 00 |...)l.3.|........|
|00005e20| 00 03 00 14 00 15 cb c0 | 00 29 07 01 2c 00 00 1a |........|.)..,...|
|00005e30| 00 00 00 00 ff ff 00 03 | 00 16 00 28 01 aa 00 10 |........|...(....|
|00005e40| 01 61 00 1a 00 00 00 00 | 00 00 00 03 00 14 00 29 |.a......|.......)|
|00005e50| 07 16 20 77 6f 75 6c 64 | 20 68 61 76 65 20 74 68 |.. would| have th|
|00005e60| 65 20 76 61 6c 75 65 20 | 00 1a 00 00 00 00 ff ff |e value |........|
|00005e70| 00 03 00 16 00 15 cb c0 | 00 29 6c 01 31 00 00 1a |........|.)l.1...|
|00005e80| 00 00 00 00 00 00 00 03 | 00 14 00 15 cb c0 00 29 |........|.......)|
|00005e90| 07 01 2c 00 00 1a 00 00 | 00 00 ff ff 00 03 00 16 |..,.....|........|
|00005ea0| 00 28 01 b7 00 10 04 72 | 65 73 74 00 00 1a 00 00 |.(.....r|est.....|
|00005eb0| 00 00 00 00 00 03 00 14 | 00 29 1c 16 20 77 6f 75 |........|.).. wou|
|00005ec0| 6c 64 20 68 61 76 65 20 | 74 68 65 20 76 61 6c 75 |ld have |the valu|
|00005ed0| 65 20 00 1a 00 00 00 00 | ff ff 00 03 00 16 00 15 |e ......|........|
|00005ee0| cb c0 00 29 6c 05 7b 34 | 2c 35 7d 00 00 1a 00 00 |...)l.{4|,5}.....|
|00005ef0| 00 00 00 00 00 03 00 14 | 00 28 01 c3 00 22 1e 66 |........|.(...".f|
|00005f00| 6f 72 20 74 68 65 20 64 | 75 72 61 74 69 6f 6e 20 |or the d|uration |
|00005f10| 6f 66 20 74 68 61 74 20 | 72 75 6c 65 2e 00 00 04 |of that |rule....|
|00005f20| 01 00 00 28 01 dc 00 00 | 05 4e 6f 74 65 3a 00 04 |...(....|.Note:..|
|00005f30| 00 00 00 15 79 c0 00 29 | 1c 2c 20 74 68 65 72 65 |....y..)|., there|
|00005f40| 20 61 72 65 20 74 77 6f | 20 77 61 79 73 20 6f 66 | are two| ways of|
|00005f50| 20 6c 6f 6f 6b 69 6e 67 | 20 61 74 20 74 68 65 20 | looking| at the |
|00005f60| 76 61 6c 75 65 20 00 1a | 00 00 00 00 ff ff 00 03 |value ..|........|
|00005f70| 00 16 00 15 b8 c0 00 29 | cf 04 72 65 73 74 00 1a |.......)|..rest..|
|00005f80| 00 00 00 00 00 00 00 03 | 00 14 00 15 b8 c0 00 29 |........|.......)|
|00005f90| 1c 01 3a 00 00 28 01 e9 | 00 10 03 28 61 29 00 1a |..:..(..|...(a)..|
|00005fa0| 00 00 00 00 ff ff 00 03 | 00 16 00 29 12 05 2e 72 |........|...)...r|
|00005fb0| 65 73 74 00 00 1a 00 00 | 00 00 00 00 00 03 00 14 |est.....|........|
|00005fc0| 00 29 23 11 20 68 61 73 | 20 74 68 65 20 27 76 61 |.)#. has| the 'va|
|00005fd0| 6c 75 65 27 20 00 00 1a | 00 00 00 00 ff ff 00 03 |lue' ...|........|
|00005fe0| 00 16 00 15 75 40 00 29 | 49 03 34 2c 35 00 00 1a |....u@.)|I.4,5...|
|00005ff0| 00 00 00 00 00 00 00 03 | 00 14 00 28 01 f6 00 10 |........|...(....|
|00006000| 03 28 62 29 00 1a 00 00 | 00 00 ff ff 00 03 00 16 |.(b)....|........|
|00006010| 00 29 12 04 72 65 73 74 | 00 1a 00 00 00 00 00 00 |.)..rest|........|
|00006020| 00 03 00 14 00 29 1c 0f | 20 68 61 73 20 74 68 65 |.....)..| has the|
|00006030| 20 76 61 6c 75 65 20 00 | 00 1a 00 00 00 00 ff ff | value .|........|
|00006040| 00 03 00 16 00 15 23 c0 | 00 29 45 05 7b 34 2c 35 |......#.|.)E.{4,5|
|00006050| 7d 00 00 1a 00 00 00 00 | 00 00 00 03 00 14 00 15 |}.......|........|
|00006060| 23 c0 00 29 23 01 2e 00 | 00 28 02 02 00 10 5b 45 |#..)#...|.(....[E|
|00006070| 69 74 68 65 72 20 77 61 | 79 20 69 73 20 76 61 6c |ither wa|y is val|
|00006080| 69 64 20 77 68 65 6e 20 | 77 6f 72 6b 69 6e 67 20 |id when |working |
|00006090| 6f 75 74 20 77 68 61 74 | 20 74 68 65 20 63 6f 6e |out what| the con|
|000060a0| 73 65 71 75 65 6e 63 65 | 73 20 6f 66 20 61 20 70 |sequence|s of a p|
|000060b0| 69 65 63 65 20 6f 66 20 | 63 6f 64 65 20 61 72 65 |iece of |code are|
|000060c0| 2c 20 62 75 74 20 28 61 | 29 20 00 28 02 0f 00 00 |, but (a|) .(....|
|000060d0| 17 69 73 20 6d 6f 72 65 | 20 61 63 63 75 72 61 74 |.is more| accurat|
|000060e0| 65 20 73 69 6e 63 65 20 | 00 1a 00 00 00 00 ff ff |e since |........|
|000060f0| 00 03 00 16 00 15 c4 00 | 00 29 6d 05 2e 72 65 73 |........|.)m..res|
|00006100| 74 00 00 1a 00 00 00 00 | 00 00 00 03 00 14 00 15 |t.......|........|
|00006110| c4 00 00 29 23 28 20 69 | 73 20 6e 6f 74 20 61 20 |...)#( i|s not a |
|00006120| 73 69 6e 67 6c 65 20 61 | 72 67 75 6d 65 6e 74 2e |single a|rgument.|
|00006130| 20 49 6d 61 67 69 6e 65 | 20 74 68 61 74 20 00 1a | Imagine| that ..|
|00006140| 00 00 00 00 ff ff 00 03 | 00 16 00 15 b5 80 00 29 |........|.......)|
|00006150| bb 04 72 65 73 74 00 1a | 00 00 00 00 00 00 00 03 |..rest..|........|
|00006160| 00 14 00 15 b5 80 00 29 | 1c 14 20 70 69 63 6b 73 |.......)|.. picks|
|00006170| 20 75 70 20 61 20 70 69 | 61 72 20 6f 66 20 00 28 | up a pi|ar of .(|
|00006180| 02 1c 00 00 45 62 72 61 | 63 6b 65 74 73 20 69 6e |....Ebra|ckets in|
|00006190| 20 74 68 65 20 70 72 6f | 63 65 73 73 20 6f 66 20 | the pro|cess of |
|000061a0| 72 65 6d 6f 76 69 6e 67 | 20 74 68 65 20 64 6f 74 |removing| the dot|
|000061b0| 2c 20 61 6e 64 20 6c 6f | 73 65 73 20 74 68 65 6d |, and lo|ses them|
|000061c0| 20 61 67 61 69 6e 20 69 | 66 20 00 1a 00 00 00 00 | again i|f ......|
|000061d0| ff ff 00 03 00 16 00 15 | 0c 80 00 28 02 1c 01 47 |........|...(...G|
|000061e0| 05 2e 72 65 73 74 00 1a | 00 00 00 00 00 00 00 03 |..rest..|........|
|000061f0| 00 14 00 15 0c 80 00 29 | 23 16 20 69 73 20 75 73 |.......)|#. is us|
|00006200| 65 64 2e 20 54 68 69 73 | 20 69 73 20 68 6f 77 20 |ed. This| is how |
|00006210| 00 28 02 28 00 00 2e 52 | 65 57 72 69 74 65 20 68 |.(.(...R|eWrite h|
|00006220| 61 6e 64 6c 65 73 20 76 | 61 72 69 61 62 6c 65 20 |andles v|ariable |
|00006230| 6e 75 6d 62 65 72 73 20 | 6f 66 20 61 72 67 75 6d |numbers |of argum|
|00006240| 65 6e 74 73 2e 00 00 2b | 10 18 60 43 6f 6e 74 69 |ents...+|..`Conti|
|00006250| 6e 75 69 6e 67 20 74 68 | 61 74 20 65 78 61 6d 70 |nuing th|at examp|
|00006260| 6c 65 2c 20 78 20 69 73 | 20 6e 6f 74 20 6c 65 73 |le, x is| not les|
|00006270| 73 20 74 68 61 6e 20 61 | 2c 20 73 6f 20 74 68 65 |s than a|, so the|
|00006280| 20 73 65 63 6f 6e 64 20 | 72 75 6c 65 20 69 73 20 | second |rule is |
|00006290| 6e 6f 74 20 6d 61 74 63 | 68 65 64 2c 20 62 75 74 |not matc|hed, but|
|000062a0| 20 74 68 65 20 74 68 69 | 72 64 20 00 00 28 02 4c | the thi|rd ..(.L|
|000062b0| 00 00 20 6f 6e 65 20 69 | 73 20 73 6f 20 74 68 65 |.. one i|s so the|
|000062c0| 20 6e 65 78 74 20 73 74 | 65 70 20 77 69 6c 6c 20 | next st|ep will |
|000062d0| 62 65 3a 00 00 1a 00 00 | 00 00 ff ff 00 03 00 16 |be:.....|........|
|000062e0| 00 2b 10 0d 14 7b 31 2c | 2e 69 6e 73 65 72 74 5b |.+...{1,|.insert[|
|000062f0| 33 2c 7b 34 2c 35 7d 5d | 7d 00 00 1a 00 00 00 00 |3,{4,5}]|}.......|
|00006300| 00 00 00 03 00 14 00 29 | 8c 45 20 20 20 20 20 20 |.......)|.E |
|00006310| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006320| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006330| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006340| 20 20 20 20 20 20 20 20 | 20 20 20 28 2a 29 20 00 | | (*) .|
|00006350| 00 1a 00 00 00 00 ff ff | 00 03 00 16 00 15 7c 80 |........|......|.|
|00006360| 00 29 d4 01 20 00 00 1a | 00 00 00 00 00 00 00 03 |.).. ...|........|
|00006370| 00 14 00 28 02 66 00 00 | 05 57 68 65 6e 20 00 1a |...(.f..|.When ..|
|00006380| 00 00 00 00 ff ff 00 03 | 00 16 00 15 27 00 00 29 |........|....'..)|
|00006390| 20 0f 69 6e 73 65 72 74 | 5b 33 2c 7b 34 2c 35 7d | .insert|[3,{4,5}|
|000063a0| 5d 00 00 1a 00 00 00 00 | 00 00 00 03 00 14 00 15 |].......|........|
|000063b0| 27 00 00 29 69 0b 20 69 | 73 20 63 61 6c 6c 65 64 |'..)i. i|s called|
|000063c0| 2c 00 00 1a 00 00 00 00 | ff ff 00 03 00 16 00 28 |,.......|.......(|
|000063d0| 02 73 00 10 01 78 00 1a | 00 00 00 00 00 00 00 03 |.s...x..|........|
|000063e0| 00 14 00 29 07 09 20 77 | 69 6c 6c 20 62 65 20 00 |...).. w|ill be .|
|000063f0| 00 1a 00 00 00 00 ff ff | 00 03 00 16 00 15 7d c0 |........|......}.|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.