|
| 1 | +\ Secondary test of tokenizer-escape mode functions |
| 2 | +\ Updated Thu, 02 Mar 2006 at 17:47 PST by David L. Paktor |
| 3 | + |
| 4 | +[macro] where-from ." This came from " [input-file-name] type ." line " [line-number] .d cr |
| 5 | +[macro] in_what ." In " [function-name] type cr |
| 6 | +[macro] mess_in_what f[ [function-name] ]f |
| 7 | + |
| 8 | +tokenizer[ |
| 9 | + |
| 10 | +fload revlev.fth |
| 11 | + |
| 12 | +h# 020000 constant eithernet \ Class Code: 0x020000 (Ethernet) |
| 13 | +h# 5417 constant deviouce \ Device ID: 0x5417 |
| 14 | +h# 17d5 constant vanitor \ Vendor ID: 0x17d5 |
| 15 | + |
| 16 | + vanitor deviouce eithernet |
| 17 | + i-got-a-Rev-Level |
| 18 | + false |
| 19 | + ]tokenizer |
| 20 | + |
| 21 | +not-last-image |
| 22 | +last-img |
| 23 | +set-last-image |
| 24 | + SET-REV-LEVEL |
| 25 | + pci-header |
| 26 | + |
| 27 | +fcode-version2 |
| 28 | + |
| 29 | +headers |
| 30 | +hex |
| 31 | +tokenizer[ |
| 32 | + |
| 33 | +d# 10 constant triumph |
| 34 | + o# 40 constant trophy |
| 35 | + h# 80 constant trumpet |
| 36 | + ]tokenizer |
| 37 | +b(lit) |
| 38 | +tokenizer[ |
| 39 | + 10 emit-byte |
| 40 | + triumph emit-byte |
| 41 | + trumpet emit-byte |
| 42 | + trophy emit-byte |
| 43 | + |
| 44 | + ]tokenizer |
| 45 | +b(lit) |
| 46 | +tokenizer[ |
| 47 | + |
| 48 | + h# de h# fe h# ca h# 8e |
| 49 | + 2swap swap |
| 50 | + emit-byte emit-byte |
| 51 | + swap emit-byte emit-byte |
| 52 | + |
| 53 | + ]tokenizer |
| 54 | + |
| 55 | +h# defeca8e constant poopoo |
| 56 | +h# beeffece constant moopoo |
| 57 | +alias couterde moopoo |
| 58 | +tokenizer[ |
| 59 | +h# defeca8e constant poopoo |
| 60 | +h# beeffece constant moopoo |
| 61 | +alias couterde moopoo |
| 62 | + couterde poopoo |
| 63 | + ]tokenizer fliteral |
| 64 | + fliteral |
| 65 | + |
| 66 | + f['] moopoo \ Can't f['] couterde just yet |
| 67 | + couterde poopoo |
| 68 | +tokenizer[ h# feedbac4 ]tokenizer \ Leave something extra on the stack... |
| 69 | +: merde |
| 70 | + ['] moopoo \ Can't ['] couterde just yet, either |
| 71 | + ' poopoo |
| 72 | + couterde |
| 73 | + ascii b char e [char] f |
| 74 | +[message] About to tokenize run-time date and time stamps. Twice! |
| 75 | + ." Date " [fcode-date] type |
| 76 | + ." Time" [fcode-time] type cr |
| 77 | + ." Time" [fcode-time] type |
| 78 | + ." Date " [fcode-date] type cr |
| 79 | +f[ [fcode-date] [fcode-time] ]f |
| 80 | + in_what where-from mess_in_what |
| 81 | +; |
| 82 | +ascii f |
| 83 | + char e |
| 84 | + [char] c |
| 85 | + |
| 86 | +: terde |
| 87 | + in_what where-from mess_in_what |
| 88 | +; |
| 89 | + |
| 90 | + |
| 91 | +end0 |
| 92 | + |
| 93 | +\ save-image chalupa.fc |
| 94 | + |
0 commit comments