home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume16 / spiff / part04 < prev    next >
SHell self-extracting ARchive  |  1988-11-10  |  26.9 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: SHell self-extracting ARchive (archive/shar).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert SHell self-extracting ARchive (archive/shar) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news or mail, ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/329 Shell Archive Format default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/rfc822 default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 53 75 62 6a 65 63 74 3a | 20 20 76 31 36 69 30 37 |Subject:| v16i07|
|00000010| 30 3a 20 20 53 70 69 66 | 66 2c 20 66 69 6e 64 20 |0: Spif|f, find |
|00000020| 61 70 70 72 6f 78 69 6d | 61 74 65 20 64 69 66 66 |approxim|ate diff|
|00000030| 65 72 65 6e 63 65 73 20 | 69 6e 20 66 69 6c 65 73 |erences |in files|
|00000040| 2c 20 50 61 72 74 30 34 | 2f 30 34 0a 4e 65 77 73 |, Part04|/04.News|
|00000050| 67 72 6f 75 70 73 3a 20 | 63 6f 6d 70 2e 73 6f 75 |groups: |comp.sou|
|00000060| 72 63 65 73 2e 75 6e 69 | 78 0a 53 65 6e 64 65 72 |rces.uni|x.Sender|
|00000070| 3a 20 73 6f 75 72 63 65 | 73 0a 41 70 70 72 6f 76 |: source|s.Approv|
|00000080| 65 64 3a 20 72 73 61 6c | 7a 40 75 75 6e 65 74 2e |ed: rsal|z@uunet.|
|00000090| 55 55 2e 4e 45 54 0a 0a | 53 75 62 6d 69 74 74 65 |UU.NET..|Submitte|
|000000a0| 64 2d 62 79 3a 20 44 61 | 6e 69 65 6c 20 57 20 4e |d-by: Da|niel W N|
|000000b0| 61 63 68 62 61 72 20 3c | 64 61 6e 69 65 6c 40 77 |achbar <|daniel@w|
|000000c0| 69 6e 64 2e 62 65 6c 6c | 63 6f 72 65 2e 63 6f 6d |ind.bell|core.com|
|000000d0| 3e 0a 50 6f 73 74 69 6e | 67 2d 6e 75 6d 62 65 72 |>.Postin|g-number|
|000000e0| 3a 20 56 6f 6c 75 6d 65 | 20 31 36 2c 20 49 73 73 |: Volume| 16, Iss|
|000000f0| 75 65 20 37 30 0a 41 72 | 63 68 69 76 65 2d 6e 61 |ue 70.Ar|chive-na|
|00000100| 6d 65 3a 20 73 70 69 66 | 66 2f 70 61 72 74 30 34 |me: spif|f/part04|
|00000110| 0a 0a 23 21 20 2f 62 69 | 6e 2f 73 68 0a 23 20 54 |..#! /bi|n/sh.# T|
|00000120| 68 69 73 20 69 73 20 61 | 20 73 68 65 6c 6c 20 61 |his is a| shell a|
|00000130| 72 63 68 69 76 65 2e 20 | 20 52 65 6d 6f 76 65 20 |rchive. | Remove |
|00000140| 61 6e 79 74 68 69 6e 67 | 20 62 65 66 6f 72 65 20 |anything| before |
|00000150| 74 68 69 73 20 6c 69 6e | 65 2c 20 74 68 65 6e 20 |this lin|e, then |
|00000160| 75 6e 70 61 63 6b 0a 23 | 20 69 74 20 62 79 20 73 |unpack.#| it by s|
|00000170| 61 76 69 6e 67 20 69 74 | 20 69 6e 74 6f 20 61 20 |aving it| into a |
|00000180| 66 69 6c 65 20 61 6e 64 | 20 74 79 70 69 6e 67 20 |file and| typing |
|00000190| 22 73 68 20 66 69 6c 65 | 22 2e 20 20 54 6f 20 6f |"sh file|". To o|
|000001a0| 76 65 72 77 72 69 74 65 | 20 65 78 69 73 74 69 6e |verwrite| existin|
|000001b0| 67 0a 23 20 66 69 6c 65 | 73 2c 20 74 79 70 65 20 |g.# file|s, type |
|000001c0| 22 73 68 20 66 69 6c 65 | 20 2d 63 22 2e 20 20 59 |"sh file| -c". Y|
|000001d0| 6f 75 20 63 61 6e 20 61 | 6c 73 6f 20 66 65 65 64 |ou can a|lso feed|
|000001e0| 20 74 68 69 73 20 61 73 | 20 73 74 61 6e 64 61 72 | this as| standar|
|000001f0| 64 20 69 6e 70 75 74 20 | 76 69 61 0a 23 20 75 6e |d input |via.# un|
|00000200| 73 68 61 72 2c 20 6f 72 | 20 62 79 20 74 79 70 69 |shar, or| by typi|
|00000210| 6e 67 20 22 73 68 20 3c | 66 69 6c 65 22 2c 20 65 |ng "sh <|file", e|
|00000220| 2e 67 2e 2e 20 20 49 66 | 20 74 68 69 73 20 61 72 |.g.. If| this ar|
|00000230| 63 68 69 76 65 20 69 73 | 20 63 6f 6d 70 6c 65 74 |chive is| complet|
|00000240| 65 2c 20 79 6f 75 0a 23 | 20 77 69 6c 6c 20 73 65 |e, you.#| will se|
|00000250| 65 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |e the fo|llowing |
|00000260| 6d 65 73 73 61 67 65 20 | 61 74 20 74 68 65 20 65 |message |at the e|
|00000270| 6e 64 3a 0a 23 09 09 22 | 45 6e 64 20 6f 66 20 61 |nd:.#.."|End of a|
|00000280| 72 63 68 69 76 65 20 34 | 20 28 6f 66 20 34 29 2e |rchive 4| (of 4).|
|00000290| 22 0a 23 20 43 6f 6e 74 | 65 6e 74 73 3a 20 20 70 |".# Cont|ents: p|
|000002a0| 61 70 65 72 2e 6d 73 0a | 23 20 57 72 61 70 70 65 |aper.ms.|# Wrappe|
|000002b0| 64 20 62 79 20 72 73 61 | 6c 7a 40 70 61 70 61 79 |d by rsa|lz@papay|
|000002c0| 61 2e 62 62 6e 2e 63 6f | 6d 20 6f 6e 20 46 72 69 |a.bbn.co|m on Fri|
|000002d0| 20 4e 6f 76 20 31 31 20 | 31 33 3a 31 32 3a 32 37 | Nov 11 |13:12:27|
|000002e0| 20 31 39 38 38 0a 50 41 | 54 48 3d 2f 62 69 6e 3a | 1988.PA|TH=/bin:|
|000002f0| 2f 75 73 72 2f 62 69 6e | 3a 2f 75 73 72 2f 75 63 |/usr/bin|:/usr/uc|
|00000300| 62 20 3b 20 65 78 70 6f | 72 74 20 50 41 54 48 0a |b ; expo|rt PATH.|
|00000310| 69 66 20 74 65 73 74 20 | 2d 66 20 27 70 61 70 65 |if test |-f 'pape|
|00000320| 72 2e 6d 73 27 20 2d 61 | 20 22 24 7b 31 7d 22 20 |r.ms' -a| "${1}" |
|00000330| 21 3d 20 22 2d 63 22 20 | 3b 20 74 68 65 6e 20 0a |!= "-c" |; then .|
|00000340| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 57 69 6c | echo s|har: Wil|
|00000350| 6c 20 6e 6f 74 20 63 6c | 6f 62 62 65 72 20 65 78 |l not cl|obber ex|
|00000360| 69 73 74 69 6e 67 20 66 | 69 6c 65 20 5c 22 27 70 |isting f|ile \"'p|
|00000370| 61 70 65 72 2e 6d 73 27 | 5c 22 0a 65 6c 73 65 0a |aper.ms'|\".else.|
|00000380| 65 63 68 6f 20 73 68 61 | 72 3a 20 45 78 74 72 61 |echo sha|r: Extra|
|00000390| 63 74 69 6e 67 20 5c 22 | 27 70 61 70 65 72 2e 6d |cting \"|'paper.m|
|000003a0| 73 27 5c 22 20 5c 28 32 | 35 31 35 34 20 63 68 61 |s'\" \(2|5154 cha|
|000003b0| 72 61 63 74 65 72 73 5c | 29 0a 73 65 64 20 22 73 |racters\|).sed "s|
|000003c0| 2f 5e 58 2f 2f 22 20 3e | 27 70 61 70 65 72 2e 6d |/^X//" >|'paper.m|
|000003d0| 73 27 20 3c 3c 27 45 4e | 44 5f 4f 46 5f 46 49 4c |s' <<'EN|D_OF_FIL|
|000003e0| 45 27 0a 58 2e 6c 6c 20 | 36 69 0a 58 2e 6e 72 20 |E'.X.ll |6i.X.nr |
|000003f0| 50 4f 20 31 2e 31 35 69 | 0a 58 2e 6e 72 20 48 4d |PO 1.15i|.X.nr HM|
|00000400| 20 30 69 0a 58 2e 6e 72 | 20 46 4d 20 31 2e 30 35 | 0i.X.nr| FM 1.05|
|00000410| 69 0a 58 2e 54 4c 0a 58 | 53 50 49 46 46 20 2d 2d |i.X.TL.X|SPIFF --|
|00000420| 20 41 20 50 72 6f 67 72 | 61 6d 20 66 6f 72 20 4d | A Progr|am for M|
|00000430| 61 6b 69 6e 67 20 43 6f | 6e 74 72 6f 6c 6c 65 64 |aking Co|ntrolled|
|00000440| 20 41 70 70 72 6f 78 69 | 6d 61 74 65 20 43 6f 6d | Approxi|mate Com|
|00000450| 70 61 72 69 73 6f 6e 73 | 20 6f 66 20 46 69 6c 65 |parisons| of File|
|00000460| 73 0a 58 2e 41 55 0a 58 | 44 61 6e 69 65 6c 20 4e |s.X.AU.X|Daniel N|
|00000470| 61 63 68 62 61 72 0a 58 | 2e 41 49 0a 58 53 6f 66 |achbar.X|.AI.XSof|
|00000480| 74 77 61 72 65 20 45 6e | 67 69 6e 65 65 72 69 6e |tware En|gineerin|
|00000490| 67 20 52 65 73 65 61 72 | 63 68 20 47 72 6f 75 70 |g Resear|ch Group|
|000004a0| 0a 58 42 65 6c 6c 20 43 | 6f 6d 6d 75 6e 69 63 61 |.XBell C|ommunica|
|000004b0| 74 69 6f 6e 73 20 52 65 | 73 65 61 72 63 68 0a 58 |tions Re|search.X|
|000004c0| 4d 6f 72 72 69 73 74 6f | 77 6e 2c 20 4e 65 77 20 |Morristo|wn, New |
|000004d0| 4a 65 72 73 65 79 0a 58 | 2e 41 42 0a 58 54 68 65 |Jersey.X|.AB.XThe|
|000004e0| 20 77 65 6c 6c 20 6b 6e | 6f 77 6e 20 70 72 6f 67 | well kn|own prog|
|000004f0| 72 61 6d 20 0a 58 2e 42 | 0a 58 64 69 66 66 0a 58 |ram .X.B|.Xdiff.X|
|00000500| 2e 52 0a 58 5b 31 5d 0a | 58 69 73 20 69 6e 61 70 |.R.X[1].|Xis inap|
|00000510| 70 72 6f 70 72 69 61 74 | 65 20 66 6f 72 20 73 6f |propriat|e for so|
|00000520| 6d 65 0a 58 63 6f 6d 6d | 6f 6e 20 74 61 73 6b 73 |me.Xcomm|on tasks|
|00000530| 20 73 75 63 68 20 61 73 | 20 63 6f 6d 70 61 72 69 | such as| compari|
|00000540| 6e 67 20 74 68 65 20 6f | 75 74 70 75 74 20 6f 66 |ng the o|utput of|
|00000550| 20 66 6c 6f 61 74 69 6e | 67 0a 58 70 6f 69 6e 74 | floatin|g.Xpoint|
|00000560| 20 63 61 6c 63 75 6c 61 | 74 69 6f 6e 73 20 77 68 | calcula|tions wh|
|00000570| 65 72 65 20 72 6f 75 6e | 64 6f 66 66 20 65 72 72 |ere roun|doff err|
|00000580| 6f 72 73 0a 58 6c 65 61 | 64 20 0a 58 2e 42 0a 58 |ors.Xlea|d .X.B.X|
|00000590| 64 69 66 66 0a 58 2e 52 | 0a 58 61 73 74 72 61 79 |diff.X.R|.Xastray|
|000005a0| 20 61 6e 64 20 63 6f 6d | 70 61 72 69 6e 67 20 70 | and com|paring p|
|000005b0| 72 6f 67 72 61 6d 20 73 | 6f 75 72 63 65 20 63 6f |rogram s|ource co|
|000005c0| 64 65 0a 58 77 68 65 72 | 65 20 73 6f 6d 65 20 64 |de.Xwher|e some d|
|000005d0| 69 66 66 65 72 65 6e 63 | 65 73 20 69 6e 20 74 68 |ifferenc|es in th|
|000005e0| 65 20 74 65 78 74 20 28 | 73 75 63 68 20 61 73 20 |e text (|such as |
|000005f0| 77 68 69 74 65 20 73 70 | 61 63 65 20 61 6e 64 20 |white sp|ace and |
|00000600| 63 6f 6d 6d 65 6e 74 73 | 29 0a 58 68 61 76 65 20 |comments|).Xhave |
|00000610| 6e 6f 20 65 66 66 65 63 | 74 20 6f 6e 20 74 68 65 |no effec|t on the|
|00000620| 20 6f 70 65 72 61 74 69 | 6f 6e 20 6f 66 20 74 68 | operati|on of th|
|00000630| 65 20 63 6f 6d 70 69 6c | 65 64 20 63 6f 64 65 2e |e compil|ed code.|
|00000640| 20 41 20 6e 65 77 20 70 | 72 6f 67 72 61 6d 2c 0a | A new p|rogram,.|
|00000650| 58 6e 61 6d 65 64 20 0a | 58 2e 42 0a 58 73 70 69 |Xnamed .|X.B.Xspi|
|00000660| 66 66 2c 0a 58 2e 52 0a | 58 61 64 64 72 65 73 73 |ff,.X.R.|Xaddress|
|00000670| 65 73 20 74 68 65 73 65 | 20 61 6e 64 20 6f 74 68 |es these| and oth|
|00000680| 65 72 20 73 69 6d 69 6c | 61 72 20 63 61 73 65 73 |er simil|ar cases|
|00000690| 0a 58 62 79 20 6c 65 78 | 69 63 61 6c 20 70 61 72 |.Xby lex|ical par|
|000006a0| 73 69 6e 67 20 6f 66 20 | 74 68 65 20 69 6e 70 75 |sing of |the inpu|
|000006b0| 74 20 66 69 6c 65 73 20 | 61 6e 64 20 74 68 65 6e |t files |and then|
|000006c0| 20 61 70 70 6c 79 69 6e | 67 0a 58 61 20 64 69 66 | applyin|g.Xa dif|
|000006d0| 66 65 72 65 6e 63 69 6e | 67 20 61 6c 67 6f 72 69 |ferencin|g algori|
|000006e0| 74 68 6d 20 74 6f 20 74 | 68 65 20 74 6f 6b 65 6e |thm to t|he token|
|000006f0| 20 73 65 71 75 65 6e 63 | 65 73 2e 20 20 0a 58 2e | sequenc|es. .X.|
|00000700| 42 0a 58 53 70 69 66 66 | 0a 58 2e 52 0a 58 69 67 |B.XSpiff|.X.R.Xig|
|00000710| 6e 6f 72 65 73 20 64 69 | 66 66 65 72 65 6e 63 65 |nores di|fference|
|00000720| 73 0a 58 62 65 74 77 65 | 65 6e 20 66 6c 6f 61 74 |s.Xbetwe|en float|
|00000730| 69 6e 67 20 70 6f 69 6e | 74 20 6e 75 6d 62 65 72 |ing poin|t number|
|00000740| 73 20 74 68 61 74 20 61 | 72 65 20 62 65 6c 6f 77 |s that a|re below|
|00000750| 20 61 20 75 73 65 72 20 | 73 65 74 74 61 62 6c 65 | a user |settable|
|00000760| 20 74 6f 6c 65 72 61 6e | 63 65 2e 0a 58 4f 74 68 | toleran|ce..XOth|
|00000770| 65 72 20 66 65 61 74 75 | 72 65 73 20 69 6e 63 6c |er featu|res incl|
|00000780| 75 64 65 20 75 73 65 72 | 20 73 65 74 74 61 62 6c |ude user| settabl|
|00000790| 65 20 63 6f 6d 6d 65 6e | 74 69 6e 67 20 61 6e 64 |e commen|ting and|
|000007a0| 20 6c 69 74 65 72 61 6c | 20 73 74 72 69 6e 67 0a | literal| string.|
|000007b0| 58 63 6f 6e 76 65 6e 74 | 69 6f 6e 73 20 61 6e 64 |Xconvent|ions and|
|000007c0| 20 61 20 63 68 6f 69 63 | 65 20 6f 66 20 64 69 66 | a choic|e of dif|
|000007d0| 66 65 72 65 6e 63 69 6e | 67 20 61 6c 67 6f 72 69 |ferencin|g algori|
|000007e0| 74 68 6d 2e 0a 58 54 68 | 65 72 65 20 69 73 20 61 |thm..XTh|ere is a|
|000007f0| 6c 73 6f 20 61 6e 20 69 | 6e 74 65 72 61 63 74 69 |lso an i|nteracti|
|00000800| 76 65 20 6d 6f 64 65 20 | 77 68 65 72 65 69 6e 20 |ve mode |wherein |
|00000810| 74 68 65 20 69 6e 70 75 | 74 20 74 65 78 74 73 20 |the inpu|t texts |
|00000820| 61 72 65 20 64 69 73 70 | 6c 61 79 65 64 0a 58 77 |are disp|layed.Xw|
|00000830| 69 74 68 20 64 69 66 66 | 65 72 65 6e 63 65 73 20 |ith diff|erences |
|00000840| 68 69 67 68 6c 69 67 68 | 74 65 64 2e 20 20 54 68 |highligh|ted. Th|
|00000850| 65 20 75 73 65 72 20 63 | 61 6e 20 63 68 61 6e 67 |e user c|an chang|
|00000860| 65 20 6e 75 6d 65 72 69 | 63 20 74 6f 6c 65 72 61 |e numeri|c tolera|
|00000870| 6e 63 65 73 0a 58 22 6f | 6e 20 74 68 65 20 66 6c |nces.X"o|n the fl|
|00000880| 79 22 20 61 6e 64 20 0a | 58 2e 42 0a 58 73 70 69 |y" and .|X.B.Xspi|
|00000890| 66 66 0a 58 2e 52 0a 58 | 77 69 6c 6c 20 61 64 6a |ff.X.R.X|will adj|
|000008a0| 75 73 74 20 74 68 65 20 | 68 69 67 68 6c 69 67 68 |ust the |highligh|
|000008b0| 74 69 6e 67 20 61 63 63 | 6f 72 64 69 6e 67 6c 79 |ting acc|ordingly|
|000008c0| 2e 20 0a 58 2e 41 45 0a | 58 2e 53 48 0a 58 53 6f |. .X.AE.|X.SH.XSo|
|000008d0| 6d 65 20 54 72 6f 75 62 | 6c 65 73 20 57 69 74 68 |me Troub|les With|
|000008e0| 20 44 69 66 66 0a 58 2e | 50 50 0a 58 4f 76 65 72 | Diff.X.|PP.XOver|
|000008f0| 20 74 68 65 20 70 61 73 | 74 20 73 65 76 65 72 61 | the pas|t severa|
|00000900| 6c 20 79 65 61 72 73 2c | 20 69 74 20 68 61 73 20 |l years,| it has |
|00000910| 62 65 65 6e 20 66 61 69 | 72 6c 79 20 65 61 73 79 |been fai|rly easy|
|00000920| 20 74 6f 20 74 65 6c 6c | 20 77 68 65 6e 20 0a 58 | to tell| when .X|
|00000930| 61 20 6e 65 77 20 74 79 | 70 65 20 6f 66 20 63 6f |a new ty|pe of co|
|00000940| 6d 70 75 74 65 72 20 61 | 72 72 69 76 65 64 20 61 |mputer a|rrived a|
|00000950| 74 20 61 20 6e 65 61 72 | 62 79 20 63 6f 6d 70 75 |t a near|by compu|
|00000960| 74 65 72 20 63 65 6e 74 | 65 72 2e 0a 58 54 68 65 |ter cent|er..XThe|
|00000970| 20 62 65 73 74 20 63 6c | 75 65 20 77 61 73 20 74 | best cl|ue was t|
|00000980| 68 65 20 64 69 73 63 6f | 72 64 61 6e 74 20 63 68 |he disco|rdant ch|
|00000990| 6f 72 75 73 20 6f 66 0a | 58 67 72 6f 61 6e 69 6e |orus of.|Xgroanin|
|000009a0| 67 2c 20 73 69 67 68 69 | 6e 67 2c 20 67 6e 61 73 |g, sighi|ng, gnas|
|000009b0| 68 69 6e 67 20 6f 66 20 | 74 65 65 74 68 2c 20 70 |hing of |teeth, p|
|000009c0| 6f 75 6e 64 69 6e 67 20 | 6f 66 20 66 6f 72 65 68 |ounding |of foreh|
|000009d0| 65 61 64 73 20 6f 6e 20 | 64 65 73 6b 73 2c 0a 58 |eads on |desks,.X|
|000009e0| 61 6e 64 20 6f 74 68 65 | 72 20 73 6f 75 6e 64 73 |and othe|r sounds|
|000009f0| 20 6f 66 20 64 69 73 74 | 72 65 73 73 2e 20 20 54 | of dist|ress. T|
|00000a00| 72 61 63 69 6e 67 20 74 | 68 65 73 65 20 6e 6f 69 |racing t|hese noi|
|00000a10| 73 65 73 20 74 6f 20 74 | 68 65 69 72 20 73 6f 75 |ses to t|heir sou|
|00000a20| 72 63 65 2c 20 6f 6e 65 | 0a 58 77 6f 75 6c 64 20 |rce, one|.Xwould |
|00000a30| 66 69 6e 64 20 73 6f 6d | 65 20 70 6f 6f 72 20 73 |find som|e poor s|
|00000a40| 6f 75 6c 20 69 6e 20 74 | 68 65 20 70 72 6f 63 65 |oul in t|he proce|
|00000a50| 73 73 20 6f 66 20 69 6e | 73 74 61 6c 6c 69 6e 67 |ss of in|stalling|
|00000a60| 0a 58 61 20 6e 75 6d 65 | 72 69 63 61 6c 20 61 6e |.Xa nume|rical an|
|00000a70| 61 6c 79 73 69 73 20 70 | 61 63 6b 61 67 65 20 6f |alysis p|ackage o|
|00000a80| 6e 20 74 68 65 20 6e 65 | 77 20 6d 61 63 68 69 6e |n the ne|w machin|
|00000a90| 65 2e 0a 58 2e 50 50 0a | 58 4f 6e 65 20 6d 69 67 |e..X.PP.|XOne mig|
|00000aa0| 68 74 20 65 78 70 65 63 | 74 20 74 68 61 74 20 22 |ht expec|t that "|
|00000ab0| 6d 6f 76 69 6e 67 20 75 | 70 22 20 74 6f 20 61 20 |moving u|p" to a |
|00000ac0| 6e 65 77 20 6d 61 63 68 | 69 6e 65 0a 58 77 6f 75 |new mach|ine.Xwou|
|00000ad0| 6c 64 20 62 65 20 61 20 | 63 61 75 73 65 20 66 6f |ld be a |cause fo|
|00000ae0| 72 20 63 65 6c 65 62 72 | 61 74 69 6f 6e 2e 0a 58 |r celebr|ation..X|
|00000af0| 41 66 74 65 72 20 61 6c | 6c 2c 20 6e 65 77 20 6d |After al|l, new m|
|00000b00| 61 63 68 69 6e 65 73 20 | 61 72 65 20 74 79 70 69 |achines |are typi|
|00000b10| 63 61 6c 6c 79 20 62 69 | 67 67 65 72 2c 20 66 61 |cally bi|gger, fa|
|00000b20| 73 74 65 72 2c 0a 58 61 | 6e 64 20 62 65 74 74 65 |ster,.Xa|nd bette|
|00000b30| 72 20 74 68 61 6e 20 6f | 6c 64 20 6d 61 63 68 69 |r than o|ld machi|
|00000b40| 6e 65 73 2e 0a 58 48 6f | 77 65 76 65 72 2c 20 74 |nes..XHo|wever, t|
|00000b50| 68 65 20 66 6c 6f 61 74 | 69 6e 67 20 70 6f 69 6e |he float|ing poin|
|00000b60| 74 20 61 72 69 74 68 6d | 65 74 69 63 20 6f 6e 20 |t arithm|etic on |
|00000b70| 61 6e 79 20 6e 65 77 20 | 6d 61 63 68 69 6e 65 20 |any new |machine |
|00000b80| 69 73 20 66 72 65 71 75 | 65 6e 74 6c 79 0a 58 73 |is frequ|ently.Xs|
|00000b90| 6c 69 67 68 74 6c 79 20 | 64 69 66 66 65 72 65 6e |lightly |differen|
|00000ba0| 74 20 66 72 6f 6d 20 61 | 6e 79 20 6f 6c 64 20 6d |t from a|ny old m|
|00000bb0| 61 63 68 69 6e 65 2e 0a | 58 41 73 20 61 20 63 6f |achine..|XAs a co|
|00000bc0| 6e 73 65 71 75 65 6e 63 | 65 2c 0a 58 73 6f 66 74 |nsequenc|e,.Xsoft|
|00000bd0| 77 61 72 65 20 70 61 63 | 6b 61 67 65 20 74 65 73 |ware pac|kage tes|
|00000be0| 74 20 72 6f 75 74 69 6e | 65 73 20 70 72 6f 64 75 |t routin|es produ|
|00000bf0| 63 65 20 6f 75 74 70 75 | 74 20 74 68 61 74 20 69 |ce outpu|t that i|
|00000c00| 73 20 73 6c 69 67 68 74 | 6c 79 20 64 69 66 66 65 |s slight|ly diffe|
|00000c10| 72 65 6e 74 2c 0a 58 62 | 75 74 20 73 74 69 6c 6c |rent,.Xb|ut still|
|00000c20| 20 63 6f 72 72 65 63 74 | 2c 20 6f 6e 20 74 68 65 | correct|, on the|
|00000c30| 20 6e 65 77 20 6d 61 63 | 68 69 6e 65 73 2e 0a 58 | new mac|hines..X|
|00000c40| 53 65 72 69 6f 75 73 20 | 74 72 6f 75 62 6c 65 73 |Serious |troubles|
|00000c50| 20 61 70 70 65 61 72 20 | 77 68 65 6e 20 74 68 65 | appear |when the|
|00000c60| 20 70 65 72 73 6f 6e 20 | 69 6e 73 74 61 6c 6c 69 | person |installi|
|00000c70| 6e 67 20 74 68 65 20 73 | 6f 66 74 77 61 72 65 20 |ng the s|oftware |
|00000c80| 70 61 63 6b 61 67 65 0a | 58 61 74 74 65 6d 70 74 |package.|Xattempt|
|00000c90| 73 20 74 6f 20 63 6f 6d | 70 61 72 65 20 74 68 65 |s to com|pare the|
|00000ca0| 20 74 65 73 74 20 6f 75 | 74 70 75 74 20 66 69 6c | test ou|tput fil|
|00000cb0| 65 73 20 66 72 6f 6d 20 | 74 77 6f 20 64 69 66 66 |es from |two diff|
|00000cc0| 65 72 65 6e 74 20 6d 61 | 63 68 69 6e 65 73 0a 58 |erent ma|chines.X|
|00000cd0| 62 79 20 75 73 69 6e 67 | 20 61 20 64 69 66 66 65 |by using| a diffe|
|00000ce0| 72 65 6e 63 65 20 66 69 | 6e 64 69 6e 67 20 70 72 |rence fi|nding pr|
|00000cf0| 6f 67 72 61 6d 20 73 75 | 63 68 20 61 73 0a 58 2e |ogram su|ch as.X.|
|00000d00| 42 0a 58 64 69 66 66 2e | 0a 58 2e 52 0a 58 50 72 |B.Xdiff.|.X.R.XPr|
|00000d10| 6f 67 72 61 6d 73 20 73 | 75 63 68 20 61 73 20 0a |ograms s|uch as .|
|00000d20| 58 2e 42 0a 58 64 69 66 | 66 0a 58 2e 52 0a 58 64 |X.B.Xdif|f.X.R.Xd|
|00000d30| 6f 20 61 20 63 68 61 72 | 61 63 74 65 72 20 62 79 |o a char|acter by|
|00000d40| 20 63 68 61 72 61 63 74 | 65 72 20 63 6f 6d 70 61 | charact|er compa|
|00000d50| 72 69 73 6f 6e 2e 0a 58 | 2e 42 0a 58 44 69 66 66 |rison..X|.B.XDiff|
|00000d60| 0a 58 2e 52 0a 58 66 69 | 6e 64 73 20 61 20 67 72 |.X.R.Xfi|nds a gr|
|00000d70| 65 61 74 20 6d 61 6e 79 | 20 64 69 66 66 65 72 65 |eat many| differe|
|00000d80| 6e 63 65 73 2c 20 20 6d | 6f 73 74 20 6f 66 20 77 |nces, m|ost of w|
|00000d90| 68 69 63 68 0a 58 61 72 | 65 20 64 75 65 20 74 6f |hich.Xar|e due to|
|00000da0| 20 72 6f 75 6e 64 6f 66 | 66 20 65 72 72 6f 72 73 | roundof|f errors|
|00000db0| 20 69 6e 20 74 68 65 20 | 6c 65 61 73 74 20 73 69 | in the |least si|
|00000dc0| 67 6e 69 66 69 63 61 6e | 74 20 64 69 67 69 74 73 |gnifican|t digits|
|00000dd0| 20 6f 66 20 66 6c 6f 61 | 74 69 6e 67 20 70 6f 69 | of floa|ting poi|
|00000de0| 6e 74 0a 58 6e 75 6d 62 | 65 72 73 2e 20 20 4f 74 |nt.Xnumb|ers. Ot|
|00000df0| 68 65 72 73 20 61 72 65 | 20 74 68 65 20 72 65 73 |hers are| the res|
|00000e00| 75 6c 74 20 6f 66 20 64 | 69 66 66 65 72 65 6e 63 |ult of d|ifferenc|
|00000e10| 65 73 20 69 6e 20 74 68 | 65 20 77 61 79 0a 58 69 |es in th|e way.Xi|
|00000e20| 6e 20 77 68 69 63 68 20 | 74 68 65 20 74 77 6f 20 |n which |the two |
|00000e30| 74 65 73 74 20 72 75 6e | 73 0a 58 68 61 64 20 70 |test run|s.Xhad p|
|00000e40| 72 69 6e 74 65 64 20 61 | 20 6e 75 6d 62 65 72 20 |rinted a| number |
|00000e50| 28 33 2e 34 65 2d 31 20 | 76 73 2e 20 30 2e 33 34 |(3.4e-1 |vs. 0.34|
|00000e60| 29 2e 0a 58 49 6e 20 6f | 6e 65 20 63 61 73 65 2c |)..XIn o|ne case,|
|00000e70| 20 74 68 65 20 74 65 73 | 74 20 73 75 69 74 65 20 | the tes|t suite |
|00000e80| 66 6f 72 20 74 68 65 20 | 53 20 73 74 61 74 69 73 |for the |S statis|
|00000e90| 74 69 63 61 6c 20 61 6e | 61 6c 79 73 69 73 20 70 |tical an|alysis p|
|00000ea0| 61 63 6b 61 67 65 5b 32 | 5d 2c 0a 58 6f 76 65 72 |ackage[2|],.Xover|
|00000eb0| 20 31 37 30 30 20 66 6c | 6f 61 74 69 6e 67 20 70 | 1700 fl|oating p|
|00000ec0| 6f 69 6e 74 20 6e 75 6d | 62 65 72 73 20 61 72 65 |oint num|bers are|
|00000ed0| 20 70 72 6f 64 75 63 65 | 64 0a 58 28 70 65 72 20 | produce|d.X(per |
|00000ee0| 6d 61 63 68 69 6e 65 29 | 2e 20 49 6e 20 74 68 65 |machine)|. In the|
|00000ef0| 20 65 79 65 73 20 6f 66 | 20 0a 58 2e 42 0a 58 64 | eyes of| .X.B.Xd|
|00000f00| 69 66 66 2c 0a 58 2e 52 | 0a 58 72 6f 75 67 68 6c |iff,.X.R|.Xroughl|
|00000f10| 79 20 31 32 30 30 20 6f | 66 20 74 68 65 73 65 20 |y 1200 o|f these |
|00000f20| 6e 75 6d 62 65 72 73 20 | 61 72 65 20 64 69 66 66 |numbers |are diff|
|00000f30| 65 72 65 6e 74 2e 0a 58 | 48 6f 77 65 76 65 72 2c |erent..X|However,|
|00000f40| 20 6e 6f 6e 65 20 6f 66 | 20 74 68 65 20 22 64 69 | none of| the "di|
|00000f50| 66 66 65 72 65 6e 63 65 | 73 22 20 61 72 65 20 69 |fference|s" are i|
|00000f60| 6d 70 6f 72 74 61 6e 74 | 20 6f 6e 65 73 2e 0a 58 |mportant| ones..X|
|00000f70| 4e 6f 6e 65 74 68 65 6c | 65 73 73 2c 20 73 6f 66 |Nonethel|ess, sof|
|00000f80| 74 77 61 72 65 20 69 6e | 73 74 61 6c 6c 65 72 73 |tware in|stallers|
|00000f90| 20 77 69 6e 64 20 75 70 | 20 69 6e 73 70 65 63 74 | wind up| inspect|
|00000fa0| 69 6e 67 20 74 68 65 20 | 6f 75 74 70 75 74 20 62 |ing the |output b|
|00000fb0| 79 20 65 79 65 2e 0a 58 | 2e 50 50 0a 58 41 20 73 |y eye..X|.PP.XA s|
|00000fc0| 69 6d 69 6c 61 72 20 70 | 72 6f 62 6c 65 6d 20 61 |imilar p|roblem a|
|00000fd0| 72 69 73 65 73 20 77 68 | 65 6e 20 6f 6e 65 20 61 |rises wh|en one a|
|00000fe0| 74 74 65 6d 70 74 73 20 | 74 6f 0a 58 6c 6f 6f 6b |ttempts |to.Xlook|
|00000ff0| 20 66 6f 72 20 64 69 66 | 66 65 72 65 6e 63 65 73 | for dif|ferences|
|00001000| 20 62 65 74 77 65 65 6e | 20 74 77 6f 20 76 65 72 | between| two ver|
|00001010| 73 69 6f 6e 73 0a 58 6f | 66 20 74 68 65 20 73 61 |sions.Xo|f the sa|
|00001020| 6d 65 20 43 20 70 72 6f | 67 72 61 6d 2e 0a 58 2e |me C pro|gram..X.|
|00001030| 42 0a 58 44 69 66 66 0a | 58 2e 52 0a 58 72 65 70 |B.XDiff.|X.R.Xrep|
|00001040| 6f 72 74 73 20 6d 61 6e | 79 20 64 69 66 66 65 72 |orts man|y differ|
|00001050| 65 6e 63 65 73 20 74 68 | 61 74 20 61 72 65 20 6e |ences th|at are n|
|00001060| 6f 74 20 6f 66 20 69 6e | 74 65 72 65 73 74 2e 20 |ot of in|terest. |
|00001070| 20 49 6e 0a 58 70 61 72 | 74 69 63 75 6c 61 72 2c | In.Xpar|ticular,|
|00001080| 20 77 68 69 74 65 20 73 | 70 61 63 65 20 28 65 78 | white s|pace (ex|
|00001090| 63 65 70 74 20 69 6e 73 | 69 64 65 20 71 75 6f 74 |cept ins|ide quot|
|000010a0| 61 74 69 6f 6e 20 6d 61 | 72 6b 73 29 20 61 6e 64 |ation ma|rks) and|
|000010b0| 0a 58 61 6e 79 74 68 69 | 6e 67 20 69 6e 73 69 64 |.Xanythi|ng insid|
|000010c0| 65 20 61 20 63 6f 6d 6d | 65 6e 74 20 68 61 76 65 |e a comm|ent have|
|000010d0| 20 6e 6f 20 65 66 66 65 | 63 74 20 6f 6e 20 74 68 | no effe|ct on th|
|000010e0| 65 20 6f 70 65 72 61 74 | 69 6f 6e 20 6f 66 20 74 |e operat|ion of t|
|000010f0| 68 65 20 63 6f 6d 70 69 | 6c 65 64 0a 58 70 72 6f |he compi|led.Xpro|
|00001100| 67 72 61 6d 20 61 6e 64 | 20 61 72 65 20 75 73 75 |gram and| are usu|
|00001110| 61 6c 6c 79 20 6e 6f 74 | 20 6f 66 20 69 6e 74 65 |ally not| of inte|
|00001120| 72 65 73 74 2e 0a 58 2e | 42 0a 58 44 69 66 66 0a |rest..X.|B.XDiff.|
|00001130| 58 2e 52 0a 58 64 6f 65 | 73 20 68 61 76 65 20 61 |X.R.Xdoe|s have a|
|00001140| 20 6d 6f 64 65 20 6f 66 | 20 6f 70 65 72 61 74 69 | mode of| operati|
|00001150| 6f 6e 20 77 68 65 72 65 | 20 77 68 69 74 65 20 73 |on where| white s|
|00001160| 70 61 63 65 0a 58 77 69 | 74 68 69 6e 20 61 20 6c |pace.Xwi|thin a l|
|00001170| 69 6e 65 20 28 73 70 61 | 63 65 73 20 61 6e 64 20 |ine (spa|ces and |
|00001180| 74 61 62 73 29 20 63 61 | 6e 20 62 65 20 69 67 6e |tabs) ca|n be ign|
|00001190| 6f 72 65 64 2e 0a 58 48 | 6f 77 65 76 65 72 2c 20 |ored..XH|owever, |
|000011a0| 64 69 66 66 65 72 65 6e | 63 65 73 20 69 6e 20 74 |differen|ces in t|
|000011b0| 68 65 20 70 6c 61 63 65 | 6d 65 6e 74 20 6f 66 20 |he place|ment of |
|000011c0| 6e 65 77 6c 69 6e 65 73 | 20 63 61 6e 6e 6f 74 20 |newlines| cannot |
|000011d0| 62 65 20 69 67 6e 6f 72 | 65 64 2e 0a 58 54 68 69 |be ignor|ed..XThi|
|000011e0| 73 20 69 73 20 70 61 72 | 74 69 63 75 6c 61 72 6c |s is par|ticularl|
|000011f0| 79 20 61 6e 6e 6f 79 69 | 6e 67 20 73 69 6e 63 65 |y annoyi|ng since|
|00001200| 20 43 20 70 72 6f 67 72 | 61 6d 6d 69 6e 67 0a 58 | C progr|amming.X|
|00001210| 73 74 79 6c 65 73 20 64 | 69 66 66 65 72 20 6f 6e |styles d|iffer on|
|00001220| 20 77 68 65 74 68 65 72 | 20 74 6f 20 70 6c 61 63 | whether| to plac|
|00001230| 65 20 61 20 6e 65 77 6c | 69 6e 65 20 63 68 61 72 |e a newl|ine char|
|00001240| 61 63 74 65 72 20 62 65 | 66 6f 72 65 20 6f 72 20 |acter be|fore or |
|00001250| 61 66 74 65 72 20 74 68 | 65 20 27 7b 27 0a 58 63 |after th|e '{'.Xc|
|00001260| 68 61 72 61 63 74 65 72 | 73 20 74 68 61 74 20 73 |haracter|s that s|
|00001270| 74 61 72 74 20 62 6c 6f | 63 6b 73 2e 0a 58 2e 53 |tart blo|cks..X.S|
|00001280| 48 0a 58 54 68 65 20 50 | 72 6f 62 6c 65 6d 20 69 |H.XThe P|roblem i|
|00001290| 6e 20 47 65 6e 65 72 61 | 6c 20 54 65 72 6d 73 0a |n Genera|l Terms.|
|000012a0| 58 2e 50 50 0a 58 41 73 | 20 61 6c 72 65 61 64 79 |X.PP.XAs| already|
|000012b0| 20 6d 65 6e 74 69 6f 6e | 65 64 2c 20 70 72 6f 67 | mention|ed, prog|
|000012c0| 72 61 6d 73 20 73 75 63 | 68 20 61 73 20 0a 58 2e |rams suc|h as .X.|
|000012d0| 42 0a 58 64 69 66 66 0a | 58 2e 52 0a 58 64 6f 0a |B.Xdiff.|X.R.Xdo.|
|000012e0| 58 61 20 63 68 61 72 61 | 63 74 65 72 2d 62 79 2d |Xa chara|cter-by-|
|000012f0| 63 68 61 72 61 63 74 65 | 72 20 63 6f 6d 70 61 72 |characte|r compar|
|00001300| 69 73 6f 6e 20 6f 66 20 | 74 68 65 20 69 6e 70 75 |ison of |the inpu|
|00001310| 74 20 66 69 6c 65 73 2e | 0a 58 48 6f 77 65 76 65 |t files.|.XHoweve|
|00001320| 72 2c 20 77 68 65 6e 20 | 69 74 20 63 6f 6d 65 73 |r, when |it comes|
|00001330| 20 74 6f 20 69 6e 74 65 | 72 70 72 65 74 69 6e 67 | to inte|rpreting|
|00001340| 0a 58 74 68 65 20 63 6f | 6e 74 65 6e 74 73 20 6f |.Xthe co|ntents o|
|00001350| 66 20 61 20 66 69 6c 65 | 20 28 65 69 74 68 65 72 |f a file| (either|
|00001360| 20 62 79 20 61 20 68 75 | 6d 61 6e 20 6f 72 20 62 | by a hu|man or b|
|00001370| 79 20 61 20 70 72 6f 67 | 72 61 6d 29 0a 58 69 74 |y a prog|ram).Xit|
|00001380| 20 69 73 20 61 6c 6d 6f | 73 74 20 6e 65 76 65 72 | is almo|st never|
|00001390| 20 74 68 65 20 63 61 73 | 65 20 74 68 61 74 20 63 | the cas|e that c|
|000013a0| 68 61 72 61 63 74 65 72 | 73 0a 58 61 72 65 20 74 |haracter|s.Xare t|
|000013b0| 72 65 61 74 65 64 20 69 | 6e 64 69 76 69 64 75 61 |reated i|ndividua|
|000013c0| 6c 6c 79 2e 20 52 61 74 | 68 65 72 2c 20 63 68 61 |lly. Rat|her, cha|
|000013d0| 72 61 63 74 65 72 73 20 | 6d 61 6b 65 20 75 70 20 |racters |make up |
|000013e0| 74 6f 6b 65 6e 73 20 73 | 75 63 68 0a 58 61 73 20 |tokens s|uch.Xas |
|000013f0| 77 6f 72 64 73 20 61 6e | 64 20 6e 75 6d 62 65 72 |words an|d number|
|00001400| 73 2c 20 6f 72 20 61 63 | 74 20 61 73 20 73 65 70 |s, or ac|t as sep|
|00001410| 61 72 61 74 6f 72 73 20 | 62 65 74 77 65 65 6e 20 |arators |between |
|00001420| 74 68 65 73 65 20 74 6f | 6b 65 6e 73 2e 0a 58 57 |these to|kens..XW|
|00001430| 68 65 6e 20 63 6f 6d 70 | 61 72 69 6e 67 20 66 69 |hen comp|aring fi|
|00001440| 6c 65 73 2c 20 6f 6e 65 | 20 69 73 20 75 73 75 61 |les, one| is usua|
|00001450| 6c 6c 79 20 6c 6f 6f 6b | 69 6e 67 20 66 6f 72 0a |lly look|ing for.|
|00001460| 58 64 69 66 66 65 72 65 | 6e 63 65 73 20 62 65 74 |Xdiffere|nces bet|
|00001470| 77 65 65 6e 20 74 68 65 | 73 65 20 74 6f 6b 65 6e |ween the|se token|
|00001480| 73 2c 20 6e 6f 74 20 74 | 68 65 20 63 68 61 72 61 |s, not t|he chara|
|00001490| 63 74 65 72 73 20 74 68 | 61 74 20 6d 61 6b 65 20 |cters th|at make |
|000014a0| 74 68 65 6d 20 75 70 0a | 58 6f 72 20 74 68 65 20 |them up.|Xor the |
|000014b0| 63 68 61 72 61 63 74 65 | 72 73 20 74 68 61 74 20 |characte|rs that |
|000014c0| 73 65 70 61 72 61 74 65 | 20 74 68 65 6d 2e 0a 58 |separate| them..X|
|000014d0| 2e 50 50 0a 58 57 68 61 | 74 20 69 73 20 6e 65 65 |.PP.XWha|t is nee|
|000014e0| 64 65 64 20 69 73 20 61 | 20 70 72 6f 67 72 61 6d |ded is a| program|
|000014f0| 20 74 68 61 74 20 66 69 | 72 73 74 20 70 61 72 73 | that fi|rst pars|
|00001500| 65 73 20 74 68 65 20 69 | 6e 70 75 74 20 66 69 6c |es the i|nput fil|
|00001510| 65 73 0a 58 69 6e 74 6f | 20 74 6f 6b 65 6e 73 2c |es.Xinto| tokens,|
|00001520| 20 61 6e 64 20 74 68 65 | 6e 20 61 70 70 6c 69 65 | and the|n applie|
|00001530| 73 20 61 20 64 69 66 66 | 65 72 65 6e 63 69 6e 67 |s a diff|erencing|
|00001540| 20 61 6c 67 6f 72 69 74 | 68 6d 20 74 6f 20 74 68 | algorit|hm to th|
|00001550| 65 20 74 6f 6b 65 6e 0a | 58 73 65 71 75 65 6e 63 |e token.|Xsequenc|
|00001560| 65 73 2e 20 0a 58 49 6e | 20 61 64 64 69 74 69 6f |es. .XIn| additio|
|00001570| 6e 20 74 6f 20 66 69 6e | 64 69 6e 67 20 64 69 66 |n to fin|ding dif|
|00001580| 66 65 72 65 6e 63 65 73 | 20 69 6e 20 74 65 72 6d |ferences| in term|
|00001590| 73 20 6f 66 20 74 6f 6b | 65 6e 73 2c 0a 58 69 74 |s of tok|ens,.Xit|
|000015a0| 20 69 73 20 70 6f 73 73 | 69 62 6c 65 20 74 6f 20 | is poss|ible to |
|000015b0| 69 6e 74 65 72 70 72 65 | 74 20 74 68 65 20 74 6f |interpre|t the to|
|000015c0| 6b 65 6e 73 20 61 6e 64 | 0a 58 63 6f 6d 70 61 72 |kens and|.Xcompar|
|000015d0| 65 20 64 69 66 66 65 72 | 65 6e 74 20 74 79 70 65 |e differ|ent type|
|000015e0| 73 20 6f 66 20 74 6f 6b | 65 6e 73 20 69 6e 20 64 |s of tok|ens in d|
|000015f0| 69 66 66 65 72 65 6e 74 | 20 77 61 79 73 2e 20 20 |ifferent| ways. |
|00001600| 4e 75 6d 62 65 72 73 2c | 20 66 6f 72 20 65 78 61 |Numbers,| for exa|
|00001610| 6d 70 6c 65 2c 0a 58 63 | 61 6e 20 64 69 66 66 65 |mple,.Xc|an diffe|
|00001620| 72 20 62 79 20 61 20 6c | 6f 74 20 6f 72 20 61 20 |r by a l|ot or a |
|00001630| 6c 69 74 74 6c 65 2e 5c | 2a 2a 0a 58 2e 46 53 0a |little.\|**.X.FS.|
|00001640| 58 43 75 72 72 65 6e 74 | 20 64 69 66 66 65 72 65 |XCurrent| differe|
|00001650| 6e 63 69 6e 67 20 70 72 | 6f 67 72 61 6d 73 20 64 |ncing pr|ograms d|
|00001660| 6f 20 6e 6f 74 20 68 61 | 76 65 20 73 75 63 68 20 |o not ha|ve such |
|00001670| 61 20 6e 6f 74 69 6f 6e | 20 62 65 63 61 75 73 65 |a notion| because|
|00001680| 0a 58 74 68 65 20 64 69 | 66 66 65 72 65 6e 63 65 |.Xthe di|fference|
|00001690| 20 62 65 74 77 65 65 6e | 20 74 77 6f 20 63 68 61 | between| two cha|
|000016a0| 72 61 63 74 65 72 73 20 | 69 73 20 61 20 62 69 6e |racters |is a bin|
|000016b0| 61 72 79 20 66 75 6e 63 | 74 69 6f 6e 2e 0a 58 54 |ary func|tion..XT|
|000016c0| 77 6f 20 63 68 61 72 61 | 63 74 65 72 73 20 61 72 |wo chara|cters ar|
|000016d0| 65 20 74 68 65 20 73 61 | 6d 65 20 6f 72 20 74 68 |e the sa|me or th|
|000016e0| 65 79 20 61 72 65 20 6e | 6f 74 2e 0a 58 2e 46 45 |ey are n|ot..X.FE|
|000016f0| 0a 58 49 74 20 69 73 20 | 70 6f 73 73 69 62 6c 65 |.XIt is |possible|
|00001700| 20 74 6f 20 75 73 65 20 | 61 20 74 6f 6c 65 72 61 | to use |a tolera|
|00001710| 6e 63 65 20 77 68 65 6e | 20 63 6f 6d 70 61 72 69 |nce when| compari|
|00001720| 6e 67 20 74 77 6f 20 6e | 75 6d 62 65 72 20 74 6f |ng two n|umber to|
|00001730| 6b 65 6e 73 20 61 6e 64 | 0a 58 72 65 70 6f 72 74 |kens and|.Xreport|
|00001740| 20 6f 6e 6c 79 20 74 68 | 6f 73 65 20 64 69 66 66 | only th|ose diff|
|00001750| 65 72 65 6e 63 65 73 20 | 74 68 61 74 20 65 78 63 |erences |that exc|
|00001760| 65 65 64 20 74 68 65 20 | 74 6f 6c 65 72 61 6e 63 |eed the |toleranc|
|00001770| 65 2e 0a 58 2e 53 48 0a | 58 44 65 73 69 67 6e 20 |e..X.SH.|XDesign |
|00001780| 49 73 73 75 65 73 0a 58 | 2e 50 50 0a 58 41 20 73 |Issues.X|.PP.XA s|
|00001790| 65 72 69 6f 75 73 20 64 | 65 73 69 67 6e 20 69 73 |erious d|esign is|
|000017a0| 73 75 65 20 66 6f 72 20 | 73 75 63 68 20 61 20 70 |sue for |such a p|
|000017b0| 72 6f 67 72 61 6d 20 69 | 73 20 68 6f 77 0a 58 63 |rogram i|s how.Xc|
|000017c0| 6f 6d 70 6c 65 78 20 74 | 6f 20 6d 61 6b 65 20 74 |omplex t|o make t|
|000017d0| 68 65 20 70 61 72 73 65 | 2e 20 20 54 68 65 0a 58 |he parse|. The.X|
|000017e0| 2e 49 0a 58 64 65 65 70 | 65 72 0a 58 2e 52 0a 58 |.I.Xdeep|er.X.R.X|
|000017f0| 6f 6e 65 20 67 6f 65 73 | 20 69 6e 20 74 68 65 20 |one goes| in the |
|00001800| 70 61 72 73 69 6e 67 20 | 74 68 65 20 6c 61 72 67 |parsing |the larg|
|00001810| 65 72 0a 58 74 68 65 20 | 75 6e 69 74 20 6f 66 20 |er.Xthe |unit of |
|00001820| 74 65 78 74 20 74 68 61 | 74 20 63 61 6e 20 62 65 |text tha|t can be|
|00001830| 20 6d 61 6e 69 70 75 6c | 61 74 65 64 2e 20 20 46 | manipul|ated. F|
|00001840| 6f 72 20 69 6e 73 74 61 | 6e 63 65 2c 20 69 66 20 |or insta|nce, if |
|00001850| 6f 6e 65 20 69 73 20 6c | 6f 6f 6b 69 6e 67 0a 58 |one is l|ooking.X|
|00001860| 66 6f 72 20 64 69 66 66 | 65 72 65 6e 63 65 73 20 |for diff|erences |
|00001870| 69 6e 20 43 20 63 6f 64 | 65 2c 20 61 20 63 6f 6d |in C cod|e, a com|
|00001880| 70 6c 65 74 65 20 70 61 | 72 73 65 20 74 72 65 65 |plete pa|rse tree|
|00001890| 20 63 61 6e 20 62 65 20 | 70 72 6f 64 75 63 65 64 | can be |produced|
|000018a0| 20 61 6e 64 0a 58 74 68 | 65 20 64 69 66 66 65 72 | and.Xth|e differ|
|000018b0| 65 6e 63 69 6e 67 20 61 | 6c 67 6f 72 69 74 68 6d |encing a|lgorithm|
|000018c0| 20 63 6f 75 6c 64 20 65 | 78 61 6d 69 6e 65 20 69 | could e|xamine i|
|000018d0| 6e 73 65 72 74 69 6f 6e | 20 61 6e 64 20 64 65 6c |nsertion| and del|
|000018e0| 65 74 69 6f 6e 20 6f 66 | 20 65 6e 74 69 72 65 0a |etion of| entire.|
|000018f0| 58 62 72 61 6e 63 68 65 | 73 20 6f 66 20 74 68 65 |Xbranche|s of the|
|00001900| 20 74 72 65 65 2e 20 20 | 48 6f 77 65 76 65 72 2c | tree. |However,|
|00001910| 20 64 65 65 70 20 70 61 | 72 73 69 6e 67 20 72 65 | deep pa|rsing re|
|00001920| 71 75 69 72 65 73 20 6d | 75 63 68 20 6d 6f 72 65 |quires m|uch more|
|00001930| 0a 58 63 6f 6d 70 6c 65 | 78 20 70 61 72 73 69 6e |.Xcomple|x parsin|
|00001940| 67 20 61 6e 64 20 73 6c | 6f 77 65 72 20 64 69 66 |g and sl|ower dif|
|00001950| 66 65 72 65 6e 63 69 6e | 67 20 61 6c 67 6f 72 69 |ferencin|g algori|
|00001960| 74 68 6d 73 2e 0a 58 2e | 50 50 0a 58 41 6e 6f 74 |thms..X.|PP.XAnot|
|00001970| 68 65 72 20 64 65 73 69 | 67 6e 20 69 73 73 75 65 |her desi|gn issue|
|00001980| 20 69 73 20 64 65 63 69 | 64 69 6e 67 20 68 6f 77 | is deci|ding how|
|00001990| 20 74 6f 20 69 6e 74 65 | 72 70 72 65 74 20 74 68 | to inte|rpret th|
|000019a0| 65 20 74 6f 6b 65 6e 73 | 2e 0a 58 43 6c 6f 73 65 |e tokens|..XClose|
|000019b0| 72 20 69 6e 74 65 72 70 | 72 65 74 61 74 69 6f 6e |r interp|retation|
|000019c0| 20 6d 61 79 20 6c 65 61 | 64 20 74 6f 20 67 72 65 | may lea|d to gre|
|000019d0| 61 74 65 72 20 66 6c 65 | 78 69 62 69 6c 69 74 79 |ater fle|xibility|
|000019e0| 20 69 6e 20 63 6f 6d 70 | 61 72 69 6e 67 20 74 6f | in comp|aring to|
|000019f0| 6b 65 6e 73 2c 20 62 75 | 74 0a 58 61 6c 73 6f 20 |kens, bu|t.Xalso |
|00001a00| 72 65 73 75 6c 74 73 20 | 69 6e 20 61 20 6d 6f 72 |results |in a mor|
|00001a10| 65 20 63 75 6d 62 65 72 | 73 6f 6d 65 20 61 6e 64 |e cumber|some and|
|00001a20| 20 65 72 72 6f 72 2d 70 | 72 6f 6e 65 20 69 6d 70 | error-p|rone imp|
|00001a30| 6c 65 6d 65 6e 74 61 74 | 69 6f 6e 2e 0a 58 2e 50 |lementat|ion..X.P|
|00001a40| 50 0a 58 49 6e 20 74 68 | 65 20 70 72 6f 67 72 61 |P.XIn th|e progra|
|00001a50| 6d 20 64 65 73 63 72 69 | 62 65 64 20 68 65 72 65 |m descri|bed here|
|00001a60| 2c 20 77 65 20 61 74 74 | 65 6d 70 74 20 74 6f 20 |, we att|empt to |
|00001a70| 6b 65 65 70 20 62 6f 74 | 68 20 74 68 65 20 64 65 |keep bot|h the de|
|00001a80| 70 74 68 0a 58 6f 66 20 | 74 68 65 20 70 61 72 73 |pth.Xof |the pars|
|00001a90| 65 20 61 6e 64 20 74 68 | 65 20 73 65 6d 61 6e 74 |e and th|e semant|
|00001aa0| 69 63 73 20 6f 66 20 74 | 68 65 20 74 6f 6b 65 6e |ics of t|he token|
|00001ab0| 73 20 74 6f 20 61 20 6d | 69 6e 69 6d 75 6d 2e 0a |s to a m|inimum..|
|00001ac0| 58 54 68 65 20 70 61 72 | 73 65 20 69 73 20 61 20 |XThe par|se is a |
|00001ad0| 73 69 6d 70 6c 65 0a 58 | 6c 65 78 69 63 61 6c 20 |simple.X|lexical |
|00001ae0| 70 61 72 73 65 20 77 69 | 74 68 20 74 68 65 20 69 |parse wi|th the i|
|00001af0| 6e 70 75 74 20 66 69 6c | 65 73 20 62 72 6f 6b 65 |nput fil|es broke|
|00001b00| 6e 20 75 70 20 69 6e 74 | 6f 20 6f 6e 65 20 64 69 |n up int|o one di|
|00001b10| 6d 65 6e 73 69 6f 6e 61 | 6c 0a 58 73 65 71 75 65 |mensiona|l.Xseque|
|00001b20| 6e 63 65 73 20 6f 66 20 | 6e 75 6d 62 65 72 73 2c |nces of |numbers,|
|00001b30| 20 6c 69 74 65 72 61 6c | 20 73 74 72 69 6e 67 73 | literal| strings|
|00001b40| 20 61 6e 64 20 77 68 69 | 74 65 20 73 70 61 63 65 | and whi|te space|
|00001b50| 2e 0a 58 4c 69 74 65 72 | 61 6c 20 73 74 72 69 6e |..XLiter|al strin|
|00001b60| 67 73 20 61 6e 64 20 77 | 68 69 74 65 20 73 70 61 |gs and w|hite spa|
|00001b70| 63 65 20 61 72 65 20 6e | 6f 74 20 69 6e 74 65 72 |ce are n|ot inter|
|00001b80| 70 72 65 74 65 64 2e 20 | 4e 75 6d 62 65 72 73 0a |preted. |Numbers.|
|00001b90| 58 61 72 65 20 74 72 65 | 61 74 65 64 20 61 73 20 |Xare tre|ated as |
|00001ba0| 72 65 70 72 65 73 65 6e | 74 69 6e 67 20 70 6f 69 |represen|ting poi|
|00001bb0| 6e 74 73 20 6f 6e 20 74 | 68 65 20 72 65 61 6c 20 |nts on t|he real |
|00001bc0| 6e 75 6d 62 65 72 20 6c | 69 6e 65 2e 0a 58 2e 53 |number l|ine..X.S|
|00001bd0| 48 0a 58 44 65 66 61 75 | 6c 74 20 4f 70 65 72 61 |H.XDefau|lt Opera|
|00001be0| 74 69 6f 6e 0a 58 2e 50 | 50 0a 58 2e 42 0a 58 53 |tion.X.P|P.X.B.XS|
|00001bf0| 70 69 66 66 5c 2a 2a 0a | 58 2e 52 0a 58 2e 46 53 |piff\**.|X.R.X.FS|
|00001c00| 0a 58 57 65 20 70 69 63 | 6b 65 64 20 74 68 65 20 |.XWe pic|ked the |
|00001c10| 6e 61 6d 65 20 61 73 20 | 61 20 77 61 79 20 74 6f |name as |a way to|
|00001c20| 20 70 61 79 20 61 20 73 | 6d 61 6c 6c 20 74 72 69 | pay a s|mall tri|
|00001c30| 62 75 74 65 20 74 6f 20 | 74 68 61 74 20 66 61 6d |bute to |that fam|
|00001c40| 6f 75 73 20 69 6e 74 65 | 72 67 61 6c 61 63 74 69 |ous inte|rgalacti|
|00001c50| 63 0a 58 61 64 76 65 6e | 74 75 72 65 72 20 53 70 |c.Xadven|turer Sp|
|00001c60| 61 63 65 6d 61 6e 20 53 | 70 69 66 66 5b 33 5d 2e |aceman S|piff[3].|
|00001c70| 0a 58 2e 42 0a 58 53 70 | 69 66 66 0a 58 2e 52 0a |.X.B.XSp|iff.X.R.|
|00001c80| 58 69 73 20 61 6c 73 6f | 20 61 20 63 6f 6e 74 72 |Xis also| a contr|
|00001c90| 61 63 74 69 6f 6e 20 6f | 66 20 22 73 70 69 66 66 |action o|f "spiff|
|00001ca0| 79 20 64 69 66 66 22 2e | 0a 58 2e 46 45 0a 58 77 |y diff".|.X.FE.Xw|
|00001cb0| 6f 72 6b 73 20 76 65 72 | 79 20 6d 75 63 68 20 6c |orks ver|y much l|
|00001cc0| 69 6b 65 20 0a 58 2e 42 | 0a 58 64 69 66 66 2e 0a |ike .X.B|.Xdiff..|
|00001cd0| 58 2e 52 0a 58 49 74 20 | 72 65 61 64 73 20 74 77 |X.R.XIt |reads tw|
|00001ce0| 6f 20 66 69 6c 65 73 2c | 20 6c 6f 6f 6b 73 0a 58 |o files,| looks.X|
|00001cf0| 66 6f 72 20 64 69 66 66 | 65 72 65 6e 63 65 73 2c |for diff|erences,|
|00001d00| 20 61 6e 64 20 70 72 69 | 6e 74 73 20 61 20 6c 69 | and pri|nts a li|
|00001d10| 73 74 69 6e 67 20 6f 66 | 20 74 68 65 0a 58 64 69 |sting of| the.Xdi|
|00001d20| 66 66 65 72 65 6e 63 65 | 73 20 69 6e 20 74 68 65 |fference|s in the|
|00001d30| 20 66 6f 72 6d 20 6f 66 | 0a 58 61 6e 20 65 64 69 | form of|.Xan edi|
|00001d40| 74 20 73 63 72 69 70 74 | 2e 5c 2a 2a 0a 58 2e 46 |t script|.\**.X.F|
|00001d50| 53 0a 58 41 6e 20 65 64 | 69 74 20 73 63 72 69 70 |S.XAn ed|it scrip|
|00001d60| 74 20 69 73 20 61 20 73 | 65 71 75 65 6e 63 65 20 |t is a s|equence |
|00001d70| 6f 66 20 69 6e 73 65 72 | 74 69 6f 6e 73 20 61 6e |of inser|tions an|
|00001d80| 64 20 64 65 6c 65 74 69 | 6f 6e 73 0a 58 74 68 61 |d deleti|ons.Xtha|
|00001d90| 74 20 77 69 6c 6c 20 74 | 72 61 6e 73 66 6f 72 6d |t will t|ransform|
|00001da0| 20 74 68 65 20 66 69 72 | 73 74 20 66 69 6c 65 20 | the fir|st file |
|00001db0| 69 6e 74 6f 20 74 68 65 | 20 73 65 63 6f 6e 64 2e |into the| second.|
|00001dc0| 0a 58 2e 46 45 0a 58 41 | 73 20 61 6c 72 65 61 64 |.X.FE.XA|s alread|
|00001dd0| 79 20 73 75 67 67 65 73 | 74 65 64 2c 20 0a 58 2e |y sugges|ted, .X.|
|00001de0| 42 0a 58 73 70 69 66 66 | 0a 58 2e 52 0a 58 70 61 |B.Xspiff|.X.R.Xpa|
|00001df0| 72 73 65 73 20 74 68 65 | 20 66 69 6c 65 73 20 69 |rses the| files i|
|00001e00| 6e 74 6f 0a 58 6c 69 74 | 65 72 61 6c 20 73 74 72 |nto.Xlit|eral str|
|00001e10| 69 6e 67 73 20 61 6e 64 | 20 72 65 61 6c 20 6e 75 |ings and| real nu|
|00001e20| 6d 62 65 72 73 2e 0a 58 | 54 68 65 20 64 65 66 69 |mbers..X|The defi|
|00001e30| 6e 69 74 69 6f 6e 20 6f | 66 20 74 68 65 73 65 20 |nition o|f these |
|00001e40| 74 6f 6b 65 6e 73 20 63 | 61 6e 20 62 65 20 61 6c |tokens c|an be al|
|00001e50| 74 65 72 65 64 20 73 6f | 6d 65 77 68 61 74 20 62 |tered so|mewhat b|
|00001e60| 79 20 74 68 65 20 75 73 | 65 72 0a 58 28 6d 6f 72 |y the us|er.X(mor|
|00001e70| 65 20 6f 6e 20 74 68 69 | 73 20 6c 61 74 65 72 29 |e on thi|s later)|
|00001e80| 2e 20 20 46 6f 72 20 6e | 6f 77 2c 20 73 75 66 66 |. For n|ow, suff|
|00001e90| 69 63 65 20 69 74 0a 58 | 74 6f 20 73 61 79 20 74 |ice it.X|to say t|
|00001ea0| 68 61 74 20 6c 69 74 65 | 72 61 6c 73 20 61 72 65 |hat lite|rals are|
|00001eb0| 20 73 74 72 69 6e 67 73 | 20 6c 69 6b 65 20 22 63 | strings| like "c|
|00001ec0| 6f 77 22 2c 20 22 73 69 | 74 22 2c 0a 58 22 69 6e |ow", "si|t",.X"in|
|00001ed0| 74 6f 22 2c 20 65 74 63 | 2e 20 20 52 65 61 6c 20 |to", etc|. Real |
|00001ee0| 6e 75 6d 62 65 72 73 20 | 6c 6f 6f 6b 20 6c 69 6b |numbers |look lik|
|00001ef0| 65 20 22 31 2e 33 22 2c | 20 22 31 2e 36 65 2d 34 |e "1.3",| "1.6e-4|
|00001f00| 22 20 61 6e 64 20 73 6f | 20 6f 6e 2e 0a 58 41 6c |" and so| on..XAl|
|00001f10| 6c 20 6f 66 20 74 68 65 | 20 63 6f 6d 6d 6f 6e 20 |l of the| common |
|00001f20| 66 6f 72 6d 61 74 73 20 | 66 6f 72 20 72 65 61 6c |formats |for real|
|00001f30| 20 6e 75 6d 62 65 72 73 | 20 61 72 65 20 72 65 63 | numbers| are rec|
|00001f40| 6f 67 6e 69 7a 65 64 2e | 0a 58 54 68 65 20 6f 6e |ognized.|.XThe on|
|00001f50| 6c 79 20 72 65 71 75 69 | 72 65 6d 65 6e 74 73 20 |ly requi|rements |
|00001f60| 66 6f 72 20 61 20 73 74 | 72 69 6e 67 20 74 6f 20 |for a st|ring to |
|00001f70| 62 65 0a 58 74 72 65 61 | 74 65 64 20 61 73 20 61 |be.Xtrea|ted as a|
|00001f80| 20 72 65 61 6c 20 6e 75 | 6d 62 65 72 20 69 73 20 | real nu|mber is |
|00001f90| 74 68 65 20 70 72 65 73 | 65 6e 63 65 0a 58 6f 66 |the pres|ence.Xof|
|00001fa0| 20 61 20 70 65 72 69 6f | 64 20 61 6e 64 20 61 74 | a perio|d and at|
|00001fb0| 20 6c 65 61 73 74 20 6f | 6e 65 20 64 69 67 69 74 | least o|ne digit|
|00001fc0| 2e 0a 58 42 79 20 64 65 | 66 61 75 6c 74 2c 20 61 |..XBy de|fault, a|
|00001fd0| 20 73 74 72 69 6e 67 20 | 6f 66 20 64 69 67 69 74 | string |of digit|
|00001fe0| 73 20 77 69 74 68 6f 75 | 74 20 61 20 64 65 63 69 |s withou|t a deci|
|00001ff0| 6d 61 6c 20 70 6f 69 6e | 74 0a 58 28 73 75 63 68 |mal poin|t.X(such|
|00002000| 20 61 73 20 22 31 39 38 | 38 22 29 20 69 73 20 6e | as "198|8") is n|
|00002010| 6f 74 20 63 6f 6e 73 69 | 64 65 72 65 64 20 74 6f |ot consi|dered to|
|00002020| 20 62 65 20 61 20 72 65 | 61 6c 20 6e 75 6d 62 65 | be a re|al numbe|
|00002030| 72 2c 0a 58 62 75 74 20 | 72 61 74 68 65 72 20 61 |r,.Xbut |rather a|
|00002040| 20 6c 69 74 65 72 61 6c | 20 73 74 72 69 6e 67 2e | literal| string.|
|00002050| 5c 2a 2a 0a 58 45 61 63 | 68 20 6e 6f 6e 2d 61 6c |\**.XEac|h non-al|
|00002060| 70 68 61 6e 75 6d 65 72 | 69 63 20 63 68 61 72 61 |phanumer|ic chara|
|00002070| 63 74 65 72 20 28 73 75 | 63 68 20 61 73 20 23 24 |cter (su|ch as #$|
|00002080| 40 5e 26 2a 29 0a 58 69 | 73 20 70 61 72 73 65 64 |@^&*).Xi|s parsed|
|00002090| 20 69 6e 74 6f 20 61 20 | 73 65 70 61 72 61 74 65 | into a |separate|
|000020a0| 20 6c 69 74 65 72 61 6c | 20 74 6f 6b 65 6e 2e 0a | literal| token..|
|000020b0| 58 2e 46 53 20 0a 58 49 | 6e 74 65 67 65 72 20 6e |X.FS .XI|nteger n|
|000020c0| 75 6d 62 65 72 73 20 61 | 72 65 20 6f 66 74 65 6e |umbers a|re often|
|000020d0| 20 75 73 65 64 20 61 73 | 20 69 6e 64 69 63 65 73 | used as| indices|
|000020e0| 2c 20 6c 61 62 65 6c 73 | 2c 20 61 6e 64 20 73 6f |, labels|, and so|
|000020f0| 20 6f 6e 2e 0a 58 55 6e | 64 65 72 20 74 68 65 73 | on..XUn|der thes|
|00002100| 65 20 63 69 72 63 75 6d | 73 74 61 6e 63 65 73 2c |e circum|stances,|
|00002110| 20 69 74 20 69 73 20 6d | 6f 72 65 20 61 70 70 72 | it is m|ore appr|
|00002120| 6f 70 72 69 61 74 65 20 | 74 6f 20 74 72 65 61 74 |opriate |to treat|
|00002130| 20 74 68 65 6d 20 61 73 | 20 6c 69 74 65 72 61 6c | them as| literal|
|00002140| 73 2e 0a 58 4f 75 72 20 | 63 68 6f 69 63 65 20 6f |s..XOur |choice o|
|00002150| 66 20 64 65 66 61 75 6c | 74 20 77 61 73 20 64 72 |f defaul|t was dr|
|00002160| 69 76 65 6e 20 62 79 20 | 61 20 64 65 73 69 67 6e |iven by |a design|
|00002170| 20 67 6f 61 6c 0a 58 6f | 66 20 68 61 76 69 6e 67 | goal.Xo|f having|
|00002180| 20 0a 58 2e 42 0a 58 73 | 70 69 66 66 0a 58 2e 52 | .X.B.Xs|piff.X.R|
|00002190| 0a 58 62 65 20 76 65 72 | 79 20 63 6f 6e 73 65 72 |.Xbe ver|y conser|
|000021a0| 76 61 74 69 76 65 0a 58 | 77 68 65 6e 20 63 68 6f |vative.X|when cho|
|000021b0| 6f 73 69 6e 67 20 74 6f | 20 69 67 6e 6f 72 65 20 |osing to| ignore |
|000021c0| 64 69 66 66 65 72 65 6e | 63 65 73 2e 0a 58 2e 46 |differen|ces..X.F|
|000021d0| 45 0a 58 2e 50 50 0a 58 | 4f 6e 63 65 20 0a 58 2e |E.X.PP.X|Once .X.|
|000021e0| 42 0a 58 73 70 69 66 66 | 0a 58 2e 52 0a 58 64 65 |B.Xspiff|.X.R.Xde|
|000021f0| 74 65 72 6d 69 6e 65 73 | 20 74 68 65 20 74 77 6f |termines| the two|
|00002200| 20 73 65 71 75 65 6e 63 | 65 73 20 6f 66 20 74 6f | sequenc|es of to|
|00002210| 6b 65 6e 73 2c 0a 58 69 | 74 20 63 6f 6d 70 61 72 |kens,.Xi|t compar|
|00002220| 65 73 20 6d 65 6d 62 65 | 72 73 20 6f 66 20 74 68 |es membe|rs of th|
|00002230| 65 20 66 69 72 73 74 20 | 73 65 71 75 65 6e 63 65 |e first |sequence|
|00002240| 20 77 69 74 68 0a 58 6d | 65 6d 62 65 72 73 20 6f | with.Xm|embers o|
|00002250| 66 20 74 68 65 20 73 65 | 63 6f 6e 64 20 73 65 71 |f the se|cond seq|
|00002260| 75 65 6e 63 65 2e 0a 58 | 49 66 20 74 77 6f 20 74 |uence..X|If two t|
|00002270| 6f 6b 65 6e 73 20 61 72 | 65 20 6f 66 20 64 69 66 |okens ar|e of dif|
|00002280| 66 65 72 65 6e 74 20 74 | 79 70 65 73 2c 0a 58 2e |ferent t|ypes,.X.|
|00002290| 42 0a 58 73 70 69 66 66 | 0a 58 2e 52 0a 58 64 65 |B.Xspiff|.X.R.Xde|
|000022a0| 65 6d 73 20 74 68 65 6d | 20 74 6f 20 62 65 20 64 |ems them| to be d|
|000022b0| 69 66 66 65 72 65 6e 74 | 2c 20 72 65 67 61 72 64 |ifferent|, regard|
|000022c0| 6c 65 73 73 20 6f 66 20 | 74 68 65 69 72 20 63 6f |less of |their co|
|000022d0| 6e 74 65 6e 74 2e 0a 58 | 49 66 20 62 6f 74 68 20 |ntent..X|If both |
|000022e0| 74 6f 6b 65 6e 73 20 61 | 72 65 20 6c 69 74 65 72 |tokens a|re liter|
|000022f0| 61 6c 20 74 6f 6b 65 6e | 73 2c 20 0a 58 2e 42 0a |al token|s, .X.B.|
|00002300| 58 73 70 69 66 66 0a 58 | 2e 52 0a 58 77 69 6c 6c |Xspiff.X|.R.Xwill|
|00002310| 20 64 65 65 6d 20 74 68 | 65 6d 0a 58 74 6f 20 62 | deem th|em.Xto b|
|00002320| 65 20 64 69 66 66 65 72 | 65 6e 74 20 69 66 20 61 |e differ|ent if a|
|00002330| 6e 79 20 6f 66 20 74 68 | 65 69 72 20 63 68 61 72 |ny of th|eir char|
|00002340| 61 63 74 65 72 73 20 64 | 69 66 66 65 72 2e 0a 58 |acters d|iffer..X|
|00002350| 57 68 65 6e 20 63 6f 6d | 70 61 72 69 6e 67 20 74 |When com|paring t|
|00002360| 77 6f 20 72 65 61 6c 20 | 6e 75 6d 62 65 72 73 2c |wo real |numbers,|
|00002370| 0a 58 2e 42 0a 58 73 70 | 69 66 66 0a 58 2e 52 0a |.X.B.Xsp|iff.X.R.|
|00002380| 58 77 69 6c 6c 20 64 65 | 65 6d 20 74 68 65 6d 20 |Xwill de|em them |
|00002390| 74 6f 20 62 65 20 64 69 | 66 66 65 72 65 6e 74 20 |to be di|fferent |
|000023a0| 6f 6e 6c 79 20 69 66 0a | 58 74 68 65 20 64 69 66 |only if.|Xthe dif|
|000023b0| 66 65 72 65 6e 63 65 20 | 69 6e 20 74 68 65 69 72 |ference |in their|
|000023c0| 20 76 61 6c 75 65 73 20 | 65 78 63 65 65 64 73 20 | values |exceeds |
|000023d0| 61 20 75 73 65 72 20 73 | 65 74 74 61 62 6c 65 20 |a user s|ettable |
|000023e0| 74 6f 6c 65 72 61 6e 63 | 65 2e 0a 58 2e 53 48 0a |toleranc|e..X.SH.|
|000023f0| 58 41 6c 74 65 72 69 6e | 67 20 53 70 69 66 66 27 |XAlterin|g Spiff'|
|00002400| 73 20 4f 70 65 72 61 74 | 69 6f 6e 20 0a 58 2e 50 |s Operat|ion .X.P|
|00002410| 50 0a 58 54 6f 20 6d 61 | 6b 65 20 0a 58 2e 42 0a |P.XTo ma|ke .X.B.|
|00002420| 58 73 70 69 66 66 0a 58 | 2e 52 0a 58 6d 6f 72 65 |Xspiff.X|.R.Xmore|
|00002430| 20 67 65 6e 65 72 61 6c | 6c 79 20 75 73 65 66 75 | general|ly usefu|
|00002440| 6c 2c 20 74 68 65 20 75 | 73 65 72 20 63 61 6e 20 |l, the u|ser can |
|00002450| 63 6f 6e 74 72 6f 6c 3a | 0a 58 2e 49 50 20 5c 28 |control:|.X.IP \(|
|00002460| 62 75 0a 58 68 6f 77 20 | 74 65 78 74 20 73 74 72 |bu.Xhow |text str|
|00002470| 69 6e 67 73 20 61 72 65 | 20 70 61 72 73 65 64 20 |ings are| parsed |
|00002480| 69 6e 74 6f 20 74 6f 6b | 65 6e 73 20 0a 58 2e 49 |into tok|ens .X.I|
|00002490| 50 20 5c 28 62 75 0a 58 | 68 6f 77 20 74 6f 6b 65 |P \(bu.X|how toke|
|000024a0| 6e 73 20 6f 66 20 74 68 | 65 20 73 61 6d 65 20 74 |ns of th|e same t|
|000024b0| 79 70 65 20 61 72 65 20 | 63 6f 6d 70 61 72 65 64 |ype are |compared|
|000024c0| 0a 58 2e 49 50 20 5c 28 | 62 75 0a 58 74 68 65 20 |.X.IP \(|bu.Xthe |
|000024d0| 63 68 6f 69 63 65 20 6f | 66 20 64 69 66 66 65 72 |choice o|f differ|
|000024e0| 65 6e 63 69 6e 67 20 61 | 6c 67 6f 72 69 74 68 6d |encing a|lgorithm|
|000024f0| 20 75 73 65 64 0a 58 2e | 49 50 20 5c 28 62 75 0a | used.X.|IP \(bu.|
|00002500| 58 61 6e 64 20 74 68 65 | 20 67 72 61 6e 75 6c 61 |Xand the| granula|
|00002510| 72 69 74 79 20 6f 66 20 | 65 64 69 74 20 63 6f 6e |rity of |edit con|
|00002520| 73 69 64 65 72 65 64 20 | 62 79 20 74 68 65 20 64 |sidered |by the d|
|00002530| 69 66 66 65 72 65 6e 63 | 69 6e 67 20 61 6c 67 6f |ifferenc|ing algo|
|00002540| 72 69 74 68 6d 2e 0a 58 | 2e 4c 50 0a 58 2e 50 50 |rithm..X|.LP.X.PP|
|00002550| 0a 58 54 68 65 73 65 20 | 66 65 61 74 75 72 65 73 |.XThese |features|
|00002560| 20 61 72 65 20 64 65 73 | 63 72 69 62 65 64 20 6e | are des|cribed n|
|00002570| 65 78 74 2e 0a 58 2e 53 | 48 0a 58 41 6c 74 65 72 |ext..X.S|H.XAlter|
|00002580| 69 6e 67 20 74 68 65 20 | 50 61 72 73 65 0a 58 2e |ing the |Parse.X.|
|00002590| 50 50 0a 58 54 68 65 20 | 6f 70 65 72 61 74 69 6f |PP.XThe |operatio|
|000025a0| 6e 20 6f 66 20 74 68 65 | 20 70 61 72 73 65 72 20 |n of the| parser |
|000025b0| 63 61 6e 20 62 65 20 61 | 6c 74 65 72 65 64 20 69 |can be a|ltered i|
|000025c0| 6e 20 73 65 76 65 72 61 | 6c 20 77 61 79 73 2e 0a |n severa|l ways..|
|000025d0| 58 54 68 65 20 75 73 65 | 72 20 63 61 6e 20 73 70 |XThe use|r can sp|
|000025e0| 65 63 69 66 79 20 74 68 | 61 74 20 64 65 6c 69 6d |ecify th|at delim|
|000025f0| 69 74 65 64 20 73 65 63 | 74 69 6f 6e 73 20 6f 66 |ited sec|tions of|
|00002600| 20 74 65 78 74 20 61 72 | 65 20 74 6f 20 62 65 20 | text ar|e to be |
|00002610| 69 67 6e 6f 72 65 64 0a | 58 63 6f 6d 70 6c 65 74 |ignored.|Xcomplet|
|00002620| 65 6c 79 2e 20 20 54 68 | 69 73 20 69 73 20 75 73 |ely. Th|is is us|
|00002630| 65 66 75 6c 20 66 6f 72 | 20 73 65 6c 65 63 74 69 |eful for| selecti|
|00002640| 76 65 6c 79 20 69 67 6e | 6f 72 69 6e 67 20 74 68 |vely ign|oring th|
|00002650| 65 20 63 6f 6e 74 65 6e | 74 73 20 6f 66 0a 58 63 |e conten|ts of.Xc|
|00002660| 6f 6d 6d 65 6e 74 73 20 | 69 6e 20 70 72 6f 67 72 |omments |in progr|
|00002670| 61 6d 73 2e 20 20 53 69 | 6d 69 6c 61 72 6c 79 2c |ams. Si|milarly,|
|00002680| 20 74 68 65 20 75 73 65 | 72 20 63 61 6e 20 73 70 | the use|r can sp|
|00002690| 65 63 69 66 79 20 74 68 | 61 74 0a 58 64 65 6c 69 |ecify th|at.Xdeli|
|000026a0| 6d 69 74 65 64 20 73 65 | 63 74 69 6f 6e 73 20 6f |mited se|ctions o|
|000026b0| 66 20 74 65 78 74 20 28 | 69 6e 63 6c 75 64 69 6e |f text (|includin|
|000026c0| 67 20 77 68 69 74 65 20 | 73 70 61 63 65 29 0a 58 |g white |space).X|
|000026d0| 62 65 20 74 72 65 61 74 | 65 64 20 61 73 20 61 20 |be treat|ed as a |
|000026e0| 73 69 6e 67 6c 65 20 6c | 69 74 65 72 61 6c 20 74 |single l|iteral t|
|000026f0| 6f 6b 65 6e 2e 20 20 53 | 6f 2c 20 6c 69 74 65 72 |oken. S|o, liter|
|00002700| 61 6c 20 73 74 72 69 6e | 67 73 20 69 6e 20 70 72 |al strin|gs in pr|
|00002710| 6f 67 72 61 6d 0a 58 74 | 65 78 74 20 63 61 6e 20 |ogram.Xt|ext can |
|00002720| 62 65 20 74 72 65 61 74 | 65 64 20 61 70 70 72 6f |be treat|ed appro|
|00002730| 70 72 69 61 74 65 6c 79 | 2e 0a 58 4d 75 6c 74 69 |priately|..XMulti|
|00002740| 70 6c 65 20 73 65 74 73 | 20 6f 66 0a 58 64 65 6c |ple sets| of.Xdel|
|00002750| 69 6d 69 74 65 72 73 20 | 6d 61 79 20 62 65 20 73 |imiters |may be s|
|00002760| 70 65 63 69 66 69 65 64 | 20 61 74 20 6f 6e 63 65 |pecified| at once|
|00002770| 20 28 74 6f 20 68 61 6e | 64 6c 65 20 63 61 73 65 | (to han|dle case|
|00002780| 73 20 73 75 63 68 20 61 | 73 20 74 68 65 0a 58 4d |s such a|s the.XM|
|00002790| 6f 64 75 6c 61 2d 32 20 | 70 72 6f 67 72 61 6d 6d |odula-2 |programm|
|000027a0| 69 6e 67 20 6c 61 6e 67 | 75 61 67 65 0a 58 77 68 |ing lang|uage.Xwh|
|000027b0| 65 72 65 20 74 68 65 72 | 65 20 61 72 65 20 74 77 |ere ther|e are tw|
|000027c0| 6f 20 77 61 79 73 20 74 | 6f 20 73 70 65 63 69 66 |o ways t|o specif|
|000027d0| 79 20 71 75 6f 74 65 64 | 20 73 74 72 69 6e 67 73 |y quoted| strings|
|000027e0| 29 2e 20 41 74 20 70 72 | 65 73 65 6e 74 2c 0a 58 |). At pr|esent,.X|
|000027f0| 74 68 65 20 64 65 6c 69 | 6d 69 74 65 72 73 20 6d |the deli|miters m|
|00002800| 75 73 74 20 62 65 20 66 | 69 78 65 64 20 73 74 72 |ust be f|ixed str|
|00002810| 69 6e 67 20 28 70 6f 73 | 73 69 62 6c 79 20 72 65 |ing (pos|sibly re|
|00002820| 73 74 72 69 63 74 65 64 | 20 74 6f 20 74 68 65 0a |stricted| to the.|
|00002830| 58 62 65 67 69 6e 6e 69 | 6e 67 20 6f 66 20 74 68 |Xbeginni|ng of th|
|00002840| 65 20 6c 69 6e 65 29 20 | 6f 72 20 65 6e 64 20 6f |e line) |or end o|
|00002850| 66 20 6c 69 6e 65 2e 0a | 58 41 73 20 61 20 63 6f |f line..|XAs a co|
|00002860| 6e 73 65 71 75 65 6e 63 | 65 20 6f 66 20 74 68 65 |nsequenc|e of the|
|00002870| 20 6d 65 63 68 61 6e 69 | 73 6d 20 66 6f 72 20 73 | mechani|sm for s|
|00002880| 70 65 63 69 66 79 69 6e | 67 20 6c 69 74 65 72 61 |pecifyin|g litera|
|00002890| 6c 20 73 74 72 69 6e 67 | 73 2c 0a 58 6d 75 6c 74 |l string|s,.Xmult|
|000028a0| 69 63 68 61 72 61 63 74 | 65 72 20 6f 70 65 72 61 |icharact|er opera|
|000028b0| 74 6f 72 73 20 28 73 75 | 63 68 20 61 73 20 74 68 |tors (su|ch as th|
|000028c0| 65 20 2b 3d 20 6f 70 65 | 72 61 74 6f 72 20 69 6e |e += ope|rator in|
|000028d0| 20 43 29 0a 58 63 61 6e | 20 62 65 20 70 61 72 73 | C).Xcan| be pars|
|000028e0| 65 64 20 69 6e 74 6f 20 | 61 20 73 69 6e 67 6c 65 |ed into |a single|
|000028f0| 20 74 6f 6b 65 6e 2e 0a | 58 2e 50 50 0a 58 41 73 | token..|X.PP.XAs|
|00002900| 20 79 65 74 2c 20 6e 6f | 20 70 72 6f 76 69 73 69 | yet, no| provisi|
|00002910| 6f 6e 20 69 73 20 6d 61 | 64 65 20 66 6f 72 20 61 |on is ma|de for a|
|00002920| 6c 6c 6f 77 69 6e 67 20 | 64 65 6c 69 6d 69 74 65 |llowing |delimite|
|00002930| 72 0a 58 73 70 65 63 69 | 66 69 63 61 74 69 6f 6e |r.Xspeci|fication|
|00002940| 20 69 6e 20 74 65 72 6d | 73 20 6f 66 20 72 65 67 | in term|s of reg|
|00002950| 75 6c 61 72 20 65 78 70 | 72 65 73 73 69 6f 6e 73 |ular exp|ressions|
|00002960| 2e 20 20 54 68 69 73 20 | 6f 6d 69 73 73 69 6f 6e |. This |omission|
|00002970| 20 0a 58 77 61 73 20 6d | 61 64 65 20 66 6f 72 20 | .Xwas m|ade for |
|00002980| 74 68 65 20 73 61 6b 65 | 20 6f 66 20 73 69 6d 70 |the sake| of simp|
|00002990| 6c 69 66 79 69 6e 67 20 | 74 68 65 20 70 61 72 73 |lifying |the pars|
|000029a0| 65 72 2e 0a 58 4e 6f 74 | 68 69 6e 67 20 70 72 65 |er..XNot|hing pre|
|000029b0| 76 65 6e 74 73 20 74 68 | 65 20 61 64 64 69 74 69 |vents th|e additi|
|000029c0| 6f 6e 20 6f 66 20 72 65 | 67 75 6c 61 72 20 65 78 |on of re|gular ex|
|000029d0| 70 72 65 73 73 69 6f 6e | 73 20 69 6e 20 74 68 65 |pression|s in the|
|000029e0| 0a 58 66 75 74 75 72 65 | 2e 20 20 48 6f 77 65 76 |.Xfuture|. Howev|
|000029f0| 65 72 2c 20 74 68 65 20 | 73 69 6d 70 6c 65 20 6d |er, the |simple m|
|00002a00| 65 63 68 61 6e 69 73 6d | 0a 58 61 6c 72 65 61 64 |echanism|.Xalread|
|00002a10| 79 20 69 6e 20 70 6c 61 | 63 65 20 68 61 6e 64 6c |y in pla|ce handl|
|00002a20| 65 73 20 74 68 65 20 6c | 69 74 65 72 61 6c 20 73 |es the l|iteral s|
|00002a30| 74 72 69 6e 67 20 61 6e | 64 20 63 6f 6d 6d 65 6e |tring an|d commen|
|00002a40| 74 69 6e 67 20 63 6f 6e | 76 65 6e 74 69 6f 6e 73 |ting con|ventions|
|00002a50| 0a 58 66 6f 72 20 6d 6f | 73 74 20 77 65 6c 6c 20 |.Xfor mo|st well |
|00002a60| 6b 6e 6f 77 6e 20 70 72 | 6f 67 72 61 6d 6d 69 6e |known pr|ogrammin|
|00002a70| 67 20 6c 61 6e 67 75 61 | 67 65 73 2e 5c 2a 2a 0a |g langua|ges.\**.|
|00002a80| 58 2e 46 53 0a 58 53 65 | 65 20 74 68 65 20 6d 61 |X.FS.XSe|e the ma|
|00002a90| 6e 75 61 6c 20 70 61 67 | 65 20 69 6e 20 74 68 65 |nual pag|e in the|
|00002aa0| 20 61 70 70 65 6e 64 69 | 78 20 66 6f 72 20 65 78 | appendi|x for ex|
|00002ab0| 61 6d 70 6c 65 73 20 6f | 66 20 68 61 6e 64 6c 69 |amples o|f handli|
|00002ac0| 6e 67 0a 58 43 2c 20 42 | 6f 75 72 6e 65 20 53 68 |ng.XC, B|ourne Sh|
|00002ad0| 65 6c 6c 2c 20 46 6f 72 | 74 72 61 6e 2c 20 4c 69 |ell, For|tran, Li|
|00002ae0| 73 70 2c 20 50 61 73 63 | 61 6c 2c 20 61 6e 64 20 |sp, Pasc|al, and |
|00002af0| 4d 6f 64 75 6c 61 2d 32 | 2e 20 20 54 68 65 20 6f |Modula-2|. The o|
|00002b00| 6e 6c 79 0a 58 63 61 73 | 65 73 20 74 68 61 74 20 |nly.Xcas|es that |
|00002b10| 61 72 65 20 6b 6e 6f 77 | 6e 20 6e 6f 74 20 74 6f |are know|n not to|
|00002b20| 20 77 6f 72 6b 20 61 72 | 65 20 63 6f 6d 6d 65 6e | work ar|e commen|
|00002b30| 74 73 20 69 6e 20 42 41 | 53 49 43 20 61 6e 64 0a |ts in BA|SIC and.|
|00002b40| 58 48 6f 6c 6c 65 72 69 | 74 68 20 73 74 72 69 6e |XHolleri|th strin|
|00002b50| 67 73 20 69 6e 20 46 6f | 72 74 72 61 6e 2e 0a 58 |gs in Fo|rtran..X|
|00002b60| 2e 46 45 0a 58 2e 50 50 | 0a 58 49 6e 20 61 64 64 |.FE.X.PP|.XIn add|
|00002b70| 69 74 69 6f 6e 20 74 6f | 20 63 6f 6e 74 72 6f 6c |ition to| control|
|00002b80| 6c 69 6e 67 20 6c 69 74 | 65 72 61 6c 20 73 74 72 |ling lit|eral str|
|00002b90| 69 6e 67 20 61 6e 64 20 | 63 6f 6d 6d 65 6e 74 73 |ing and |comments|
|00002ba0| 2c 20 74 68 65 20 75 73 | 65 72 0a 58 6d 61 79 20 |, the us|er.Xmay |
|00002bb0| 61 6c 73 6f 20 73 70 65 | 63 69 66 79 20 77 68 65 |also spe|cify whe|
|00002bc0| 74 68 65 72 20 74 6f 20 | 74 72 65 61 74 20 77 68 |ther to |treat wh|
|00002bd0| 69 74 65 20 73 70 61 63 | 65 20 63 68 61 72 61 63 |ite spac|e charac|
|00002be0| 74 65 72 73 20 61 73 20 | 61 6e 79 20 6f 74 68 65 |ters as |any othe|
|00002bf0| 72 0a 58 6e 6f 6e 2d 61 | 6c 70 68 61 6e 75 6d 65 |r.Xnon-a|lphanume|
|00002c00| 72 69 63 20 63 68 61 72 | 61 63 74 65 72 20 28 69 |ric char|acter (i|
|00002c10| 6e 20 6f 74 68 65 72 20 | 77 6f 72 64 73 2c 20 70 |n other |words, p|
|00002c20| 61 72 73 65 20 65 61 63 | 68 20 77 68 69 74 65 20 |arse eac|h white |
|00002c30| 73 70 61 63 65 0a 58 63 | 68 61 72 61 63 74 65 72 |space.Xc|haracter|
|00002c40| 20 69 6e 74 6f 20 69 74 | 73 20 6f 77 6e 20 6c 69 | into it|s own li|
|00002c50| 74 65 72 61 6c 20 74 6f | 6b 65 6e 29 2c 0a 58 77 |teral to|ken),.Xw|
|00002c60| 68 65 74 68 65 72 20 74 | 6f 20 70 61 72 73 65 20 |hether t|o parse |
|00002c70| 73 69 67 6e 20 6d 61 72 | 6b 65 72 73 20 61 73 20 |sign mar|kers as |
|00002c80| 70 61 72 74 0a 58 6f 66 | 20 74 68 65 20 6e 75 6d |part.Xof| the num|
|00002c90| 62 65 72 20 74 68 61 74 | 20 74 68 65 79 20 70 72 |ber that| they pr|
|00002ca0| 65 63 65 64 65 20 6f 72 | 20 61 73 20 73 65 70 61 |ecede or| as sepa|
|00002cb0| 72 61 74 65 20 74 6f 6b | 65 6e 73 2c 20 77 68 65 |rate tok|ens, whe|
|00002cc0| 74 68 65 72 0a 58 74 6f | 20 74 72 65 61 74 20 6e |ther.Xto| treat n|
|00002cd0| 75 6d 62 65 72 73 20 77 | 69 74 68 6f 75 74 20 70 |umbers w|ithout p|
|00002ce0| 72 69 6e 74 65 64 20 64 | 65 63 69 6d 61 6c 20 6d |rinted d|ecimal m|
|00002cf0| 61 72 6b 65 72 73 20 28 | 65 2e 67 2e 20 22 31 39 |arkers (|e.g. "19|
|00002d00| 38 38 22 29 20 0a 58 61 | 73 20 72 65 61 6c 20 6e |88") .Xa|s real n|
|00002d10| 75 6d 62 65 72 73 20 72 | 61 74 68 65 72 20 74 68 |umbers r|ather th|
|00002d20| 61 6e 20 61 73 20 6c 69 | 74 65 72 61 6c 20 73 74 |an as li|teral st|
|00002d30| 72 69 6e 67 73 2c 20 61 | 6e 64 20 77 68 65 74 68 |rings, a|nd wheth|
|00002d40| 65 72 0a 58 74 6f 20 70 | 61 72 73 65 20 72 65 61 |er.Xto p|arse rea|
|00002d50| 6c 20 6e 75 6d 62 65 72 | 73 20 69 6e 74 6f 20 6c |l number|s into l|
|00002d60| 69 74 65 72 61 6c 20 74 | 6f 6b 65 6e 73 2e 0a 58 |iteral t|okens..X|
|00002d70| 2e 53 48 0a 58 41 6c 74 | 65 72 69 6e 67 20 74 68 |.SH.XAlt|ering th|
|00002d80| 65 20 43 6f 6d 70 61 72 | 69 73 6f 6e 20 6f 66 20 |e Compar|ison of |
|00002d90| 49 6e 64 69 76 69 64 75 | 61 6c 20 54 6f 6b 65 6e |Individu|al Token|
|00002da0| 73 0a 58 2e 50 50 0a 58 | 41 73 20 6d 65 6e 74 69 |s.X.PP.X|As menti|
|00002db0| 6f 6e 65 64 20 65 61 72 | 6c 69 65 72 2c 20 74 68 |oned ear|lier, th|
|00002dc0| 65 20 75 73 65 72 20 63 | 61 6e 20 73 65 74 20 61 |e user c|an set a|
|00002dd0| 20 74 6f 6c 65 72 61 6e | 63 65 20 62 65 6c 6f 77 | toleran|ce below|
|00002de0| 20 77 68 69 63 68 20 64 | 69 66 66 65 72 65 6e 63 | which d|ifferenc|
|00002df0| 65 73 0a 58 62 65 74 77 | 65 65 6e 20 72 65 61 6c |es.Xbetw|een real|
|00002e00| 20 6e 75 6d 62 65 72 73 | 20 61 72 65 20 69 67 6e | numbers| are ign|
|00002e10| 6f 72 65 64 2e 20 20 0a | 58 2e 42 0a 58 53 70 69 |ored. .|X.B.XSpi|
|00002e20| 66 66 0a 58 2e 52 0a 58 | 61 6c 6c 6f 77 73 20 74 |ff.X.R.X|allows t|
|00002e30| 77 6f 20 6b 69 6e 64 73 | 20 6f 66 20 74 6f 6c 65 |wo kinds| of tole|
|00002e40| 72 61 6e 63 65 73 3a 0a | 58 61 62 73 6f 6c 75 74 |rances:.|Xabsolut|
|00002e50| 65 20 61 6e 64 20 72 65 | 6c 61 74 69 76 65 2e 20 |e and re|lative. |
|00002e60| 0a 58 53 70 65 63 69 66 | 79 69 6e 67 20 61 6e 20 |.XSpecif|ying an |
|00002e70| 61 62 73 6f 6c 75 74 65 | 20 74 6f 6c 65 72 61 6e |absolute| toleran|
|00002e80| 63 65 20 77 69 6c 6c 20 | 63 61 75 73 65 20 0a 58 |ce will |cause .X|
|00002e90| 2e 42 0a 58 73 70 69 66 | 66 0a 58 2e 52 0a 58 74 |.B.Xspif|f.X.R.Xt|
|00002ea0| 6f 20 69 67 6e 6f 72 65 | 20 64 69 66 66 65 72 65 |o ignore| differe|
|00002eb0| 6e 63 65 73 0a 58 74 68 | 61 74 20 61 72 65 20 6c |nces.Xth|at are l|
|00002ec0| 65 73 73 20 74 68 61 6e | 20 74 68 65 20 73 70 65 |ess than| the spe|
|00002ed0| 63 69 66 69 65 64 20 76 | 61 6c 75 65 2e 0a 58 46 |cified v|alue..XF|
|00002ee0| 6f 72 20 69 6e 73 74 61 | 6e 63 65 2c 20 73 70 65 |or insta|nce, spe|
|00002ef0| 63 69 66 79 69 6e 67 20 | 61 6e 20 61 62 73 6f 6c |cifying |an absol|
|00002f00| 75 74 65 20 74 6f 6c 65 | 72 61 6e 63 65 20 6f 66 |ute tole|rance of|
|00002f10| 20 30 2e 30 31 20 77 69 | 6c 6c 0a 58 63 61 75 73 | 0.01 wi|ll.Xcaus|
|00002f20| 65 20 6f 6e 6c 79 20 74 | 68 6f 73 65 20 64 69 66 |e only t|hose dif|
|00002f30| 66 65 72 65 6e 63 65 73 | 20 67 72 65 61 74 65 72 |ferences| greater|
|00002f40| 20 74 68 61 6e 20 6f 72 | 20 65 71 75 61 6c 20 74 | than or| equal t|
|00002f50| 6f 20 30 2e 30 31 20 74 | 6f 20 62 65 20 72 65 70 |o 0.01 t|o be rep|
|00002f60| 6f 72 74 65 64 2e 0a 58 | 53 70 65 63 69 66 79 69 |orted..X|Specifyi|
|00002f70| 6e 67 20 61 20 72 65 6c | 61 74 69 76 65 20 74 6f |ng a rel|ative to|
|00002f80| 6c 65 72 61 6e 63 65 20 | 77 69 6c 6c 20 63 61 75 |lerance |will cau|
|00002f90| 73 65 20 0a 58 2e 42 0a | 58 73 70 69 66 66 0a 58 |se .X.B.|Xspiff.X|
|00002fa0| 2e 52 0a 58 74 6f 20 69 | 67 6e 6f 72 65 20 64 69 |.R.Xto i|gnore di|
|00002fb0| 66 66 65 72 65 6e 63 65 | 73 20 74 68 61 74 20 61 |fference|s that a|
|00002fc0| 72 65 0a 58 73 6d 61 6c | 6c 65 72 20 74 68 61 6e |re.Xsmal|ler than|
|00002fd0| 20 73 6f 6d 65 20 66 72 | 61 63 74 69 6f 6e 20 6f | some fr|action o|
|00002fe0| 66 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |f the nu|mber of |
|00002ff0| 6c 61 72 67 65 72 20 6d | 61 67 6e 69 74 75 64 65 |larger m|agnitude|
|00003000| 2e 0a 58 53 70 65 63 69 | 66 69 63 61 6c 6c 79 2c |..XSpeci|fically,|
|00003010| 20 74 68 65 20 76 61 6c | 75 65 20 6f 66 20 74 68 | the val|ue of th|
|00003020| 65 20 74 6f 6c 65 72 61 | 6e 63 65 20 69 73 20 69 |e tolera|nce is i|
|00003030| 6e 74 65 72 70 72 65 74 | 65 64 0a 58 61 73 20 61 |nterpret|ed.Xas a|
|00003040| 20 66 72 61 63 74 69 6f | 6e 20 6f 66 20 74 68 65 | fractio|n of the|
|00003050| 20 6c 61 72 67 65 72 20 | 28 69 6e 20 61 62 73 6f | larger |(in abso|
|00003060| 6c 75 74 65 20 74 65 72 | 6d 73 29 20 0a 58 6f 66 |lute ter|ms) .Xof|
|00003070| 20 74 68 65 20 74 77 6f | 20 66 6c 6f 61 74 69 6e | the two| floatin|
|00003080| 67 20 70 6f 69 6e 74 20 | 6e 75 6d 62 65 72 73 20 |g point |numbers |
|00003090| 62 65 69 6e 67 20 63 6f | 6d 70 61 72 65 64 2e 0a |being co|mpared..|
|000030a0| 58 46 6f 72 20 65 78 61 | 6d 70 6c 65 2c 0a 58 73 |XFor exa|mple,.Xs|
|000030b0| 70 65 63 69 66 79 69 6e | 67 20 61 20 72 65 6c 61 |pecifyin|g a rela|
|000030c0| 74 69 76 65 20 74 6f 6c | 65 72 61 6e 63 65 20 6f |tive tol|erance o|
|000030d0| 66 20 30 2e 31 0a 58 77 | 69 6c 6c 20 63 61 75 73 |f 0.1.Xw|ill caus|
|000030e0| 65 20 74 68 65 20 74 77 | 6f 20 66 6c 6f 61 74 69 |e the tw|o floati|
|000030f0| 6e 67 20 70 6f 69 6e 74 | 20 6e 75 6d 62 65 72 73 |ng point| numbers|
|00003100| 20 31 2e 30 20 61 6e 64 | 20 30 2e 39 31 20 74 6f | 1.0 and| 0.91 to|
|00003110| 20 62 65 20 64 65 65 6d | 65 64 20 77 69 74 68 69 | be deem|ed withi|
|00003120| 6e 0a 58 74 6f 6c 65 72 | 61 6e 63 65 2e 20 54 68 |n.Xtoler|ance. Th|
|00003130| 65 20 6e 75 6d 62 65 72 | 73 20 31 2e 30 20 61 6e |e number|s 1.0 an|
|00003140| 64 20 30 2e 39 20 77 69 | 6c 6c 20 62 65 20 6f 75 |d 0.9 wi|ll be ou|
|00003150| 74 73 69 64 65 20 74 68 | 65 20 74 6f 6c 65 72 61 |tside th|e tolera|
|00003160| 6e 63 65 2e 0a 58 41 62 | 73 6f 6c 75 74 65 20 61 |nce..XAb|solute a|
|00003170| 6e 64 20 72 65 6c 61 74 | 69 76 65 20 74 6f 6c 65 |nd relat|ive tole|
|00003180| 72 61 6e 63 65 73 20 63 | 61 6e 20 62 65 20 4f 52 |rances c|an be OR|
|00003190| 27 65 64 20 74 6f 67 65 | 74 68 65 72 2e 20 20 49 |'ed toge|ther. I|
|000031a0| 6e 20 66 61 63 74 2c 0a | 58 74 68 65 20 6d 6f 73 |n fact,.|Xthe mos|
|000031b0| 74 20 65 66 66 65 63 74 | 69 76 65 20 77 61 79 20 |t effect|ive way |
|000031c0| 74 6f 20 69 67 6e 6f 72 | 65 20 64 69 66 66 65 72 |to ignor|e differ|
|000031d0| 65 6e 63 65 73 20 74 68 | 61 74 20 61 72 65 20 64 |ences th|at are d|
|000031e0| 75 65 20 74 6f 20 72 6f | 75 6e 64 6f 66 66 20 65 |ue to ro|undoff e|
|000031f0| 72 72 6f 72 73 0a 58 69 | 6e 20 66 6c 6f 61 74 69 |rrors.Xi|n floati|
|00003200| 6e 67 20 70 6f 69 6e 74 | 20 63 61 6c 63 75 6c 61 |ng point| calcula|
|00003210| 74 69 6f 6e 73 20 69 73 | 20 74 6f 20 75 73 65 20 |tions is| to use |
|00003220| 62 6f 74 68 0a 58 61 20 | 72 65 6c 61 74 69 76 65 |both.Xa |relative|
|00003230| 20 74 6f 6c 65 72 61 6e | 63 65 20 28 74 6f 20 68 | toleran|ce (to h|
|00003240| 61 6e 64 6c 65 20 6c 69 | 6d 69 74 73 20 69 6e 20 |andle li|mits in |
|00003250| 70 72 65 63 69 73 69 6f | 6e 29 20 61 73 20 77 65 |precisio|n) as we|
|00003260| 6c 6c 20 61 73 20 61 6e | 20 61 62 73 6f 6c 75 74 |ll as an| absolut|
|00003270| 65 0a 58 74 6f 6c 65 72 | 61 6e 63 65 20 28 74 6f |e.Xtoler|ance (to|
|00003280| 20 68 61 6e 64 6c 65 20 | 63 61 73 65 73 20 77 68 | handle |cases wh|
|00003290| 65 6e 20 6f 6e 65 20 6e | 75 6d 62 65 72 20 69 73 |en one n|umber is|
|000032a0| 20 7a 65 72 6f 20 61 6e | 64 20 74 68 65 20 6f 74 | zero an|d the ot|
|000032b0| 68 65 72 20 6e 75 6d 62 | 65 72 20 69 73 0a 58 61 |her numb|er is.Xa|
|000032c0| 6c 6d 6f 73 74 20 7a 65 | 72 6f 29 2e 5c 2a 2a 0a |lmost ze|ro).\**.|
|000032d0| 58 2e 46 53 0a 58 41 6c | 6c 20 6e 75 6d 62 65 72 |X.FS.XAl|l number|
|000032e0| 73 20 64 69 66 66 65 72 | 20 66 72 6f 6d 20 7a 65 |s differ| from ze|
|000032f0| 72 6f 20 62 79 20 31 30 | 30 25 20 6f 66 20 74 68 |ro by 10|0% of th|
|00003300| 65 69 72 20 6d 61 67 6e | 69 74 75 64 65 2e 20 20 |eir magn|itude. |
|00003310| 54 68 75 73 2c 20 74 6f | 20 68 61 6e 64 6c 65 0a |Thus, to| handle.|
|00003320| 58 6e 75 6d 62 65 72 73 | 20 74 68 61 74 20 61 72 |Xnumbers| that ar|
|00003330| 65 20 6e 65 61 72 20 7a | 65 72 6f 2c 20 6f 6e 65 |e near z|ero, one|
|00003340| 20 77 6f 75 6c 64 20 68 | 61 76 65 20 74 6f 20 73 | would h|ave to s|
|00003350| 70 65 63 69 66 79 20 61 | 20 72 65 6c 61 74 69 76 |pecify a| relativ|
|00003360| 65 20 74 6f 6c 65 72 61 | 6e 63 65 0a 58 6f 66 20 |e tolera|nce.Xof |
|00003370| 31 30 30 25 20 77 68 69 | 63 68 20 77 6f 75 6c 64 |100% whi|ch would|
|00003380| 20 62 65 20 75 6e 72 65 | 61 73 6f 6e 61 62 6c 79 | be unre|asonably|
|00003390| 20 6c 61 72 67 65 20 77 | 68 65 6e 20 62 6f 74 68 | large w|hen both|
|000033a0| 20 6e 75 6d 62 65 72 73 | 20 61 72 65 20 6e 6f 6e | numbers| are non|
|000033b0| 2d 7a 65 72 6f 2e 0a 58 | 2e 46 45 0a 58 49 6e 20 |-zero..X|.FE.XIn |
|000033c0| 61 64 64 69 74 69 6f 6e | 2c 20 74 68 65 20 75 73 |addition|, the us|
|000033d0| 65 72 20 63 61 6e 20 73 | 70 65 63 69 66 79 20 61 |er can s|pecify a|
|000033e0| 6e 20 69 6e 66 69 6e 69 | 74 65 20 74 6f 6c 65 72 |n infini|te toler|
|000033f0| 61 6e 63 65 2e 20 20 54 | 68 69 73 20 69 73 20 75 |ance. T|his is u|
|00003400| 73 65 66 75 6c 0a 58 66 | 6f 72 20 63 68 65 63 6b |seful.Xf|or check|
|00003410| 69 6e 67 20 74 68 65 20 | 66 6f 72 6d 61 74 20 6f |ing the |format o|
|00003420| 66 20 6f 75 74 70 75 74 | 20 77 68 69 6c 65 20 69 |f output| while i|
|00003430| 67 6e 6f 72 69 6e 67 20 | 74 68 65 20 61 63 74 75 |gnoring |the actu|
|00003440| 61 6c 20 6e 75 6d 62 65 | 72 73 0a 58 70 72 6f 64 |al numbe|rs.Xprod|
|00003450| 75 63 65 64 2e 0a 58 2e | 53 48 0a 58 41 6c 74 65 |uced..X.|SH.XAlte|
|00003460| 72 69 6e 67 20 74 68 65 | 20 44 69 66 66 65 72 65 |ring the| Differe|
|00003470| 6e 63 69 6e 67 20 41 6c | 67 6f 72 69 74 68 6d 0a |ncing Al|gorithm.|
|00003480| 58 2e 50 50 0a 58 42 79 | 20 64 65 66 61 75 6c 74 |X.PP.XBy| default|
|00003490| 2c 20 0a 58 2e 42 0a 58 | 73 70 69 66 66 0a 58 2e |, .X.B.X|spiff.X.|
|000034a0| 52 0a 58 70 72 6f 64 75 | 63 65 73 20 61 20 6d 69 |R.Xprodu|ces a mi|
|000034b0| 6e 69 6d 61 6c 20 65 64 | 69 74 20 73 65 71 75 65 |nimal ed|it seque|
|000034c0| 6e 63 65 20 28 75 73 69 | 6e 67 20 74 68 65 20 4d |nce (usi|ng the M|
|000034d0| 69 6c 6c 65 72 2f 4d 79 | 65 72 73 20 64 69 66 66 |iller/My|ers diff|
|000034e0| 65 72 65 6e 63 69 6e 67 | 20 61 6c 67 6f 72 69 74 |erencing| algorit|
|000034f0| 68 6d 5b 34 5d 29 0a 58 | 74 68 61 74 20 77 69 6c |hm[4]).X|that wil|
|00003500| 6c 20 63 6f 6e 76 65 72 | 74 20 74 68 65 20 66 69 |l conver|t the fi|
|00003510| 72 73 74 20 66 69 6c 65 | 20 69 6e 74 6f 20 74 68 |rst file| into th|
|00003520| 65 20 73 65 63 6f 6e 64 | 2e 0a 58 48 6f 77 65 76 |e second|..XHowev|
|00003530| 65 72 2c 20 61 20 6d 69 | 6e 69 6d 61 6c 20 65 64 |er, a mi|nimal ed|
|00003540| 69 74 20 73 65 71 75 65 | 6e 63 65 73 20 69 73 20 |it seque|nces is |
|00003550| 6e 6f 74 20 61 6c 77 61 | 79 73 20 64 65 73 69 72 |not alwa|ys desir|
|00003560| 61 62 6c 65 2e 20 0a 58 | 46 6f 72 20 65 78 61 6d |able. .X|For exam|
|00003570| 70 6c 65 2c 20 66 6f 72 | 20 74 68 65 20 66 6f 6c |ple, for| the fol|
|00003580| 6c 6f 77 69 6e 67 20 74 | 77 6f 20 74 61 62 6c 65 |lowing t|wo table|
|00003590| 73 20 6f 66 20 6e 75 6d | 62 65 72 73 3a 0a 58 2e |s of num|bers:.X.|
|000035a0| 44 53 0a 58 30 2e 31 20 | 20 20 30 2e 32 20 20 20 |DS.X0.1 | 0.2 |
|000035b0| 30 2e 33 09 09 09 09 30 | 2e 32 20 20 20 30 2e 33 |0.3....0|.2 0.3|
|000035c0| 20 20 20 30 2e 34 0a 58 | 30 2e 34 20 20 20 30 2e | 0.4.X|0.4 0.|
|000035d0| 35 20 20 20 30 2e 36 09 | 09 09 09 30 2e 35 20 20 |5 0.6.|...0.5 |
|000035e0| 20 30 2e 36 20 20 20 30 | 2e 37 0a 58 2e 44 45 0a | 0.6 0|.7.X.DE.|
|000035f0| 58 61 20 6d 69 6e 69 6d | 61 6c 20 65 64 69 74 20 |Xa minim|al edit |
|00003600| 73 65 71 75 65 6e 63 65 | 20 74 6f 20 63 6f 6e 76 |sequence| to conv|
|00003610| 65 72 74 20 74 68 65 20 | 74 61 62 6c 65 20 6f 6e |ert the |table on|
|00003620| 0a 58 74 68 65 20 6c 65 | 66 74 20 69 6e 74 6f 20 |.Xthe le|ft into |
|00003630| 74 68 65 20 74 61 62 6c | 65 20 6f 6e 20 74 68 65 |the tabl|e on the|
|00003640| 20 72 69 67 68 74 20 62 | 65 20 74 6f 0a 58 77 6f | right b|e to.Xwo|
|00003650| 75 6c 64 20 64 65 6c 65 | 74 65 20 74 68 65 20 66 |uld dele|te the f|
|00003660| 69 72 73 74 20 6e 75 6d | 62 65 72 20 28 30 2e 31 |irst num|ber (0.1|
|00003670| 29 20 61 6e 64 20 69 6e | 73 65 72 74 20 30 2e 37 |) and in|sert 0.7|
|00003680| 20 61 74 20 74 68 65 20 | 65 6e 64 2e 5c 2a 2a 0a | at the |end.\**.|
|00003690| 58 2e 46 53 0a 58 54 68 | 65 20 70 72 6f 62 6c 65 |X.FS.XTh|e proble|
|000036a0| 6d 20 6f 66 20 68 61 76 | 69 6e 67 20 74 68 65 20 |m of hav|ing the |
|000036b0| 65 6c 65 6d 65 6e 74 73 | 20 6f 66 20 74 61 62 6c |elements| of tabl|
|000036c0| 65 73 20 62 65 63 6f 6d | 65 20 6d 69 73 61 6c 69 |es becom|e misali|
|000036d0| 67 6e 65 64 20 77 68 65 | 6e 0a 58 74 68 65 20 64 |gned whe|n.Xthe d|
|000036e0| 69 66 66 65 72 65 6e 63 | 69 6e 67 20 61 6c 67 6f |ifferenc|ing algo|
|000036f0| 72 69 74 68 6d 20 69 73 | 20 74 72 79 69 6e 67 0a |rithm is| trying.|
|00003700| 58 74 6f 20 66 69 6e 64 | 20 61 20 6d 69 6e 69 6d |Xto find| a minim|
|00003710| 61 6c 20 6e 75 6d 62 65 | 72 20 6f 66 20 65 64 69 |al numbe|r of edi|
|00003720| 74 73 20 63 61 6e 20 62 | 65 20 72 65 64 75 63 65 |ts can b|e reduce|
|00003730| 64 20 73 6f 6d 65 77 68 | 61 74 0a 58 62 79 20 72 |d somewh|at.Xby r|
|00003740| 65 74 61 69 6e 69 6e 67 | 20 6e 65 77 6c 69 6e 65 |etaining| newline|
|00003750| 73 20 61 6e 64 20 6e 6f | 74 20 75 73 69 6e 67 20 |s and no|t using |
|00003760| 74 6f 6c 65 72 61 6e 63 | 65 73 2e 0a 58 55 6e 66 |toleranc|es..XUnf|
|00003770| 6f 72 74 75 6e 61 74 65 | 6c 79 2c 20 69 74 20 64 |ortunate|ly, it d|
|00003780| 6f 65 73 20 6e 6f 74 20 | 67 6f 20 61 77 61 79 2e |oes not |go away.|
|00003790| 0a 58 2e 46 45 0a 58 53 | 75 63 68 20 61 20 72 65 |.X.FE.XS|uch a re|
|000037a0| 73 75 6c 74 2c 20 77 68 | 69 6c 65 20 6c 6f 67 69 |sult, wh|ile logi|
|000037b0| 63 61 6c 6c 79 20 63 6f | 72 72 65 63 74 2c 20 64 |cally co|rrect, d|
|000037c0| 6f 65 73 20 6e 6f 74 20 | 70 72 6f 76 69 64 65 20 |oes not |provide |
|000037d0| 61 20 67 6f 6f 64 20 70 | 69 63 74 75 72 65 0a 58 |a good p|icture.X|
|000037e0| 6f 66 20 74 68 65 20 64 | 69 66 66 65 72 65 6e 63 |of the d|ifferenc|
|000037f0| 65 73 20 62 65 74 77 65 | 65 6e 20 74 68 65 20 74 |es betwe|en the t|
|00003800| 77 6f 20 66 69 6c 65 73 | 2e 0a 58 49 6e 20 67 65 |wo files|..XIn ge|
|00003810| 6e 65 72 61 6c 2c 20 66 | 6f 72 20 74 65 78 74 20 |neral, f|or text |
|00003820| 77 69 74 68 20 61 20 76 | 65 72 79 20 64 65 66 69 |with a v|ery defi|
|00003830| 6e 69 74 65 20 73 74 72 | 75 63 74 75 72 65 20 28 |nite str|ucture (|
|00003840| 73 75 63 68 20 61 73 20 | 74 61 62 6c 65 73 29 2c |such as |tables),|
|00003850| 0a 58 77 65 20 6d 61 79 | 20 6e 6f 74 20 77 61 6e |.Xwe may| not wan|
|00003860| 74 20 74 6f 20 63 6f 6e | 73 69 64 65 72 20 69 6e |t to con|sider in|
|00003870| 73 65 72 74 69 6f 6e 73 | 20 61 6e 64 20 64 65 6c |sertions| and del|
|00003880| 65 74 69 6f 6e 73 20 61 | 74 20 61 6c 6c 2c 20 62 |etions a|t all, b|
|00003890| 75 74 0a 58 6f 6e 6c 79 | 20 6f 6e 65 2d 74 6f 2d |ut.Xonly| one-to-|
|000038a0| 6f 6e 65 20 63 68 61 6e | 67 65 73 2e 5c 2a 2a 0a |one chan|ges.\**.|
|000038b0| 58 2e 46 53 0a 58 41 20 | 22 63 68 61 6e 67 65 22 |X.FS.XA |"change"|
|000038c0| 20 63 61 6e 20 62 65 20 | 65 78 70 72 65 73 73 65 | can be |expresse|
|000038d0| 64 20 61 73 20 6f 6e 65 | 20 64 65 6c 65 74 69 6f |d as one| deletio|
|000038e0| 6e 20 61 6e 64 20 6f 6e | 65 20 69 6e 73 65 72 74 |n and on|e insert|
|000038f0| 69 6f 6e 20 61 74 20 74 | 68 65 20 73 61 6d 65 0a |ion at t|he same.|
|00003900| 58 70 6f 69 6e 74 20 69 | 6e 20 74 68 65 20 74 65 |Xpoint i|n the te|
|00003910| 78 74 2e 0a 58 2e 46 45 | 0a 58 53 6f 2c 20 72 61 |xt..X.FE|.XSo, ra|
|00003920| 74 68 65 72 20 74 68 61 | 6e 20 6c 6f 6f 6b 20 66 |ther tha|n look f|
|00003930| 6f 72 20 61 20 6d 69 6e | 69 6d 61 6c 20 65 64 69 |or a min|imal edi|
|00003940| 74 20 73 63 72 69 70 74 | 2c 20 77 65 0a 58 6d 65 |t script|, we.Xme|
|00003950| 72 65 6c 79 20 77 61 6e | 74 20 74 6f 20 63 6f 6d |rely wan|t to com|
|00003960| 70 61 72 65 20 65 61 63 | 68 20 74 6f 6b 65 6e 20 |pare eac|h token |
|00003970| 69 6e 20 74 68 65 20 66 | 69 72 73 74 20 66 69 6c |in the f|irst fil|
|00003980| 65 20 77 69 74 68 0a 58 | 74 68 65 20 63 6f 72 72 |e with.X|the corr|
|00003990| 65 73 70 6f 6e 64 69 6e | 67 20 74 6f 6b 65 6e 20 |espondin|g token |
|000039a0| 69 6e 20 74 68 65 20 73 | 65 63 6f 6e 64 20 66 69 |in the s|econd fi|
|000039b0| 6c 65 2e 0a 58 2e 50 50 | 0a 58 54 68 65 20 75 73 |le..X.PP|.XThe us|
|000039c0| 65 72 20 63 61 6e 20 63 | 68 6f 6f 73 65 20 77 68 |er can c|hoose wh|
|000039d0| 69 63 68 20 64 69 66 66 | 65 72 65 6e 63 69 6e 67 |ich diff|erencing|
|000039e0| 20 61 6c 67 6f 72 69 74 | 68 6d 20 74 6f 20 75 73 | algorit|hm to us|
|000039f0| 65 0a 58 28 74 68 65 20 | 64 65 66 61 75 6c 74 20 |e.X(the |default |
|00003a00| 4d 69 6c 6c 65 72 2f 4d | 79 65 72 73 20 6f 72 0a |Miller/M|yers or.|
|00003a10| 58 74 68 65 20 61 6c 74 | 65 72 6e 61 74 69 76 65 |Xthe alt|ernative|
|00003a20| 20 6f 6e 65 2d 74 6f 2d | 6f 6e 65 20 63 6f 6d 70 | one-to-|one comp|
|00003a30| 61 72 69 73 6f 6e 29 0a | 58 62 61 73 65 64 20 75 |arison).|Xbased u|
|00003a40| 70 6f 6e 20 77 68 61 74 | 20 69 73 20 6b 6e 6f 77 |pon what| is know|
|00003a50| 6e 20 61 62 6f 75 74 20 | 74 68 65 20 69 6e 70 75 |n about |the inpu|
|00003a60| 74 20 66 69 6c 65 73 2e | 20 49 6e 20 67 65 6e 65 |t files.| In gene|
|00003a70| 72 61 6c 2c 0a 58 66 69 | 6c 65 73 20 70 72 6f 64 |ral,.Xfi|les prod|
|00003a80| 75 63 65 64 20 6d 65 63 | 68 61 6e 69 63 61 6c 6c |uced mec|hanicall|
|00003a90| 79 0a 58 28 73 75 63 68 | 20 74 68 65 20 6f 75 74 |y.X(such| the out|
|00003aa0| 70 75 74 20 66 72 6f 6d | 20 74 65 73 74 20 73 75 |put from| test su|
|00003ab0| 69 74 65 73 29 20 68 61 | 76 65 20 61 20 76 65 72 |ites) ha|ve a ver|
|00003ac0| 79 20 72 65 67 75 6c 61 | 72 20 73 74 72 75 63 74 |y regula|r struct|
|00003ad0| 75 72 65 0a 58 61 6e 64 | 20 74 68 65 20 6f 6e 65 |ure.Xand| the one|
|00003ae0| 2d 74 6f 2d 6f 6e 65 20 | 63 6f 6d 70 61 72 69 73 |-to-one |comparis|
|00003af0| 6f 6e 20 77 6f 72 6b 73 | 20 73 75 72 70 72 69 73 |on works| surpris|
|00003b00| 69 6e 67 6c 79 20 77 65 | 6c 6c 2e 0a 58 46 6f 72 |ingly we|ll..XFor|
|00003b10| 20 66 69 6c 65 73 20 63 | 72 65 61 74 65 64 20 62 | files c|reated b|
|00003b20| 79 20 68 75 6d 61 6e 73 | 2c 20 74 68 65 20 4d 69 |y humans|, the Mi|
|00003b30| 6c 6c 65 72 2f 4d 79 65 | 72 73 0a 58 61 6c 67 6f |ller/Mye|rs.Xalgo|
|00003b40| 72 69 74 68 6d 20 69 73 | 20 6d 6f 72 65 20 61 70 |rithm is| more ap|
|00003b50| 70 72 6f 70 72 69 61 74 | 65 2e 0a 58 54 68 65 72 |propriat|e..XTher|
|00003b60| 65 20 69 73 20 6e 6f 74 | 68 69 6e 67 20 69 6e 0a |e is not|hing in.|
|00003b70| 58 2e 42 0a 58 73 70 69 | 66 66 27 73 0a 58 2e 52 |X.B.Xspi|ff's.X.R|
|00003b80| 0a 58 69 6e 74 65 72 6e | 61 6c 20 64 65 73 69 67 |.Xintern|al desig|
|00003b90| 6e 20 74 68 61 74 20 6c | 69 6d 69 74 73 0a 58 74 |n that l|imits.Xt|
|00003ba0| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 64 69 66 |he numbe|r of dif|
|00003bb0| 66 65 72 65 6e 63 69 6e | 67 20 61 6c 67 6f 72 69 |ferencin|g algori|
|00003bc0| 74 68 6d 73 20 74 68 61 | 74 20 69 74 20 63 61 6e |thms tha|t it can|
|00003bd0| 20 72 75 6e 2e 0a 58 4f | 74 68 65 72 20 64 69 66 | run..XO|ther dif|
|00003be0| 66 65 72 65 6e 63 69 6e | 67 20 61 6c 67 6f 72 69 |ferencin|g algori|
|00003bf0| 74 68 6d 73 2c 0a 58 69 | 6e 20 70 61 72 74 69 63 |thms,.Xi|n partic|
|00003c00| 75 6c 61 72 20 74 68 65 | 20 6f 6e 65 20 75 73 65 |ular the| one use|
|00003c10| 64 20 69 6e 0a 58 2e 42 | 0a 58 64 69 66 66 2c 0a |d in.X.B|.Xdiff,.|
|00003c20| 58 2e 52 0a 58 77 69 6c | 6c 20 70 72 6f 62 61 62 |X.R.Xwil|l probab|
|00003c30| 6c 79 20 62 65 20 61 64 | 64 65 64 20 6c 61 74 65 |ly be ad|ded late|
|00003c40| 72 2e 0a 58 2e 53 48 0a | 58 41 6c 74 65 72 69 6e |r..X.SH.|XAlterin|
|00003c50| 67 20 74 68 65 20 47 72 | 61 6e 75 6c 61 72 69 74 |g the Gr|anularit|
|00003c60| 79 20 6f 66 20 74 68 65 | 20 45 64 69 74 20 53 65 |y of the| Edit Se|
|00003c70| 71 75 65 6e 63 65 0a 58 | 2e 50 50 0a 58 42 79 20 |quence.X|.PP.XBy |
|00003c80| 64 65 66 61 75 6c 74 2c | 0a 58 2e 42 0a 58 73 70 |default,|.X.B.Xsp|
|00003c90| 69 66 66 0a 58 2e 52 0a | 58 70 72 6f 64 75 63 65 |iff.X.R.|Xproduce|
|00003ca0| 73 20 61 6e 20 65 64 69 | 74 20 73 65 71 75 65 6e |s an edi|t sequen|
|00003cb0| 63 65 0a 58 69 6e 20 74 | 65 72 6d 73 20 6f 66 20 |ce.Xin t|erms of |
|00003cc0| 69 6e 73 65 72 74 69 6f | 6e 73 20 61 6e 64 20 64 |insertio|ns and d|
|00003cd0| 65 6c 65 74 69 6f 6e 73 | 20 6f 66 20 69 6e 64 69 |eletions| of indi|
|00003ce0| 76 69 64 75 61 6c 20 74 | 6f 6b 65 6e 73 2e 0a 58 |vidual t|okens..X|
|00003cf0| 41 74 20 74 69 6d 65 73 | 20 69 74 20 6d 61 79 20 |At times| it may |
|00003d00| 62 65 20 6d 6f 72 65 20 | 75 73 65 66 75 6c 20 74 |be more |useful t|
|00003d10| 6f 0a 58 74 72 65 61 74 | 20 74 68 65 20 63 6f 6e |o.Xtreat| the con|
|00003d20| 74 65 6e 74 73 20 6f 66 | 20 74 68 65 20 66 69 6c |tents of| the fil|
|00003d30| 65 73 20 61 73 20 74 6f | 6b 65 6e 73 20 77 68 65 |es as to|kens whe|
|00003d40| 6e 20 6c 6f 6f 6b 69 6e | 67 20 66 6f 72 20 64 69 |n lookin|g for di|
|00003d50| 66 66 65 72 65 6e 63 65 | 73 0a 58 62 75 74 0a 58 |fference|s.Xbut.X|
|00003d60| 65 78 70 72 65 73 73 20 | 74 68 65 20 65 64 69 74 |express |the edit|
|00003d70| 20 73 63 72 69 70 74 20 | 69 6e 20 74 65 72 6d 73 | script |in terms|
|00003d80| 20 6f 66 20 65 6e 74 69 | 72 65 20 6c 69 6e 65 73 | of enti|re lines|
|00003d90| 20 6f 66 20 74 68 65 20 | 66 69 6c 65 73 20 72 61 | of the |files ra|
|00003da0| 74 68 65 72 0a 58 74 68 | 61 6e 20 69 6e 64 69 76 |ther.Xth|an indiv|
|00003db0| 69 64 75 61 6c 20 74 6f | 6b 65 6e 73 2e 5c 2a 2a |idual to|kens.\**|
|00003dc0| 0a 58 2e 46 53 0a 58 46 | 6f 72 20 69 6e 73 74 61 |.X.FS.XF|or insta|
|00003dd0| 6e 63 65 2c 20 69 66 20 | 6f 6e 65 20 77 61 6e 74 |nce, if |one want|
|00003de0| 73 20 74 6f 20 68 61 76 | 65 20 0a 58 2e 42 0a 58 |s to hav|e .X.B.X|
|00003df0| 73 70 69 66 66 0a 58 2e | 52 0a 58 70 72 6f 64 75 |spiff.X.|R.Xprodu|
|00003e00| 63 65 20 6f 75 74 70 75 | 74 20 74 68 61 74 20 63 |ce outpu|t that c|
|00003e10| 61 6e 20 62 65 20 66 65 | 64 20 69 6e 74 6f 0a 58 |an be fe|d into.X|
|00003e20| 74 68 65 0a 58 2e 42 0a | 58 65 64 0a 58 2e 52 0a |the.X.B.|Xed.X.R.|
|00003e30| 58 65 64 69 74 6f 72 2e | 0a 58 2e 46 45 0a 58 2e |Xeditor.|.X.FE.X.|
|00003e40| 42 0a 58 53 70 69 66 66 | 0a 58 2e 52 0a 58 70 72 |B.XSpiff|.X.R.Xpr|
|00003e50| 6f 76 69 64 65 73 20 61 | 20 66 61 63 69 6c 69 74 |ovides a| facilit|
|00003e60| 79 20 66 6f 72 20 72 65 | 73 74 72 69 63 74 69 6e |y for re|strictin|
|00003e70| 67 20 74 68 65 20 65 64 | 69 74 73 20 74 6f 20 65 |g the ed|its to e|
|00003e80| 6e 74 69 72 65 20 6c 69 | 6e 65 73 2e 0a 58 2e 53 |ntire li|nes..X.S|
|00003e90| 48 0a 58 54 72 65 61 74 | 69 6e 67 20 50 61 72 74 |H.XTreat|ing Part|
|00003ea0| 73 20 6f 66 20 74 68 65 | 20 46 69 6c 65 73 20 44 |s of the| Files D|
|00003eb0| 69 66 66 65 72 65 6e 74 | 6c 79 0a 58 2e 50 50 0a |ifferent|ly.X.PP.|
|00003ec0| 58 46 6f 72 20 63 6f 6d | 70 6c 65 78 20 69 6e 70 |XFor com|plex inp|
|00003ed0| 75 74 20 66 69 6c 65 73 | 2c 20 69 74 20 69 73 20 |ut files|, it is |
|00003ee0| 69 6d 70 6f 72 74 61 6e | 74 20 74 68 61 74 20 64 |importan|t that d|
|00003ef0| 69 66 66 65 72 65 6e 74 | 20 70 61 72 74 73 20 6f |ifferent| parts o|
|00003f00| 66 20 74 68 65 0a 58 66 | 69 6c 65 20 62 65 20 74 |f the.Xf|ile be t|
|00003f10| 72 65 61 74 65 64 20 69 | 6e 20 64 69 66 66 65 72 |reated i|n differ|
|00003f20| 65 6e 74 20 77 61 79 73 | 2e 20 20 49 6e 20 6f 74 |ent ways|. In ot|
|00003f30| 68 65 72 20 77 6f 72 64 | 73 2c 20 69 74 20 6d 61 |her word|s, it ma|
|00003f40| 79 20 62 65 20 69 6d 70 | 6f 73 73 69 62 6c 65 0a |y be imp|ossible.|
|00003f50| 58 74 6f 20 66 69 6e 64 | 20 6f 6e 65 20 73 65 74 |Xto find| one set|
|00003f60| 20 6f 66 20 70 61 72 73 | 69 6e 67 2f 64 69 66 66 | of pars|ing/diff|
|00003f70| 65 72 65 6e 63 69 6e 67 | 20 72 75 6c 65 73 20 74 |erencing| rules t|
|00003f80| 68 61 74 20 77 6f 72 6b | 20 77 65 6c 6c 20 66 6f |hat work| well fo|
|00003f90| 72 20 74 68 65 0a 58 65 | 6e 74 69 72 65 20 66 69 |r the.Xe|ntire fi|
|00003fa0| 6c 65 2e 0a 58 2e 42 0a | 58 53 70 69 66 66 0a 58 |le..X.B.|XSpiff.X|
|00003fb0| 2e 52 0a 58 63 61 6e 20 | 64 69 66 66 65 72 65 6e |.R.Xcan |differen|
|00003fc0| 74 69 61 74 65 20 62 65 | 74 77 65 65 6e 20 70 61 |tiate be|tween pa|
|00003fd0| 72 74 73 20 6f 66 20 74 | 68 65 20 69 6e 70 75 74 |rts of t|he input|
|00003fe0| 20 66 69 6c 65 73 20 6f | 6e 20 74 77 6f 20 62 61 | files o|n two ba|
|00003ff0| 73 65 73 3a 0a 58 77 69 | 74 68 69 6e 20 61 20 6c |ses:.Xwi|thin a l|
|00004000| 69 6e 65 20 61 6e 64 20 | 62 65 74 77 65 65 6e 20 |ine and |between |
|00004010| 6c 69 6e 65 73 2e 0a 58 | 57 69 74 68 69 6e 20 61 |lines..X|Within a|
|00004020| 20 6c 69 6e 65 2c 20 61 | 20 64 69 66 66 65 72 65 | line, a| differe|
|00004030| 6e 74 20 74 6f 6c 65 72 | 61 6e 63 65 20 63 61 6e |nt toler|ance can|
|00004040| 20 62 65 20 61 70 70 6c | 69 65 64 20 74 6f 20 65 | be appl|ied to e|
|00004050| 61 63 68 20 72 65 61 6c | 20 6e 75 6d 62 65 72 2e |ach real| number.|
|00004060| 0a 58 54 68 65 20 74 6f | 6c 65 72 61 6e 63 65 73 |.XThe to|lerances|
|00004070| 20 61 72 65 20 73 70 65 | 63 69 66 69 65 64 20 69 | are spe|cified i|
|00004080| 6e 20 74 65 72 6d 73 20 | 6f 66 20 74 68 65 20 6f |n terms |of the o|
|00004090| 72 64 69 6e 61 6c 20 70 | 6f 73 69 74 69 6f 6e 20 |rdinal p|osition |
|000040a0| 6f 66 20 74 68 65 0a 58 | 6e 75 6d 62 65 72 73 20 |of the.X|numbers |
|000040b0| 6f 6e 20 74 68 65 20 6c | 69 6e 65 20 28 69 2e 65 |on the l|ine (i.e|
|000040c0| 2e 20 6f 6e 65 20 74 6f | 6c 65 72 61 6e 63 65 20 |. one to|lerance |
|000040d0| 69 73 20 61 70 70 6c 69 | 65 64 20 74 6f 20 74 68 |is appli|ed to th|
|000040e0| 65 20 66 69 72 73 74 20 | 72 65 61 6c 20 6e 75 6d |e first |real num|
|000040f0| 62 65 72 0a 58 6f 6e 20 | 65 61 63 68 20 6c 69 6e |ber.Xon |each lin|
|00004100| 65 2c 20 61 20 64 69 66 | 66 65 72 65 6e 74 20 74 |e, a dif|ferent t|
|00004110| 6f 6c 65 72 61 6e 63 65 | 20 69 73 20 61 70 70 6c |olerance| is appl|
|00004120| 69 65 64 20 74 6f 20 74 | 68 65 20 73 65 63 6f 6e |ied to t|he secon|
|00004130| 64 20 6e 75 6d 62 65 72 | 20 6f 6e 0a 58 65 61 63 |d number| on.Xeac|
|00004140| 68 20 6c 69 6e 65 2c 20 | 61 20 74 68 69 72 64 20 |h line, |a third |
|00004150| 74 6f 6c 65 72 61 6e 63 | 65 20 69 73 20 61 70 70 |toleranc|e is app|
|00004160| 6c 69 65 64 20 74 6f 20 | 74 68 65 20 74 68 69 72 |lied to |the thir|
|00004170| 64 2c 20 61 6e 64 20 73 | 6f 20 6f 6e 29 2e 20 20 |d, and s|o on). |
|00004180| 49 66 20 6d 6f 72 65 0a | 58 6e 75 6d 62 65 72 73 |If more.|Xnumbers|
|00004190| 20 61 70 70 65 61 72 20 | 6f 6e 20 61 20 6c 69 6e | appear |on a lin|
|000041a0| 65 20 74 68 61 6e 20 74 | 68 65 72 65 20 61 72 65 |e than t|here are|
|000041b0| 20 74 6f 6c 65 72 61 6e | 63 65 73 20 73 70 65 63 | toleran|ces spec|
|000041c0| 69 66 69 65 64 2c 20 74 | 68 65 20 6c 61 73 74 0a |ified, t|he last.|
|000041d0| 58 74 6f 6c 65 72 61 6e | 63 65 20 69 73 20 61 70 |Xtoleran|ce is ap|
|000041e0| 70 6c 69 65 64 20 74 6f | 20 61 6c 6c 20 73 75 62 |plied to| all sub|
|000041f0| 73 65 71 75 65 6e 74 20 | 6e 75 6d 62 65 72 73 20 |sequent |numbers |
|00004200| 6f 6e 20 74 68 65 20 6c | 69 6e 65 20 28 69 2e 65 |on the l|ine (i.e|
|00004210| 2e 2c 20 69 66 20 74 68 | 65 20 75 73 65 72 0a 58 |., if th|e user.X|
|00004220| 73 70 65 63 69 66 69 65 | 73 20 74 68 72 65 65 20 |specifie|s three |
|00004230| 74 6f 6c 65 72 61 6e 63 | 65 73 2c 20 74 68 65 20 |toleranc|es, the |
|00004240| 74 68 69 72 64 20 69 73 | 20 61 70 70 6c 69 65 64 |third is| applied|
|00004250| 20 74 6f 20 74 68 65 20 | 74 68 69 72 64 2c 20 66 | to the |third, f|
|00004260| 6f 75 72 74 68 0a 58 66 | 69 66 74 68 2c 20 2e 20 |ourth.Xf|ifth, . |
|00004270| 2e 20 2e 20 6e 75 6d 62 | 65 72 20 6f 6e 20 65 61 |. . numb|er on ea|
|00004280| 63 68 20 6c 69 6e 65 29 | 2e 20 20 54 68 69 73 20 |ch line)|. This |
|00004290| 66 65 61 74 75 72 65 20 | 69 73 20 75 73 65 66 75 |feature |is usefu|
|000042a0| 6c 20 66 6f 72 20 61 70 | 70 6c 79 69 6e 67 0a 58 |l for ap|plying.X|
|000042b0| 64 69 66 66 65 72 65 6e | 74 20 74 6f 6c 65 72 61 |differen|t tolera|
|000042c0| 6e 63 65 73 20 74 6f 20 | 74 68 65 20 64 69 66 66 |nces to |the diff|
|000042d0| 65 72 65 6e 74 20 63 6f | 6c 75 6d 6e 73 20 6f 66 |erent co|lumns of|
|000042e0| 20 61 20 74 61 62 6c 65 | 20 6f 66 20 6e 75 6d 62 | a table| of numb|
|000042f0| 65 72 73 2e 0a 58 2e 50 | 50 0a 58 42 65 74 77 65 |ers..X.P|P.XBetwe|
|00004300| 65 6e 20 6c 69 6e 65 73 | 2c 20 74 68 65 20 75 73 |en lines|, the us|
|00004310| 65 72 20 63 61 6e 20 70 | 6c 61 63 65 20 22 65 6d |er can p|lace "em|
|00004320| 62 65 64 64 65 64 20 63 | 6f 6d 6d 61 6e 64 73 22 |bedded c|ommands"|
|00004330| 20 69 6e 20 74 68 65 20 | 69 6e 70 75 74 20 66 69 | in the |input fi|
|00004340| 6c 65 73 2e 0a 58 54 68 | 65 73 65 20 63 6f 6d 6d |les..XTh|ese comm|
|00004350| 61 6e 64 73 0a 58 61 72 | 65 20 69 6e 73 74 72 75 |ands.Xar|e instru|
|00004360| 63 74 69 6f 6e 73 20 74 | 6f 20 70 61 72 73 65 72 |ctions t|o parser|
|00004370| 20 74 68 61 74 20 63 61 | 6e 20 63 68 61 6e 67 65 | that ca|n change|
|00004380| 20 77 68 61 74 20 74 6f | 6c 65 72 61 6e 63 65 73 | what to|lerances|
|00004390| 20 61 72 65 20 61 74 74 | 61 63 68 65 64 0a 58 74 | are att|ached.Xt|
|000043a0| 6f 20 72 65 61 6c 20 6e | 75 6d 62 65 72 73 20 61 |o real n|umbers a|
|000043b0| 6e 64 20 74 68 65 20 63 | 6f 6d 6d 65 6e 74 69 6e |nd the c|ommentin|
|000043c0| 67 20 61 6e 64 20 6c 69 | 74 65 72 61 6c 20 73 74 |g and li|teral st|
|000043d0| 72 69 6e 67 20 63 6f 6e | 76 65 6e 74 69 6f 6e 73 |ring con|ventions|
|000043e0| 20 75 73 65 64 20 62 79 | 20 74 68 65 0a 58 70 61 | used by| the.Xpa|
|000043f0| 72 73 65 72 2e 20 20 45 | 6d 62 65 64 64 65 64 20 |rser. E|mbedded |
|00004400| 63 6f 6d 6d 61 6e 64 73 | 20 61 72 65 20 66 6c 61 |commands| are fla|
|00004410| 67 67 65 64 20 74 6f 20 | 74 68 65 20 70 61 72 73 |gged to |the pars|
|00004420| 65 72 0a 58 62 79 20 73 | 74 61 72 74 69 6e 67 20 |er.Xby s|tarting |
|00004430| 74 68 65 20 6c 69 6e 65 | 20 77 69 74 68 20 61 20 |the line| with a |
|00004440| 75 73 65 72 2d 73 70 65 | 63 69 66 69 65 64 0a 58 |user-spe|cified.X|
|00004450| 65 73 63 61 70 65 20 73 | 74 72 69 6e 67 2e 20 20 |escape s|tring. |
|00004460| 42 79 20 63 6f 6d 62 69 | 6e 69 6e 67 20 77 69 74 |By combi|ning wit|
|00004470| 68 69 6e 20 6c 69 6e 65 | 20 61 6e 64 20 62 65 74 |hin line| and bet|
|00004480| 77 65 65 6e 20 6c 69 6e | 65 20 64 69 66 66 65 72 |ween lin|e differ|
|00004490| 65 6e 74 69 61 74 69 6f | 6e 2c 0a 58 69 74 20 69 |entiatio|n,.Xit i|
|000044a0| 73 20 70 6f 73 73 69 62 | 6c 65 20 66 6f 72 20 74 |s possib|le for t|
|000044b0| 68 65 20 75 73 65 72 20 | 74 6f 20 73 70 65 63 69 |he user |to speci|
|000044c0| 66 79 20 61 20 64 69 66 | 66 65 72 65 6e 74 20 74 |fy a dif|ferent t|
|000044d0| 6f 6c 65 72 61 6e 63 65 | 0a 58 66 6f 72 20 65 76 |olerance|.Xfor ev|
|000044e0| 65 72 79 20 73 69 6e 67 | 6c 65 20 72 65 61 6c 20 |ery sing|le real |
|000044f0| 6e 75 6d 62 65 72 20 69 | 6e 20 74 68 65 20 69 6e |number i|n the in|
|00004500| 70 75 74 20 66 69 6c 65 | 73 2e 0a 58 2e 53 48 0a |put file|s..X.SH.|
|00004510| 58 56 69 73 75 61 6c 20 | 4d 6f 64 65 0a 58 2e 50 |XVisual |Mode.X.P|
|00004520| 50 0a 58 53 6f 20 66 61 | 72 2c 0a 58 2e 42 0a 58 |P.XSo fa|r,.X.B.X|
|00004530| 73 70 69 66 66 27 73 0a | 58 2e 52 0a 58 6f 70 65 |spiff's.|X.R.Xope|
|00004540| 72 61 74 69 6f 6e 20 61 | 73 20 61 6e 20 69 6e 74 |ration a|s an int|
|00004550| 65 6c 6c 69 67 65 6e 74 | 20 66 69 6c 74 65 72 20 |elligent| filter |
|00004560| 68 61 73 20 62 65 65 6e | 20 64 65 73 63 72 69 62 |has been| describ|
|00004570| 65 64 2e 0a 58 2e 42 0a | 58 53 70 69 66 66 0a 58 |ed..X.B.|XSpiff.X|
|00004580| 2e 52 0a 58 61 6c 73 6f | 20 68 61 73 20 61 6e 20 |.R.Xalso| has an |
|00004590| 69 6e 74 65 72 61 63 74 | 69 76 65 20 6d 6f 64 65 |interact|ive mode|
|000045a0| 2e 0a 58 57 68 65 6e 20 | 6f 70 65 72 61 74 69 6e |..XWhen |operatin|
|000045b0| 67 20 69 6e 20 69 6e 74 | 65 72 61 63 74 69 76 65 |g in int|eractive|
|000045c0| 20 6d 6f 64 65 2c 0a 58 | 2e 42 0a 58 73 70 69 66 | mode,.X|.B.Xspif|
|000045d0| 66 0a 58 2e 52 0a 58 70 | 6c 61 63 65 73 20 63 6f |f.X.R.Xp|laces co|
|000045e0| 72 72 65 73 70 6f 6e 64 | 69 6e 67 20 73 65 63 74 |rrespond|ing sect|
|000045f0| 69 6f 6e 73 20 6f 66 20 | 74 68 65 20 69 6e 70 75 |ions of |the inpu|
|00004600| 74 20 66 69 6c 65 73 20 | 0a 58 73 69 64 65 20 62 |t files |.Xside b|
|00004610| 79 20 73 69 64 65 20 6f | 6e 20 75 73 65 72 27 73 |y side o|n user's|
|00004620| 20 73 63 72 65 65 6e 2e | 5c 2a 2a 0a 58 2e 46 53 | screen.|\**.X.FS|
|00004630| 0a 58 41 6c 74 68 6f 75 | 67 68 20 74 68 65 20 63 |.XAlthou|gh the c|
|00004640| 75 72 72 65 6e 74 20 69 | 6d 70 6c 65 6d 65 6e 74 |urrent i|mplement|
|00004650| 61 74 69 6f 6e 20 6f 66 | 0a 58 2e 42 0a 58 73 70 |ation of|.X.B.Xsp|
|00004660| 69 66 66 0a 58 2e 52 0a | 58 72 75 6e 73 20 69 6e |iff.X.R.|Xruns in|
|00004670| 20 6d 61 6e 79 20 65 6e | 76 69 72 6f 6e 6d 65 6e | many en|vironmen|
|00004680| 74 73 2c 0a 58 69 6e 74 | 65 72 61 63 74 69 76 65 |ts,.Xint|eractive|
|00004690| 20 6d 6f 64 65 20 77 6f | 72 6b 73 20 6f 6e 6c 79 | mode wo|rks only|
|000046a0| 20 75 6e 64 65 72 20 74 | 68 65 20 4d 47 52 20 77 | under t|he MGR w|
|000046b0| 69 6e 64 6f 77 20 6d 61 | 6e 61 67 65 72 2e 5b 35 |indow ma|nager.[5|
|000046c0| 5d 0a 58 4f 74 68 65 72 | 20 67 72 61 70 68 69 63 |].XOther| graphic|
|000046d0| 73 20 69 6e 74 65 72 66 | 61 63 65 73 20 77 69 6c |s interf|aces wil|
|000046e0| 6c 20 70 72 6f 62 61 62 | 6c 79 20 62 65 20 61 64 |l probab|ly be ad|
|000046f0| 64 65 64 20 6f 76 65 72 | 20 74 69 6d 65 2e 0a 58 |ded over| time..X|
|00004700| 2e 46 45 0a 58 54 6f 6b | 65 6e 73 20 61 72 65 20 |.FE.XTok|ens are |
|00004710| 63 6f 6d 70 61 72 65 64 | 20 75 73 69 6e 67 20 61 |compared| using a|
|00004720| 20 6f 6e 65 2d 74 6f 2d | 6f 6e 65 20 6f 72 64 69 | one-to-|one ordi|
|00004730| 6e 61 6c 20 63 6f 6d 70 | 61 72 69 73 6f 6e 2c 20 |nal comp|arison, |
|00004740| 61 6e 64 20 61 6e 79 20 | 74 6f 6b 65 6e 73 20 74 |and any |tokens t|
|00004750| 68 61 74 0a 58 61 72 65 | 20 66 6f 75 6e 64 20 74 |hat.Xare| found t|
|00004760| 6f 20 62 65 20 64 69 66 | 66 65 72 65 6e 74 20 61 |o be dif|ferent a|
|00004770| 72 65 20 68 69 67 68 6c | 69 67 68 74 65 64 20 69 |re highl|ighted i|
|00004780| 6e 20 72 65 76 65 72 73 | 65 20 76 69 64 65 6f 2e |n revers|e video.|
|00004790| 0a 58 54 68 65 20 75 73 | 65 72 20 63 61 6e 20 69 |.XThe us|er can i|
|000047a0| 6e 74 65 72 61 63 74 69 | 76 65 6c 79 20 63 68 61 |nteracti|vely cha|
|000047b0| 6e 67 65 20 74 68 65 20 | 74 6f 6c 65 72 61 6e 63 |nge the |toleranc|
|000047c0| 65 73 20 61 6e 64 20 0a | 58 2e 42 0a 58 73 70 69 |es and .|X.B.Xspi|
|000047d0| 66 66 0a 58 2e 52 0a 58 | 77 69 6c 6c 20 61 6c 74 |ff.X.R.X|will alt|
|000047e0| 65 72 20 74 68 65 20 64 | 69 73 70 6c 61 79 0a 58 |er the d|isplay.X|
|000047f0| 74 6f 20 72 65 66 6c 65 | 63 74 20 77 68 69 63 68 |to refle|ct which|
|00004800| 20 72 65 61 6c 20 6e 75 | 6d 62 65 72 73 20 65 78 | real nu|mbers ex|
|00004810| 63 65 65 64 20 74 68 65 | 20 6e 65 77 20 74 6f 6c |ceed the| new tol|
|00004820| 65 72 61 6e 63 65 73 2e | 0a 58 4f 74 68 65 72 20 |erances.|.XOther |
|00004830| 63 6f 6d 6d 61 6e 64 73 | 20 61 6c 6c 6f 77 20 74 |commands| allow t|
|00004840| 68 65 20 75 73 65 72 20 | 74 6f 20 70 61 67 65 20 |he user |to page |
|00004850| 74 68 72 6f 75 67 68 20 | 74 68 65 20 66 69 6c 65 |through |the file|
|00004860| 20 61 6e 64 20 65 78 69 | 74 2e 0a 58 2e 53 48 0a | and exi|t..X.SH.|
|00004870| 58 50 65 72 66 6f 72 6d | 61 6e 63 65 0a 58 2e 50 |XPerform|ance.X.P|
|00004880| 50 0a 58 54 77 6f 20 63 | 6f 6d 70 6f 6e 65 6e 74 |P.XTwo c|omponent|
|00004890| 73 20 6f 66 20 0a 58 2e | 42 0a 58 73 70 69 66 66 |s of .X.|B.Xspiff|
|000048a0| 2c 0a 58 2e 52 0a 58 74 | 68 65 20 70 61 72 73 65 |,.X.R.Xt|he parse|
|000048b0| 72 20 61 6e 64 20 74 68 | 65 20 64 69 66 66 65 72 |r and th|e differ|
|000048c0| 65 6e 63 69 6e 67 20 61 | 6c 67 6f 72 69 74 68 6d |encing a|lgorithm|
|000048d0| 2c 0a 58 61 63 63 6f 75 | 6e 74 20 66 6f 72 20 6d |,.Xaccou|nt for m|
|000048e0| 6f 73 74 20 6f 66 20 74 | 68 65 20 65 78 65 63 75 |ost of t|he execu|
|000048f0| 74 69 6f 6e 20 74 69 6d | 65 2e 20 20 4d 69 6c 6c |tion tim|e. Mill|
|00004900| 65 72 20 61 6e 64 20 4d | 79 65 72 73 20 63 6f 6d |er and M|yers com|
|00004910| 70 61 72 65 20 74 68 65 | 69 72 0a 58 61 6c 67 6f |pare the|ir.Xalgo|
|00004920| 72 69 74 68 6d 20 74 6f | 20 74 68 65 20 6f 6e 65 |rithm to| the one|
|00004930| 20 75 73 65 64 20 69 6e | 20 74 68 65 20 64 69 66 | used in| the dif|
|00004940| 66 20 70 72 6f 67 72 61 | 6d 2e 20 20 54 6f 20 72 |f progra|m. To r|
|00004950| 65 73 74 61 74 65 20 74 | 68 65 69 72 20 72 65 73 |estate t|heir res|
|00004960| 75 6c 74 73 2c 0a 58 74 | 68 65 20 4d 69 6c 6c 65 |ults,.Xt|he Mille|
|00004970| 72 2f 4d 79 65 72 73 20 | 61 6c 67 6f 72 69 74 68 |r/Myers |algorith|
|00004980| 6d 20 69 73 20 66 61 73 | 74 65 72 20 66 6f 72 20 |m is fas|ter for |
|00004990| 66 69 6c 65 73 0a 58 74 | 68 61 74 20 68 61 76 65 |files.Xt|hat have|
|000049a0| 20 72 65 6c 61 74 69 76 | 65 6c 79 20 66 65 77 20 | relativ|ely few |
|000049b0| 64 69 66 66 65 72 65 6e | 63 65 73 20 62 75 74 20 |differen|ces but |
|000049c0| 6d 75 63 68 0a 58 73 6c | 6f 77 65 72 20 28 71 75 |much.Xsl|ower (qu|
|000049d0| 61 64 72 61 74 69 63 20 | 74 69 6d 65 29 20 66 6f |adratic |time) fo|
|000049e0| 72 20 66 69 6c 65 73 20 | 77 69 74 68 20 61 20 67 |r files |with a g|
|000049f0| 72 65 61 74 20 6d 61 6e | 79 20 64 69 66 66 65 72 |reat man|y differ|
|00004a00| 65 6e 63 65 73 2e 0a 58 | 2e 50 50 0a 58 46 6f 72 |ences..X|.PP.XFor|
|00004a10| 20 63 61 73 65 73 20 77 | 68 65 72 65 20 74 68 65 | cases w|here the|
|00004a20| 20 66 69 6c 65 73 20 64 | 6f 20 6e 6f 74 20 64 69 | files d|o not di|
|00004a30| 66 66 65 72 20 67 72 65 | 61 74 6c 79 2c 0a 58 70 |ffer gre|atly,.Xp|
|00004a40| 61 72 73 69 6e 67 20 74 | 68 65 20 69 6e 70 75 74 |arsing t|he input|
|00004a50| 20 66 69 6c 65 73 20 74 | 61 6b 65 73 20 6d 6f 73 | files t|akes mos|
|00004a60| 74 20 6f 66 20 74 68 65 | 20 74 69 6d 65 20 28 61 |t of the| time (a|
|00004a70| 72 6f 75 6e 64 20 38 30 | 25 20 6f 66 20 74 68 65 |round 80|% of the|
|00004a80| 20 74 6f 74 61 6c 29 2e | 5c 2a 2a 0a 58 2e 46 53 | total).|\**.X.FS|
|00004a90| 0a 58 4e 6f 20 65 66 66 | 6f 72 74 20 68 61 73 20 |.XNo eff|ort has |
|00004aa0| 79 65 74 20 62 65 65 6e | 20 6d 61 64 65 20 74 6f |yet been| made to|
|00004ab0| 20 6d 61 6b 65 20 74 68 | 65 20 70 61 72 73 65 72 | make th|e parser|
|00004ac0| 20 72 75 6e 20 6d 6f 72 | 65 20 71 75 69 63 6b 6c | run mor|e quickl|
|00004ad0| 79 2e 0a 58 41 20 66 61 | 73 74 65 72 20 70 61 72 |y..XA fa|ster par|
|00004ae0| 73 65 72 20 63 6f 75 6c | 64 20 6e 6f 20 64 6f 75 |ser coul|d no dou|
|00004af0| 62 74 20 62 65 20 77 72 | 69 74 74 65 6e 20 62 79 |bt be wr|itten by|
|00004b00| 20 67 65 6e 65 72 61 74 | 69 6e 67 20 61 20 73 70 | generat|ing a sp|
|00004b10| 65 63 69 61 6c 20 73 74 | 61 74 65 20 6d 61 63 68 |ecial st|ate mach|
|00004b20| 69 6e 65 2e 0a 58 2e 46 | 45 0a 58 54 68 65 20 70 |ine..X.F|E.XThe p|
|00004b30| 65 72 66 6f 72 6d 61 6e | 63 65 20 6f 66 20 74 68 |erforman|ce of th|
|00004b40| 65 20 70 61 72 73 65 72 | 20 69 73 20 72 6f 75 67 |e parser| is roug|
|00004b50| 68 6c 79 20 73 69 6d 69 | 6c 61 72 20 74 6f 20 70 |hly simi|lar to p|
|00004b60| 72 6f 67 72 61 6d 73 20 | 74 68 61 74 20 64 6f 20 |rograms |that do |
|00004b70| 61 20 73 69 6d 69 6c 61 | 72 0a 58 6c 65 76 65 6c |a simila|r.Xlevel|
|00004b80| 20 6f 66 20 70 61 72 73 | 69 6e 67 20 28 69 2e 65 | of pars|ing (i.e|
|00004b90| 2e 20 70 72 6f 67 72 61 | 6d 73 20 74 68 61 74 20 |. progra|ms that |
|00004ba0| 6d 75 73 74 20 65 78 61 | 6d 69 6e 65 20 65 61 63 |must exa|mine eac|
|00004bb0| 68 20 63 68 61 72 61 63 | 74 65 72 20 69 6e 20 74 |h charac|ter in t|
|00004bc0| 68 65 20 66 69 6c 65 29 | 2e 0a 58 46 6f 72 20 66 |he file)|..XFor f|
|00004bd0| 69 6c 65 73 20 77 68 65 | 72 65 20 72 6f 75 67 68 |iles whe|re rough|
|00004be0| 6c 79 20 68 61 6c 66 20 | 6f 66 20 74 68 65 20 74 |ly half |of the t|
|00004bf0| 6f 6b 65 6e 73 20 61 72 | 65 20 72 65 61 6c 20 6e |okens ar|e real n|
|00004c00| 75 6d 62 65 72 73 2c 20 | 0a 58 2e 42 0a 58 73 70 |umbers, |.X.B.Xsp|
|00004c10| 69 66 66 0a 58 2e 52 0a | 58 74 61 6b 65 73 20 61 |iff.X.R.|Xtakes a|
|00004c20| 62 6f 75 74 20 74 77 69 | 63 65 20 61 73 20 6c 6f |bout twi|ce as lo|
|00004c30| 6e 67 20 74 6f 20 70 61 | 72 73 65 20 74 68 65 20 |ng to pa|rse the |
|00004c40| 69 6e 70 75 74 20 66 69 | 6c 65 73 0a 58 61 73 20 |input fi|les.Xas |
|00004c50| 61 6e 0a 58 2e 42 0a 58 | 61 77 6b 0a 58 2e 52 0a |an.X.B.X|awk.X.R.|
|00004c60| 58 70 72 6f 67 72 61 6d | 20 74 68 61 74 20 63 6f |Xprogram| that co|
|00004c70| 75 6e 74 73 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |unts the| number |
|00004c80| 6f 66 20 77 6f 72 64 73 | 20 69 6e 20 61 20 66 69 |of words| in a fi|
|00004c90| 6c 65 3a 5c 2a 2a 0a 58 | 2e 46 53 0a 58 46 6f 72 |le:\**.X|.FS.XFor|
|00004ca0| 0a 58 2e 42 0a 58 61 77 | 6b 2c 0a 58 2e 52 0a 58 |.X.B.Xaw|k,.X.R.X|
|00004cb0| 61 20 77 6f 72 64 20 69 | 73 20 61 6e 79 20 73 74 |a word i|s any st|
|00004cc0| 72 69 6e 67 20 73 65 70 | 61 72 61 74 65 64 20 62 |ring sep|arated b|
|00004cd0| 79 20 77 68 69 74 65 20 | 73 70 61 63 65 2e 0a 58 |y white |space..X|
|00004ce0| 2e 46 45 0a 58 2e 42 0a | 58 2e 44 53 0a 58 61 77 |.FE.X.B.|X.DS.Xaw|
|00004cf0| 6b 20 27 7b 74 6f 74 61 | 6c 20 2b 3d 20 4e 46 7d |k '{tota|l += NF}|
|00004d00| 27 20 66 69 72 73 74 66 | 69 6c 65 20 73 65 63 6f |' firstf|ile seco|
|00004d10| 6e 64 66 69 6c 65 0a 58 | 2e 44 45 0a 58 2e 52 0a |ndfile.X|.DE.X.R.|
|00004d20| 58 2e 50 50 0a 58 54 68 | 65 20 74 69 6d 65 20 74 |X.PP.XTh|e time t|
|00004d30| 68 61 74 20 69 74 20 74 | 61 6b 65 73 20 0a 58 2e |hat it t|akes .X.|
|00004d40| 42 0a 58 73 70 69 66 66 | 0a 58 2e 52 0a 58 74 6f |B.Xspiff|.X.R.Xto|
|00004d50| 20 70 61 72 73 65 20 61 | 20 66 69 6c 65 20 69 73 | parse a| file is|
|00004d60| 20 73 75 62 73 74 61 6e | 74 69 61 6c 6c 79 0a 58 | substan|tially.X|
|00004d70| 69 6e 63 72 65 61 73 65 | 64 20 69 66 20 73 63 61 |increase|d if sca|
|00004d80| 6e 6e 69 6e 67 20 69 73 | 20 64 6f 6e 65 20 66 6f |nning is| done fo|
|00004d90| 72 20 63 6f 6d 6d 65 6e | 74 73 0a 58 61 6e 64 20 |r commen|ts.Xand |
|00004da0| 64 65 6c 69 6d 69 74 65 | 64 20 6c 69 74 65 72 61 |delimite|d litera|
|00004db0| 6c 20 73 74 72 69 6e 67 | 73 2e 20 20 54 68 65 20 |l string|s. The |
|00004dc0| 70 72 65 63 69 73 65 20 | 65 66 66 65 63 74 20 64 |precise |effect d|
|00004dd0| 65 70 65 6e 64 73 20 75 | 70 6f 6e 20 74 68 65 20 |epends u|pon the |
|00004de0| 6c 65 6e 67 74 68 20 6f | 66 0a 58 74 68 65 20 64 |length o|f.Xthe d|
|00004df0| 65 6c 69 6d 69 74 65 72 | 73 2c 20 77 68 65 74 68 |elimiter|s, wheth|
|00004e00| 65 72 20 74 68 65 79 20 | 61 72 65 20 72 65 73 74 |er they |are rest|
|00004e10| 72 69 63 74 65 64 20 74 | 6f 20 61 70 70 65 61 72 |ricted t|o appear|
|00004e20| 20 61 74 20 62 65 67 69 | 6e 6e 69 6e 67 20 6f 66 | at begi|nning of|
|00004e30| 20 6c 69 6e 65 2c 20 61 | 6e 64 0a 58 74 68 65 20 | line, a|nd.Xthe |
|00004e40| 66 72 65 71 75 65 6e 63 | 79 20 77 69 74 68 20 77 |frequenc|y with w|
|00004e50| 68 69 63 68 20 6c 69 74 | 65 72 61 6c 73 20 61 6e |hich lit|erals an|
|00004e60| 64 20 63 6f 6d 6d 65 6e | 74 73 20 61 70 70 65 61 |d commen|ts appea|
|00004e70| 72 20 69 6e 20 74 68 65 | 20 69 6e 70 75 74 20 66 |r in the| input f|
|00004e80| 69 6c 65 73 2e 0a 58 41 | 73 20 61 6e 20 65 78 61 |iles..XA|s an exa|
|00004e90| 6d 70 6c 65 2c 20 61 64 | 64 69 6e 67 20 74 68 65 |mple, ad|ding the|
|00004ea0| 20 31 32 20 6c 69 74 65 | 72 61 6c 20 63 6f 6e 76 | 12 lite|ral conv|
|00004eb0| 65 6e 74 69 6f 6e 73 5c | 2a 2a 0a 58 2e 46 53 0a |entions\|**.X.FS.|
|00004ec0| 58 4f 6e 65 20 6c 69 74 | 65 72 61 6c 20 63 6f 6e |XOne lit|eral con|
|00004ed0| 76 65 6e 74 69 6f 6e 20 | 69 73 20 66 6f 72 20 43 |vention |is for C|
|00004ee0| 20 6c 69 74 65 72 61 6c | 20 73 74 72 69 6e 67 73 | literal| strings|
|00004ef0| 2e 20 20 54 68 65 20 72 | 65 73 74 20 65 6e 75 6d |. The r|est enum|
|00004f00| 65 72 61 74 65 20 6d 75 | 6c 74 69 63 68 61 72 61 |erate mu|ltichara|
|00004f10| 63 74 65 72 0a 58 6f 70 | 65 72 61 74 6f 72 73 2e |cter.Xop|erators.|
|00004f20| 0a 58 2e 46 45 0a 58 61 | 6e 64 20 31 20 63 6f 6d |.X.FE.Xa|nd 1 com|
|00004f30| 6d 65 6e 74 69 6e 67 20 | 63 6f 6e 76 65 6e 74 69 |menting |conventi|
|00004f40| 6f 6e 0a 58 72 65 71 75 | 69 72 65 64 20 66 6f 72 |on.Xrequ|ired for|
|00004f50| 20 43 20 63 6f 64 65 20 | 72 6f 75 67 68 6c 79 20 | C code |roughly |
|00004f60| 64 6f 75 62 6c 65 73 20 | 74 68 65 20 74 69 6d 65 |doubles |the time|
|00004f70| 20 72 65 71 75 69 72 65 | 64 20 74 6f 20 70 61 72 | require|d to par|
|00004f80| 73 65 20 69 6e 70 75 74 | 20 66 69 6c 65 73 2e 5c |se input| files.\|
|00004f90| 2a 2a 0a 58 2e 46 53 0a | 58 53 6f 20 69 6e 20 74 |**.X.FS.|XSo in t|
|00004fa0| 6f 74 61 6c 2c 20 69 74 | 20 74 61 6b 65 73 20 0a |otal, it| takes .|
|00004fb0| 58 2e 42 0a 58 73 70 69 | 66 66 0a 58 2e 52 0a 58 |X.B.Xspi|ff.X.R.X|
|00004fc0| 61 62 6f 75 74 20 34 20 | 74 69 6d 65 73 20 6c 6f |about 4 |times lo|
|00004fd0| 6e 67 65 72 20 74 6f 20 | 70 61 72 73 65 20 61 20 |nger to |parse a |
|00004fe0| 43 20 70 72 6f 67 72 61 | 6d 20 74 68 61 6e 20 69 |C progra|m than i|
|00004ff0| 74 20 74 61 6b 65 73 0a | 58 2e 42 0a 58 61 77 6b |t takes.|X.B.Xawk|
|00005000| 0a 58 2e 52 0a 58 74 6f | 20 63 6f 75 6e 74 20 74 |.X.R.Xto| count t|
|00005010| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 77 6f 72 |he numbe|r of wor|
|00005020| 64 73 20 69 6e 20 74 68 | 65 20 73 61 6d 65 20 66 |ds in th|e same f|
|00005030| 69 6c 65 2e 0a 58 2e 46 | 45 0a 58 2e 50 50 0a 58 |ile..X.F|E.X.PP.X|
|00005040| 41 20 6d 6f 72 65 20 63 | 6f 6d 70 6c 65 74 65 20 |A more c|omplete |
|00005050| 61 70 70 72 6f 61 63 68 | 20 74 6f 20 65 76 61 6c |approach| to eval|
|00005060| 75 61 74 69 6e 67 0a 58 | 2e 42 0a 58 73 70 69 66 |uating.X|.B.Xspif|
|00005070| 66 27 73 0a 58 2e 52 0a | 58 70 65 72 66 6f 72 6d |f's.X.R.|Xperform|
|00005080| 61 6e 63 65 20 6d 75 73 | 74 20 6d 65 61 73 75 72 |ance mus|t measur|
|00005090| 65 20 74 68 65 20 74 6f | 74 61 6c 20 74 69 6d 65 |e the to|tal time|
|000050a0| 20 74 68 61 74 20 69 74 | 20 74 61 6b 65 73 20 66 | that it| takes f|
|000050b0| 6f 72 20 74 68 65 20 75 | 73 65 72 20 74 6f 20 63 |or the u|ser to c|
|000050c0| 6f 6d 70 6c 65 74 65 20 | 61 0a 58 64 69 66 66 65 |omplete |a.Xdiffe|
|000050d0| 72 65 6e 63 69 6e 67 20 | 74 61 73 6b 2e 20 20 46 |rencing |task. F|
|000050e0| 6f 72 20 65 78 61 6d 70 | 6c 65 2c 20 63 6f 6e 73 |or examp|le, cons|
|000050f0| 69 64 65 72 20 6f 6e 65 | 20 6f 66 20 74 68 65 0a |ider one| of the.|
|00005100| 58 74 65 73 74 20 73 75 | 69 74 65 73 20 66 6f 72 |Xtest su|ites for|
|00005110| 20 74 68 65 20 53 20 73 | 74 61 74 69 73 74 69 63 | the S s|tatistic|
|00005120| 61 6c 0a 58 61 6e 61 6c | 79 73 69 73 20 70 61 63 |al.Xanal|ysis pac|
|00005130| 6b 61 67 65 20 6d 65 6e | 74 69 6f 6e 65 64 20 61 |kage men|tioned a|
|00005140| 74 20 74 68 65 20 62 65 | 67 69 6e 6e 69 6e 67 20 |t the be|ginning |
|00005150| 6f 66 20 74 68 69 73 20 | 70 61 70 65 72 2e 0a 58 |of this |paper..X|
|00005160| 54 68 65 20 6f 75 74 70 | 75 74 20 66 69 6c 65 20 |The outp|ut file |
|00005170| 66 6f 72 20 65 61 63 68 | 20 6d 61 63 68 69 6e 65 |for each| machine|
|00005180| 20 69 73 20 34 32 37 20 | 6c 69 6e 65 73 20 6c 6f | is 427 |lines lo|
|00005190| 6e 67 20 61 6e 64 20 63 | 6f 6e 74 61 69 6e 73 0a |ng and c|ontains.|
|000051a0| 58 31 30 39 30 20 66 6c | 6f 61 74 69 6e 67 20 70 |X1090 fl|oating p|
|000051b0| 6f 69 6e 74 20 6e 75 6d | 62 65 72 73 2e 20 20 49 |oint num|bers. I|
|000051c0| 74 20 74 61 6b 65 73 0a | 58 2e 42 0a 58 64 69 66 |t takes.|X.B.Xdif|
|000051d0| 66 20 0a 58 2e 52 0a 58 | 61 70 70 72 6f 78 69 6d |f .X.R.X|approxim|
|000051e0| 61 74 65 6c 79 20 32 20 | 73 65 63 6f 6e 64 73 20 |ately 2 |seconds |
|000051f0| 6f 6e 20 6f 6e 65 20 6f | 66 20 6f 75 72 20 22 36 |on one o|f our "6|
|00005200| 20 4d 49 50 53 22 5c 2a | 2a 20 63 6f 6d 70 75 74 | MIPS"\*|* comput|
|00005210| 65 72 73 0a 58 2e 46 53 | 0a 58 57 65 20 77 69 6c |ers.X.FS|.XWe wil|
|00005220| 6c 20 6e 6f 74 20 63 6f | 6d 6d 65 6e 74 20 6f 6e |l not co|mment on|
|00005230| 20 74 68 65 20 75 73 65 | 66 75 6c 6e 65 73 73 20 | the use|fulness |
|00005240| 6f 66 20 22 4d 49 50 53 | 22 20 61 73 20 61 20 6d |of "MIPS|" as a m|
|00005250| 65 61 73 75 72 65 0a 58 | 6f 66 20 63 6f 6d 70 75 |easure.X|of compu|
|00005260| 74 69 6e 67 20 73 70 65 | 65 64 2e 20 20 54 68 65 |ting spe|ed. The|
|00005270| 20 6e 75 6d 62 65 72 73 | 20 70 72 6f 76 69 64 65 | numbers| provide|
|00005280| 64 20 61 72 65 20 6f 6e | 6c 79 20 69 6e 74 65 6e |d are on|ly inten|
|00005290| 64 65 64 20 74 6f 0a 58 | 67 69 76 65 20 74 68 65 |ded to.X|give the|
|000052a0| 20 72 65 61 64 65 72 20 | 73 6f 6d 65 20 76 61 67 | reader |some vag|
|000052b0| 75 65 20 69 64 65 61 20 | 6f 66 20 68 6f 77 20 66 |ue idea |of how f|
|000052c0| 61 73 74 20 74 68 65 73 | 65 20 70 72 6f 67 72 61 |ast thes|e progra|
|000052d0| 6d 73 20 72 75 6e 2e 20 | 0a 58 2e 46 45 0a 58 74 |ms run. |.X.FE.Xt|
|000052e0| 6f 20 63 6f 6d 70 61 72 | 65 20 74 68 65 20 74 77 |o compar|e the tw|
|000052f0| 6f 20 66 69 6c 65 73 20 | 61 6e 64 20 70 72 6f 64 |o files |and prod|
|00005300| 75 63 65 0a 58 61 6e 20 | 65 64 69 74 20 73 63 72 |uce.Xan |edit scr|
|00005310| 69 70 74 20 74 68 61 74 | 20 69 73 20 35 34 38 20 |ipt that| is 548 |
|00005320| 6c 69 6e 65 73 20 6c 6f | 6e 67 20 63 6f 6e 74 61 |lines lo|ng conta|
|00005330| 69 6e 69 6e 67 20 31 30 | 30 33 20 22 64 69 66 66 |ining 10|03 "diff|
|00005340| 65 72 65 6e 63 65 73 22 | 0a 58 69 6e 20 74 68 65 |erences"|.Xin the|
|00005350| 20 66 6c 6f 61 74 69 6e | 67 20 70 6f 69 6e 74 20 | floatin|g point |
|00005360| 6e 75 6d 62 65 72 73 2e | 20 20 49 74 20 74 61 6b |numbers.| It tak|
|00005370| 65 73 20 74 68 65 20 61 | 76 65 72 61 67 65 20 74 |es the a|verage t|
|00005380| 65 73 74 65 72 0a 58 35 | 20 6d 69 6e 75 74 65 73 |ester.X5| minutes|
|00005390| 20 74 6f 20 70 72 69 6e | 74 20 6f 75 74 20 74 68 | to prin|t out th|
|000053a0| 65 20 65 64 69 74 20 73 | 63 72 69 70 74 20 61 6e |e edit s|cript an|
|000053b0| 64 20 72 6f 75 67 68 6c | 79 20 32 20 68 6f 75 72 |d roughl|y 2 hour|
|000053c0| 73 20 74 6f 20 65 78 61 | 6d 69 6e 65 0a 58 74 68 |s to exa|mine.Xth|
|000053d0| 65 20 6f 75 74 70 75 74 | 20 62 79 20 68 61 6e 64 |e output| by hand|
|000053e0| 20 74 6f 20 64 65 74 65 | 72 6d 69 6e 65 20 74 68 | to dete|rmine th|
|000053f0| 61 74 20 74 68 65 20 6d | 61 63 68 69 6e 65 73 20 |at the m|achines |
|00005400| 61 72 65 2c 20 69 6e 20 | 66 61 63 74 2c 0a 58 62 |are, in |fact,.Xb|
|00005410| 6f 74 68 20 67 69 76 69 | 6e 67 20 6e 65 61 72 6c |oth givi|ng nearl|
|00005420| 79 20 69 64 65 6e 74 69 | 63 61 6c 20 61 6e 73 77 |y identi|cal answ|
|00005430| 65 72 73 2e 20 20 54 68 | 65 20 74 6f 74 61 6c 20 |ers. Th|e total |
|00005440| 74 69 6d 65 20 6e 65 65 | 64 65 64 20 69 73 0a 58 |time nee|ded is.X|
|00005450| 32 20 68 6f 75 72 73 20 | 35 20 6d 69 6e 75 74 65 |2 hours |5 minute|
|00005460| 73 20 61 6e 64 20 32 20 | 73 65 63 6f 6e 64 73 2e |s and 2 |seconds.|
|00005470| 0a 58 2e 50 50 0a 58 49 | 6e 20 63 6f 6e 74 72 61 |.X.PP.XI|n contra|
|00005480| 73 74 2c 20 69 74 20 74 | 61 6b 65 73 0a 58 2e 42 |st, it t|akes.X.B|
|00005490| 0a 58 73 70 69 66 66 0a | 58 2e 52 0a 58 61 70 70 |.Xspiff.|X.R.Xapp|
|000054a0| 72 6f 78 69 6d 61 74 65 | 6c 79 20 36 20 73 65 63 |roximate|ly 6 sec|
|000054b0| 6f 6e 64 73 20 6f 6e 20 | 6f 6e 65 20 6f 66 20 6f |onds on |one of o|
|000054c0| 75 72 20 22 36 20 4d 49 | 50 53 22 20 63 6f 6d 70 |ur "6 MI|PS" comp|
|000054d0| 75 74 65 72 73 20 74 6f | 0a 58 70 72 6f 64 75 63 |uters to|.Xproduc|
|000054e0| 65 20 61 6e 20 6f 75 74 | 70 75 74 20 66 69 6c 65 |e an out|put file|
|000054f0| 20 74 68 61 74 20 69 73 | 20 34 20 6c 69 6e 65 73 | that is| 4 lines|
|00005500| 20 6c 6f 6e 67 2e 5c 2a | 2a 0a 58 2e 46 53 0a 58 | long.\*|*.X.FS.X|
|00005510| 54 68 65 20 6f 75 74 70 | 75 74 20 77 6f 75 6c 64 |The outp|ut would|
|00005520| 20 62 65 20 7a 65 72 6f | 20 6c 65 6e 67 74 68 20 | be zero| length |
|00005530| 65 78 63 65 70 74 20 74 | 68 61 74 20 74 68 65 20 |except t|hat the |
|00005540| 6f 75 74 70 75 74 20 6f | 66 20 74 68 65 0a 58 2e |output o|f the.X.|
|00005550| 42 0a 58 74 69 6d 65 0a | 58 2e 52 0a 58 63 6f 6d |B.Xtime.|X.R.Xcom|
|00005560| 6d 61 6e 64 20 69 73 20 | 62 75 69 6c 74 20 69 6e |mand is |built in|
|00005570| 74 6f 20 74 68 65 20 53 | 20 74 65 73 74 73 2e 0a |to the S| tests..|
|00005580| 58 54 68 65 20 74 69 6d | 69 6e 67 20 69 6e 66 6f |XThe tim|ing info|
|00005590| 72 6d 61 74 69 6f 6e 20 | 63 6f 75 6c 64 20 65 61 |rmation |could ea|
|000055a0| 73 69 6c 79 20 62 65 20 | 69 67 6e 6f 72 65 64 20 |sily be |ignored |
|000055b0| 75 73 69 6e 67 0a 58 2e | 42 0a 58 73 70 69 66 66 |using.X.|B.Xspiff|
|000055c0| 27 73 0a 58 2e 52 0a 58 | 65 6d 62 65 64 64 65 64 |'s.X.R.X|embedded|
|000055d0| 20 63 6f 6d 6d 61 6e 64 | 73 2e 20 42 75 74 2c 20 | command|s. But, |
|000055e0| 61 73 20 77 65 20 73 68 | 61 6c 6c 20 73 65 65 2c |as we sh|all see,|
|000055f0| 20 69 74 20 68 61 72 64 | 6c 79 20 73 65 65 6d 73 | it hard|ly seems|
|00005600| 20 77 6f 72 74 68 20 74 | 68 65 20 74 72 6f 75 62 | worth t|he troub|
|00005610| 6c 65 2e 0a 58 2e 46 45 | 0a 58 49 74 20 74 61 6b |le..X.FE|.XIt tak|
|00005620| 65 73 20 74 68 65 20 61 | 76 65 72 61 67 65 20 74 |es the a|verage t|
|00005630| 65 73 74 65 72 20 33 30 | 20 73 65 63 6f 6e 64 73 |ester 30| seconds|
|00005640| 20 74 6f 20 65 78 61 6d | 69 6e 65 0a 58 2e 42 0a | to exam|ine.X.B.|
|00005650| 58 73 70 69 66 66 27 73 | 0a 58 2e 52 0a 58 6f 75 |Xspiff's|.X.R.Xou|
|00005660| 74 70 75 74 2e 20 20 54 | 68 65 20 74 6f 74 61 6c |tput. T|he total|
|00005670| 20 66 6f 72 0a 58 2e 42 | 0a 58 73 70 69 66 66 0a | for.X.B|.Xspiff.|
|00005680| 58 2e 52 0a 58 69 73 20 | 33 36 20 73 65 63 6f 6e |X.R.Xis |36 secon|
|00005690| 64 73 2e 20 20 54 68 65 | 72 65 66 6f 72 65 20 66 |ds. The|refore f|
|000056a0| 6f 72 20 74 68 69 73 20 | 63 61 73 65 2c 20 0a 58 |or this |case, .X|
|000056b0| 2e 42 0a 58 73 70 69 66 | 66 0a 58 2e 52 0a 58 77 |.B.Xspif|f.X.R.Xw|
|000056c0| 69 6c 6c 20 67 65 74 20 | 74 68 65 20 6a 6f 62 20 |ill get |the job |
|000056d0| 64 6f 6e 65 20 72 6f 75 | 67 68 6c 79 20 32 30 38 |done rou|ghly 208|
|000056e0| 2e 38 38 20 74 69 6d 65 | 73 20 66 61 73 74 65 72 |.88 time|s faster|
|000056f0| 20 74 68 61 6e 0a 58 2e | 42 0a 58 64 69 66 66 2e | than.X.|B.Xdiff.|
|00005700| 0a 58 2e 52 0a 58 2e 50 | 50 0a 58 49 6e 20 67 65 |.X.R.X.P|P.XIn ge|
|00005710| 6e 65 72 61 6c 2c 20 69 | 74 20 69 73 20 6d 69 73 |neral, i|t is mis|
|00005720| 6c 65 61 64 69 6e 67 20 | 74 6f 20 63 6f 6d 70 61 |leading |to compa|
|00005730| 72 65 0a 58 2e 42 0a 58 | 73 70 69 66 66 27 73 0a |re.X.B.X|spiff's.|
|00005740| 58 2e 52 0a 58 73 70 65 | 65 64 20 77 69 74 68 20 |X.R.Xspe|ed with |
|00005750| 74 68 61 74 20 6f 66 0a | 58 2e 42 0a 58 64 69 66 |that of.|X.B.Xdif|
|00005760| 66 2e 0a 58 2e 52 0a 58 | 57 68 69 6c 65 20 62 6f |f..X.R.X|While bo|
|00005770| 74 68 20 70 72 6f 67 72 | 61 6d 73 20 61 72 65 20 |th progr|ams are |
|00005780| 6c 6f 6f 6b 69 6e 67 20 | 66 6f 72 20 64 69 66 66 |looking |for diff|
|00005790| 65 72 65 6e 63 65 73 20 | 62 65 74 77 65 65 6e 20 |erences |between |
|000057a0| 66 69 6c 65 73 2c 0a 58 | 74 68 65 79 20 6f 70 65 |files,.X|they ope|
|000057b0| 72 61 74 65 20 6f 6e 20 | 76 65 72 79 20 64 69 66 |rate on |very dif|
|000057c0| 66 65 72 65 6e 74 20 74 | 79 70 65 73 20 6f 66 20 |ferent t|ypes of |
|000057d0| 64 61 74 61 20 28 74 6f | 6b 65 6e 73 20 76 73 2e |data (to|kens vs.|
|000057e0| 20 62 79 74 65 73 29 2e | 0a 58 41 6e 20 61 6e 61 | bytes).|.XAn ana|
|000057f0| 6c 6f 67 6f 75 73 20 63 | 6f 6d 70 61 72 69 73 6f |logous c|ompariso|
|00005800| 6e 20 63 6f 75 6c 64 20 | 62 65 20 6d 61 64 65 20 |n could |be made |
|00005810| 62 65 74 77 65 65 6e 20 | 74 68 65 20 73 70 65 65 |between |the spee|
|00005820| 64 20 6f 66 20 61 6e 20 | 61 73 73 65 6d 62 6c 65 |d of an |assemble|
|00005830| 72 0a 58 61 6e 64 20 74 | 68 65 20 73 70 65 65 64 |r.Xand t|he speed|
|00005840| 20 6f 66 20 61 20 43 20 | 63 6f 6d 70 69 6c 65 72 | of a C |compiler|
|00005850| 2e 20 20 54 68 65 79 20 | 61 72 65 20 62 6f 74 68 |. They |are both|
|00005860| 20 6c 61 6e 67 75 61 67 | 65 20 74 72 61 6e 73 6c | languag|e transl|
|00005870| 61 74 6f 72 73 2e 0a 58 | 4f 6e 65 20 72 75 6e 73 |ators..X|One runs|
|00005880| 20 6d 75 63 68 20 66 61 | 73 74 65 72 20 74 68 61 | much fa|ster tha|
|00005890| 6e 20 74 68 65 20 6f 74 | 68 65 72 2e 0a 58 4e 6f |n the ot|her..XNo|
|000058a0| 6e 65 20 74 68 65 20 6c | 65 73 73 2c 20 6d 6f 73 |ne the l|ess, mos|
|000058b0| 74 20 70 72 6f 67 72 61 | 6d 6d 65 72 73 20 75 73 |t progra|mmers us|
|000058c0| 65 20 74 68 65 20 73 6c | 6f 77 65 72 20 70 72 6f |e the sl|ower pro|
|000058d0| 67 72 61 6d 0a 58 77 68 | 65 6e 65 76 65 72 20 70 |gram.Xwh|enever p|
|000058e0| 6f 73 73 69 62 6c 65 2e | 0a 58 2e 53 48 0a 58 55 |ossible.|.X.SH.XU|
|000058f0| 73 69 6e 67 20 53 70 69 | 66 66 20 46 6f 72 20 4d |sing Spi|ff For M|
|00005900| 61 6b 69 6e 67 20 52 65 | 67 72 65 73 73 69 6f 6e |aking Re|gression|
|00005910| 20 54 65 73 74 73 20 4f | 66 20 53 6f 66 74 77 61 | Tests O|f Softwa|
|00005920| 72 65 0a 58 2e 50 50 0a | 58 57 65 20 65 6e 76 69 |re.X.PP.|XWe envi|
|00005930| 73 69 6f 6e 20 0a 58 2e | 42 0a 58 73 70 69 66 66 |sion .X.|B.Xspiff|
|00005940| 0a 58 2e 52 0a 58 74 6f | 20 62 65 20 74 68 65 20 |.X.R.Xto| be the |
|00005950| 66 69 72 73 74 20 6f 66 | 20 73 65 76 65 72 61 6c |first of| several|
|00005960| 20 74 6f 6f 6c 73 20 66 | 6f 72 20 61 69 64 69 6e | tools f|or aidin|
|00005970| 67 20 69 6e 20 74 68 65 | 20 6e 6f 77 0a 58 61 72 |g in the| now.Xar|
|00005980| 64 75 6f 75 73 20 74 61 | 73 6b 20 6f 66 20 6d 61 |duous ta|sk of ma|
|00005990| 6b 69 6e 67 20 72 65 67 | 72 65 73 73 69 6f 6e 20 |king reg|ression |
|000059a0| 74 65 73 74 73 2e 5c 2a | 2a 0a 58 2e 46 53 0a 58 |tests.\*|*.X.FS.X|
|000059b0| 49 6e 20 73 6f 66 74 77 | 61 72 65 20 65 6e 67 69 |In softw|are engi|
|000059c0| 6e 65 65 72 69 6e 67 20 | 70 61 72 6c 61 6e 63 65 |neering |parlance|
|000059d0| 2c 20 61 20 22 72 65 67 | 72 65 73 73 69 6f 6e 20 |, a "reg|ression |
|000059e0| 74 65 73 74 22 20 69 73 | 20 74 68 65 20 70 72 6f |test" is| the pro|
|000059f0| 63 65 73 73 20 62 79 0a | 58 77 68 69 63 68 20 61 |cess by.|Xwhich a|
|00005a00| 20 74 65 73 74 65 72 20 | 63 68 65 63 6b 73 20 74 | tester |checks t|
|00005a10| 6f 20 6d 61 6b 65 20 73 | 75 72 65 20 74 68 61 74 |o make s|ure that|
|00005a20| 20 74 68 65 20 6e 65 77 | 20 76 65 72 73 69 6f 6e | the new| version|
|00005a30| 20 6f 66 20 61 20 70 69 | 65 63 65 20 6f 66 0a 58 | of a pi|ece of.X|
|00005a40| 73 6f 66 74 77 61 72 65 | 20 73 74 69 6c 6c 20 70 |software| still p|
|00005a50| 65 72 66 6f 72 6d 73 20 | 74 68 65 20 73 61 6d 65 |erforms |the same|
|00005a60| 20 77 61 79 20 61 73 20 | 74 68 65 20 6f 6c 64 65 | way as |the olde|
|00005a70| 72 20 76 65 72 73 69 6f | 6e 73 20 0a 58 6f 6e 20 |r versio|ns .Xon |
|00005a80| 6f 76 65 72 6c 61 70 70 | 69 6e 67 20 74 61 73 6b |overlapp|ing task|
|00005a90| 73 2e 0a 58 2e 46 45 0a | 58 47 69 76 65 6e 20 0a |s..X.FE.|XGiven .|
|00005aa0| 58 2e 42 0a 58 73 70 69 | 66 66 27 73 0a 58 2e 52 |X.B.Xspi|ff's.X.R|
|00005ab0| 0a 58 63 75 72 72 65 6e | 74 20 63 61 70 61 62 69 |.Xcurren|t capabi|
|00005ac0| 6c 69 74 69 65 73 2c 20 | 74 68 65 20 72 65 67 72 |lities, |the regr|
|00005ad0| 65 73 73 69 6f 6e 20 74 | 65 73 74 20 64 65 73 69 |ession t|est desi|
|00005ae0| 67 6e 65 72 20 63 61 6e | 0a 58 74 61 6b 65 20 74 |gner can|.Xtake t|
|00005af0| 68 65 20 6f 75 74 70 75 | 74 20 6f 66 20 61 6e 20 |he outpu|t of an |
|00005b00| 6f 6c 64 65 72 20 76 65 | 72 73 69 6f 6e 20 6f 66 |older ve|rsion of|
|00005b10| 20 73 6f 66 74 77 61 72 | 65 20 61 6e 64 20 74 68 | softwar|e and th|
|00005b20| 72 6f 75 67 68 0a 58 74 | 68 65 20 75 73 65 20 6f |rough.Xt|he use o|
|00005b30| 66 20 6c 69 74 65 72 61 | 6c 20 73 74 72 69 6e 67 |f litera|l string|
|00005b40| 20 61 6e 64 20 63 6f 6d | 6d 65 6e 74 69 6e 67 20 | and com|menting |
|00005b50| 63 6f 6e 76 65 6e 74 69 | 6f 6e 73 2c 0a 58 73 70 |conventi|ons,.Xsp|
|00005b60| 65 63 69 66 79 20 77 68 | 61 74 20 70 61 72 74 73 |ecify wh|at parts|
|00005b70| 20 6f 66 20 74 68 65 20 | 6f 75 74 70 75 74 20 6d | of the |output m|
|00005b80| 75 73 74 20 72 65 6d 61 | 69 6e 20 69 64 65 6e 74 |ust rema|in ident|
|00005b90| 69 63 61 6c 20 61 6e 64 | 0a 58 77 68 61 74 20 73 |ical and|.Xwhat s|
|00005ba0| 65 63 74 69 6f 6e 73 20 | 63 61 6e 20 63 68 61 6e |ections |can chan|
|00005bb0| 67 65 20 63 6f 6d 70 6c | 65 74 65 6c 79 2e 20 20 |ge compl|etely. |
|00005bc0| 42 79 20 73 70 65 63 69 | 66 79 69 6e 67 20 74 6f |By speci|fying to|
|00005bd0| 6c 65 72 61 6e 63 65 73 | 2c 20 74 68 65 20 74 65 |lerances|, the te|
|00005be0| 73 74 0a 58 64 65 73 69 | 67 6e 65 72 20 63 61 6e |st.Xdesi|gner can|
|00005bf0| 20 74 61 6b 65 20 69 6e | 74 6f 20 61 63 63 6f 75 | take in|to accou|
|00005c00| 6e 74 20 68 6f 77 20 6d | 75 63 68 20 6f 66 20 61 |nt how m|uch of a|
|00005c10| 20 64 69 66 66 65 72 65 | 6e 63 65 20 69 6e 20 66 | differe|nce in f|
|00005c20| 6c 6f 61 74 69 6e 67 0a | 58 70 6f 69 6e 74 20 63 |loating.|Xpoint c|
|00005c30| 61 6c 63 75 6c 61 74 69 | 6f 6e 73 20 69 73 20 61 |alculati|ons is a|
|00005c40| 63 63 65 70 74 61 62 6c | 65 2e 0a 58 2e 50 50 0a |cceptabl|e..X.PP.|
|00005c50| 58 54 68 65 20 74 65 73 | 74 20 64 65 73 69 67 6e |XThe tes|t design|
|00005c60| 65 72 20 69 73 20 61 6c | 73 6f 20 66 72 65 65 20 |er is al|so free |
|00005c70| 74 6f 0a 58 65 64 69 74 | 20 74 68 65 20 6f 75 74 |to.Xedit| the out|
|00005c80| 70 75 74 20 66 72 6f 6d | 20 74 68 65 20 6f 6c 64 |put from| the old|
|00005c90| 65 72 20 76 65 72 73 69 | 6f 6e 20 6f 66 20 74 68 |er versi|on of th|
|00005ca0| 65 20 73 6f 66 74 77 61 | 72 65 20 61 6e 64 20 61 |e softwa|re and a|
|00005cb0| 64 64 20 65 6d 62 65 64 | 64 65 64 0a 58 63 6f 6d |dd embed|ded.Xcom|
|00005cc0| 6d 61 6e 64 73 20 74 68 | 61 74 20 63 61 6e 20 69 |mands th|at can i|
|00005cd0| 6e 73 74 72 75 63 74 20 | 0a 58 2e 42 0a 58 73 70 |nstruct |.X.B.Xsp|
|00005ce0| 69 66 66 0a 58 2e 52 0a | 58 74 6f 20 74 72 65 61 |iff.X.R.|Xto trea|
|00005cf0| 74 20 76 61 72 69 6f 75 | 73 20 70 61 72 74 73 20 |t variou|s parts |
|00005d00| 6f 66 20 74 68 65 20 6f | 75 74 70 75 74 0a 58 64 |of the o|utput.Xd|
|00005d10| 69 66 66 65 72 65 6e 74 | 6c 79 2e 20 20 54 68 65 |ifferent|ly. The|
|00005d20| 20 6e 65 77 6c 79 20 65 | 64 69 74 65 64 20 6f 75 | newly e|dited ou|
|00005d30| 74 70 75 74 20 63 61 6e | 20 74 68 65 6e 20 73 65 |tput can| then se|
|00005d40| 72 76 65 20 61 73 20 61 | 20 74 65 6d 70 6c 61 74 |rve as a| templat|
|00005d50| 65 20 66 6f 72 0a 58 74 | 68 65 20 6f 75 74 70 75 |e for.Xt|he outpu|
|00005d60| 74 20 6f 66 20 6c 61 74 | 65 72 20 76 65 72 73 69 |t of lat|er versi|
|00005d70| 6f 6e 73 20 6f 66 20 74 | 68 65 20 73 6f 66 74 77 |ons of t|he softw|
|00005d80| 61 72 65 2e 0a 58 2e 50 | 50 0a 58 4f 62 76 69 6f |are..X.P|P.XObvio|
|00005d90| 75 73 6c 79 2c 20 65 64 | 69 74 69 6e 67 20 6f 75 |usly, ed|iting ou|
|00005da0| 74 70 75 74 20 62 79 20 | 68 61 6e 64 20 69 73 20 |tput by |hand is |
|00005db0| 61 20 76 65 72 79 20 6c | 6f 77 20 6c 65 76 65 6c |a very l|ow level|
|00005dc0| 20 6d 65 63 68 61 6e 69 | 73 6d 20 66 6f 72 20 61 | mechani|sm for a|
|00005dd0| 64 64 69 6e 67 0a 58 73 | 70 65 63 69 66 69 63 61 |dding.Xs|pecifica|
|00005de0| 74 69 6f 6e 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |tion inf|ormation|
|00005df0| 2e 20 20 49 74 20 69 73 | 20 6f 75 72 20 69 6e 74 |. It is| our int|
|00005e00| 65 6e 74 69 6f 6e 20 74 | 68 61 74 20 0a 58 2e 42 |ention t|hat .X.B|
|00005e10| 0a 58 73 70 69 66 66 0a | 58 2e 52 0a 58 77 69 6c |.Xspiff.|X.R.Xwil|
|00005e20| 6c 20 62 65 63 6f 6d 65 | 0a 58 74 68 65 20 6c 61 |l become|.Xthe la|
|00005e30| 73 74 20 65 6c 65 6d 65 | 6e 74 20 69 6e 20 61 20 |st eleme|nt in a |
|00005e40| 70 69 70 65 6c 69 6e 65 | 20 6f 66 20 70 72 6f 67 |pipeline| of prog|
|00005e50| 72 61 6d 73 2e 20 20 50 | 72 6f 67 72 61 6d 73 20 |rams. P|rograms |
|00005e60| 28 61 73 20 79 65 74 20 | 75 6e 77 72 69 74 74 65 |(as yet |unwritte|
|00005e70| 6e 29 20 6c 6f 63 61 74 | 65 64 0a 58 65 61 72 6c |n) locat|ed.Xearl|
|00005e80| 69 65 72 20 69 6e 20 74 | 68 65 20 70 69 70 65 6c |ier in t|he pipel|
|00005e90| 69 6e 65 0a 58 63 61 6e | 20 69 6d 70 6c 65 6d 65 |ine.Xcan| impleme|
|00005ea0| 6e 74 20 61 20 68 69 67 | 68 65 72 20 6c 65 76 65 |nt a hig|her leve|
|00005eb0| 6c 20 72 65 70 72 65 73 | 65 6e 74 61 74 69 6f 6e |l repres|entation|
|00005ec0| 20 6f 66 20 74 68 65 20 | 73 70 65 63 69 66 69 63 | of the |specific|
|00005ed0| 61 74 69 6f 6e 20 69 6e | 66 6f 72 6d 61 74 69 6f |ation in|formatio|
|00005ee0| 6e 2e 0a 58 54 68 65 79 | 20 72 65 61 64 20 69 6e |n..XThey| read in|
|00005ef0| 20 74 68 65 20 6f 6c 64 | 20 61 6e 64 20 6e 65 77 | the old| and new|
|00005f00| 20 69 6e 70 75 74 20 66 | 69 6c 65 73 2c 20 61 64 | input f|iles, ad|
|00005f10| 64 20 74 68 65 20 61 70 | 70 72 6f 70 72 69 61 74 |d the ap|propriat|
|00005f20| 65 20 65 6d 62 65 64 64 | 65 64 20 63 6f 6d 6d 61 |e embedd|ed comma|
|00005f30| 6e 64 73 2c 0a 58 61 6e | 64 20 74 68 65 6e 20 70 |nds,.Xan|d then p|
|00005f40| 61 73 73 20 74 68 65 20 | 72 65 73 75 6c 74 73 20 |ass the |results |
|00005f50| 74 6f 20 0a 58 2e 42 0a | 58 73 70 69 66 66 0a 58 |to .X.B.|Xspiff.X|
|00005f60| 2e 52 0a 58 77 68 69 63 | 68 20 77 69 6c 6c 20 64 |.R.Xwhic|h will d|
|00005f70| 6f 20 74 68 65 20 61 63 | 74 75 61 6c 20 64 69 66 |o the ac|tual dif|
|00005f80| 66 65 72 65 6e 63 69 6e | 67 2e 0a 58 2e 53 48 0a |ferencin|g..X.SH.|
|00005f90| 58 46 75 74 75 72 65 20 | 57 6f 72 6b 0a 58 2e 50 |XFuture |Work.X.P|
|00005fa0| 50 0a 58 54 68 65 72 65 | 20 61 72 65 20 6d 61 6e |P.XThere| are man|
|00005fb0| 79 20 66 65 61 74 75 72 | 65 73 20 74 68 61 74 20 |y featur|es that |
|00005fc0| 63 6f 75 6c 64 20 62 65 | 20 61 64 64 65 64 20 74 |could be| added t|
|00005fd0| 6f 20 0a 58 2e 42 0a 58 | 73 70 69 66 66 0a 58 2e |o .X.B.X|spiff.X.|
|00005fe0| 52 0a 58 28 69 66 20 74 | 68 65 72 65 20 61 72 65 |R.X(if t|here are|
|00005ff0| 20 6e 6f 74 0a 58 74 6f | 6f 20 6d 61 6e 79 20 61 | not.Xto|o many a|
|00006000| 6c 72 65 61 64 79 29 2e | 20 20 53 6f 6d 65 20 6f |lready).| Some o|
|00006010| 66 20 74 68 65 73 65 20 | 69 6e 63 6c 75 64 65 3a |f these |include:|
|00006020| 20 0a 58 2e 49 50 20 5c | 28 62 75 0a 58 55 73 69 | .X.IP \|(bu.XUsi|
|00006030| 6e 67 20 73 65 70 61 72 | 61 74 65 20 64 69 66 66 |ng separ|ate diff|
|00006040| 65 72 65 6e 63 69 6e 67 | 20 61 6c 67 6f 72 69 74 |erencing| algorit|
|00006050| 68 6d 73 20 6f 6e 20 73 | 65 70 61 72 61 74 65 20 |hms on s|eparate |
|00006060| 73 65 63 74 69 6f 6e 73 | 20 6f 66 20 74 68 65 20 |sections| of the |
|00006070| 66 69 6c 65 0a 58 61 6e | 64 2f 6f 72 20 6c 69 6d |file.Xan|d/or lim|
|00006080| 69 74 69 6e 67 20 74 68 | 65 20 73 63 6f 70 65 20 |iting th|e scope |
|00006090| 6f 66 20 61 6e 20 65 64 | 69 74 20 73 65 71 75 65 |of an ed|it seque|
|000060a0| 6e 63 65 20 28 66 65 6e | 63 69 6e 67 29 20 0a 58 |nce (fen|cing) .X|
|000060b0| 2e 49 50 20 5c 28 62 75 | 0a 58 50 72 6f 76 69 64 |.IP \(bu|.XProvid|
|000060c0| 69 6e 67 20 61 20 6d 6f | 72 65 20 67 65 6e 65 72 |ing a mo|re gener|
|000060d0| 61 6c 20 6d 65 63 68 61 | 6e 69 73 6d 20 66 6f 72 |al mecha|nism for|
|000060e0| 20 73 70 65 63 69 66 79 | 69 6e 67 20 63 6f 6d 6d | specify|ing comm|
|000060f0| 65 6e 74 73 20 61 6e 64 | 20 6c 69 74 65 72 61 6c |ents and| literal|
|00006100| 73 0a 58 28 70 65 72 68 | 61 70 73 20 61 6c 6c 6f |s.X(perh|aps allo|
|00006110| 77 69 6e 67 20 73 70 65 | 63 69 66 69 63 61 74 69 |wing spe|cificati|
|00006120| 6f 6e 20 69 6e 20 74 65 | 72 6d 73 20 6f 66 20 72 |on in te|rms of r|
|00006130| 65 67 75 6c 61 72 20 65 | 78 70 72 65 73 73 69 6f |egular e|xpressio|
|00006140| 6e 73 29 2e 0a 58 41 73 | 20 79 65 74 2c 20 77 65 |ns)..XAs| yet, we|
|00006150| 20 68 61 76 65 20 6e 6f | 74 20 65 6e 63 6f 75 6e | have no|t encoun|
|00006160| 74 65 72 65 64 20 61 6e | 79 20 69 6d 70 6f 72 74 |tered an|y import|
|00006170| 61 6e 74 20 63 61 73 65 | 73 20 77 68 65 72 65 20 |ant case|s where |
|00006180| 72 65 67 75 6c 61 72 20 | 65 78 70 72 65 73 73 69 |regular |expressi|
|00006190| 6f 6e 73 0a 58 68 61 76 | 65 20 62 65 65 6e 20 6e |ons.Xhav|e been n|
|000061a0| 65 65 64 65 64 2e 20 20 | 55 6e 74 69 6c 20 73 75 |eeded. |Until su|
|000061b0| 63 68 20 61 20 63 61 73 | 65 20 69 73 20 65 6e 63 |ch a cas|e is enc|
|000061c0| 6f 75 6e 74 65 72 65 64 | 2c 20 77 65 20 77 69 6c |ountered|, we wil|
|000061d0| 6c 20 6c 65 61 76 65 20 | 72 65 67 75 6c 61 72 0a |l leave |regular.|
|000061e0| 58 65 78 70 72 65 73 73 | 69 6f 6e 73 20 6f 75 74 |Xexpress|ions out|
|000061f0| 20 69 6e 20 74 68 65 20 | 6e 61 6d 65 20 6f 66 20 | in the |name of |
|00006200| 73 69 6d 70 6c 69 63 69 | 74 79 2e 0a 58 2e 49 50 |simplici|ty..X.IP|
|00006210| 20 5c 28 62 75 0a 58 41 | 6c 6c 6f 77 69 6e 67 20 | \(bu.XA|llowing |
|00006220| 66 6f 72 20 61 20 6d 6f | 72 65 20 67 65 6e 65 72 |for a mo|re gener|
|00006230| 61 6c 20 73 70 65 63 69 | 66 69 63 61 74 69 6f 6e |al speci|fication|
|00006240| 20 6f 66 20 77 68 61 74 | 20 6c 69 6e 65 73 20 73 | of what| lines s|
|00006250| 68 6f 75 6c 64 20 6c 6f | 6f 6b 20 6c 69 6b 65 2e |hould lo|ok like.|
|00006260| 0a 58 41 74 20 70 72 65 | 73 65 6e 74 2c 20 74 68 |.XAt pre|sent, th|
|00006270| 65 20 75 73 65 72 20 63 | 61 6e 20 6f 6e 6c 79 20 |e user c|an only |
|00006280| 73 70 65 63 69 66 79 20 | 74 6f 6c 65 72 61 6e 63 |specify |toleranc|
|00006290| 65 73 20 66 6f 72 20 6e | 75 6d 62 65 72 73 20 61 |es for n|umbers a|
|000062a0| 73 20 61 20 66 75 6e 63 | 74 69 6f 6e 0a 58 6f 66 |s a func|tion.Xof|
|000062b0| 20 74 68 65 69 72 20 6f | 72 64 69 6e 61 6c 20 70 | their o|rdinal p|
|000062c0| 6f 73 69 74 69 6f 6e 20 | 6f 6e 20 61 20 6c 69 6e |osition |on a lin|
|000062d0| 65 2e 20 20 54 68 65 20 | 64 69 66 66 69 63 75 6c |e. The |difficul|
|000062e0| 74 79 20 69 6e 20 65 78 | 70 61 6e 64 69 6e 67 20 |ty in ex|panding |
|000062f0| 74 68 65 0a 58 73 70 65 | 63 69 66 69 63 61 74 69 |the.Xspe|cificati|
|00006300| 6f 6e 20 61 62 69 6c 69 | 74 69 65 73 20 6f 66 20 |on abili|ties of |
|00006310| 0a 58 2e 42 0a 58 73 70 | 69 66 66 0a 58 2e 52 0a |.X.B.Xsp|iff.X.R.|
|00006320| 58 69 73 20 6b 6e 6f 77 | 69 6e 67 20 77 68 65 6e |Xis know|ing when|
|00006330| 20 74 6f 20 73 74 6f 70 | 2e 20 20 49 6e 20 74 68 | to stop|. In th|
|00006340| 65 20 65 78 74 72 65 6d | 65 2c 0a 58 77 65 20 6d |e extrem|e,.Xwe m|
|00006350| 69 67 68 74 20 61 64 64 | 20 61 6c 6c 20 6f 66 20 |ight add| all of |
|00006360| 74 68 65 20 66 75 6e 63 | 74 69 6f 6e 61 6c 69 74 |the func|tionalit|
|00006370| 79 20 6f 66 20 61 20 70 | 72 6f 67 72 61 6d 20 73 |y of a p|rogram s|
|00006380| 75 63 68 20 61 73 0a 58 | 2e 42 0a 58 61 77 6b 2e |uch as.X|.B.Xawk.|
|00006390| 5c 2a 2a 0a 58 2e 52 0a | 58 2e 46 53 0a 58 49 6d |\**.X.R.|X.FS.XIm|
|000063a0| 61 67 69 6e 65 20 68 61 | 6e 64 6c 69 6e 67 20 74 |agine ha|ndling t|
|000063b0| 68 65 20 63 61 73 65 20 | 73 75 63 68 20 61 73 0a |he case |such as.|
|000063c0| 58 22 61 70 70 6c 79 20 | 74 68 69 73 20 74 6f 6c |X"apply |this tol|
|000063d0| 65 72 61 6e 63 65 20 74 | 6f 20 61 6c 6c 20 6e 75 |erance t|o all nu|
|000063e0| 6d 62 65 72 73 20 74 68 | 61 74 20 61 70 70 65 61 |mbers th|at appea|
|000063f0| 72 0a 58 6f 6e 20 61 20 | 6c 69 6e 65 20 73 74 61 |r.Xon a |line sta|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.