home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 July / Macworld (1999-07).dmg / Shareware World / Info / For Developers / Mops 3.4.sea / Mops ƒ / zBase < prev    next >
MacBinary  |  1998-11-09  |  10.6 KB  |  [TEXT/MSET]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: zBase

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Mon Nov 9 10:04:27 1998, modified Mon Nov 9 10:04:27 1998, creator 'MSET', type ASCII, 10287 bytes "zBase" , at 0x28af 381 bytes resource default (weak)
99% file data default
49% TrID Macintosh plain text (MacBinary) default
33% TrID TTComp archive compressed (bin-2K) default (weak)
16% TrID MacBinary 2 default (weak)
0% TrID Sybase iAnywhere database files default (weak)
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MSET]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 05 7a 42 61 73 65 00 | 00 00 00 00 00 00 00 00 |..zBase.|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 53 45 | 54 01 00 00 00 00 00 00 |.TEXTMSE|T.......|
|00000050| 00 00 00 00 00 28 2f 00 | 00 01 7d b2 6c b4 fb b2 |.....(/.|..}.l...|
|00000060| 6c b4 fb 00 00 06 00 00 | 00 00 00 00 00 00 00 00 |l.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 7d 8b 00 00 |........|....}...|
|00000080| 5c 20 7a 42 61 73 65 0d | 0d 5c 20 54 68 69 73 20 |\ zBase.|.\ This |
|00000090| 66 69 6c 65 20 69 73 20 | 74 68 65 20 50 50 43 20 |file is |the PPC |
|000000a0| 65 71 75 69 76 61 6c 65 | 6e 74 20 6f 66 20 74 68 |equivale|nt of th|
|000000b0| 65 20 36 38 6b 20 22 42 | 61 73 65 22 20 66 69 6c |e 68k "B|ase" fil|
|000000c0| 65 2e 20 20 49 74 27 73 | 20 61 0d 5c 20 22 7a 22 |e. It's| a.\ "z"|
|000000d0| 20 66 69 6c 65 20 2d 20 | 69 74 27 73 20 6e 6f 74 | file - |it's not|
|000000e0| 20 74 61 72 67 65 74 20 | 63 6f 6d 70 69 6c 65 64 | target |compiled|
|000000f0| 2c 20 62 75 74 20 69 73 | 20 6c 6f 61 64 65 64 20 |, but is| loaded |
|00000100| 6f 6e 20 74 68 65 20 50 | 50 43 20 69 74 73 65 6c |on the P|PC itsel|
|00000110| 66 2e 0d 5c 20 53 6f 6d | 65 20 50 50 43 20 64 65 |f..\ Som|e PPC de|
|00000120| 66 6e 73 20 68 61 76 65 | 20 61 6c 72 65 61 64 79 |fns have| already|
|00000130| 20 62 65 65 6e 20 74 61 | 72 67 65 74 20 63 6f 6d | been ta|rget com|
|00000140| 70 69 6c 65 64 20 69 6e | 20 70 42 61 73 65 20 2d |piled in| pBase -|
|00000150| 20 68 65 72 65 20 77 65 | 0d 5c 20 69 6e 63 6c 75 | here we|.\ inclu|
|00000160| 64 65 20 61 6c 6c 20 74 | 68 65 20 72 65 73 74 2e |de all t|he rest.|
|00000170| 0d 0d 5c 20 5b 20 61 6e | 64 20 5d 20 68 61 76 65 |..\ [ an|d ] have|
|00000180| 20 62 65 65 6e 20 6c 65 | 66 74 20 74 6f 20 68 65 | been le|ft to he|
|00000190| 72 65 20 61 73 20 70 72 | 6f 62 6c 65 6d 73 20 61 |re as pr|oblems a|
|000001a0| 72 69 73 65 20 69 66 20 | 77 65 20 74 72 79 20 74 |rise if |we try t|
|000001b0| 6f 20 64 65 66 69 6e 65 | 0d 5c 20 20 74 68 65 6d |o define|.\ them|
|000001c0| 20 69 6e 20 74 68 65 20 | 74 61 72 67 65 74 20 63 | in the |target c|
|000001d0| 6f 6d 70 69 6c 61 74 69 | 6f 6e 2e 0d 0d 0d 5c 09 |ompilati|on....\.|
|000001e0| 09 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |.=======|========|
|000001f0| 3d 3d 20 4d 41 52 4b 45 | 52 2d 72 65 6c 61 74 65 |== MARKE|R-relate|
|00000200| 64 20 77 6f 72 64 73 20 | 3d 3d 3d 3d 3d 3d 3d 3d |d words |========|
|00000210| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0d 5c 0d 5c 20 42 |========|==.\.\ B|
|00000220| 65 66 6f 72 65 20 77 65 | 20 64 6f 20 61 6e 79 74 |efore we| do anyt|
|00000230| 68 69 6e 67 20 65 6c 73 | 65 2c 20 77 65 20 6e 65 |hing els|e, we ne|
|00000240| 65 64 20 74 6f 20 72 65 | 73 6f 6c 76 65 20 73 6f |ed to re|solve so|
|00000250| 6d 65 20 66 6f 72 77 61 | 72 64 20 64 65 66 69 6e |me forwa|rd defin|
|00000260| 69 74 69 6f 6e 73 0d 5c | 20 20 72 65 71 75 69 72 |itions.\| requir|
|00000270| 65 64 20 62 79 20 4d 41 | 52 4b 45 52 2e 20 20 4d |ed by MA|RKER. M|
|00000280| 41 52 4b 45 52 20 69 73 | 20 69 6e 20 70 42 61 73 |ARKER is| in pBas|
|00000290| 65 20 73 69 6e 63 65 20 | 77 65 20 6e 65 65 64 20 |e since |we need |
|000002a0| 69 74 20 74 6f 20 62 65 | 20 61 6c 72 65 61 64 79 |it to be| already|
|000002b0| 0d 5c 20 20 64 65 66 69 | 6e 65 64 20 62 65 66 6f |.\ defi|ned befo|
|000002c0| 72 65 20 77 65 20 6c 6f | 61 64 20 74 68 69 73 20 |re we lo|ad this |
|000002d0| 66 69 6c 65 2c 20 73 6f | 20 74 68 61 74 20 69 74 |file, so| that it|
|000002e0| 20 67 65 74 73 20 61 20 | 70 72 6f 70 65 72 20 66 | gets a |proper f|
|000002f0| 69 6c 65 20 6d 61 72 6b | 2e 0d 0d 0d 30 09 76 61 |ile mark|....0.va|
|00000300| 6c 75 65 09 63 64 70 32 | 75 73 65 0d 0d 3a 20 28 |lue.cdp2|use..: (|
|00000310| 6d 72 6b 29 0d 09 63 64 | 70 32 75 73 65 0d 09 64 |mrk)..cd|p2use..d|
|00000320| 75 70 20 64 69 73 70 6c | 61 63 65 09 2d 3e 20 43 |up displ|ace.-> C|
|00000330| 44 50 20 20 34 20 2b 0d | 09 09 64 69 73 70 6c 61 |DP 4 +.|..displa|
|00000340| 63 65 09 2d 3e 20 44 50 | 0d 09 43 44 50 20 28 66 |ce.-> DP|..CDP (f|
|00000350| 6f 72 67 65 74 29 0d 09 | 2d 65 63 68 6f 0d 3b 0d |orget)..|-echo.;.|
|00000360| 0d 3a 66 20 6d 61 72 6b | 65 72 5f 68 20 20 28 20 |.:f mark|er_h ( |
|00000370| 78 74 20 2d 2d 20 29 0d | 09 32 20 2b 20 2d 3e 20 |xt -- ).|.2 + -> |
|00000380| 63 64 70 32 75 73 65 0d | 09 5b 27 5d 20 28 6d 72 |cdp2use.|.['] (mr|
|00000390| 6b 29 20 20 28 63 6f 6d | 70 29 0d 3b 66 0d 0d 3a |k) (com|p).;f..:|
|000003a0| 66 20 66 6d 72 6b 20 20 | 28 20 61 64 64 72 20 2d |f fmrk |( addr -|
|000003b0| 2d 20 29 0d 09 2d 3e 20 | 63 64 70 32 75 73 65 20 |- )..-> |cdp2use |
|000003c0| 20 28 6d 72 6b 29 20 20 | 3b 66 0d 0d 0d 5c 09 09 | (mrk) |;f...\..|
|000003d0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000003e0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000003f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000400| 3d 3d 0d 0d 66 61 6c 73 | 65 09 76 61 6c 75 65 09 |==..fals|e.value.|
|00000410| 74 65 73 74 69 6e 67 3f | 0d 66 61 6c 73 65 09 76 |testing?|.false.v|
|00000420| 61 6c 75 65 09 74 6f 72 | 74 75 72 65 3f 0d 66 61 |alue.tor|ture?.fa|
|00000430| 6c 73 65 09 76 61 6c 75 | 65 09 76 74 65 73 74 3f |lse.valu|e.vtest?|
|00000440| 0d 0d 3a 20 78 78 20 20 | 64 62 20 20 3b 0d 0d 3a |..: xx |db ;..:|
|00000450| 20 5b 09 09 28 73 75 73 | 70 65 6e 64 5f 63 6f 6d | [..(sus|pend_com|
|00000460| 70 69 6c 61 74 69 6f 6e | 29 20 20 30 20 2d 3e 20 |pilation|) 0 -> |
|00000470| 73 74 61 74 65 20 20 3b | 09 09 69 6d 6d 65 64 69 |state ;|..immedi|
|00000480| 61 74 65 0d 3a 20 5d 09 | 09 28 72 65 73 75 6d 65 |ate.: ].|.(resume|
|00000490| 5f 63 6f 6d 70 69 6c 61 | 74 69 6f 6e 29 20 20 2d |_compila|tion) -|
|000004a0| 31 20 2d 3e 20 73 74 61 | 74 65 20 20 3b 09 09 69 |1 -> sta|te ;..i|
|000004b0| 6d 6d 65 64 69 61 74 65 | 0d 0d 0d 5c 20 53 6f 6d |mmediate|...\ Som|
|000004c0| 65 20 69 6e 6c 69 6e 65 | 20 64 65 66 6e 73 3a 0d |e inline| defns:.|
|000004d0| 0d 3a 20 31 2b 09 69 6e | 6c 69 6e 65 7b 20 31 20 |.: 1+.in|line{ 1 |
|000004e0| 2b 7d 20 3b 0d 3a 20 32 | 2b 09 69 6e 6c 69 6e 65 |+} ;.: 2|+.inline|
|000004f0| 7b 20 32 20 2b 7d 20 3b | 0d 3a 20 33 2b 09 69 6e |{ 2 +} ;|.: 3+.in|
|00000500| 6c 69 6e 65 7b 20 33 20 | 2b 7d 20 3b 0d 3a 20 34 |line{ 3 |+} ;.: 4|
|00000510| 2b 09 69 6e 6c 69 6e 65 | 7b 20 34 20 2b 7d 20 3b |+.inline|{ 4 +} ;|
|00000520| 0d 0d 3a 20 31 2d 09 69 | 6e 6c 69 6e 65 7b 20 31 |..: 1-.i|nline{ 1|
|00000530| 20 2d 7d 20 3b 0d 3a 20 | 32 2d 09 69 6e 6c 69 6e | -} ;.: |2-.inlin|
|00000540| 65 7b 20 32 20 2d 7d 20 | 3b 0d 3a 20 33 2d 09 69 |e{ 2 -} |;.: 3-.i|
|00000550| 6e 6c 69 6e 65 7b 20 33 | 20 2d 7d 20 3b 0d 3a 20 |nline{ 3| -} ;.: |
|00000560| 34 2d 09 69 6e 6c 69 6e | 65 7b 20 34 20 2d 7d 20 |4-.inlin|e{ 4 -} |
|00000570| 3b 0d 0d 3a 20 32 2a 09 | 69 6e 6c 69 6e 65 7b 20 |;..: 2*.|inline{ |
|00000580| 31 20 3c 3c 7d 20 20 3b | 0d 3a 20 32 2f 09 69 6e |1 <<} ;|.: 2/.in|
|00000590| 6c 69 6e 65 7b 20 31 20 | 61 3e 3e 7d 20 3b 0d 3a |line{ 1 |a>>} ;.:|
|000005a0| 20 34 2a 09 69 6e 6c 69 | 6e 65 7b 20 32 20 3c 3c | 4*.inli|ne{ 2 <<|
|000005b0| 7d 20 20 3b 0d 3a 20 34 | 2f 09 69 6e 6c 69 6e 65 |} ;.: 4|/.inline|
|000005c0| 7b 20 32 20 61 3e 3e 7d | 20 3b 0d 0d 5c 20 41 4e |{ 2 a>>}| ;..\ AN|
|000005d0| 53 49 20 77 6f 72 64 73 | 0d 0d 3a 20 43 45 4c 4c |SI words|..: CELL|
|000005e0| 2b 09 09 69 6e 6c 69 6e | 65 7b 20 34 20 2b 7d 20 |+..inlin|e{ 4 +} |
|000005f0| 3b 0d 3a 20 43 45 4c 4c | 2d 09 09 69 6e 6c 69 6e |;.: CELL|-..inlin|
|00000600| 65 7b 20 34 20 2d 7d 20 | 3b 0d 3a 20 43 45 4c 4c |e{ 4 -} |;.: CELL|
|00000610| 53 09 09 69 6e 6c 69 6e | 65 7b 20 32 20 3c 3c 7d |S..inlin|e{ 2 <<}|
|00000620| 20 3b 0d 3a 20 43 48 41 | 52 2b 09 09 69 6e 6c 69 | ;.: CHA|R+..inli|
|00000630| 6e 65 7b 20 31 20 2b 7d | 20 3b 0d 3a 20 43 48 41 |ne{ 1 +}| ;.: CHA|
|00000640| 52 53 09 09 69 6e 6c 69 | 6e 65 7b 20 7d 20 3b 0d |RS..inli|ne{ } ;.|
|00000650| 0d 34 09 63 6f 6e 73 74 | 61 6e 74 09 31 43 45 4c |.4.const|ant.1CEL|
|00000660| 4c 09 09 09 5c 20 4e 6f | 74 20 41 4e 53 49 2c 20 |L...\ No|t ANSI, |
|00000670| 62 75 74 20 75 73 65 66 | 75 6c 0d 0d 0d 5c 20 28 |but usef|ul...\ (|
|00000680| 22 29 20 69 73 20 69 6e | 20 71 70 43 6f 6e 64 2e |") is in| qpCond.|
|00000690| 0d 0d 0d 5c 09 49 6e 20 | 74 68 65 20 36 38 6b 20 |...\.In |the 68k |
|000006a0| 76 65 72 73 69 6f 6e 2c | 20 3a 61 20 2e 2e 2e 20 |version,| :a ... |
|000006b0| 3b 61 20 69 73 20 75 73 | 65 64 20 66 6f 72 20 61 |;a is us|ed for a|
|000006c0| 63 74 69 6f 6e 20 68 61 | 6e 64 6c 65 72 73 2c 20 |ction ha|ndlers, |
|000006d0| 74 6f 20 73 65 74 20 75 | 70 20 74 68 65 0d 5c 09 |to set u|p the.\.|
|000006e0| 6d 6f 64 75 6c 65 20 62 | 61 73 65 20 72 65 67 69 |module b|ase regi|
|000006f0| 73 74 65 72 20 69 66 20 | 77 65 27 72 65 20 63 61 |ster if |we're ca|
|00000700| 6c 6c 69 6e 67 20 61 20 | 77 6f 72 64 20 69 6e 20 |lling a |word in |
|00000710| 61 20 6d 6f 64 75 6c 65 | 2e 20 20 4f 6e 20 74 68 |a module|. On th|
|00000720| 65 20 50 50 43 2c 20 6f | 75 72 0d 5c 09 72 65 6c |e PPC, o|ur.\.rel|
|00000730| 6f 63 20 61 64 64 72 20 | 66 6f 72 6d 61 74 20 69 |oc addr |format i|
|00000740| 64 65 6e 74 69 66 69 65 | 73 20 74 68 65 20 73 65 |dentifie|s the se|
|00000750| 67 6d 65 6e 74 2c 20 73 | 6f 20 77 65 20 63 61 6e |gment, s|o we can|
|00000760| 20 74 61 6b 65 20 63 61 | 72 65 20 6f 66 20 65 76 | take ca|re of ev|
|00000770| 65 72 79 74 68 69 6e 67 | 0d 5c 09 69 6e 20 6f 75 |erything|.\.in ou|
|00000780| 72 20 78 2d 61 64 64 72 | 20 61 6e 64 20 78 2d 61 |r x-addr| and x-a|
|00000790| 72 72 61 79 20 63 6c 61 | 73 73 65 73 2e 20 20 53 |rray cla|sses. S|
|000007a0| 6f 20 68 65 72 65 20 77 | 65 20 6a 75 73 74 20 64 |o here w|e just d|
|000007b0| 65 66 69 6e 65 20 3a 61 | 20 61 6e 64 20 3b 61 20 |efine :a| and ;a |
|000007c0| 74 6f 20 62 65 0d 5c 09 | 74 68 65 20 73 61 6d 65 |to be.\.|the same|
|000007d0| 20 61 73 20 3a 20 61 6e | 64 20 3b 2e 0d 0d 0d 3a | as : an|d ;....:|
|000007e0| 20 3a 41 09 70 6f 73 74 | 70 6f 6e 65 20 3a 20 20 | :A.post|pone : |
|000007f0| 3b 09 09 09 69 6d 6d 65 | 64 69 61 74 65 0d 3a 20 |;...imme|diate.: |
|00000800| 3b 41 09 70 6f 73 74 70 | 6f 6e 65 20 3b 20 20 3b |;A.postp|one ; ;|
|00000810| 09 09 09 69 6d 6d 65 64 | 69 61 74 65 0d 0d 0d 3a |...immed|iate...:|
|00000820| 20 22 0d 09 73 74 61 74 | 65 0d 09 49 46 09 09 28 | "..stat|e..IF..(|
|00000830| 22 29 09 09 09 09 09 09 | 5c 20 63 6f 6d 70 69 6c |")......|\ compil|
|00000840| 69 6e 67 0d 09 45 4c 53 | 45 09 33 34 20 70 61 72 |ing..ELS|E.34 par|
|00000850| 73 65 09 09 09 09 5c 20 | 69 6e 74 65 72 70 72 65 |se....\ |interpre|
|00000860| 74 69 6e 67 0d 09 54 48 | 45 4e 0d 3b 09 09 09 09 |ting..TH|EN.;....|
|00000870| 69 6d 6d 65 64 69 61 74 | 65 0d 0d 0d 3a 20 53 22 |immediat|e...: S"|
|00000880| 09 70 6f 73 74 70 6f 6e | 65 20 22 20 20 3b 09 09 |.postpon|e " ;..|
|00000890| 69 6d 6d 65 64 69 61 74 | 65 09 09 5c 20 41 4e 53 |immediat|e..\ ANS|
|000008a0| 49 20 73 79 6e 6f 6e 79 | 6d 20 66 6f 72 20 22 0d |I synony|m for ".|
|000008b0| 0d 0d 3a 20 2e 22 0d 09 | 73 74 61 74 65 0d 09 49 |..: ."..|state..I|
|000008c0| 46 09 09 28 22 29 20 20 | 70 6f 73 74 70 6f 6e 65 |F..(") |postpone|
|000008d0| 20 74 79 70 65 09 09 5c | 20 63 6f 6d 70 69 6c 69 | type..\| compili|
|000008e0| 6e 67 0d 09 45 4c 53 45 | 09 33 34 20 70 61 72 73 |ng..ELSE|.34 pars|
|000008f0| 65 20 20 74 79 70 65 09 | 09 09 5c 20 69 6e 74 65 |e type.|..\ inte|
|00000900| 72 70 72 65 74 69 6e 67 | 0d 09 54 48 45 4e 0d 3b |rpreting|..THEN.;|
|00000910| 09 09 09 09 09 69 6d 6d | 65 64 69 61 74 65 0d 0d |.....imm|ediate..|
|00000920| 3a 20 41 42 4f 52 54 22 | 0d 09 70 6f 73 74 70 6f |: ABORT"|..postpo|
|00000930| 6e 65 20 22 0d 09 70 6f | 73 74 70 6f 6e 65 20 64 |ne "..po|stpone d|
|00000940| 6f 5f 61 62 71 20 20 3b | 09 09 69 6d 6d 65 64 69 |o_abq ;|..immedi|
|00000950| 61 74 65 0d 0d 0d 5c 20 | 28 2a 20 2e 2e 2e 20 2a |ate...\ |(* ... *|
|00000960| 29 20 64 65 66 69 6e 65 | 73 20 61 20 6d 75 6c 74 |) define|s a mult|
|00000970| 69 2d 6c 69 6e 65 20 63 | 6f 6d 6d 65 6e 74 2c 20 |i-line c|omment, |
|00000980| 77 68 69 63 68 20 63 61 | 6e 20 62 65 20 76 65 72 |which ca|n be ver|
|00000990| 79 20 75 73 65 66 75 6c | 2e 20 20 4d 61 6e 79 0d |y useful|. Many.|
|000009a0| 5c 20 50 61 73 63 61 6c | 20 63 6f 6d 70 69 6c 65 |\ Pascal| compile|
|000009b0| 72 73 20 75 73 65 20 74 | 68 65 73 65 20 73 79 6d |rs use t|hese sym|
|000009c0| 62 6f 6c 73 20 2d 20 49 | 20 74 68 6f 75 67 68 74 |bols - I| thought|
|000009d0| 20 69 74 20 62 65 74 74 | 65 72 20 6e 6f 74 20 74 | it bett|er not t|
|000009e0| 6f 20 75 73 65 0d 5c 20 | 74 68 65 20 43 2d 73 74 |o use.\ |the C-st|
|000009f0| 79 6c 65 20 2f 2a 20 2e | 2e 2e 20 2a 2f 20 20 73 |yle /* .|.. */ s|
|00000a00| 69 6e 63 65 20 2a 2f 20 | 61 6c 72 65 61 64 79 20 |ince */ |already |
|00000a10| 68 61 73 20 61 20 6d 65 | 61 6e 69 6e 67 2e 0d 5c |has a me|aning..\|
|00000a20| 20 41 20 75 73 65 66 75 | 6c 20 69 6d 70 72 6f 76 | A usefu|l improv|
|00000a30| 65 6d 65 6e 74 20 74 6f | 20 74 68 65 20 74 79 70 |ement to| the typ|
|00000a40| 69 63 61 6c 20 50 61 73 | 63 61 6c 20 69 6d 70 6c |ical Pas|cal impl|
|00000a50| 65 6d 65 6e 74 61 74 69 | 6f 6e 20 69 73 20 74 6f |ementati|on is to|
|00000a60| 20 6b 65 65 70 20 61 0d | 5c 20 6c 65 76 65 6c 20 | keep a.|\ level |
|00000a70| 63 6f 75 6e 74 20 73 6f | 20 74 68 61 74 20 74 68 |count so| that th|
|00000a80| 69 73 20 6b 69 6e 64 20 | 6f 66 20 63 6f 6d 6d 65 |is kind |of comme|
|00000a90| 6e 74 20 63 61 6e 20 62 | 65 20 6e 65 73 74 65 64 |nt can b|e nested|
|00000aa0| 2e 0d 0d 3a 20 28 2a 0d | 09 31 09 09 09 09 09 09 |...: (*.|.1......|
|00000ab0| 09 5c 20 69 6e 69 74 69 | 61 6c 20 6c 65 76 65 6c |.\ initi|al level|
|00000ac0| 20 63 6f 75 6e 74 0d 09 | 42 45 47 49 4e 0d 09 09 | count..|BEGIN...|
|00000ad0| 4d 77 6f 72 64 20 20 63 | 6f 75 6e 74 20 20 32 64 |Mword c|ount 2d|
|00000ae0| 75 70 0d 09 09 22 20 28 | 2a 22 20 20 73 3d 0d 09 |up..." (|*" s=..|
|00000af0| 09 49 46 09 32 64 72 6f | 70 20 20 31 20 2b 09 09 |.IF.2dro|p 1 +..|
|00000b00| 09 5c 20 69 6e 63 72 65 | 6d 65 6e 74 20 6c 65 76 |.\ incre|ment lev|
|00000b10| 65 6c 20 63 6f 75 6e 74 | 0d 09 09 45 4c 53 45 0d |el count|...ELSE.|
|00000b20| 09 09 09 22 20 2a 29 22 | 20 20 73 3d 0d 09 09 09 |..." *)"| s=....|
|00000b30| 49 46 20 20 31 20 2d 09 | 09 09 09 5c 20 64 65 63 |IF 1 -.|...\ dec|
|00000b40| 72 65 6d 65 6e 74 20 6c | 65 76 65 6c 20 63 6f 75 |rement l|evel cou|
|00000b50| 6e 74 0d 09 09 09 09 3f | 64 75 70 20 20 30 45 58 |nt.....?|dup 0EX|
|00000b60| 49 54 09 09 5c 20 61 6e | 64 20 69 66 20 7a 65 72 |IT..\ an|d if zer|
|00000b70| 6f 2c 20 77 65 27 72 65 | 20 64 6f 6e 65 0d 09 09 |o, we're| done...|
|00000b80| 09 54 48 45 4e 0d 09 09 | 54 48 45 4e 0d 09 41 47 |.THEN...|THEN..AG|
|00000b90| 41 49 4e 20 20 3b 09 09 | 69 6d 6d 65 64 69 61 74 |AIN ;..|immediat|
|00000ba0| 65 0d 0d 0d 76 61 72 69 | 61 62 6c 65 20 4e 55 4c |e...vari|able NUL|
|00000bb0| 4c 4f 53 53 54 52 0d 30 | 20 20 6e 75 6c 6c 4f 53 |LOSSTR.0| nullOS|
|00000bc0| 73 74 72 20 21 0d 0d 0d | 3a 20 40 57 4f 52 44 09 |str !...|: @WORD.|
|00000bd0| 09 5c 20 28 20 2d 2d 20 | 61 64 64 72 20 29 20 20 |.\ ( -- |addr ) |
|00000be0| 47 65 74 73 20 6e 65 78 | 74 20 62 6c 61 6e 6b 2d |Gets nex|t blank-|
|00000bf0| 64 65 6c 69 6d 69 74 65 | 64 20 77 6f 72 64 20 66 |delimite|d word f|
|00000c00| 72 6f 6d 20 69 6e 70 75 | 74 20 73 74 72 65 61 6d |rom inpu|t stream|
|00000c10| 2c 0d 09 09 09 5c 20 20 | 77 69 74 68 20 6e 6f 20 |,....\ |with no |
|00000c20| 63 61 73 65 20 63 6f 6e | 76 65 72 73 69 6f 6e 2e |case con|version.|
|00000c30| 0d 09 62 6c 20 77 6f 72 | 64 20 20 3b 0d 0d 3a 20 |..bl wor|d ;..: |
|00000c40| 4c 49 54 09 09 5c 20 28 | 20 6e 20 2d 2d 20 29 20 |LIT..\ (| n -- ) |
|00000c50| 20 41 20 73 74 61 74 65 | 2d 73 6d 61 72 74 20 76 | A state|-smart v|
|00000c60| 65 72 73 69 6f 6e 20 6f | 66 20 4c 49 54 45 52 41 |ersion o|f LITERA|
|00000c70| 4c 2e 20 20 43 6f 72 72 | 65 73 70 6f 6e 64 73 0d |L. Corr|esponds.|
|00000c80| 09 09 09 5c 20 74 6f 20 | 4c 49 54 45 52 41 4c 20 |...\ to |LITERAL |
|00000c90| 69 6e 20 46 69 67 2d 46 | 6f 72 74 68 20 6f 72 20 |in Fig-F|orth or |
|00000ca0| 6f 72 69 67 69 6e 61 6c | 20 4e 65 6f 6e 2c 20 77 |original| Neon, w|
|00000cb0| 68 65 72 65 61 73 20 6f | 75 72 0d 09 09 09 5c 20 |hereas o|ur....\ |
|00000cc0| 70 72 65 73 65 6e 74 20 | 4c 49 54 45 52 41 4c 20 |present |LITERAL |
|00000cd0| 69 73 20 41 4e 53 49 2e | 0d 0d 09 73 74 61 74 65 |is ANSI.|...state|
|00000ce0| 20 20 49 46 20 20 70 6f | 73 74 70 6f 6e 65 20 6c | IF po|stpone l|
|00000cf0| 69 74 65 72 61 6c 20 20 | 54 48 45 4e 20 20 3b 09 |iteral |THEN ;.|
|00000d00| 09 69 6d 6d 65 64 69 61 | 74 65 0d 0d 3a 20 30 2c |.immedia|te..: 0,|
|00000d10| 20 20 30 20 2c 20 20 3b | 09 09 5c 20 43 6f 6d 70 | 0 , ;|..\ Comp|
|00000d20| 69 6c 65 73 20 61 6e 20 | 65 6d 70 74 79 20 63 65 |iles an |empty ce|
|00000d30| 6c 6c 0d 0d 3a 20 40 56 | 41 4c 09 69 6e 74 72 70 |ll..: @V|AL.intrp|
|00000d40| 31 20 20 3b 09 5c 20 43 | 6f 6d 70 69 6c 65 73 20 |1 ;.\ C|ompiles |
|00000d50| 61 20 6e 75 6d 62 65 72 | 20 66 72 6f 6d 20 69 6e |a number| from in|
|00000d60| 70 75 74 20 73 74 72 65 | 61 6d 0d 0d 0d 3a 20 27 |put stre|am...: '|
|00000d70| 54 59 50 45 09 09 5c 20 | 28 20 2d 2d 20 34 62 79 |TYPE..\ |( -- 4by|
|00000d80| 74 65 73 20 29 20 20 20 | 4f 53 20 74 79 70 65 20 |tes ) |OS type |
|00000d90| 6c 69 74 65 72 61 6c 0d | 09 70 61 64 20 34 20 62 |literal.|.pad 4 b|
|00000da0| 6c 20 66 69 6c 6c 20 20 | 40 77 6f 72 64 20 63 6f |l fill |@word co|
|00000db0| 75 6e 74 20 34 20 6d 69 | 6e 0d 09 70 61 64 20 73 |unt 4 mi|n..pad s|
|00000dc0| 77 61 70 20 63 6d 6f 76 | 65 20 20 70 61 64 20 40 |wap cmov|e pad @|
|00000dd0| 20 20 70 6f 73 74 70 6f | 6e 65 20 6c 69 74 20 20 | postpo|ne lit |
|00000de0| 3b 09 09 69 6d 6d 65 64 | 69 61 74 65 0d 0d 0d 28 |;..immed|iate...(|
|00000df0| 2a 09 52 45 43 55 52 53 | 45 20 63 61 6c 6c 73 20 |*.RECURS|E calls |
|00000e00| 74 68 65 20 63 75 72 72 | 65 6e 74 20 64 65 66 69 |the curr|ent defi|
|00000e10| 6e 69 74 69 6f 6e 2e 20 | 20 57 65 20 6e 65 65 64 |nition. | We need|
|00000e20| 20 61 6c 6c 20 74 68 65 | 20 66 6c 61 67 20 62 79 | all the| flag by|
|00000e30| 74 65 73 0d 09 69 6e 20 | 70 6c 61 63 65 2c 20 73 |tes..in |place, s|
|00000e40| 6f 20 74 68 65 20 72 65 | 67 73 20 67 65 74 20 73 |o the re|gs get s|
|00000e50| 65 74 20 75 70 20 70 72 | 6f 70 65 72 6c 79 2e 20 |et up pr|operly. |
|00000e60| 20 54 68 65 20 73 65 63 | 6f 6e 64 20 66 6c 61 67 | The sec|ond flag|
|00000e70| 20 62 79 74 65 0d 09 69 | 73 20 4f 4b 20 61 6c 72 | byte..i|s OK alr|
|00000e80| 65 61 64 79 2c 20 62 75 | 74 20 77 65 20 73 74 69 |eady, bu|t we sti|
|00000e90| 6c 6c 20 6e 65 65 64 20 | 74 6f 20 73 65 74 20 74 |ll need |to set t|
|00000ea0| 68 65 20 66 69 72 73 74 | 20 6f 6e 65 2c 20 77 69 |he first| one, wi|
|00000eb0| 74 68 20 74 68 65 0d 09 | 23 63 65 6c 6c 73 20 69 |th the..|#cells i|
|00000ec0| 6e 20 72 65 67 73 20 6f | 6e 20 72 65 74 75 72 6e |n regs o|n return|
|00000ed0| 2e 20 20 53 6f 20 77 65 | 20 6e 6f 77 20 64 65 63 |. So we| now dec|
|00000ee0| 69 64 65 20 74 68 69 73 | 20 69 66 20 77 65 0d 09 |ide this| if we..|
|00000ef0| 68 61 76 65 6e 27 74 20 | 61 6c 72 65 61 64 79 2c |haven't |already,|
|00000f00| 20 70 75 74 20 74 68 65 | 20 66 6c 61 67 20 62 79 | put the| flag by|
|00000f10| 74 65 20 74 68 65 72 65 | 2c 20 74 68 65 6e 20 63 |te there|, then c|
|00000f20| 6f 6d 70 69 6c 65 20 74 | 68 65 20 63 61 6c 6c 2e |ompile t|he call.|
|00000f30| 0d 09 4e 6f 74 65 20 74 | 68 61 74 20 72 65 63 75 |..Note t|hat recu|
|00000f40| 72 73 69 76 65 20 77 6f | 72 64 73 20 6d 75 73 74 |rsive wo|rds must|
|00000f50| 20 62 65 20 6e 6f 6e 2d | 6c 65 61 66 2c 20 73 69 | be non-|leaf, si|
|00000f60| 6e 63 65 20 74 68 65 20 | 4c 52 20 68 61 73 20 74 |nce the |LR has t|
|00000f70| 6f 20 62 65 0d 09 73 61 | 76 65 64 2e 20 20 54 68 |o be..sa|ved. Th|
|00000f80| 69 73 20 69 73 20 6c 6f | 6f 6b 65 64 20 61 66 74 |is is lo|oked aft|
|00000f90| 65 72 20 62 79 20 28 63 | 6f 6d 70 29 2c 20 61 6e |er by (c|omp), an|
|00000fa0| 64 20 69 6e 20 61 6e 79 | 20 63 61 73 65 20 74 68 |d in any| case th|
|00000fb0| 65 20 6c 65 61 66 0d 09 | 62 69 74 20 69 73 20 74 |e leaf..|bit is t|
|00000fc0| 68 65 20 74 6f 70 20 62 | 69 74 20 69 6e 20 74 68 |he top b|it in th|
|00000fd0| 65 20 66 6c 61 67 20 62 | 79 74 65 20 77 65 20 68 |e flag b|yte we h|
|00000fe0| 61 76 65 20 74 6f 20 73 | 74 6f 72 65 2c 20 61 6e |ave to s|tore, an|
|00000ff0| 64 20 77 65 20 6c 65 61 | 76 65 0d 09 69 74 20 7a |d we lea|ve..it z|
|00001000| 65 72 6f 2e 0d 2a 29 0d | 0d 0d 3a 20 52 45 43 55 |ero..*).|..: RECU|
|00001010| 52 53 45 0d 09 67 65 74 | 5f 72 74 6e 5f 63 6e 74 |RSE..get|_rtn_cnt|
|00001020| 73 20 64 72 6f 70 0d 09 | 63 75 72 72 2d 64 65 66 |s drop..|curr-def|
|00001030| 20 32 2d 20 20 63 21 0d | 09 63 75 72 72 2d 64 65 | 2- c!.|.curr-de|
|00001040| 66 20 32 2d 20 20 28 63 | 6f 6d 70 29 0d 3b 09 09 |f 2- (c|omp).;..|
|00001050| 09 69 6d 6d 65 64 69 61 | 74 65 0d 0d 0d 3a 20 43 |.immedia|te...: C|
|00001060| 48 41 52 09 09 40 77 6f | 72 64 20 31 2b 20 63 40 |HAR..@wo|rd 1+ c@|
|00001070| 20 20 3b 0d 3a 20 5b 43 | 48 41 52 5d 09 40 77 6f | ;.: [C|HAR].@wo|
|00001080| 72 64 20 31 2b 20 63 40 | 20 20 70 6f 73 74 70 6f |rd 1+ c@| postpo|
|00001090| 6e 65 20 6c 69 74 65 72 | 61 6c 20 20 3b 09 69 6d |ne liter|al ;.im|
|000010a0| 6d 65 64 69 61 74 65 0d | 0d 3a 20 26 09 09 09 5c |mediate.|.: &...\|
|000010b0| 20 28 20 2d 2d 20 63 20 | 29 20 20 41 20 73 68 6f | ( -- c |) A sho|
|000010c0| 72 74 65 72 20 73 74 61 | 74 65 2d 73 6d 61 72 74 |rter sta|te-smart|
|000010d0| 20 76 65 72 73 69 6f 6e | 2e 0d 09 40 77 6f 72 64 | version|...@word|
|000010e0| 20 31 2b 20 63 40 0d 09 | 70 6f 73 74 70 6f 6e 65 | 1+ c@..|postpone|
|000010f0| 20 6c 69 74 20 20 3b 09 | 09 09 69 6d 6d 65 64 69 | lit ;.|..immedi|
|00001100| 61 74 65 0d 0d 0d 3a 20 | 24 09 09 09 5c 20 53 74 |ate...: |$...\ St|
|00001110| 61 74 65 2d 73 6d 61 72 | 74 20 48 45 58 20 6c 69 |ate-smar|t HEX li|
|00001120| 74 65 72 61 6c 20 77 6f | 72 64 0d 09 62 61 73 65 |teral wo|rd..base|
|00001130| 20 3e 72 0d 09 68 65 78 | 20 20 4d 77 6f 72 64 20 | >r..hex| Mword |
|00001140| 20 6e 75 6d 62 65 72 20 | 20 70 6f 73 74 70 6f 6e | number | postpon|
|00001150| 65 20 6c 69 74 0d 09 72 | 3e 20 2d 3e 20 62 61 73 |e lit..r|> -> bas|
|00001160| 65 20 20 3b 09 09 09 69 | 6d 6d 65 64 69 61 74 65 |e ;...i|mmediate|
|00001170| 0d 0d 5c 20 53 74 72 32 | 35 35 20 73 74 75 66 66 |..\ Str2|55 stuff|
|00001180| 20 61 6c 72 65 61 64 79 | 20 64 65 66 69 6e 65 64 | already| defined|
|00001190| 2c 20 69 6e 20 73 65 74 | 75 70 20 61 6e 64 20 70 |, in set|up and p|
|000011a0| 42 61 73 65 2e 0d 0d 5c | 20 52 65 73 6f 75 72 63 |Base...\| Resourc|
|000011b0| 65 20 73 75 70 70 6f 72 | 74 20 69 73 20 69 6e 20 |e suppor|t is in |
|000011c0| 70 42 61 73 65 2e 0d 0d | 5c 20 3d 3d 3d 3d 3d 3d |pBase...|\ ======|
|000011d0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 20 4d 65 73 73 |========|=== Mess|
|000011e0| 61 67 65 73 20 61 6e 64 | 20 65 72 72 6f 72 73 20 |ages and| errors |
|000011f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001200| 3d 3d 0d 0d 3a 20 3f 45 | 52 52 4f 52 09 09 5c 20 |==..: ?E|RROR..\ |
|00001210| 28 20 62 20 2d 2d 20 29 | 20 20 41 62 6f 72 74 73 |( b -- )| Aborts|
|00001220| 20 61 6e 64 20 70 72 69 | 6e 74 73 20 72 65 73 6f | and pri|nts reso|
|00001230| 75 72 63 65 20 73 74 72 | 69 6e 67 20 69 66 20 74 |urce str|ing if t|
|00001240| 72 75 65 2e 0d 09 09 09 | 09 5c 20 55 73 61 67 65 |rue.....|.\ Usage|
|00001250| 3a 20 20 3f 65 72 72 6f | 72 20 39 39 39 0d 09 70 |: ?erro|r 999..p|
|00001260| 6f 73 74 70 6f 6e 65 20 | 69 66 0d 09 69 6e 74 72 |ostpone |if..intr|
|00001270| 70 31 20 20 28 20 67 65 | 74 20 65 72 72 23 20 29 |p1 ( ge|t err# )|
|00001280| 20 20 70 6f 73 74 70 6f | 6e 65 20 6c 69 74 65 72 | postpo|ne liter|
|00001290| 61 6c 20 20 70 6f 73 74 | 70 6f 6e 65 20 64 69 65 |al post|pone die|
|000012a0| 0d 09 70 6f 73 74 70 6f | 6e 65 20 74 68 65 6e 20 |..postpo|ne then |
|000012b0| 20 3b 09 09 69 6d 6d 65 | 64 69 61 74 65 0d 0d 0d | ;..imme|diate...|
|000012c0| 5c 20 74 68 69 73 20 69 | 73 20 6e 6f 77 20 69 6e |\ this i|s now in|
|000012d0| 20 70 42 61 73 65 3a 0d | 5c 20 3a 20 28 54 53 54 | pBase:.|\ : (TST|
|000012e0| 52 29 09 09 09 5c 20 28 | 20 69 64 23 20 2d 2d 20 |R)...\ (| id# -- |
|000012f0| 29 20 20 50 72 69 6e 74 | 73 20 73 74 72 69 6e 67 |) Print|s string|
|00001300| 20 77 69 74 68 20 67 69 | 76 65 6e 20 72 65 73 49 | with gi|ven resI|
|00001310| 44 2e 0d 5c 09 67 65 74 | 53 74 72 69 6e 67 20 74 |D..\.get|String t|
|00001320| 79 70 65 20 20 3b 0d 0d | 3a 20 54 59 50 45 23 09 |ype ;..|: TYPE#.|
|00001330| 09 5c 20 50 72 69 6e 74 | 73 20 73 74 72 69 6e 67 |.\ Print|s string|
|00001340| 20 66 6f 72 20 69 64 23 | 20 69 6e 20 73 74 72 65 | for id#| in stre|
|00001350| 61 6d 0d 09 69 6e 74 72 | 70 31 20 20 70 6f 73 74 |am..intr|p1 post|
|00001360| 70 6f 6e 65 20 6c 69 74 | 20 20 20 70 6f 73 74 70 |pone lit| postp|
|00001370| 6f 6e 65 20 74 53 74 72 | 20 20 3b 09 09 69 6d 6d |one tStr| ;..imm|
|00001380| 65 64 69 61 74 65 0d 0d | 0d 3a 20 2e 52 53 54 52 |ediate..|.: .RSTR|
|00001390| 09 5c 20 28 20 2d 2d 20 | 29 20 20 70 72 69 6e 74 |.\ ( -- |) print|
|000013a0| 20 22 4d 73 67 23 20 2e | 2e 2e 22 20 74 68 65 6e | "Msg# .|.." then|
|000013b0| 20 73 74 72 69 6e 67 20 | 77 69 74 68 20 67 69 76 | string |with giv|
|000013c0| 65 6e 20 72 65 73 49 44 | 0d 09 2e 22 20 4d 73 67 |en resID|..." Msg|
|000013d0| 23 20 22 20 64 75 70 20 | 2e 20 2e 22 20 3a 20 22 |# " dup |. ." : "|
|000013e0| 20 20 74 53 74 72 20 20 | 3b 0d 0d 3a 20 4d 53 47 | tStr |;..: MSG|
|000013f0| 23 09 09 5c 20 20 75 73 | 61 67 65 3a 20 22 20 4d |#..\ us|age: " M|
|00001400| 73 67 23 20 3c 6e 75 6d | 62 65 72 3e 22 0d 09 69 |sg# <num|ber>"..i|
|00001410| 6e 74 72 70 31 20 20 70 | 6f 73 74 70 6f 6e 65 20 |ntrp1 p|ostpone |
|00001420| 6c 69 74 20 20 70 6f 73 | 74 70 6f 6e 65 20 2e 72 |lit pos|tpone .r|
|00001430| 53 74 72 20 20 3b 09 09 | 69 6d 6d 65 64 69 61 74 |Str ;..|immediat|
|00001440| 65 0d 0d 0d 5c 20 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |e...\ ==|========|
|00001450| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001460| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0d 0d 3a 20 52 44 |========|==..: RD|
|00001470| 45 50 54 48 09 09 72 70 | 30 20 20 72 70 40 20 2d |EPTH..rp|0 rp@ -|
|00001480| 20 34 2f 20 32 2d 20 20 | 3b 0d 0d 3a 20 3f 52 44 | 4/ 2- |;..: ?RD|
|00001490| 45 50 54 48 09 09 72 70 | 40 20 20 73 70 30 20 32 |EPTH..rp|@ sp0 2|
|000014a0| 30 20 2b 20 3c 20 3f 65 | 72 72 6f 72 20 31 31 36 |0 + < ?e|rror 116|
|000014b0| 20 20 3b 09 5c 20 65 72 | 72 20 69 66 20 72 74 6e | ;.\ er|r if rtn|
|000014c0| 20 73 74 6b 20 61 62 6f | 75 74 20 74 6f 0d 09 09 | stk abo|ut to...|
|000014d0| 09 09 09 09 09 09 09 09 | 09 09 5c 20 63 6f 6c 6c |........|..\ coll|
|000014e0| 69 64 65 20 77 69 74 68 | 20 64 61 74 61 20 73 74 |ide with| data st|
|000014f0| 6b 0d 0d 5c 09 09 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |k..\..==|========|
|00001500| 20 54 79 70 65 20 63 68 | 65 63 6b 69 6e 67 20 3d | Type ch|ecking =|
|00001510| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0d 0d 5c 20 53 6f |========|==..\ So|
|00001520| 6d 65 74 69 6d 65 73 20 | 77 65 20 77 61 6e 74 20 |metimes |we want |
|00001530| 74 6f 20 63 68 65 63 6b | 20 74 68 61 74 20 61 20 |to check| that a |
|00001540| 6e 6f 6e 2d 6f 62 6a 65 | 63 74 20 70 61 72 61 6d |non-obje|ct param|
|00001550| 65 74 65 72 20 74 6f 20 | 61 20 77 6f 72 64 20 69 |eter to |a word i|
|00001560| 73 20 6f 66 20 61 20 0d | 5c 20 63 65 72 74 61 69 |s of a .|\ certai|
|00001570| 6e 20 74 79 70 65 2e 20 | 20 57 65 20 67 69 76 65 |n type. | We give|
|00001580| 20 69 74 20 61 20 75 6e | 69 71 75 65 20 74 79 70 | it a un|ique typ|
|00001590| 65 20 63 6f 64 65 20 61 | 6e 64 20 75 73 65 20 54 |e code a|nd use T|
|000015a0| 59 50 43 48 4b 2e 0d 0d | 3a 20 54 59 50 43 48 4b |YPCHK...|: TYPCHK|
|000015b0| 09 3c 3e 20 20 3f 65 72 | 72 6f 72 20 31 37 39 20 |.<> ?er|ror 179 |
|000015c0| 20 3b 0d 0d 0d 5c 09 09 | 3d 3d 3d 3d 3d 3d 3d 3d | ;...\..|========|
|000015d0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000015e0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 0d 0d 0d 5c |========|====...\|
|000015f0| 20 43 6f 6d 6d 6f 6e 6c | 79 20 6e 65 65 64 65 64 | Commonl|y needed|
|00001600| 20 65 72 72 6f 72 20 77 | 6f 72 64 73 2e 20 20 54 | error w|ords. T|
|00001610| 68 65 73 65 20 61 72 65 | 20 66 6f 72 77 61 72 64 |hese are| forward|
|00001620| 20 64 65 66 69 6e 65 64 | 20 2d 20 74 68 65 20 6d | defined| - the m|
|00001630| 61 69 6e 0d 5c 20 61 70 | 70 6c 69 63 61 74 69 6f |ain.\ ap|plicatio|
|00001640| 6e 20 73 68 6f 75 6c 64 | 20 70 72 6f 76 69 64 65 |n should| provide|
|00001650| 20 61 20 73 65 6e 73 69 | 62 6c 65 20 64 65 66 69 | a sensi|ble defi|
|00001660| 6e 69 74 69 6f 6e 2c 20 | 77 69 74 68 20 61 20 6e |nition, |with a n|
|00001670| 69 63 65 20 66 72 69 65 | 6e 64 6c 79 0d 5c 20 61 |ice frie|ndly.\ a|
|00001680| 6c 65 72 74 20 62 6f 78 | 2c 20 74 6f 20 74 65 6c |lert box|, to tel|
|00001690| 6c 20 74 68 65 20 75 73 | 65 72 20 69 6e 20 61 20 |l the us|er in a |
|000016a0| 6e 69 63 65 20 66 72 69 | 65 6e 64 6c 79 20 77 61 |nice fri|endly wa|
|000016b0| 79 20 74 68 61 74 20 74 | 68 69 6e 67 73 20 61 72 |y that t|hings ar|
|000016c0| 65 20 75 70 0d 5c 20 74 | 68 65 20 63 72 65 65 6b |e up.\ t|he creek|
|000016d0| 2e 0d 0d 66 6f 72 77 61 | 72 64 09 4e 4f 4d 45 4d |...forwa|rd.NOMEM|
|000016e0| 09 09 5c 20 43 61 6c 6c | 20 77 68 65 6e 20 28 6e |..\ Call| when (n|
|000016f0| 6f 74 20 69 66 21 29 20 | 77 65 20 72 75 6e 20 6f |ot if!) |we run o|
|00001700| 75 74 20 6f 66 20 6d 65 | 6d 6f 72 79 2e 0d 0d 28 |ut of me|mory...(|
|00001710| 2a 20 20 6d 6f 76 65 64 | 20 74 6f 20 71 70 43 6c |* moved| to qpCl|
|00001720| 61 73 73 2e 2e 2e 0d 66 | 6f 72 77 61 72 64 09 49 |ass....f|orward.I|
|00001730| 2f 4f 5f 45 52 52 09 09 | 5c 20 28 20 65 72 72 23 |/O_ERR..|\ ( err#|
|00001740| 20 2d 2d 20 29 20 20 43 | 61 6c 6c 20 77 68 65 6e | -- ) C|all when|
|00001750| 20 74 68 65 72 65 27 73 | 20 61 6e 20 49 2f 4f 20 | there's| an I/O |
|00001760| 65 72 72 6f 72 2e 0d 0d | 3a 20 4f 4b 3f 09 09 5c |error...|: OK?..\|
|00001770| 20 28 20 72 63 20 2d 2d | 20 29 20 20 41 20 75 73 | ( rc --| ) A us|
|00001780| 65 66 75 6c 20 77 6f 72 | 64 20 74 6f 20 75 73 65 |eful wor|d to use|
|00001790| 20 61 66 74 65 72 20 61 | 6e 20 49 2f 4f 20 6f 70 | after a|n I/O op|
|000017a0| 2e 0d 09 3f 64 75 70 20 | 20 30 45 58 49 54 20 20 |...?dup | 0EXIT |
|000017b0| 49 2f 4f 5f 65 72 72 20 | 20 3b 0d 2a 29 0d 0d 0d |I/O_err | ;.*)...|
|000017c0| 5c 09 20 3d 3d 3d 3d 3d | 3d 3d 3d 20 56 61 72 69 |\. =====|=== Vari|
|000017d0| 6f 75 73 20 75 74 69 6c | 69 74 79 20 77 6f 72 64 |ous util|ity word|
|000017e0| 73 20 6e 65 65 64 65 64 | 20 6c 61 74 65 72 20 3d |s needed| later =|
|000017f0| 3d 3d 3d 3d 3d 3d 3d 3d | 0d 0d 0d 5c 20 42 45 43 |========|...\ BEC|
|00001800| 4f 4d 45 20 61 6c 6c 6f | 77 73 20 72 65 73 74 61 |OME allo|ws resta|
|00001810| 72 74 69 6e 67 20 61 74 | 20 61 20 67 69 76 65 6e |rting at| a given|
|00001820| 20 77 6f 72 64 2c 20 77 | 69 74 68 20 61 6c 6c 20 | word, w|ith all |
|00001830| 73 74 61 63 6b 73 0d 5c | 20 65 6d 70 74 79 2e 20 |stacks.\| empty. |
|00001840| 20 54 68 69 73 20 69 73 | 20 6e 65 63 65 73 73 61 | This is| necessa|
|00001850| 72 79 20 69 6e 20 6d 65 | 6e 75 20 68 61 6e 64 6c |ry in me|nu handl|
|00001860| 65 72 73 20 61 6e 64 20 | 6f 74 68 65 72 20 61 72 |ers and |other ar|
|00001870| 65 61 73 0d 5c 20 74 68 | 61 74 20 63 6f 75 6c 64 |eas.\ th|at could|
|00001880| 20 63 72 65 61 74 65 20 | 69 6e 64 65 66 69 6e 69 | create |indefini|
|00001890| 74 65 20 6e 65 73 74 69 | 6e 67 20 73 69 74 75 61 |te nesti|ng situa|
|000018a0| 74 69 6f 6e 73 2e 0d 0d | 27 20 71 75 69 74 09 76 |tions...|' quit.v|
|000018b0| 65 63 74 09 62 65 63 6f | 6d 65 58 54 0d 0d 3a 20 |ect.beco|meXT..: |
|000018c0| 42 45 09 73 70 30 20 73 | 70 21 20 20 72 70 30 20 |BE.sp0 s|p! rp0 |
|000018d0| 72 70 21 20 20 62 65 63 | 6f 6d 65 58 54 20 20 71 |rp! bec|omeXT q|
|000018e0| 75 69 74 20 20 3b 0d 0d | 3a 20 28 42 45 29 09 2d |uit ;..|: (BE).-|
|000018f0| 3e 20 62 65 63 6f 6d 65 | 58 54 20 62 65 20 20 3b |> become|XT be ;|
|00001900| 0d 0d 0d 3a 20 42 45 43 | 4f 4d 45 09 09 5c 20 55 |...: BEC|OME..\ U|
|00001910| 73 61 67 65 3a 20 42 65 | 63 6f 6d 65 20 6e 65 77 |sage: Be|come new|
|00001920| 57 6f 72 64 20 2d 20 63 | 6f 6d 70 69 6c 65 73 20 |Word - c|ompiles |
|00001930| 63 6f 64 65 20 74 6f 20 | 42 65 20 61 74 20 72 75 |code to |Be at ru|
|00001940| 6e 74 69 6d 65 0d 09 73 | 74 61 74 65 0d 09 49 46 |ntime..s|tate..IF|
|00001950| 09 09 70 6f 73 74 70 6f | 6e 65 20 5b 27 5d 20 20 |..postpo|ne ['] |
|00001960| 70 6f 73 74 70 6f 6e 65 | 20 28 62 65 29 0d 09 45 |postpone| (be)..E|
|00001970| 4c 53 45 09 27 20 20 2d | 3e 20 62 65 63 6f 6d 65 |LSE.' -|> become|
|00001980| 58 54 20 20 62 65 0d 09 | 54 48 45 4e 20 20 3b 09 |XT be..|THEN ;.|
|00001990| 09 09 69 6d 6d 65 64 69 | 61 74 65 0d 0d 0d 3a 20 |..immedi|ate...: |
|000019a0| 44 41 54 45 54 49 4d 45 | 0d 09 24 20 32 30 43 20 |DATETIME|..$ 20C |
|000019b0| 20 40 20 20 3b 0d 0d 0d | 5c 09 09 3d 3d 3d 3d 3d | @ ;...|\..=====|
|000019c0| 3d 3d 3d 3d 3d 3d 3d 20 | 54 61 62 6c 65 73 2c 20 |======= |Tables, |
|000019d0| 6c 69 73 74 73 20 65 74 | 63 2e 20 3d 3d 3d 3d 3d |lists et|c. =====|
|000019e0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0d 0d 28 2a 09 46 |========|==..(*.F|
|000019f0| 72 6f 6d 20 4d 6f 70 73 | 20 32 2e 35 20 6f 6e 2c |rom Mops| 2.5 on,|
|00001a00| 20 77 65 27 72 65 20 74 | 72 79 69 6e 67 20 74 6f | we're t|rying to|
|00001a10| 20 62 65 20 63 6f 6e 73 | 69 73 74 65 6e 74 20 77 | be cons|istent w|
|00001a20| 69 74 68 20 74 68 65 20 | 77 61 79 20 77 65 20 64 |ith the |way we d|
|00001a30| 65 6c 69 6d 69 74 0d 09 | 76 61 72 69 6f 75 73 20 |elimit..|various |
|00001a40| 6b 69 6e 64 73 20 6f 66 | 20 6c 69 73 74 73 20 77 |kinds of| lists w|
|00001a50| 69 74 68 20 7b 20 2e 2e | 2e 20 7d 2e 20 20 4e 6f |ith { ..|. }. No|
|00001a60| 2c 20 77 65 27 72 65 20 | 6e 6f 74 20 74 72 79 69 |, we're |not tryi|
|00001a70| 6e 67 20 74 6f 20 63 6f | 70 79 20 43 2c 0d 09 62 |ng to co|py C,..b|
|00001a80| 75 74 20 6c 65 74 27 73 | 20 61 74 20 6c 65 61 73 |ut let's| at leas|
|00001a90| 74 20 66 6f 6c 6c 6f 77 | 20 74 68 65 20 22 70 72 |t follow| the "pr|
|00001aa0| 69 6e 63 69 70 6c 65 20 | 6f 66 20 6d 69 6e 69 6d |inciple |of minim|
|00001ab0| 75 6d 20 61 73 74 6f 6e | 69 73 68 6d 65 6e 74 22 |um aston|ishment"|
|00001ac0| 2e 0d 09 54 68 75 73 2c | 20 77 69 74 68 20 77 6f |...Thus,| with wo|
|00001ad0| 72 64 73 20 6c 69 6b 65 | 20 78 74 73 7b 2c 20 77 |rds like| xts{, w|
|00001ae0| 65 27 6c 6c 20 61 6c 6c | 6f 77 20 61 20 76 61 72 |e'll all|ow a var|
|00001af0| 69 61 6e 74 20 22 78 74 | 73 20 7b 22 20 77 68 65 |iant "xt|s {" whe|
|00001b00| 72 65 20 79 6f 75 0d 09 | 63 61 6e 20 70 75 74 20 |re you..|can put |
|00001b10| 61 20 73 70 61 63 65 20 | 62 65 66 6f 72 65 20 74 |a space |before t|
|00001b20| 68 65 20 22 7b 22 2e 20 | 20 54 68 69 73 20 69 73 |he "{". | This is|
|00001b30| 20 76 65 72 79 20 65 61 | 73 79 20 74 6f 20 69 6d | very ea|sy to im|
|00001b40| 70 6c 65 6d 65 6e 74 2c | 20 73 6f 0d 09 77 68 79 |plement,| so..why|
|00001b50| 20 6e 6f 74 3f 0d 2a 29 | 0d 0d 66 6f 72 77 61 72 | not?.*)|..forwar|
|00001b60| 64 20 20 7b 09 09 69 6d | 6d 65 64 69 61 74 65 0d |d {..im|mediate.|
|00001b70| 0d 3a 20 47 4f 42 42 4c | 45 7b 09 09 5c 20 67 6f |.: GOBBL|E{..\ go|
|00001b80| 62 62 6c 65 73 20 61 20 | 22 7b 22 20 77 68 69 63 |bbles a |"{" whic|
|00001b90| 68 20 6d 75 73 74 20 66 | 6f 6c 6c 6f 77 20 61 73 |h must f|ollow as|
|00001ba0| 20 61 20 73 65 70 61 72 | 61 74 65 20 77 6f 72 64 | a separ|ate word|
|00001bb0| 2e 0d 09 27 20 20 5b 27 | 5d 20 7b 20 20 3c 3e 20 |...' ['|] { <> |
|00001bc0| 20 3f 65 72 72 6f 72 20 | 31 31 33 20 20 3b 09 09 | ?error |113 ;..|
|00001bd0| 5c 20 22 7b 22 20 65 78 | 70 65 63 74 65 64 0d 0d |\ "{" ex|pected..|
|00001be0| 3a 20 29 09 09 31 32 33 | 20 64 69 65 20 20 3b 09 |: )..123| die ;.|
|00001bf0| 69 6d 6d 65 64 69 61 74 | 65 09 09 5c 20 22 29 20 |immediat|e..\ ") |
|00001c00| 72 65 61 64 20 77 68 65 | 6e 20 6e 6f 20 6c 69 73 |read whe|n no lis|
|00001c10| 74 20 69 73 20 63 75 72 | 72 65 6e 74 22 0d 3a 20 |t is cur|rent".: |
|00001c20| 28 7d 29 09 31 32 33 20 | 64 69 65 20 20 3b 09 69 |(}).123 |die ;.i|
|00001c30| 6d 6d 65 64 69 61 74 65 | 09 09 5c 20 22 75 6e 6d |mmediate|..\ "unm|
|00001c40| 61 74 63 68 65 64 20 7d | 22 0d 0d 27 20 28 7d 29 |atched }|"..' (})|
|00001c50| 09 76 65 63 74 09 7d 09 | 69 6d 6d 65 64 69 61 74 |.vect.}.|immediat|
|00001c60| 65 09 09 5c 20 7d 20 77 | 69 6c 6c 20 6d 65 61 6e |e..\ } w|ill mean|
|00001c70| 20 64 69 66 66 65 72 65 | 6e 74 20 74 68 69 6e 67 | differe|nt thing|
|00001c80| 73 20 69 6e 20 64 69 66 | 66 65 72 65 6e 74 0d 09 |s in dif|ferent..|
|00001c90| 09 09 09 09 09 09 09 09 | 5c 20 20 63 6f 6e 74 65 |........|\ conte|
|00001ca0| 78 74 73 2e 0d 0d 3a 20 | 7d 4f 52 29 3f 09 09 5c |xts...: |}OR)?..\|
|00001cb0| 20 28 20 63 66 61 20 2d | 2d 20 63 66 61 20 62 20 | ( cfa -|- cfa b |
|00001cc0| 29 0d 09 64 75 70 20 20 | 5b 27 5d 20 7d 20 20 3d |)..dup |['] } =|
|00001cd0| 20 20 6f 76 65 72 20 20 | 5b 27 5d 20 29 20 3d 20 | over |['] ) = |
|00001ce0| 20 6f 72 20 20 3b 0d 0d | 0d 3a 20 58 54 53 7b 09 | or ;..|.: XTS{.|
|00001cf0| 09 09 5c 20 53 74 61 74 | 65 2d 73 6d 61 72 74 20 |..\ Stat|e-smart |
|00001d00| 77 6f 72 64 20 74 6f 20 | 63 6f 6d 70 69 6c 65 20 |word to |compile |
|00001d10| 6f 72 20 73 74 61 63 6b | 20 61 20 6c 69 73 74 0d |or stack| a list.|
|00001d20| 09 09 09 09 5c 20 6f 66 | 20 78 74 73 2e 20 20 50 |....\ of| xts. P|
|00001d30| 75 6c 6c 73 20 77 6f 72 | 64 73 20 66 72 6f 6d 20 |ulls wor|ds from |
|00001d40| 73 74 72 65 61 6d 2c 20 | 75 6e 74 69 6c 20 22 7d |stream, |until "}|
|00001d50| 22 2e 0d 09 30 0d 09 42 | 45 47 49 4e 20 20 20 27 |"...0..B|EGIN '|
|00001d60| 20 20 20 7d 6f 72 29 3f | 0d 09 4e 57 48 49 4c 45 | }or)?|..NWHILE|
|00001d70| 09 73 74 61 74 65 09 49 | 46 09 09 5c 20 63 6f 6e |.state.I|F..\ con|
|00001d80| 73 74 5f 64 61 74 61 5f | 72 65 66 20 20 72 65 6c |st_data_|ref rel|
|00001d90| 6f 63 3e 63 6f 6e 73 74 | 5f 64 61 74 61 20 20 70 |oc>const|_data p|
|00001da0| 6f 73 74 70 6f 6e 65 20 | 40 61 62 73 0d 09 09 09 |ostpone |@abs....|
|00001db0| 09 09 09 09 6c 69 74 5f | 61 64 64 72 0d 09 09 09 |....lit_|addr....|
|00001dc0| 09 09 45 4c 53 45 09 73 | 77 61 70 20 0d 09 09 09 |..ELSE.s|wap ....|
|00001dd0| 09 09 54 48 45 4e 20 20 | 31 2b 0d 09 52 45 50 45 |..THEN |1+..REPE|
|00001de0| 41 54 0d 09 64 72 6f 70 | 20 20 20 73 74 61 74 65 |AT..drop| state|
|00001df0| 20 49 46 20 20 70 6f 73 | 74 70 6f 6e 65 20 6c 69 | IF pos|tpone li|
|00001e00| 74 65 72 61 6c 20 20 54 | 48 45 4e 20 20 3b 09 09 |teral T|HEN ;..|
|00001e10| 69 6d 6d 65 64 69 61 74 | 65 0d 0d 3a 20 43 46 41 |immediat|e..: CFA|
|00001e20| 53 7b 09 70 6f 73 74 70 | 6f 6e 65 20 78 74 73 7b |S{.postp|one xts{|
|00001e30| 20 20 3b 09 69 6d 6d 65 | 64 69 61 74 65 09 09 5c | ;.imme|diate..\|
|00001e40| 20 53 79 6e 6f 6e 79 6d | 73 20 66 6f 72 20 63 6f | Synonym|s for co|
|00001e50| 6d 70 61 74 69 62 69 6c | 69 74 79 0d 3a 20 43 46 |mpatibil|ity.: CF|
|00001e60| 41 53 28 09 70 6f 73 74 | 70 6f 6e 65 20 78 74 73 |AS(.post|pone xts|
|00001e70| 7b 20 20 3b 09 69 6d 6d | 65 64 69 61 74 65 0d 0d |{ ;.imm|ediate..|
|00001e80| 3a 20 58 54 53 09 67 6f | 62 62 6c 65 7b 20 20 70 |: XTS.go|bble{ p|
|00001e90| 6f 73 74 70 6f 6e 65 20 | 78 74 73 7b 20 20 3b 09 |ostpone |xts{ ;.|
|00001ea0| 09 69 6d 6d 65 64 69 61 | 74 65 0d 0d 0d 28 2a 20 |.immedia|te...(* |
|00001eb0| 53 43 4f 4e 20 64 65 66 | 69 6e 65 73 20 61 20 73 |SCON def|ines a s|
|00001ec0| 74 72 69 6e 67 20 63 6f | 6e 73 74 61 6e 74 2e 20 |tring co|nstant. |
|00001ed0| 20 55 73 61 67 65 3a 0d | 0d 09 73 63 6f 6e 09 3c | Usage:.|..scon.<|
|00001ee0| 6e 61 6d 65 3e 09 22 61 | 20 73 74 72 69 6e 67 22 |name>."a| string"|
|00001ef0| 0d 0d 20 20 52 75 6e 74 | 69 6d 65 3a 20 28 20 2d |.. Runt|ime: ( -|
|00001f00| 2d 20 61 64 64 72 20 6c | 65 6e 20 29 0d 0d 20 20 |- addr l|en ).. |
|00001f10| 43 68 61 6e 67 65 20 66 | 72 6f 6d 20 4e 65 6f 6e |Change f|rom Neon|
|00001f20| 3a 20 74 68 65 20 66 69 | 72 73 74 20 6e 6f 6e 62 |: the fi|rst nonb|
|00001f30| 6c 61 6e 6b 20 63 68 61 | 72 20 61 66 74 65 72 20 |lank cha|r after |
|00001f40| 74 68 65 20 6e 61 6d 65 | 20 6f 66 20 74 68 65 20 |the name| of the |
|00001f50| 53 43 4f 4e 0d 20 20 62 | 65 63 6f 6d 65 73 20 74 |SCON. b|ecomes t|
|00001f60| 68 65 20 64 65 6c 69 6d | 69 74 65 72 2e 20 20 53 |he delim|iter. S|
|00001f70| 6f 20 22 20 63 61 6e 20 | 62 65 20 75 73 65 64 20 |o " can |be used |
|00001f80| 61 73 20 75 73 75 61 6c | 2c 20 62 75 74 20 61 6e |as usual|, but an|
|00001f90| 79 74 68 69 6e 67 20 65 | 6c 73 65 20 63 61 6e 0d |ything e|lse can.|
|00001fa0| 20 20 62 65 20 75 73 65 | 64 20 69 6e 73 74 65 61 | be use|d instea|
|00001fb0| 64 2c 20 65 2e 67 2e 3a | 0d 0d 20 09 73 63 6f 6e |d, e.g.:|.. .scon|
|00001fc0| 09 3c 6e 61 6d 65 3e 09 | 2f 74 68 69 73 20 73 74 |.<name>.|/this st|
|00001fd0| 72 69 6e 67 20 63 6f 6e | 74 61 69 6e 73 20 22 20 |ring con|tains " |
|00001fe0| 61 73 20 6e 6f 6e 2d 64 | 65 6c 69 6d 69 74 65 72 |as non-d|elimiter|
|00001ff0| 2f 0d 2a 29 0d 0d 3a 20 | 53 43 4f 4e 0d 09 3c 42 |/.*)..: |SCON..<B|
|00002000| 55 49 4c 44 53 09 09 62 | 6c 20 73 6b 69 70 2d 73 |UILDS..b|l skip-s|
|00002010| 72 63 2b 0d 09 09 09 09 | 73 72 63 2d 73 74 61 72 |rc+.....|src-star|
|00002020| 74 20 3e 69 6e 20 40 20 | 2b 20 63 40 20 20 2c 64 |t >in @ |+ c@ ,d|
|00002030| 6c 6d 2d 73 74 72 0d 09 | 44 4f 45 53 3e 09 09 63 |lm-str..|DOES>..c|
|00002040| 6f 75 6e 74 20 20 3b 0d | 0d 0d 5c 20 6e 6f 74 65 |ount ;.|..\ note|
|00002050| 3a 20 49 4e 53 54 45 41 | 44 20 69 73 20 64 65 66 |: INSTEA|D is def|
|00002060| 69 6e 65 64 20 69 6e 20 | 7a 41 72 67 73 20 73 69 |ined in |zArgs si|
|00002070| 6e 63 65 20 69 74 20 6e | 65 65 64 73 20 6c 6f 63 |nce it n|eeds loc|
|00002080| 61 6c 73 2e 0d 0d 0d 5c | 20 43 41 53 45 20 73 68 |als....\| CASE sh|
|00002090| 6f 75 6c 64 20 62 65 20 | 75 73 65 64 20 66 6f 72 |ould be |used for|
|000020a0| 20 6e 6f 6e 2d 63 6f 6e | 74 69 67 75 6f 75 73 20 | non-con|tiguous |
|000020b0| 6f 72 20 64 79 6e 61 6d | 69 63 61 6c 6c 79 20 63 |or dynam|ically c|
|000020c0| 6f 6d 70 75 74 65 64 20 | 76 61 6c 75 65 73 2e 0d |omputed |values..|
|000020d0| 5c 20 54 68 69 73 20 69 | 73 20 61 20 6d 6f 64 69 |\ This i|s a modi|
|000020e0| 66 69 65 64 20 45 61 6b | 65 72 2f 44 75 6e 63 61 |fied Eak|er/Dunca|
|000020f0| 6e 20 6d 6f 64 65 6c 2e | 0d 5c 20 4f 75 72 20 6f |n model.|.\ Our o|
|00002100| 70 74 69 6d 69 7a 61 74 | 69 6f 6e 20 73 74 72 61 |ptimizat|ion stra|
|00002110| 74 65 67 79 20 67 69 76 | 65 73 20 71 75 69 74 65 |tegy giv|es quite|
|00002120| 20 67 6f 6f 64 20 63 6f | 64 65 2e 0d 0d 3a 20 43 | good co|de...: C|
|00002130| 41 53 45 09 09 3f 63 6f | 6d 70 20 20 33 30 32 20 |ASE..?co|mp 302 |
|00002140| 20 3b 09 09 69 6d 6d 65 | 64 69 61 74 65 0d 0d 3a | ;..imme|diate..:|
|00002150| 20 4f 46 0d 09 70 6f 73 | 74 70 6f 6e 65 20 6f 76 | OF..pos|tpone ov|
|00002160| 65 72 20 20 70 6f 73 74 | 70 6f 6e 65 20 3d 20 20 |er post|pone = |
|00002170| 70 6f 73 74 70 6f 6e 65 | 20 69 66 0d 09 70 6f 73 |postpone| if..pos|
|00002180| 74 70 6f 6e 65 20 64 72 | 6f 70 20 20 3b 09 09 09 |tpone dr|op ;...|
|00002190| 69 6d 6d 65 64 69 61 74 | 65 0d 0d 3a 20 52 41 4e |immediat|e..: RAN|
|000021a0| 47 45 4f 46 0d 09 70 6f | 73 74 70 6f 6e 65 20 77 |GEOF..po|stpone w|
|000021b0| 69 74 68 69 6e 3f 20 20 | 70 6f 73 74 70 6f 6e 65 |ithin? |postpone|
|000021c0| 20 69 66 0d 09 70 6f 73 | 74 70 6f 6e 65 20 64 72 | if..pos|tpone dr|
|000021d0| 6f 70 20 20 3b 09 09 09 | 69 6d 6d 65 64 69 61 74 |op ;...|immediat|
|000021e0| 65 0d 0d 3a 20 45 4e 44 | 4f 46 0d 09 70 6f 73 74 |e..: END|OF..post|
|000021f0| 70 6f 6e 65 20 65 6c 73 | 65 20 20 3b 09 09 09 69 |pone els|e ;...i|
|00002200| 6d 6d 65 64 69 61 74 65 | 0d 0d 3a 20 45 4e 44 43 |mmediate|..: ENDC|
|00002210| 41 53 45 0d 09 70 6f 73 | 74 70 6f 6e 65 20 64 72 |ASE..pos|tpone dr|
|00002220| 6f 70 0d 09 42 45 47 49 | 4e 20 20 64 75 70 20 33 |op..BEGI|N dup 3|
|00002230| 30 32 20 3d 20 20 4e 57 | 48 49 4c 45 20 20 3e 72 |02 = NW|HILE >r|
|00002240| 65 73 6f 6c 76 65 26 65 | 71 75 61 6c 69 7a 65 20 |esolve&e|qualize |
|00002250| 20 20 52 45 50 45 41 54 | 20 20 64 72 6f 70 20 20 | REPEAT| drop |
|00002260| 3b 0d 69 6d 6d 65 64 69 | 61 74 65 0d 0d 28 2a 20 |;.immedi|ate..(* |
|00002270| 54 59 50 45 7b 20 61 6e | 64 20 45 4e 55 4d 7b 20 |TYPE{ an|d ENUM{ |
|00002280| 28 73 79 6e 6f 6e 79 6d | 73 29 20 64 65 66 69 6e |(synonym|s) defin|
|00002290| 65 20 61 20 50 61 73 63 | 61 6c 2f 43 2d 6c 69 6b |e a Pasc|al/C-lik|
|000022a0| 65 20 65 6e 75 6d 65 72 | 61 74 65 64 20 74 79 70 |e enumer|ated typ|
|000022b0| 65 2e 0d 20 20 20 41 74 | 20 74 68 69 73 20 73 74 |e.. At| this st|
|000022c0| 61 67 65 20 77 65 20 64 | 6f 6e 27 74 20 67 69 76 |age we d|on't giv|
|000022d0| 65 20 61 20 6e 61 6d 65 | 20 74 6f 20 74 68 65 20 |e a name| to the |
|000022e0| 22 74 79 70 65 22 20 61 | 73 20 73 75 63 68 2c 20 |"type" a|s such, |
|000022f0| 61 73 20 77 65 20 63 61 | 6e 27 74 0d 20 20 20 64 |as we ca|n't. d|
|00002300| 6f 20 61 6e 79 74 68 69 | 6e 67 20 72 65 61 6c 6c |o anythi|ng reall|
|00002310| 79 20 73 65 6e 73 69 62 | 6c 65 20 77 69 74 68 20 |y sensib|le with |
|00002320| 69 74 2e 20 20 48 6f 77 | 65 76 65 72 20 6c 61 74 |it. How|ever lat|
|00002330| 65 72 20 77 65 20 63 61 | 6e 20 6f 70 74 69 6f 6e |er we ca|n option|
|00002340| 61 6c 6c 79 0d 20 20 20 | 6c 6f 61 64 20 74 68 65 |ally. |load the|
|00002350| 20 45 4e 55 4d 2d 54 59 | 50 45 20 63 6c 61 73 73 | ENUM-TY|PE class|
|00002360| 20 77 68 69 63 68 20 69 | 73 20 72 61 74 68 65 72 | which i|s rather|
|00002370| 20 6d 6f 72 65 20 50 61 | 73 63 61 6c 2d 6c 69 6b | more Pa|scal-lik|
|00002380| 65 2e 20 20 42 75 74 20 | 65 76 65 6e 0d 20 20 20 |e. But |even. |
|00002390| 77 69 74 68 6f 75 74 20 | 74 68 61 74 2c 20 74 68 |without |that, th|
|000023a0| 65 20 65 6e 75 6d 65 72 | 61 74 69 6f 6e 20 69 73 |e enumer|ation is|
|000023b0| 20 76 65 72 79 20 75 73 | 65 66 75 6c 20 62 79 20 | very us|eful by |
|000023c0| 69 74 73 65 6c 66 2e 0d | 2a 29 0d 0d 20 20 20 20 |itself..|*).. |
|000023d0| 30 09 76 61 6c 75 65 09 | 54 59 50 45 43 4e 54 0d |0.value.|TYPECNT.|
|000023e0| 0d 27 20 6e 75 6c 6c 09 | 76 65 63 74 09 44 4f 5f |.' null.|vect.DO_|
|000023f0| 45 54 09 09 5c 20 48 6f | 6f 6b 20 66 6f 72 20 68 |ET..\ Ho|ok for h|
|00002400| 61 6e 64 6c 69 6e 67 20 | 74 68 65 20 45 4e 55 4d |andling |the ENUM|
|00002410| 2d 54 59 50 45 0d 09 09 | 09 09 09 09 09 5c 20 63 |-TYPE...|.....\ c|
|00002420| 6c 61 73 73 20 77 68 65 | 6e 20 69 74 27 73 20 6c |lass whe|n it's l|
|00002430| 6f 61 64 65 64 0d 0d 3a | 20 45 4e 44 4c 49 53 54 |oaded..:| ENDLIST|
|00002440| 3f 09 09 5c 20 28 20 63 | 68 72 20 2d 2d 20 62 20 |?..\ ( c|hr -- b |
|00002450| 29 0d 09 23 6c 69 6e 65 | 73 5f 72 65 61 64 20 3e |)..#line|s_read >|
|00002460| 72 0d 09 3e 69 6e 20 40 | 20 20 3e 72 0d 09 4d 77 |r..>in @| >r..Mw|
|00002470| 6f 72 64 20 20 63 6f 75 | 6e 74 20 31 20 3d 20 20 |ord cou|nt 1 = |
|00002480| 64 6f 77 6e 20 63 40 20 | 3d 20 20 61 6e 64 0d 09 |down c@ |= and..|
|00002490| 49 46 09 09 72 3e 20 64 | 72 6f 70 09 72 3e 20 64 |IF..r> d|rop.r> d|
|000024a0| 72 6f 70 20 20 74 72 75 | 65 09 09 5c 20 66 69 6e |rop tru|e..\ fin|
|000024b0| 69 73 68 65 64 20 2d 20 | 6c 65 61 76 65 20 64 65 |ished - |leave de|
|000024c0| 6c 69 6d 69 74 65 72 20 | 73 6b 69 70 70 65 64 0d |limiter |skipped.|
|000024d0| 09 45 4c 53 45 09 72 3e | 20 20 3e 69 6e 20 21 09 |.ELSE.r>| >in !.|
|000024e0| 09 09 09 09 5c 20 61 6e | 6f 74 68 65 72 20 6c 69 |....\ an|other li|
|000024f0| 73 74 20 69 74 65 6d 20 | 2d 20 72 65 72 65 61 64 |st item |- reread|
|00002500| 20 69 74 0d 09 09 09 72 | 3e 20 23 6c 69 6e 65 73 | it....r|> #lines|
|00002510| 5f 72 65 61 64 20 3c 3e | 0d 09 09 09 49 46 20 20 |_read <>|....IF |
|00002520| 30 20 3e 69 6e 20 21 20 | 20 54 48 45 4e 0d 09 09 |0 >in ! | THEN...|
|00002530| 09 66 61 6c 73 65 09 09 | 09 0d 09 54 48 45 4e 20 |.false..|...THEN |
|00002540| 20 3b 0d 0d 0d 3a 20 45 | 4e 55 4d 7b 0d 09 30 20 | ;...: E|NUM{..0 |
|00002550| 2d 3e 20 74 79 70 65 43 | 6e 74 09 09 09 09 5c 20 |-> typeC|nt....\ |
|00002560| 31 73 74 20 76 61 6c 75 | 65 0d 09 42 45 47 49 4e |1st valu|e..BEGIN|
|00002570| 09 74 79 70 65 43 6e 74 | 20 20 63 6f 6e 73 74 61 |.typeCnt| consta|
|00002580| 6e 74 20 20 31 20 2b 2b | 3e 20 74 79 70 65 43 6e |nt 1 ++|> typeCn|
|00002590| 74 0d 09 09 09 26 20 7d | 20 20 65 6e 64 6c 69 73 |t....& }| endlis|
|000025a0| 74 3f 0d 09 55 4e 54 49 | 4c 0d 09 64 6f 5f 45 54 |t?..UNTI|L..do_ET|
|000025b0| 20 20 3b 0d 0d 3a 20 54 | 59 50 45 7b 09 09 65 6e | ;..: T|YPE{..en|
|000025c0| 75 6d 7b 20 20 3b 09 09 | 09 5c 20 43 20 66 61 6e |um{ ;..|.\ C fan|
|000025d0| 73 20 6d 69 67 68 74 20 | 6c 69 6b 65 20 74 68 69 |s might |like thi|
|000025e0| 73 20 6e 61 6d 65 20 62 | 65 74 74 65 72 0d 0d 3a |s name b|etter..:|
|000025f0| 20 45 4e 55 4d 09 09 67 | 6f 62 62 6c 65 7b 20 20 | ENUM..g|obble{ |
|00002600| 65 6e 75 6d 7b 20 20 3b | 0d 0d 09 09 09 09 5c 20 |enum{ ;|......\ |
|00002610| 6e 6f 74 65 20 77 65 20 | 63 61 6e 27 74 20 61 6c |note we |can't al|
|00002620| 6c 6f 77 20 22 74 79 70 | 65 20 7b 20 2e 2e 2e 22 |low "typ|e { ..."|
|00002630| 20 73 69 6e 63 65 20 22 | 74 79 70 65 22 20 68 61 | since "|type" ha|
|00002640| 73 20 61 6e 6f 74 68 65 | 72 0d 09 09 09 09 5c 20 |s anothe|r.....\ |
|00002650| 6d 65 61 6e 69 6e 67 20 | 61 6c 72 65 61 64 79 2e |meaning |already.|
|00002660| 20 20 42 75 74 20 22 65 | 6e 75 6d 20 7b 20 2e 2e | But "e|num { ..|
|00002670| 2e 22 20 20 69 73 20 4f | 4b 2e 0d 0d 65 6e 75 6d |." is O|K...enum|
|00002680| 7b 20 49 6e 4d 61 69 6e | 44 69 63 20 44 61 74 61 |{ InMain|Dic Data|
|00002690| 49 6e 4d 61 69 6e 44 69 | 63 20 49 6e 4f 74 68 65 |InMainDi|c InOthe|
|000026a0| 72 4d 6f 64 20 44 61 74 | 61 49 6e 4f 74 68 65 72 |rMod Dat|aInOther|
|000026b0| 4d 6f 64 20 49 6e 54 68 | 69 73 4d 6f 64 20 7d 0d |Mod InTh|isMod }.|
|000026c0| 09 09 09 09 09 09 09 5c | 20 52 65 6c 6f 63 61 74 |.......\| Relocat|
|000026d0| 61 62 6c 65 20 61 64 64 | 72 20 74 79 70 65 73 0d |able add|r types.|
|000026e0| 0d 0d 5c 09 09 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 20 |..\..===|======= |
|000026f0| 45 72 72 6f 72 20 64 69 | 61 67 6e 6f 73 74 69 63 |Error di|agnostic|
|00002700| 73 20 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 0d 0d 5c |s ======|=====..\|
|00002710| 20 57 65 20 75 73 65 20 | 73 70 65 63 69 61 6c 20 | We use |special |
|00002720| 76 61 6c 75 65 73 20 66 | 6f 72 20 6e 69 6c 20 68 |values f|or nil h|
|00002730| 61 6e 64 6c 65 73 20 61 | 6e 64 20 6e 69 6c 20 70 |andles a|nd nil p|
|00002740| 6f 69 6e 74 65 72 73 2e | 20 20 54 68 65 73 65 20 |ointers.| These |
|00002750| 61 72 65 0d 5c 20 6f 64 | 64 20 68 69 67 68 20 61 |are.\ od|d high a|
|00002760| 64 64 72 65 73 73 65 73 | 2c 20 73 6f 20 68 6f 70 |ddresses|, so hop|
|00002770| 65 66 75 6c 6c 79 20 77 | 65 27 6c 6c 20 74 72 61 |efully w|e'll tra|
|00002780| 70 20 69 66 20 77 65 20 | 74 72 79 20 74 6f 20 75 |p if we |try to u|
|00002790| 73 65 20 74 68 65 6d 2e | 0d 0d 3a 20 2e 52 54 4e |se them.|..: .RTN|
|000027a0| 09 09 09 5c 20 28 20 61 | 64 64 72 20 2d 2d 20 29 |...\ ( a|ddr -- )|
|000027b0| 0d 09 63 72 20 2e 22 20 | 46 72 6f 6d 20 20 24 22 |..cr ." |From $"|
|000027c0| 0d 09 2e 68 20 20 34 20 | 73 70 61 63 65 73 0d 3b |...h 4 |spaces.;|
|000027d0| 0d 0d 0d 3a 20 52 41 4e | 47 45 5f 45 52 52 09 09 |...: RAN|GE_ERR..|
|000027e0| 5c 20 28 20 69 6e 64 65 | 78 20 72 61 6e 67 65 20 |\ ( inde|x range |
|000027f0| 72 74 6e 2d 61 64 64 72 | 20 2d 2d 20 29 0d 09 64 |rtn-addr| -- )..d|
|00002800| 75 70 20 31 2b 20 30 3d | 20 20 3f 65 72 72 6f 72 |up 1+ 0=| ?error|
|00002810| 20 31 32 38 09 09 09 5c | 20 53 70 75 72 69 6f 75 | 128...\| Spuriou|
|00002820| 73 20 72 61 6e 67 65 20 | 65 72 72 6f 72 0d 09 2e |s range |error...|
|00002830| 72 74 6e 0d 09 64 75 70 | 20 2d 31 20 3c 0d 09 49 |rtn..dup| -1 <..I|
|00002840| 46 09 09 6e 69 70 20 20 | 3f 65 72 72 6f 72 20 31 |F..nip |?error 1|
|00002850| 33 30 09 09 09 5c 20 4e | 6f 74 20 61 6e 20 69 6e |30...\ N|ot an in|
|00002860| 64 65 78 65 64 20 63 6c | 61 73 73 0d 09 45 4c 53 |dexed cl|ass..ELS|
|00002870| 45 09 2e 22 20 52 61 6e | 67 65 3a 20 22 20 2e 20 |E.." Ran|ge: " . |
|00002880| 20 2e 22 20 20 20 49 6e | 64 65 78 3a 20 22 20 2e | ." In|dex: " .|
|00002890| 0d 09 09 09 74 72 75 65 | 20 20 3f 65 72 72 6f 72 |....true| ?error|
|000028a0| 20 31 32 39 0d 09 54 48 | 45 4e 20 20 3b 0d 0d 00 | 129..TH|EN ;...|
|000028b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000028c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000028d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000028e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000028f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002900| 00 00 01 00 00 00 01 42 | 00 00 00 42 00 00 00 3b |.......B|...B...;|
|00002910| 00 00 00 00 00 00 00 27 | 05 00 00 00 00 10 00 00 |.......'|........|
|00002920| 00 0e 05 00 00 00 00 23 | 00 00 00 29 05 00 00 00 |.......#|...)....|
|00002930| 05 7a 42 61 73 65 02 00 | 00 00 50 61 72 74 53 49 |.zBase..|..PartSI|
|00002940| 54 21 00 00 00 00 00 00 | 00 00 00 01 82 9e 00 00 |T!......|........|
|00002950| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00002960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002970| 00 00 b3 66 c2 81 00 00 | 00 00 00 00 01 7d 00 00 |...f....|.....}..|
|00002980| 01 19 00 00 00 42 05 00 | 00 00 01 1d 00 00 00 2b |.....B..|.......+|
|00002990| 05 00 00 00 01 22 00 00 | 00 4a 05 00 00 00 01 24 |....."..|.J.....$|
|000029a0| 00 00 00 bb 05 00 00 00 | 01 27 00 00 00 28 05 00 |........|.'...(..|
|000029b0| 00 00 01 2e 00 00 00 46 | 05 00 00 00 01 35 00 00 |.......F|.....5..|
|000029c0| 00 4b 05 00 00 00 01 5c | 00 00 00 0a 05 00 00 00 |.K.....\|........|
|000029d0| 01 8c 00 00 00 33 05 00 | 00 00 01 8e 00 00 00 30 |.....3..|.......0|
|000029e0| 05 00 00 00 01 92 00 00 | 00 35 05 00 00 00 01 96 |........|.5......|
|000029f0| 00 00 00 37 05 00 00 00 | 01 98 00 00 00 3b 05 00 |...7....|.....;..|
|00002a00| 00 00 00 3e 00 00 10 f2 | 00 00 10 f2 00 00 0d 6e |...>....|.......n|
|00002a10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 03 bf |........|........|
|00002a30| 00 00 03 bf 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a40| 00 00 00 00 01 00 00 00 | 01 42 00 00 00 42 00 00 |........|.B...B..|
|00002a50| 00 3b 02 66 3c 98 28 c4 | 00 00 00 1c 00 32 00 00 |.;.f<.(.|.....2..|
|00002a60| 4d 49 46 4f 00 00 00 0a | 00 80 00 00 00 00 00 00 |MIFO....|........|
|00002a70| 02 66 40 5c 08 4d 69 73 | 63 49 6e 66 6f 00 00 00 |.f@\.Mis|cInfo...|
+--------+-------------------------+-------------------------+--------+--------+