home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume10 / logo / part05 < prev    next >
SHell self-extracting ARchive  |  1987-06-23  |  37.2 KB

view JSON data     |     view as text     |     open on a Mac     |     open on a PC

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

You can browse this item here: part05

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, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK 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/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 75 75 | 6e 65 74 21 72 73 0a 46 |Path: uu|net!rs.F|
|00000010| 72 6f 6d 3a 20 72 73 40 | 75 75 6e 65 74 2e 55 55 |rom: rs@|uunet.UU|
|00000020| 2e 4e 45 54 20 28 52 69 | 63 68 20 53 61 6c 7a 29 |.NET (Ri|ch Salz)|
|00000030| 0a 4e 65 77 73 67 72 6f | 75 70 73 3a 20 63 6f 6d |.Newsgro|ups: com|
|00000040| 70 2e 73 6f 75 72 63 65 | 73 2e 75 6e 69 78 0a 53 |p.source|s.unix.S|
|00000050| 75 62 6a 65 63 74 3a 20 | 76 31 30 69 30 32 35 3a |ubject: |v10i025:|
|00000060| 20 4c 6f 67 6f 20 69 6e | 74 65 72 70 72 65 74 65 | Logo in|terprete|
|00000070| 72 20 66 6f 72 20 55 6e | 69 78 2c 20 50 61 72 74 |r for Un|ix, Part|
|00000080| 30 35 2f 30 36 0a 4d 65 | 73 73 61 67 65 2d 49 44 |05/06.Me|ssage-ID|
|00000090| 3a 20 3c 34 35 31 40 75 | 75 6e 65 74 2e 55 55 2e |: <451@u|unet.UU.|
|000000a0| 4e 45 54 3e 0a 44 61 74 | 65 3a 20 32 34 20 4a 75 |NET>.Dat|e: 24 Ju|
|000000b0| 6e 20 38 37 20 32 30 3a | 32 31 3a 35 38 20 47 4d |n 87 20:|21:58 GM|
|000000c0| 54 0a 4f 72 67 61 6e 69 | 7a 61 74 69 6f 6e 3a 20 |T.Organi|zation: |
|000000d0| 55 55 4e 45 54 20 43 6f | 6d 6d 75 6e 69 63 61 74 |UUNET Co|mmunicat|
|000000e0| 69 6f 6e 73 20 53 65 72 | 76 69 63 65 73 2c 20 41 |ions Ser|vices, A|
|000000f0| 72 6c 69 6e 67 74 6f 6e | 2c 20 56 41 0a 4c 69 6e |rlington|, VA.Lin|
|00000100| 65 73 3a 20 38 34 31 0a | 41 70 70 72 6f 76 65 64 |es: 841.|Approved|
|00000110| 3a 20 72 73 40 75 75 6e | 65 74 2e 75 75 2e 6e 65 |: rs@uun|et.uu.ne|
|00000120| 74 0a 0a 53 75 62 6d 69 | 74 74 65 64 20 62 79 3a |t..Submi|tted by:|
|00000130| 20 42 72 69 61 6e 20 48 | 61 72 76 65 79 20 3c 62 | Brian H|arvey <b|
|00000140| 68 40 6d 69 74 2d 61 6d | 74 3e 0a 4d 6f 64 2e 53 |h@mit-am|t>.Mod.S|
|00000150| 6f 75 72 63 65 73 3a 20 | 56 6f 6c 75 6d 65 20 31 |ources: |Volume 1|
|00000160| 30 2c 20 4e 75 6d 62 65 | 72 20 32 35 0a 41 72 63 |0, Numbe|r 25.Arc|
|00000170| 68 69 76 65 2d 4e 61 6d | 65 3a 20 6c 6f 67 6f 2f |hive-Nam|e: logo/|
|00000180| 50 61 72 74 30 35 0a 0a | 23 21 20 2f 62 69 6e 2f |Part05..|#! /bin/|
|00000190| 73 68 0a 23 20 54 68 69 | 73 20 69 73 20 61 20 73 |sh.# Thi|s is a s|
|000001a0| 68 65 6c 6c 20 61 72 63 | 68 69 76 65 2e 20 20 52 |hell arc|hive. R|
|000001b0| 65 6d 6f 76 65 20 61 6e | 79 74 68 69 6e 67 20 62 |emove an|ything b|
|000001c0| 65 66 6f 72 65 20 74 68 | 69 73 20 6c 69 6e 65 2c |efore th|is line,|
|000001d0| 20 74 68 65 6e 20 75 6e | 70 61 63 6b 0a 23 20 69 | then un|pack.# i|
|000001e0| 74 20 62 79 20 73 61 76 | 69 6e 67 20 69 74 20 69 |t by sav|ing it i|
|000001f0| 6e 74 6f 20 61 20 66 69 | 6c 65 20 61 6e 64 20 74 |nto a fi|le and t|
|00000200| 79 70 69 6e 67 20 22 73 | 68 20 66 69 6c 65 22 2e |yping "s|h file".|
|00000210| 20 20 54 6f 20 6f 76 65 | 72 77 72 69 74 65 20 65 | To ove|rwrite e|
|00000220| 78 69 73 74 69 6e 67 0a | 23 20 66 69 6c 65 73 2c |xisting.|# files,|
|00000230| 20 74 79 70 65 20 22 73 | 68 20 66 69 6c 65 20 2d | type "s|h file -|
|00000240| 63 22 2e 20 20 59 6f 75 | 20 63 61 6e 20 61 6c 73 |c". You| can als|
|00000250| 6f 20 66 65 65 64 20 74 | 68 69 73 20 61 73 20 73 |o feed t|his as s|
|00000260| 74 61 6e 64 61 72 64 20 | 69 6e 70 75 74 20 76 69 |tandard |input vi|
|00000270| 61 0a 23 20 75 6e 73 68 | 61 72 2c 20 6f 72 20 62 |a.# unsh|ar, or b|
|00000280| 79 20 74 79 70 69 6e 67 | 20 22 73 68 20 3c 66 69 |y typing| "sh <fi|
|00000290| 6c 65 22 2c 20 65 2e 67 | 2e 2e 20 20 49 66 20 74 |le", e.g|.. If t|
|000002a0| 68 69 73 20 61 72 63 68 | 69 76 65 20 69 73 20 63 |his arch|ive is c|
|000002b0| 6f 6d 70 6c 65 74 65 2c | 20 79 6f 75 0a 23 20 77 |omplete,| you.# w|
|000002c0| 69 6c 6c 20 73 65 65 20 | 74 68 65 20 66 6f 6c 6c |ill see |the foll|
|000002d0| 6f 77 69 6e 67 20 6d 65 | 73 73 61 67 65 20 61 74 |owing me|ssage at|
|000002e0| 20 74 68 65 20 65 6e 64 | 3a 0a 23 09 09 22 45 6e | the end|:.#.."En|
|000002f0| 64 20 6f 66 20 61 72 63 | 68 69 76 65 20 35 20 28 |d of arc|hive 5 (|
|00000300| 6f 66 20 36 29 2e 22 0a | 23 20 43 6f 6e 74 65 6e |of 6).".|# Conten|
|00000310| 74 73 3a 20 20 6c 6f 67 | 6f 6d 61 6e 2e 31 0a 23 |ts: log|oman.1.#|
|00000320| 20 57 72 61 70 70 65 64 | 20 62 79 20 72 73 61 6c | Wrapped| by rsal|
|00000330| 7a 40 70 69 6e 65 61 70 | 70 6c 65 2e 62 62 6e 2e |z@pineap|ple.bbn.|
|00000340| 63 6f 6d 20 6f 6e 20 57 | 65 64 20 4a 75 6e 20 32 |com on W|ed Jun 2|
|00000350| 34 20 31 34 3a 32 37 3a | 30 30 20 31 39 38 37 0a |4 14:27:|00 1987.|
|00000360| 50 41 54 48 3d 2f 62 69 | 6e 3a 2f 75 73 72 2f 62 |PATH=/bi|n:/usr/b|
|00000370| 69 6e 3a 2f 75 73 72 2f | 75 63 62 20 3b 20 65 78 |in:/usr/|ucb ; ex|
|00000380| 70 6f 72 74 20 50 41 54 | 48 0a 69 66 20 74 65 73 |port PAT|H.if tes|
|00000390| 74 20 2d 66 20 6c 6f 67 | 6f 6d 61 6e 2e 31 20 2d |t -f log|oman.1 -|
|000003a0| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|000003b0| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|000003c0| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 6f |shar: Wi|ll not o|
|000003d0| 76 65 72 2d 77 72 69 74 | 65 20 65 78 69 73 74 69 |ver-writ|e existi|
|000003e0| 6e 67 20 66 69 6c 65 20 | 5c 22 6c 6f 67 6f 6d 61 |ng file |\"logoma|
|000003f0| 6e 2e 31 5c 22 0a 65 6c | 73 65 0a 65 63 68 6f 20 |n.1\".el|se.echo |
|00000400| 73 68 61 72 3a 20 45 78 | 74 72 61 63 74 69 6e 67 |shar: Ex|tracting|
|00000410| 20 5c 22 6c 6f 67 6f 6d | 61 6e 2e 31 5c 22 20 5c | \"logom|an.1\" \|
|00000420| 28 33 35 35 38 35 20 63 | 68 61 72 61 63 74 65 72 |(35585 c|haracter|
|00000430| 73 5c 29 0a 73 65 64 20 | 22 73 2f 5e 58 2f 2f 22 |s\).sed |"s/^X//"|
|00000440| 20 3e 6c 6f 67 6f 6d 61 | 6e 2e 31 20 3c 3c 27 45 | >logoma|n.1 <<'E|
|00000450| 4e 44 5f 4f 46 5f 6c 6f | 67 6f 6d 61 6e 2e 31 27 |ND_OF_lo|goman.1'|
|00000460| 0a 58 2e 6c 6c 20 37 2e | 35 69 0a 58 2e 6c 74 20 |.X.ll 7.|5i.X.lt |
|00000470| 37 2e 35 69 0a 58 2e 70 | 6f 20 2e 32 69 0a 58 2e |7.5i.X.p|o .2i.X.|
|00000480| 70 6e 20 31 0a 58 2e 64 | 65 20 54 4c 0a 58 2e 73 |pn 1.X.d|e TL.X.s|
|00000490| 70 20 32 0a 58 2e 66 74 | 20 33 0a 58 2e 63 65 0a |p 2.X.ft| 3.X.ce.|
|000004a0| 58 5c 5c 24 31 0a 58 2e | 73 70 20 31 0a 58 2e 66 |X\\$1.X.|sp 1.X.f|
|000004b0| 74 20 31 0a 58 2e 2e 0a | 58 2e 64 65 20 50 50 0a |t 1.X...|X.de PP.|
|000004c0| 58 2e 73 70 20 31 0a 58 | 2e 74 69 20 35 0a 58 2e |X.sp 1.X|.ti 5.X.|
|000004d0| 66 69 0a 58 2e 66 74 20 | 31 0a 58 2e 2e 0a 58 2e |fi.X.ft |1.X...X.|
|000004e0| 64 65 20 4e 42 0a 58 2e | 64 65 20 4e 50 0a 58 27 |de NB.X.|de NP.X'|
|000004f0| 73 70 20 31 0a 58 2e 74 | 6c 20 27 27 25 27 27 0a |sp 1.X.t|l ''%''.|
|00000500| 58 27 62 70 20 2b 31 0a | 58 27 73 70 20 32 0a 58 |X'bp +1.|X'sp 2.X|
|00000510| 5c 5c 2e 2e 0a 58 2e 63 | 68 20 4e 50 20 2d 31 69 |\\...X.c|h NP -1i|
|00000520| 0a 58 2e 2e 0a 58 2e 64 | 65 20 4e 50 0a 58 27 62 |.X...X.d|e NP.X'b|
|00000530| 70 20 2b 31 0a 58 27 73 | 70 20 32 0a 58 2e 2e 0a |p +1.X's|p 2.X...|
|00000540| 58 2e 77 68 20 2d 31 2e | 30 69 20 4e 50 0a 58 2e |X.wh -1.|0i NP.X.|
|00000550| 54 4c 20 22 4c 53 52 48 | 53 20 4c 6f 67 6f 20 4d |TL "LSRH|S Logo M|
|00000560| 61 6e 75 61 6c 22 0a 58 | 2e 4e 42 0a 58 2e 64 65 |anual".X|.NB.X.de|
|00000570| 20 45 58 0a 58 2e 66 74 | 20 33 0a 58 2e 69 6e 20 | EX.X.ft| 3.X.in |
|00000580| 2b 35 0a 58 2e 73 70 20 | 31 0a 58 2e 6e 66 0a 58 |+5.X.sp |1.X.nf.X|
|00000590| 2e 2e 0a 58 2e 64 65 20 | 45 45 0a 58 2e 66 74 20 |...X.de |EE.X.ft |
|000005a0| 31 0a 58 2e 69 6e 20 2d | 35 0a 58 2e 66 69 0a 58 |1.X.in -|5.X.fi.X|
|000005b0| 2e 50 50 0a 58 2e 2e 0a | 58 2e 64 65 20 45 43 0a |.PP.X...|X.de EC.|
|000005c0| 58 2e 66 74 20 31 0a 58 | 2e 69 6e 20 2d 35 0a 58 |X.ft 1.X|.in -5.X|
|000005d0| 2e 73 70 20 31 0a 58 2e | 66 69 0a 58 2e 2e 0a 58 |.sp 1.X.|fi.X...X|
|000005e0| 2e 64 65 20 49 4e 0a 58 | 2e 62 72 0a 58 2e 69 6e |.de IN.X|.br.X.in|
|000005f0| 20 2b 35 0a 58 2e 2e 0a | 58 2e 64 65 20 4f 55 0a | +5.X...|X.de OU.|
|00000600| 58 2e 73 70 20 31 0a 58 | 2e 69 6e 20 2d 35 0a 58 |X.sp 1.X|.in -5.X|
|00000610| 2e 2e 0a 58 2e 64 65 20 | 55 42 0a 58 2e 75 66 20 |...X.de |UB.X.uf |
|00000620| 33 0a 58 2e 63 75 20 31 | 0a 58 5c 5c 24 31 0a 58 |3.X.cu 1|.X\\$1.X|
|00000630| 2e 66 74 20 31 0a 58 2e | 75 66 20 32 0a 58 2e 2e |.ft 1.X.|uf 2.X..|
|00000640| 0a 58 2e 50 50 0a 58 2e | 55 42 20 22 49 6e 74 72 |.X.PP.X.|UB "Intr|
|00000650| 6f 64 75 63 74 69 6f 6e | 2e 22 0a 58 4c 6f 67 6f |oduction|.".XLogo|
|00000660| 20 69 73 20 61 20 63 6f | 6d 70 75 74 65 72 20 70 | is a co|mputer p|
|00000670| 72 6f 67 72 61 6d 6d 69 | 6e 67 20 6c 61 6e 67 75 |rogrammi|ng langu|
|00000680| 61 67 65 20 77 68 69 63 | 68 20 77 61 73 0a 58 64 |age whic|h was.Xd|
|00000690| 65 73 69 67 6e 65 64 20 | 74 6f 20 62 65 20 62 6f |esigned |to be bo|
|000006a0| 74 68 20 73 69 6d 70 6c | 65 20 74 6f 20 75 73 65 |th simpl|e to use|
|000006b0| 20 61 6e 64 20 65 78 74 | 72 65 6d 65 6c 79 20 70 | and ext|remely p|
|000006c0| 6f 77 65 72 66 75 6c 2e | 20 20 49 74 20 77 61 73 |owerful.| It was|
|000006d0| 0a 58 64 65 73 69 67 6e | 65 64 20 62 79 20 61 20 |.Xdesign|ed by a |
|000006e0| 67 72 6f 75 70 20 6f 66 | 20 63 6f 6d 70 75 74 65 |group of| compute|
|000006f0| 72 20 73 63 69 65 6e 74 | 69 73 74 73 20 61 74 20 |r scient|ists at |
|00000700| 4d 49 54 20 61 6e 64 20 | 61 74 20 42 6f 6c 74 2c |MIT and |at Bolt,|
|00000710| 20 42 65 72 61 6e 65 6b | 2c 20 61 6e 64 0a 58 4e | Beranek|, and.XN|
|00000720| 65 77 6d 61 6e 2e 20 20 | 49 74 73 20 73 74 72 75 |ewman. |Its stru|
|00000730| 63 74 75 72 65 20 69 73 | 20 62 61 73 65 64 20 6c |cture is| based l|
|00000740| 61 72 67 65 6c 79 20 6f | 6e 20 74 68 65 20 4c 49 |argely o|n the LI|
|00000750| 53 50 20 6c 61 6e 67 75 | 61 67 65 2c 20 77 68 69 |SP langu|age, whi|
|00000760| 63 68 20 69 73 0a 58 77 | 69 64 65 6c 79 20 75 73 |ch is.Xw|idely us|
|00000770| 65 64 20 69 6e 20 41 72 | 74 69 66 69 63 69 61 6c |ed in Ar|tificial|
|00000780| 20 49 6e 74 65 6c 6c 69 | 67 65 6e 63 65 20 72 65 | Intelli|gence re|
|00000790| 73 65 61 72 63 68 2c 20 | 62 75 74 20 74 68 65 20 |search, |but the |
|000007a0| 6e 6f 74 61 74 69 6f 6e | 20 68 61 73 20 62 65 65 |notation| has bee|
|000007b0| 6e 0a 58 63 68 61 6e 67 | 65 64 20 74 6f 20 6d 61 |n.Xchang|ed to ma|
|000007c0| 6b 65 20 4c 6f 67 6f 20 | 66 61 72 20 65 61 73 69 |ke Logo |far easi|
|000007d0| 65 72 20 66 6f 72 20 61 | 20 62 65 67 69 6e 6e 65 |er for a| beginne|
|000007e0| 72 20 74 68 61 6e 20 4c | 49 53 50 2e 20 20 54 68 |r than L|ISP. Th|
|000007f0| 69 73 20 6d 61 6e 75 61 | 6c 0a 58 64 65 73 63 72 |is manua|l.Xdescr|
|00000800| 69 62 65 73 20 61 20 76 | 65 72 73 69 6f 6e 20 6f |ibes a v|ersion o|
|00000810| 66 20 4c 6f 67 6f 20 66 | 6f 72 20 74 68 65 20 50 |f Logo f|or the P|
|00000820| 44 50 2d 31 31 2c 20 6f | 72 69 67 69 6e 61 6c 6c |DP-11, o|riginall|
|00000830| 79 20 77 72 69 74 74 65 | 6e 20 69 6e 20 43 20 61 |y writte|n in C a|
|00000840| 74 20 74 68 65 0a 58 42 | 6f 73 74 6f 6e 20 43 68 |t the.XB|oston Ch|
|00000850| 69 6c 64 72 65 6e 27 73 | 20 4d 75 73 65 75 6d 20 |ildren's| Museum |
|00000860| 61 6e 64 20 65 78 74 65 | 6e 73 69 76 65 6c 79 20 |and exte|nsively |
|00000870| 6d 6f 64 69 66 69 65 64 | 20 61 74 20 74 68 65 20 |modified| at the |
|00000880| 4c 69 6e 63 6f 6c 6e 2d | 53 75 64 62 75 72 79 0a |Lincoln-|Sudbury.|
|00000890| 58 52 65 67 69 6f 6e 61 | 6c 20 48 69 67 68 20 53 |XRegiona|l High S|
|000008a0| 63 68 6f 6f 6c 2e 0a 58 | 2e 50 50 0a 58 54 68 65 |chool..X|.PP.XThe|
|000008b0| 20 70 6f 77 65 72 20 6f | 66 20 4c 6f 67 6f 20 63 | power o|f Logo c|
|000008c0| 6f 6d 65 73 20 70 72 69 | 6d 61 72 69 6c 79 20 66 |omes pri|marily f|
|000008d0| 72 6f 6d 20 74 68 65 20 | 69 64 65 61 20 6f 66 20 |rom the |idea of |
|000008e0| 74 68 65 20 5c 66 32 70 | 72 6f 63 65 64 75 72 65 |the \f2p|rocedure|
|000008f0| 5c 66 31 2e 20 20 41 0a | 58 70 72 6f 63 65 64 75 |\f1. A.|Xprocedu|
|00000900| 72 65 20 69 73 20 73 69 | 6d 70 6c 79 20 73 6f 6d |re is si|mply som|
|00000910| 65 74 68 69 6e 67 20 74 | 68 65 20 63 6f 6d 70 75 |ething t|he compu|
|00000920| 74 65 72 20 22 6b 6e 6f | 77 73 22 20 68 6f 77 20 |ter "kno|ws" how |
|00000930| 74 6f 20 64 6f 3b 20 73 | 6f 6d 65 0a 58 70 72 6f |to do; s|ome.Xpro|
|00000940| 63 65 64 75 72 65 73 20 | 61 72 65 20 62 75 69 6c |cedures |are buil|
|00000950| 74 20 69 6e 74 6f 20 4c | 6f 67 6f 20 69 74 73 65 |t into L|ogo itse|
|00000960| 6c 66 20 28 74 68 65 73 | 65 20 61 72 65 20 63 61 |lf (thes|e are ca|
|00000970| 6c 6c 65 64 20 5c 66 32 | 70 72 69 6d 69 74 69 76 |lled \f2|primitiv|
|00000980| 65 5c 66 31 0a 58 70 72 | 6f 63 65 64 75 72 65 73 |e\f1.Xpr|ocedures|
|00000990| 29 2c 20 77 68 69 6c 65 | 20 6f 74 68 65 72 73 20 |), while| others |
|000009a0| 61 72 65 20 5c 66 32 64 | 65 66 69 6e 65 64 5c 66 |are \f2d|efined\f|
|000009b0| 31 20 62 79 20 74 68 65 | 20 70 72 6f 67 72 61 6d |1 by the| program|
|000009c0| 6d 65 72 20 69 6e 20 74 | 65 72 6d 73 20 6f 66 0a |mer in t|erms of.|
|000009d0| 58 74 68 65 73 65 20 73 | 69 6d 70 6c 65 20 70 72 |Xthese s|imple pr|
|000009e0| 6f 63 65 64 75 72 65 73 | 2e 20 20 44 65 66 69 6e |ocedures|. Defin|
|000009f0| 65 64 20 70 72 6f 63 65 | 64 75 72 65 73 20 63 61 |ed proce|dures ca|
|00000a00| 6e 20 62 65 20 75 73 65 | 64 20 61 73 20 70 61 72 |n be use|d as par|
|00000a10| 74 20 6f 66 20 74 68 65 | 0a 58 64 65 66 69 6e 69 |t of the|.Xdefini|
|00000a20| 74 69 6f 6e 20 6f 66 20 | 6f 74 68 65 72 20 70 72 |tion of |other pr|
|00000a30| 6f 63 65 64 75 72 65 73 | 2c 20 73 6f 20 74 68 61 |ocedures|, so tha|
|00000a40| 74 20 61 20 63 6f 6d 70 | 6c 69 63 61 74 65 64 20 |t a comp|licated |
|00000a50| 70 72 6f 67 72 61 6d 20 | 63 61 6e 20 62 65 20 62 |program |can be b|
|00000a60| 75 69 6c 74 0a 58 69 6e | 20 22 6c 61 79 65 72 73 |uilt.Xin| "layers|
|00000a70| 22 20 6f 66 20 63 6f 6d | 70 6c 65 78 69 74 79 2e |" of com|plexity.|
|00000a80| 20 20 54 68 69 73 20 6c | 61 79 65 72 65 64 20 73 | This l|ayered s|
|00000a90| 74 72 75 63 74 75 72 65 | 20 69 73 20 61 6e 61 6c |tructure| is anal|
|00000aa0| 6f 67 6f 75 73 20 74 6f | 20 74 68 65 0a 58 64 65 |ogous to| the.Xde|
|00000ab0| 73 63 72 69 70 74 69 6f | 6e 20 6f 66 20 61 20 63 |scriptio|n of a c|
|00000ac0| 6f 6d 70 6c 65 78 20 6d | 61 63 68 69 6e 65 20 69 |omplex m|achine i|
|00000ad0| 6e 20 74 65 72 6d 73 20 | 6f 66 20 62 75 69 6c 64 |n terms |of build|
|00000ae0| 69 6e 67 20 62 6c 6f 63 | 6b 73 3a 20 61 6e 20 61 |ing bloc|ks: an a|
|00000af0| 75 74 6f 6d 6f 62 69 6c | 65 0a 58 69 73 20 6d 61 |utomobil|e.Xis ma|
|00000b00| 64 65 20 6f 66 20 61 20 | 63 68 61 73 73 69 73 2c |de of a |chassis,|
|00000b10| 20 61 20 64 72 69 76 65 | 20 74 72 61 69 6e 2c 20 | a drive| train, |
|00000b20| 61 6e 20 65 6c 65 63 74 | 72 69 63 61 6c 20 73 79 |an elect|rical sy|
|00000b30| 73 74 65 6d 2c 20 61 6e | 64 20 73 6f 20 6f 6e 2e |stem, an|d so on.|
|00000b40| 20 20 54 68 65 0a 58 64 | 72 69 76 65 20 74 72 61 | The.Xd|rive tra|
|00000b50| 69 6e 20 63 6f 6e 74 61 | 69 6e 73 20 61 6e 20 65 |in conta|ins an e|
|00000b60| 6e 67 69 6e 65 2c 20 61 | 20 74 72 61 6e 73 6d 69 |ngine, a| transmi|
|00000b70| 73 73 69 6f 6e 2c 20 61 | 20 63 6c 75 74 63 68 2c |ssion, a| clutch,|
|00000b80| 20 61 6e 20 61 78 6c 65 | 2c 20 61 6e 64 20 73 6f | an axle|, and so|
|00000b90| 0a 58 6f 6e 2e 20 20 54 | 68 65 20 74 72 61 6e 73 |.Xon. T|he trans|
|00000ba0| 6d 69 73 73 69 6f 6e 20 | 63 6f 6e 74 61 69 6e 73 |mission |contains|
|00000bb0| 20 61 20 68 6f 75 73 69 | 6e 67 2c 20 67 65 61 72 | a housi|ng, gear|
|00000bc0| 73 2c 20 61 6e 64 20 6c | 65 76 65 72 73 2e 20 20 |s, and l|evers. |
|00000bd0| 41 20 6c 65 76 65 72 20 | 6d 61 79 0a 58 69 6e 63 |A lever |may.Xinc|
|00000be0| 6c 75 64 65 20 63 6f 6e | 6e 65 63 74 69 6e 67 20 |lude con|necting |
|00000bf0| 6a 6f 69 6e 74 73 20 61 | 74 20 74 68 65 20 65 6e |joints a|t the en|
|00000c00| 64 73 20 61 6e 64 20 61 | 74 20 61 20 70 69 76 6f |ds and a|t a pivo|
|00000c10| 74 20 70 6f 69 6e 74 2e | 20 20 45 76 65 6e 74 75 |t point.| Eventu|
|00000c20| 61 6c 6c 79 20 74 68 65 | 0a 58 64 65 73 63 72 69 |ally the|.Xdescri|
|00000c30| 70 74 69 6f 6e 20 6f 66 | 20 74 68 65 20 61 75 74 |ption of| the aut|
|00000c40| 6f 6d 6f 62 69 6c 65 20 | 72 65 61 63 68 65 73 20 |omobile |reaches |
|00000c50| 74 68 65 20 6c 65 76 65 | 6c 20 6f 66 20 62 6f 6c |the leve|l of bol|
|00000c60| 74 73 20 61 6e 64 20 77 | 61 73 68 65 72 73 3b 20 |ts and w|ashers; |
|00000c70| 74 68 65 73 65 0a 58 63 | 6f 72 72 65 73 70 6f 6e |these.Xc|orrespon|
|00000c80| 64 20 74 6f 20 74 68 65 | 20 70 72 69 6d 69 74 69 |d to the| primiti|
|00000c90| 76 65 20 70 72 6f 63 65 | 64 75 72 65 73 20 69 6e |ve proce|dures in|
|00000ca0| 20 4c 6f 67 6f 2e 0a 58 | 2e 50 50 0a 58 2e 55 42 | Logo..X|.PP.X.UB|
|00000cb0| 20 22 53 74 61 72 74 69 | 6e 67 20 4c 6f 67 6f 2e | "Starti|ng Logo.|
|00000cc0| 22 0a 58 55 73 65 20 74 | 68 65 20 73 68 65 6c 6c |".XUse t|he shell|
|00000cd0| 20 63 6f 6d 6d 61 6e 64 | 20 5c 66 33 6c 6f 67 6f | command| \f3logo|
|00000ce0| 5c 66 31 20 74 6f 20 73 | 74 61 72 74 20 74 68 65 |\f1 to s|tart the|
|00000cf0| 20 4c 6f 67 6f 0a 58 69 | 6e 74 65 72 70 72 65 74 | Logo.Xi|nterpret|
|00000d00| 65 72 2e 20 20 57 68 65 | 6e 20 4c 6f 67 6f 20 69 |er. Whe|n Logo i|
|00000d10| 73 20 72 75 6e 6e 69 6e | 67 20 69 74 20 77 69 6c |s runnin|g it wil|
|00000d20| 6c 20 70 72 69 6e 74 20 | 61 20 71 75 65 73 74 69 |l print |a questi|
|00000d30| 6f 6e 20 6d 61 72 6b 20 | 28 3f 29 20 61 74 20 74 |on mark |(?) at t|
|00000d40| 68 65 0a 58 62 65 67 69 | 6e 6e 69 6e 67 20 6f 66 |he.Xbegi|nning of|
|00000d50| 20 61 20 6c 69 6e 65 20 | 74 6f 20 69 6e 64 69 63 | a line |to indic|
|00000d60| 61 74 65 20 74 68 61 74 | 20 69 74 20 69 73 20 72 |ate that| it is r|
|00000d70| 65 61 64 79 20 66 6f 72 | 20 79 6f 75 20 74 6f 20 |eady for| you to |
|00000d80| 74 79 70 65 20 69 6e 20 | 61 20 4c 6f 67 6f 0a 58 |type in |a Logo.X|
|00000d90| 69 6e 73 74 72 75 63 74 | 69 6f 6e 2e 20 20 54 68 |instruct|ion. Th|
|00000da0| 65 20 69 6e 73 74 72 75 | 63 74 69 6f 6e 20 6d 61 |e instru|ction ma|
|00000db0| 79 20 70 72 69 6e 74 20 | 73 6f 6d 65 74 68 69 6e |y print |somethin|
|00000dc0| 67 20 6f 6e 20 74 68 65 | 20 74 65 72 6d 69 6e 61 |g on the| termina|
|00000dd0| 6c 2c 20 6f 72 20 64 72 | 61 77 20 61 0a 58 6c 69 |l, or dr|aw a.Xli|
|00000de0| 6e 65 20 6f 6e 20 61 20 | 67 72 61 70 68 69 63 73 |ne on a |graphics|
|00000df0| 20 64 69 73 70 6c 61 79 | 20 73 63 72 65 65 6e 2c | display| screen,|
|00000e00| 20 6f 72 20 6d 6f 76 65 | 20 61 20 74 75 72 74 6c | or move| a turtl|
|00000e10| 65 20 61 72 6f 75 6e 64 | 20 74 68 65 20 66 6c 6f |e around| the flo|
|00000e20| 6f 72 2e 20 20 54 68 65 | 6e 0a 58 61 6e 6f 74 68 |or. The|n.Xanoth|
|00000e30| 65 72 20 71 75 65 73 74 | 69 6f 6e 20 6d 61 72 6b |er quest|ion mark|
|00000e40| 20 69 73 20 74 79 70 65 | 64 20 61 6e 64 20 79 6f | is type|d and yo|
|00000e50| 75 20 6d 61 79 20 67 69 | 76 65 20 61 6e 6f 74 68 |u may gi|ve anoth|
|00000e60| 65 72 20 69 6e 73 74 72 | 75 63 74 69 6f 6e 2e 20 |er instr|uction. |
|00000e70| 20 28 49 66 20 4c 6f 67 | 6f 0a 58 70 72 69 6e 74 | (If Log|o.Xprint|
|00000e80| 73 20 61 20 22 67 72 65 | 61 74 65 72 20 74 68 61 |s a "gre|ater tha|
|00000e90| 6e 22 20 73 69 67 6e 20 | 28 3e 29 20 69 6e 73 74 |n" sign |(>) inst|
|00000ea0| 65 61 64 20 6f 66 20 61 | 20 71 75 65 73 74 69 6f |ead of a| questio|
|00000eb0| 6e 20 6d 61 72 6b 2c 20 | 69 74 20 69 73 0a 58 69 |n mark, |it is.Xi|
|00000ec0| 6e 20 5c 66 32 70 72 6f | 63 65 64 75 72 65 20 64 |n \f2pro|cedure d|
|00000ed0| 65 66 69 6e 69 74 69 6f | 6e 20 6d 6f 64 65 5c 66 |efinitio|n mode\f|
|00000ee0| 31 2c 0a 58 77 68 69 63 | 68 20 77 69 6c 6c 20 62 |1,.Xwhic|h will b|
|00000ef0| 65 20 64 65 73 63 72 69 | 62 65 64 20 6c 61 74 65 |e descri|bed late|
|00000f00| 72 2e 20 20 54 79 70 65 | 20 79 6f 75 72 20 73 79 |r. Type| your sy|
|00000f10| 73 74 65 6d 20 71 75 69 | 74 20 63 68 61 72 61 63 |stem qui|t charac|
|00000f20| 74 65 72 0a 58 28 63 6f | 6e 74 72 6f 6c 2d 47 20 |ter.X(co|ntrol-G |
|00000f30| 61 74 20 4c 69 6e 63 6f | 6c 6e 2d 53 75 64 62 75 |at Linco|ln-Sudbu|
|00000f40| 72 79 29 20 74 6f 20 72 | 65 74 75 72 6e 20 74 6f |ry) to r|eturn to|
|00000f50| 20 6e 6f 72 6d 61 6c 20 | 6d 6f 64 65 2e 29 0a 58 | normal |mode.).X|
|00000f60| 2e 50 50 0a 58 49 66 20 | 61 6e 20 61 72 67 75 6d |.PP.XIf |an argum|
|00000f70| 65 6e 74 20 69 73 20 75 | 73 65 64 20 77 69 74 68 |ent is u|sed with|
|00000f80| 20 74 68 65 20 73 68 65 | 6c 6c 20 63 6f 6d 6d 61 | the she|ll comma|
|00000f90| 6e 64 20 5c 66 33 6c 6f | 67 6f 5c 66 31 2c 20 74 |nd \f3lo|go\f1, t|
|00000fa0| 68 65 20 61 72 67 75 6d | 65 6e 74 20 69 73 0a 58 |he argum|ent is.X|
|00000fb0| 74 61 6b 65 6e 20 61 73 | 20 74 68 65 20 6e 61 6d |taken as| the nam|
|00000fc0| 65 20 6f 66 20 61 20 70 | 72 6f 63 65 64 75 72 65 |e of a p|rocedure|
|00000fd0| 2c 20 77 68 69 63 68 20 | 4c 6f 67 6f 20 72 75 6e |, which |Logo run|
|00000fe0| 73 20 62 65 66 6f 72 65 | 20 64 6f 69 6e 67 20 61 |s before| doing a|
|00000ff0| 6e 79 74 68 69 6e 67 0a | 58 65 6c 73 65 2e 20 20 |nything.|Xelse. |
|00001000| 59 6f 75 20 63 61 6e 20 | 74 68 65 72 65 66 6f 72 |You can |therefor|
|00001010| 65 20 63 72 65 61 74 65 | 20 61 20 73 68 65 6c 6c |e create| a shell|
|00001020| 20 73 63 72 69 70 74 20 | 77 68 69 63 68 20 77 69 | script |which wi|
|00001030| 6c 6c 20 73 74 61 72 74 | 20 4c 6f 67 6f 2c 20 72 |ll start| Logo, r|
|00001040| 75 6e 0a 58 61 20 70 72 | 6f 63 65 64 75 72 65 20 |un.Xa pr|ocedure |
|00001050| 61 75 74 6f 6d 61 74 69 | 63 61 6c 6c 79 2c 20 61 |automati|cally, a|
|00001060| 6e 64 20 28 69 66 20 79 | 6f 75 20 73 61 79 20 22 |nd (if y|ou say "|
|00001070| 67 6f 6f 64 62 79 65 22 | 20 61 74 20 74 68 65 20 |goodbye"| at the |
|00001080| 65 6e 64 20 6f 66 20 74 | 68 65 0a 58 70 72 6f 63 |end of t|he.Xproc|
|00001090| 65 64 75 72 65 29 20 65 | 78 69 74 2e 0a 58 2e 50 |edure) e|xit..X.P|
|000010a0| 50 0a 58 2e 55 42 20 22 | 53 79 6e 74 61 78 2e 22 |P.X.UB "|Syntax."|
|000010b0| 0a 58 55 6e 6c 69 6b 65 | 20 6d 6f 73 74 20 63 6f |.XUnlike| most co|
|000010c0| 6d 70 75 74 65 72 20 6c | 61 6e 67 75 61 67 65 73 |mputer l|anguages|
|000010d0| 2c 20 4c 6f 67 6f 20 68 | 61 73 20 61 6e 20 61 6c |, Logo h|as an al|
|000010e0| 6d 6f 73 74 0a 58 65 6e | 74 69 72 65 6c 79 20 75 |most.Xen|tirely u|
|000010f0| 6e 69 66 6f 72 6d 0a 58 | 73 79 6e 74 61 78 2e 20 |niform.X|syntax. |
|00001100| 20 54 68 61 74 20 69 73 | 2c 20 61 6c 6c 20 6f 66 | That is|, all of|
|00001110| 20 74 68 65 20 64 69 66 | 66 65 72 65 6e 74 20 63 | the dif|ferent c|
|00001120| 6f 6d 6d 61 6e 64 73 20 | 4c 6f 67 6f 20 75 6e 64 |ommands |Logo und|
|00001130| 65 72 73 74 61 6e 64 73 | 20 61 72 65 0a 58 72 65 |erstands| are.Xre|
|00001140| 70 72 65 73 65 6e 74 65 | 64 20 75 73 69 6e 67 20 |presente|d using |
|00001150| 74 68 65 20 73 61 6d 65 | 20 6e 6f 74 61 74 69 6f |the same| notatio|
|00001160| 6e 3a 20 74 68 65 20 6e | 61 6d 65 20 6f 66 20 61 |n: the n|ame of a|
|00001170| 20 70 72 6f 63 65 64 75 | 72 65 20 69 73 20 66 6f | procedu|re is fo|
|00001180| 6c 6c 6f 77 65 64 20 62 | 79 0a 58 69 74 73 20 5c |llowed b|y.Xits \|
|00001190| 66 32 69 6e 70 75 74 73 | 5c 66 31 2c 20 77 68 69 |f2inputs|\f1, whi|
|000011a0| 63 68 20 6d 61 79 20 62 | 65 20 5c 66 32 63 6f 6e |ch may b|e \f2con|
|000011b0| 73 74 61 6e 74 73 5c 66 | 31 20 28 6c 69 6b 65 20 |stants\f|1 (like |
|000011c0| 6e 75 6d 62 65 72 73 29 | 20 6f 72 20 65 6c 73 65 |numbers)| or else|
|000011d0| 20 6d 61 79 0a 58 62 65 | 20 74 68 65 20 72 65 73 | may.Xbe| the res|
|000011e0| 75 6c 74 73 20 6f 66 20 | 75 73 69 6e 67 20 6f 74 |ults of |using ot|
|000011f0| 68 65 72 20 70 72 6f 63 | 65 64 75 72 65 73 2e 20 |her proc|edures. |
|00001200| 20 48 65 72 65 20 69 73 | 20 61 20 73 69 6d 70 6c | Here is| a simpl|
|00001210| 65 20 65 78 61 6d 70 6c | 65 3a 0a 58 2e 45 58 0a |e exampl|e:.X.EX.|
|00001220| 58 70 72 69 6e 74 20 22 | 68 65 6c 6c 6f 0a 58 2e |Xprint "|hello.X.|
|00001230| 45 43 0a 58 49 6e 20 74 | 68 69 73 20 4c 6f 67 6f |EC.XIn t|his Logo|
|00001240| 20 69 6e 73 74 72 75 63 | 74 69 6f 6e 2c 20 74 68 | instruc|tion, th|
|00001250| 65 20 70 72 69 6d 69 74 | 69 76 65 20 70 72 6f 63 |e primit|ive proc|
|00001260| 65 64 75 72 65 20 5c 66 | 33 70 72 69 6e 74 5c 66 |edure \f|3print\f|
|00001270| 31 20 69 73 20 75 73 65 | 64 20 77 69 74 68 0a 58 |1 is use|d with.X|
|00001280| 61 20 63 6f 6e 73 74 61 | 6e 74 20 69 6e 70 75 74 |a consta|nt input|
|00001290| 2c 20 74 68 65 20 77 6f | 72 64 20 5c 66 33 68 65 |, the wo|rd \f3he|
|000012a0| 6c 6c 6f 5c 66 31 2e 20 | 20 54 68 65 20 71 75 6f |llo\f1. | The quo|
|000012b0| 74 61 74 69 6f 6e 20 6d | 61 72 6b 20 69 6e 64 69 |tation m|ark indi|
|000012c0| 63 61 74 65 73 20 74 68 | 61 74 0a 58 5c 66 33 68 |cates th|at.X\f3h|
|000012d0| 65 6c 6c 6f 5c 66 31 20 | 69 73 20 62 65 69 6e 67 |ello\f1 |is being|
|000012e0| 20 75 73 65 64 20 74 6f | 20 72 65 70 72 65 73 65 | used to| represe|
|000012f0| 6e 74 20 74 68 65 20 77 | 6f 72 64 20 69 74 73 65 |nt the w|ord itse|
|00001300| 6c 66 3b 20 77 69 74 68 | 6f 75 74 20 74 68 65 0a |lf; with|out the.|
|00001310| 58 71 75 6f 74 61 74 69 | 6f 6e 20 6d 61 72 6b 20 |Xquotati|on mark |
|00001320| 69 74 20 77 6f 75 6c 64 | 20 68 61 76 65 20 62 65 |it would| have be|
|00001330| 65 6e 20 69 6e 74 65 72 | 70 72 65 74 65 64 20 61 |en inter|preted a|
|00001340| 73 20 74 68 65 20 6e 61 | 6d 65 20 6f 66 20 61 20 |s the na|me of a |
|00001350| 70 72 6f 63 65 64 75 72 | 65 2c 0a 58 6a 75 73 74 |procedur|e,.Xjust|
|00001360| 20 61 73 20 5c 66 33 70 | 72 69 6e 74 5c 66 31 20 | as \f3p|rint\f1 |
|00001370| 69 73 20 74 68 65 20 6e | 61 6d 65 20 6f 66 20 61 |is the n|ame of a|
|00001380| 20 70 72 6f 63 65 64 75 | 72 65 2e 20 20 49 6e 20 | procedu|re. In |
|00001390| 4c 6f 67 6f 2c 20 74 68 | 65 20 5c 66 33 70 72 69 |Logo, th|e \f3pri|
|000013a0| 6e 74 5c 66 31 0a 58 70 | 72 6f 63 65 64 75 72 65 |nt\f1.Xp|rocedure|
|000013b0| 20 61 6c 77 61 79 73 20 | 72 65 71 75 69 72 65 73 | always |requires|
|000013c0| 20 65 78 61 63 74 6c 79 | 20 6f 6e 65 20 69 6e 70 | exactly| one inp|
|000013d0| 75 74 2c 20 77 68 69 63 | 68 20 69 73 20 74 68 65 |ut, whic|h is the|
|000013e0| 20 74 68 69 6e 67 20 74 | 6f 20 70 72 69 6e 74 2e | thing t|o print.|
|000013f0| 20 20 54 68 65 0a 58 69 | 6e 70 75 74 20 63 61 6e | The.Xi|nput can|
|00001400| 20 62 65 20 61 20 5c 66 | 32 77 6f 72 64 5c 66 31 | be a \f|2word\f1|
|00001410| 2c 20 61 73 20 69 6e 20 | 74 68 69 73 20 65 78 61 |, as in |this exa|
|00001420| 6d 70 6c 65 2c 20 6f 72 | 20 61 20 5c 66 32 6c 69 |mple, or| a \f2li|
|00001430| 73 74 5c 66 31 2c 20 77 | 68 69 63 68 20 77 69 6c |st\f1, w|hich wil|
|00001440| 6c 0a 58 62 65 20 65 78 | 70 6c 61 69 6e 65 64 20 |l.Xbe ex|plained |
|00001450| 6c 61 74 65 72 2e 20 20 | 28 41 20 5c 66 32 6e 75 |later. |(A \f2nu|
|00001460| 6d 62 65 72 5c 66 31 20 | 69 73 20 61 20 73 70 65 |mber\f1 |is a spe|
|00001470| 63 69 61 6c 20 63 61 73 | 65 20 6f 66 20 61 20 77 |cial cas|e of a w|
|00001480| 6f 72 64 2c 20 61 6e 64 | 20 61 0a 58 5c 66 32 73 |ord, and| a.X\f2s|
|00001490| 65 6e 74 65 6e 63 65 5c | 66 31 20 69 73 20 61 20 |entence\|f1 is a |
|000014a0| 73 70 65 63 69 61 6c 20 | 63 61 73 65 20 6f 66 20 |special |case of |
|000014b0| 61 20 6c 69 73 74 2e 29 | 20 20 48 65 72 65 20 69 |a list.)| Here i|
|000014c0| 73 20 61 6e 6f 74 68 65 | 72 20 65 78 61 6d 70 6c |s anothe|r exampl|
|000014d0| 65 3a 0a 58 2e 45 58 0a | 58 70 72 69 6e 74 20 66 |e:.X.EX.|Xprint f|
|000014e0| 69 72 73 74 20 22 68 65 | 6c 6c 6f 0a 58 2e 45 43 |irst "he|llo.X.EC|
|000014f0| 0a 58 49 6e 20 74 68 69 | 73 20 69 6e 73 74 72 75 |.XIn thi|s instru|
|00001500| 63 74 69 6f 6e 2c 20 74 | 68 65 20 70 72 69 6d 69 |ction, t|he primi|
|00001510| 74 69 76 65 20 70 72 6f | 63 65 64 75 72 65 20 5c |tive pro|cedure \|
|00001520| 66 33 66 69 72 73 74 5c | 66 31 20 69 73 20 75 73 |f3first\|f1 is us|
|00001530| 65 64 2e 20 20 54 68 69 | 73 0a 58 70 72 6f 63 65 |ed. Thi|s.Xproce|
|00001540| 64 75 72 65 20 74 61 6b | 65 73 20 6f 6e 65 20 69 |dure tak|es one i|
|00001550| 6e 70 75 74 2c 20 61 20 | 77 6f 72 64 2c 20 61 6e |nput, a |word, an|
|00001560| 64 20 68 61 73 20 61 6e | 20 5c 66 32 6f 75 74 70 |d has an| \f2outp|
|00001570| 75 74 5c 66 31 20 77 68 | 69 63 68 20 69 73 20 74 |ut\f1 wh|ich is t|
|00001580| 68 65 0a 58 66 69 72 73 | 74 20 6c 65 74 74 65 72 |he.Xfirs|t letter|
|00001590| 20 6f 66 20 74 68 65 20 | 77 6f 72 64 2e 20 20 54 | of the |word. T|
|000015a0| 68 65 20 6f 75 74 70 75 | 74 20 66 72 6f 6d 20 5c |he outpu|t from \|
|000015b0| 66 33 66 69 72 73 74 5c | 66 31 20 69 73 20 75 73 |f3first\|f1 is us|
|000015c0| 65 64 20 61 73 20 74 68 | 65 20 69 6e 70 75 74 0a |ed as th|e input.|
|000015d0| 58 74 6f 20 5c 66 33 70 | 72 69 6e 74 5c 66 31 2c |Xto \f3p|rint\f1,|
|000015e0| 20 73 6f 20 77 68 61 74 | 20 69 73 20 70 72 69 6e | so what| is prin|
|000015f0| 74 65 64 20 69 73 20 74 | 68 65 20 6c 65 74 74 65 |ted is t|he lette|
|00001600| 72 20 5c 66 33 68 5c 66 | 31 20 72 61 74 68 65 72 |r \f3h\f|1 rather|
|00001610| 20 74 68 61 6e 20 74 68 | 65 0a 58 77 6f 72 64 20 | than th|e.Xword |
|00001620| 5c 66 33 68 65 6c 6c 6f | 5c 66 31 20 61 73 20 69 |\f3hello|\f1 as i|
|00001630| 6e 20 74 68 65 20 65 61 | 72 6c 69 65 72 20 65 78 |n the ea|rlier ex|
|00001640| 61 6d 70 6c 65 2e 0a 58 | 2e 50 50 0a 58 44 6f 6e |ample..X|.PP.XDon|
|00001650| 27 74 20 63 6f 6e 66 75 | 73 65 20 74 68 65 20 5c |'t confu|se the \|
|00001660| 66 32 6f 75 74 70 75 74 | 5c 66 31 20 66 72 6f 6d |f2output|\f1 from|
|00001670| 20 61 20 70 72 6f 63 65 | 64 75 72 65 20 77 69 74 | a proce|dure wit|
|00001680| 68 20 77 68 61 74 20 69 | 73 20 5c 66 32 70 72 69 |h what i|s \f2pri|
|00001690| 6e 74 65 64 5c 66 31 0a | 58 62 79 20 74 68 65 20 |nted\f1.|Xby the |
|000016a0| 5c 66 33 70 72 69 6e 74 | 5c 66 31 20 63 6f 6d 6d |\f3print|\f1 comm|
|000016b0| 61 6e 64 2e 20 20 49 6e | 20 4c 6f 67 6f 2c 20 74 |and. In| Logo, t|
|000016c0| 68 65 20 77 6f 72 64 20 | 22 6f 75 74 70 75 74 22 |he word |"output"|
|000016d0| 20 69 73 20 6e 6f 74 20 | 75 73 65 64 20 74 6f 0a | is not |used to.|
|000016e0| 58 72 65 66 65 72 20 74 | 6f 20 77 68 61 74 20 69 |Xrefer t|o what i|
|000016f0| 73 20 70 72 69 6e 74 65 | 64 20 62 79 20 61 20 70 |s printe|d by a p|
|00001700| 72 6f 67 72 61 6d 2c 20 | 6a 75 73 74 20 61 73 20 |rogram, |just as |
|00001710| 74 68 65 20 77 6f 72 64 | 20 22 69 6e 70 75 74 22 |the word| "input"|
|00001720| 20 64 6f 65 73 20 6e 6f | 74 0a 58 6d 65 61 6e 20 | does no|t.Xmean |
|00001730| 73 6f 6d 65 74 68 69 6e | 67 20 79 6f 75 20 74 79 |somethin|g you ty|
|00001740| 70 65 20 69 6e 74 6f 20 | 74 68 65 20 70 72 6f 67 |pe into |the prog|
|00001750| 72 61 6d 2e 20 20 49 6e | 73 74 65 61 64 2c 20 74 |ram. In|stead, t|
|00001760| 68 65 73 65 20 77 6f 72 | 64 73 20 72 65 66 65 72 |hese wor|ds refer|
|00001770| 20 74 6f 0a 58 6f 62 6a | 65 63 74 73 20 28 77 6f | to.Xobj|ects (wo|
|00001780| 72 64 73 20 6f 72 20 6c | 69 73 74 73 29 20 77 68 |rds or l|ists) wh|
|00001790| 69 63 68 20 61 72 65 20 | 67 69 76 65 6e 20 74 6f |ich are |given to|
|000017a0| 20 61 20 70 72 6f 63 65 | 64 75 72 65 20 28 69 6e | a proce|dure (in|
|000017b0| 70 75 74 73 29 20 6f 72 | 0a 58 70 72 6f 64 75 63 |puts) or|.Xproduc|
|000017c0| 65 64 20 62 79 20 61 20 | 70 72 6f 63 65 64 75 72 |ed by a |procedur|
|000017d0| 65 20 28 6f 75 74 70 75 | 74 73 29 2e 20 20 41 20 |e (outpu|ts). A |
|000017e0| 70 61 72 74 69 63 75 6c | 61 72 20 70 72 6f 63 65 |particul|ar proce|
|000017f0| 64 75 72 65 20 68 61 73 | 20 61 20 66 69 78 65 64 |dure has| a fixed|
|00001800| 0a 58 6e 75 6d 62 65 72 | 20 6f 66 20 69 6e 70 75 |.Xnumber| of inpu|
|00001810| 74 73 20 61 6e 64 20 6f | 75 74 70 75 74 73 2e 20 |ts and o|utputs. |
|00001820| 20 54 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 69 | The num|ber of i|
|00001830| 6e 70 75 74 73 20 6d 61 | 79 20 62 65 20 61 6e 79 |nputs ma|y be any|
|00001840| 74 68 69 6e 67 2c 0a 58 | 69 6e 63 6c 75 64 69 6e |thing,.X|includin|
|00001850| 67 20 7a 65 72 6f 2c 20 | 77 68 65 72 65 61 73 20 |g zero, |whereas |
|00001860| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 6f 75 |the numb|er of ou|
|00001870| 74 70 75 74 73 20 69 73 | 20 65 69 74 68 65 72 20 |tputs is| either |
|00001880| 7a 65 72 6f 20 6f 72 20 | 6f 6e 65 2e 20 20 41 0a |zero or |one. A.|
|00001890| 58 70 72 6f 63 65 64 75 | 72 65 20 77 69 74 68 20 |Xprocedu|re with |
|000018a0| 61 6e 20 6f 75 74 70 75 | 74 20 28 6c 69 6b 65 20 |an outpu|t (like |
|000018b0| 5c 66 33 66 69 72 73 74 | 5c 66 31 29 20 69 73 20 |\f3first|\f1) is |
|000018c0| 63 61 6c 6c 65 64 20 61 | 6e 20 5c 66 32 6f 70 65 |called a|n \f2ope|
|000018d0| 72 61 74 69 6f 6e 5c 66 | 31 3b 20 6f 6e 65 0a 58 |ration\f|1; one.X|
|000018e0| 77 69 74 68 6f 75 74 20 | 61 6e 20 6f 75 74 70 75 |without |an outpu|
|000018f0| 74 20 28 6c 69 6b 65 20 | 5c 66 33 70 72 69 6e 74 |t (like |\f3print|
|00001900| 5c 66 31 29 20 69 73 20 | 63 61 6c 6c 65 64 20 61 |\f1) is |called a|
|00001910| 20 5c 66 32 63 6f 6d 6d | 61 6e 64 5c 66 31 2e 0a | \f2comm|and\f1..|
|00001920| 58 2e 50 50 0a 58 53 6f | 6d 65 20 6f 70 65 72 61 |X.PP.XSo|me opera|
|00001930| 74 69 6f 6e 73 20 6f 6e | 6c 79 20 68 61 76 65 20 |tions on|ly have |
|00001940| 74 77 6f 20 70 6f 73 73 | 69 62 6c 65 20 6f 75 74 |two poss|ible out|
|00001950| 70 75 74 73 3a 20 74 68 | 65 20 77 6f 72 64 20 5c |puts: th|e word \|
|00001960| 66 33 74 72 75 65 5c 66 | 31 20 61 6e 64 0a 58 74 |f3true\f|1 and.Xt|
|00001970| 68 65 20 77 6f 72 64 20 | 5c 66 33 66 61 6c 73 65 |he word |\f3false|
|00001980| 5c 66 31 2e 20 20 53 75 | 63 68 20 61 20 70 72 6f |\f1. Su|ch a pro|
|00001990| 63 65 64 75 72 65 20 69 | 73 20 63 61 6c 6c 65 64 |cedure i|s called|
|000019a0| 20 61 20 5c 66 32 70 72 | 65 64 69 63 61 74 65 5c | a \f2pr|edicate\|
|000019b0| 66 31 2e 20 20 50 72 65 | 64 69 63 61 74 65 73 0a |f1. Pre|dicates.|
|000019c0| 58 61 72 65 20 75 73 65 | 64 20 74 6f 20 61 6c 6c |Xare use|d to all|
|000019d0| 6f 77 20 61 20 70 72 6f | 67 72 61 6d 20 74 6f 20 |ow a pro|gram to |
|000019e0| 63 61 72 72 79 20 6f 75 | 74 20 73 6f 6d 65 20 69 |carry ou|t some i|
|000019f0| 6e 73 74 72 75 63 74 69 | 6f 6e 20 6f 6e 6c 79 20 |nstructi|on only |
|00001a00| 69 66 20 61 0a 58 70 61 | 72 74 69 63 75 6c 61 72 |if a.Xpa|rticular|
|00001a10| 20 63 6f 6e 64 69 74 69 | 6f 6e 20 69 73 20 6d 65 | conditi|on is me|
|00001a20| 74 2e 20 20 42 79 20 63 | 6f 6e 76 65 6e 74 69 6f |t. By c|onventio|
|00001a30| 6e 2c 20 70 72 65 64 69 | 63 61 74 65 73 20 67 65 |n, predi|cates ge|
|00001a40| 6e 65 72 61 6c 6c 79 20 | 68 61 76 65 0a 58 6e 61 |nerally |have.Xna|
|00001a50| 6d 65 73 20 65 6e 64 69 | 6e 67 20 77 69 74 68 20 |mes endi|ng with |
|00001a60| 74 68 65 20 6c 65 74 74 | 65 72 20 22 70 22 2e 0a |the lett|er "p"..|
|00001a70| 58 2e 50 50 0a 58 2e 55 | 42 20 22 4d 75 6c 74 69 |X.PP.X.U|B "Multi|
|00001a80| 70 6c 65 20 69 6e 70 75 | 74 73 20 74 6f 20 6f 70 |ple inpu|ts to op|
|00001a90| 65 72 61 74 69 6f 6e 73 | 2e 22 0a 58 53 65 76 65 |erations|.".XSeve|
|00001aa0| 72 61 6c 20 4c 6f 67 6f | 20 70 72 69 6d 69 74 69 |ral Logo| primiti|
|00001ab0| 76 65 20 70 72 6f 63 65 | 64 75 72 65 73 20 61 72 |ve proce|dures ar|
|00001ac0| 65 0a 58 6f 70 65 72 61 | 74 69 6f 6e 73 20 77 69 |e.Xopera|tions wi|
|00001ad0| 74 68 20 74 77 6f 20 69 | 6e 70 75 74 73 2e 20 20 |th two i|nputs. |
|00001ae0| 54 68 65 20 61 72 69 74 | 68 6d 65 74 69 63 20 6f |The arit|hmetic o|
|00001af0| 70 65 72 61 74 69 6f 6e | 73 2c 20 6c 69 6b 65 20 |peration|s, like |
|00001b00| 5c 66 33 73 75 6d 5c 66 | 31 2c 20 61 72 65 0a 58 |\f3sum\f|1, are.X|
|00001b10| 65 78 61 6d 70 6c 65 73 | 20 6f 66 20 74 68 69 73 |examples| of this|
|00001b20| 2e 20 20 41 20 73 70 65 | 63 69 61 6c 20 65 78 74 |. A spe|cial ext|
|00001b30| 65 6e 73 69 6f 6e 20 74 | 6f 20 4c 6f 67 6f 20 73 |ension t|o Logo s|
|00001b40| 79 6e 74 61 78 20 61 6c | 6c 6f 77 73 20 73 75 63 |yntax al|lows suc|
|00001b50| 68 20 61 6e 20 6f 70 65 | 72 61 74 69 6f 6e 0a 58 |h an ope|ration.X|
|00001b60| 74 6f 20 68 61 76 65 20 | 6d 6f 72 65 20 74 68 61 |to have |more tha|
|00001b70| 6e 20 74 77 6f 20 69 6e | 70 75 74 73 20 62 79 20 |n two in|puts by |
|00001b80| 65 6e 63 6c 6f 73 69 6e | 67 20 74 68 65 20 6f 70 |enclosin|g the op|
|00001b90| 65 72 61 74 69 6f 6e 20 | 61 6e 64 20 69 74 73 20 |eration |and its |
|00001ba0| 69 6e 70 75 74 73 20 69 | 6e 0a 58 70 61 72 65 6e |inputs i|n.Xparen|
|00001bb0| 74 68 65 73 65 73 20 6f | 72 20 62 72 61 63 65 73 |theses o|r braces|
|00001bc0| 3a 0a 58 2e 45 58 0a 58 | 28 73 75 6d 20 32 20 35 |:.X.EX.X|(sum 2 5|
|00001bd0| 20 31 33 20 38 2e 35 29 | 0a 58 2e 45 43 0a 58 41 | 13 8.5)|.X.EC.XA|
|00001be0| 73 73 6f 63 69 61 74 69 | 6f 6e 20 69 73 20 72 69 |ssociati|on is ri|
|00001bf0| 67 68 74 20 74 6f 20 6c | 65 66 74 2e 20 20 41 74 |ght to l|eft. At|
|00001c00| 20 6c 65 61 73 74 20 74 | 77 6f 20 69 6e 70 75 74 | least t|wo input|
|00001c10| 73 20 6d 75 73 74 20 62 | 65 20 67 69 76 65 6e 2c |s must b|e given,|
|00001c20| 20 65 78 63 65 70 74 20 | 66 6f 72 0a 58 74 68 65 | except |for.Xthe|
|00001c30| 20 5c 66 33 6c 69 73 74 | 5c 66 31 20 6f 70 65 72 | \f3list|\f1 oper|
|00001c40| 61 74 69 6f 6e 2c 20 77 | 68 69 63 68 20 63 61 6e |ation, w|hich can|
|00001c50| 20 74 61 6b 65 20 6f 6e | 65 20 69 6e 70 75 74 20 | take on|e input |
|00001c60| 69 66 20 70 61 72 65 6e | 74 68 65 73 69 7a 65 64 |if paren|thesized|
|00001c70| 2e 0a 58 2e 50 50 0a 58 | 2e 55 42 20 22 4d 75 6c |..X.PP.X|.UB "Mul|
|00001c80| 74 69 2d 69 6e 73 74 72 | 75 63 74 69 6f 6e 20 6c |ti-instr|uction l|
|00001c90| 69 6e 65 73 2e 22 0a 58 | 49 74 20 69 73 20 70 6f |ines.".X|It is po|
|00001ca0| 73 73 69 62 6c 65 20 74 | 6f 20 70 75 74 20 6d 6f |ssible t|o put mo|
|00001cb0| 72 65 20 74 68 61 6e 20 | 6f 6e 65 20 69 6e 73 74 |re than |one inst|
|00001cc0| 72 75 63 74 69 6f 6e 20 | 6f 6e 20 74 68 65 20 73 |ruction |on the s|
|00001cd0| 61 6d 65 20 6c 69 6e 65 | 20 77 68 65 6e 20 79 6f |ame line| when yo|
|00001ce0| 75 0a 58 61 72 65 20 74 | 79 70 69 6e 67 20 74 6f |u.Xare t|yping to|
|00001cf0| 20 4c 6f 67 6f 2e 20 20 | 49 66 20 79 6f 75 20 64 | Logo. |If you d|
|00001d00| 6f 20 74 68 69 73 2c 20 | 69 74 20 69 73 20 72 65 |o this, |it is re|
|00001d10| 63 6f 6d 6d 65 6e 64 65 | 64 20 74 68 61 74 20 79 |commende|d that y|
|00001d20| 6f 75 20 74 79 70 65 20 | 61 0a 58 73 65 6d 69 63 |ou type |a.Xsemic|
|00001d30| 6f 6c 6f 6e 20 28 3b 29 | 20 62 65 74 77 65 65 6e |olon (;)| between|
|00001d40| 20 74 68 65 20 69 6e 73 | 74 72 75 63 74 69 6f 6e | the ins|truction|
|00001d50| 73 20 66 6f 72 20 69 6d | 70 72 6f 76 65 64 20 72 |s for im|proved r|
|00001d60| 65 61 64 61 62 69 6c 69 | 74 79 3a 0a 58 2e 45 58 |eadabili|ty:.X.EX|
|00001d70| 0a 58 70 72 69 6e 74 20 | 22 68 65 6c 6c 6f 3b 20 |.Xprint |"hello; |
|00001d80| 70 72 69 6e 74 20 22 67 | 6f 6f 64 62 79 65 0a 58 |print "g|oodbye.X|
|00001d90| 2e 45 43 0a 58 46 6f 72 | 20 63 6f 6d 70 61 74 69 |.EC.XFor| compati|
|00001da0| 62 69 6c 69 74 79 20 77 | 69 74 68 20 6f 74 68 65 |bility w|ith othe|
|00001db0| 72 20 76 65 72 73 69 6f | 6e 73 20 6f 66 20 4c 6f |r versio|ns of Lo|
|00001dc0| 67 6f 2c 20 69 74 20 69 | 73 20 70 65 72 6d 69 74 |go, it i|s permit|
|00001dd0| 74 65 64 20 74 6f 20 6c | 65 61 76 65 20 6f 75 74 |ted to l|eave out|
|00001de0| 0a 58 74 68 65 20 73 65 | 6d 69 63 6f 6c 6f 6e 2e |.Xthe se|micolon.|
|00001df0| 20 20 4c 61 74 65 72 20 | 69 6e 20 74 68 69 73 20 | Later |in this |
|00001e00| 6d 61 6e 75 61 6c 2c 20 | 74 68 65 20 70 68 72 61 |manual, |the phra|
|00001e10| 73 65 20 22 69 6e 73 74 | 72 75 63 74 69 6f 6e 20 |se "inst|ruction |
|00001e20| 6c 69 6e 65 22 20 77 69 | 6c 6c 0a 58 6d 65 61 6e |line" wi|ll.Xmean|
|00001e30| 20 6f 6e 65 20 6f 72 20 | 6d 6f 72 65 20 69 6e 73 | one or |more ins|
|00001e40| 74 72 75 63 74 69 6f 6e | 73 20 6f 6e 20 61 20 6c |truction|s on a l|
|00001e50| 69 6e 65 2e 0a 58 2e 50 | 50 0a 58 2e 55 42 20 22 |ine..X.P|P.X.UB "|
|00001e60| 4d 75 6c 74 69 2d 6c 69 | 6e 65 20 69 6e 73 74 72 |Multi-li|ne instr|
|00001e70| 75 63 74 69 6f 6e 73 2e | 22 0a 58 49 74 20 69 73 |uctions.|".XIt is|
|00001e80| 20 70 6f 73 73 69 62 6c | 65 20 74 6f 20 63 6f 6e | possibl|e to con|
|00001e90| 74 69 6e 75 65 20 61 6e | 20 69 6e 73 74 72 75 63 |tinue an| instruc|
|00001ea0| 74 69 6f 6e 20 6f 6e 0a | 58 61 20 73 65 63 6f 6e |tion on.|Xa secon|
|00001eb0| 64 20 6c 69 6e 65 2e 20 | 20 54 6f 20 64 6f 20 74 |d line. | To do t|
|00001ec0| 68 69 73 2c 20 65 6e 64 | 20 74 68 65 20 66 69 72 |his, end| the fir|
|00001ed0| 73 74 20 6c 69 6e 65 20 | 77 69 74 68 20 61 20 62 |st line |with a b|
|00001ee0| 61 63 6b 73 6c 61 73 68 | 20 28 5c 5c 29 2c 0a 58 |ackslash| (\\),.X|
|00001ef0| 69 6d 6d 65 64 69 61 74 | 65 6c 79 20 66 6f 6c 6c |immediat|ely foll|
|00001f00| 6f 77 65 64 20 62 79 20 | 74 68 65 20 52 45 54 55 |owed by |the RETU|
|00001f10| 52 4e 20 6b 65 79 2e 20 | 20 49 66 20 79 6f 75 20 |RN key. | If you |
|00001f20| 61 72 65 20 74 79 70 69 | 6e 67 20 61 20 71 75 6f |are typi|ng a quo|
|00001f30| 74 65 64 20 77 6f 72 64 | 2c 0a 58 79 6f 75 20 6d |ted word|,.Xyou m|
|00001f40| 75 73 74 20 65 6e 64 20 | 74 68 65 20 77 6f 72 64 |ust end |the word|
|00001f50| 20 28 77 69 74 68 20 61 | 20 73 70 61 63 65 2c 20 | (with a| space, |
|00001f60| 66 6f 72 20 65 78 61 6d | 70 6c 65 29 20 62 65 66 |for exam|ple) bef|
|00001f70| 6f 72 65 20 75 73 69 6e | 67 20 74 68 65 0a 58 62 |ore usin|g the.Xb|
|00001f80| 61 63 6b 73 6c 61 73 68 | 2d 52 45 54 55 52 4e 20 |ackslash|-RETURN |
|00001f90| 63 6f 6d 62 69 6e 61 74 | 69 6f 6e 2e 20 20 49 6e |combinat|ion. In|
|00001fa0| 73 69 64 65 20 61 20 71 | 75 6f 74 65 64 20 77 6f |side a q|uoted wo|
|00001fb0| 72 64 2c 20 62 61 63 6b | 73 6c 61 73 68 2d 52 45 |rd, back|slash-RE|
|00001fc0| 54 55 52 4e 0a 58 6d 65 | 61 6e 73 20 74 6f 20 70 |TURN.Xme|ans to p|
|00001fd0| 75 74 20 61 6e 20 61 63 | 74 75 61 6c 20 52 45 54 |ut an ac|tual RET|
|00001fe0| 55 52 4e 20 61 73 20 70 | 61 72 74 20 6f 66 20 74 |URN as p|art of t|
|00001ff0| 68 65 20 77 6f 72 64 2e | 0a 58 2e 50 50 0a 58 2e |he word.|.X.PP.X.|
|00002000| 55 42 20 22 43 6f 6d 6d | 65 6e 74 73 2e 22 0a 58 |UB "Comm|ents.".X|
|00002010| 49 74 20 69 73 20 70 6f | 73 73 69 62 6c 65 20 74 |It is po|ssible t|
|00002020| 6f 20 69 6e 63 6c 75 64 | 65 20 69 6e 20 61 6e 20 |o includ|e in an |
|00002030| 69 6e 73 74 72 75 63 74 | 69 6f 6e 20 6c 69 6e 65 |instruct|ion line|
|00002040| 20 63 6f 6d 6d 65 6e 74 | 73 0a 58 77 68 69 63 68 | comment|s.Xwhich|
|00002050| 20 61 72 65 20 6d 65 61 | 6e 74 20 66 6f 72 20 68 | are mea|nt for h|
|00002060| 75 6d 61 6e 20 72 65 61 | 64 65 72 73 20 6f 66 20 |uman rea|ders of |
|00002070| 79 6f 75 72 20 70 72 6f | 67 72 61 6d 20 28 69 6e |your pro|gram (in|
|00002080| 63 6c 75 64 69 6e 67 20 | 79 6f 75 72 73 65 6c 66 |cluding |yourself|
|00002090| 2c 20 6e 65 78 74 0a 58 | 77 65 65 6b 29 2c 20 61 |, next.X|week), a|
|000020a0| 6e 64 20 77 68 69 63 68 | 20 61 72 65 20 6e 6f 74 |nd which| are not|
|000020b0| 20 4c 6f 67 6f 20 69 6e | 73 74 72 75 63 74 69 6f | Logo in|structio|
|000020c0| 6e 73 2e 20 20 54 6f 20 | 64 6f 20 74 68 69 73 2c |ns. To |do this,|
|000020d0| 20 62 65 67 69 6e 20 74 | 68 65 20 63 6f 6d 6d 65 | begin t|he comme|
|000020e0| 6e 74 0a 58 77 69 74 68 | 20 61 6e 20 65 78 63 6c |nt.Xwith| an excl|
|000020f0| 61 6d 61 74 69 6f 6e 20 | 70 6f 69 6e 74 20 28 21 |amation |point (!|
|00002100| 29 2e 20 20 45 76 65 72 | 79 74 68 69 6e 67 20 61 |). Ever|ything a|
|00002110| 66 74 65 72 20 74 68 65 | 20 65 78 63 6c 61 6d 61 |fter the| exclama|
|00002120| 74 69 6f 6e 20 70 6f 69 | 6e 74 20 6f 6e 20 74 68 |tion poi|nt on th|
|00002130| 65 0a 58 6c 69 6e 65 20 | 77 69 6c 6c 20 62 65 20 |e.Xline |will be |
|00002140| 69 67 6e 6f 72 65 64 20 | 62 79 20 4c 6f 67 6f 2e |ignored |by Logo.|
|00002150| 20 20 46 6f 72 20 65 78 | 61 6d 70 6c 65 3a 0a 58 | For ex|ample:.X|
|00002160| 2e 45 58 0a 58 70 72 69 | 6e 74 20 5b 48 69 2c 20 |.EX.Xpri|nt [Hi, |
|00002170| 74 68 65 72 65 2e 5d 20 | 21 20 41 20 66 72 69 65 |there.] |! A frie|
|00002180| 6e 64 6c 79 20 67 72 65 | 65 74 69 6e 67 2e 0a 58 |ndly gre|eting..X|
|00002190| 2e 45 43 0a 58 48 6f 77 | 65 76 65 72 2c 20 74 68 |.EC.XHow|ever, th|
|000021a0| 65 20 65 78 63 6c 61 6d | 61 74 69 6f 6e 20 70 6f |e exclam|ation po|
|000021b0| 69 6e 74 20 64 6f 65 73 | 20 6e 6f 74 20 62 65 67 |int does| not beg|
|000021c0| 69 6e 20 61 20 63 6f 6d | 6d 65 6e 74 20 69 66 20 |in a com|ment if |
|000021d0| 69 74 20 69 73 20 70 61 | 72 74 20 6f 66 20 61 0a |it is pa|rt of a.|
|000021e0| 58 77 6f 72 64 20 6f 72 | 20 6c 69 73 74 20 28 73 |Xword or| list (s|
|000021f0| 65 65 20 62 65 6c 6f 77 | 29 2e 20 20 59 6f 75 20 |ee below|). You |
|00002200| 73 68 6f 75 6c 64 20 74 | 79 70 65 20 61 20 73 70 |should t|ype a sp|
|00002210| 61 63 65 20 62 65 66 6f | 72 65 20 74 68 65 20 65 |ace befo|re the e|
|00002220| 78 63 6c 61 6d 61 74 69 | 6f 6e 0a 58 70 6f 69 6e |xclamati|on.Xpoin|
|00002230| 74 2c 20 61 73 20 69 6e | 20 74 68 65 20 65 78 61 |t, as in| the exa|
|00002240| 6d 70 6c 65 20 61 62 6f | 76 65 2c 20 74 6f 20 6d |mple abo|ve, to m|
|00002250| 61 6b 65 20 73 75 72 65 | 20 69 74 20 77 69 6c 6c |ake sure| it will|
|00002260| 20 62 65 20 69 6e 74 65 | 72 70 72 65 74 65 64 20 | be inte|rpreted |
|00002270| 61 73 20 74 68 65 0a 58 | 62 65 67 69 6e 6e 69 6e |as the.X|beginnin|
|00002280| 67 20 6f 66 20 61 20 63 | 6f 6d 6d 65 6e 74 2e 0a |g of a c|omment..|
|00002290| 58 2e 50 50 0a 58 2e 55 | 42 20 22 57 6f 72 64 73 |X.PP.X.U|B "Words|
|000022a0| 2e 22 0a 58 45 76 65 72 | 79 20 63 6f 6d 70 75 74 |.".XEver|y comput|
|000022b0| 65 72 20 6c 61 6e 67 75 | 61 67 65 20 64 65 61 6c |er langu|age deal|
|000022c0| 73 20 77 69 74 68 20 70 | 61 72 74 69 63 75 6c 61 |s with p|articula|
|000022d0| 72 20 6b 69 6e 64 73 0a | 58 6f 66 20 6f 62 6a 65 |r kinds.|Xof obje|
|000022e0| 63 74 73 2e 20 20 4d 6f | 73 74 20 6c 61 6e 67 75 |cts. Mo|st langu|
|000022f0| 61 67 65 73 2c 20 6c 69 | 6b 65 20 46 4f 52 54 52 |ages, li|ke FORTR|
|00002300| 41 4e 20 6f 72 20 42 41 | 53 49 43 20 6f 72 20 50 |AN or BA|SIC or P|
|00002310| 61 73 63 61 6c 2c 20 61 | 72 65 20 62 65 73 74 20 |ascal, a|re best |
|00002320| 61 74 0a 58 64 65 61 6c | 69 6e 67 20 77 69 74 68 |at.Xdeal|ing with|
|00002330| 20 6e 75 6d 62 65 72 73 | 2e 20 20 4c 6f 67 6f 20 | numbers|. Logo |
|00002340| 69 73 20 61 20 5c 66 32 | 6c 69 73 74 20 70 72 6f |is a \f2|list pro|
|00002350| 63 65 73 73 69 6e 67 5c | 66 31 20 6c 61 6e 67 75 |cessing\|f1 langu|
|00002360| 61 67 65 2c 20 77 68 69 | 63 68 20 69 73 0a 58 61 |age, whi|ch is.Xa|
|00002370| 74 20 69 74 73 20 62 65 | 73 74 20 77 69 74 68 20 |t its be|st with |
|00002380| 6d 6f 72 65 20 63 6f 6d | 70 6c 69 63 61 74 65 64 |more com|plicated|
|00002390| 20 64 61 74 61 20 73 74 | 72 75 63 74 75 72 65 73 | data st|ructures|
|000023a0| 2e 20 20 54 68 65 20 74 | 77 6f 20 6d 61 69 6e 20 |. The t|wo main |
|000023b0| 63 61 74 65 67 6f 72 69 | 65 73 0a 58 6f 66 20 6f |categori|es.Xof o|
|000023c0| 62 6a 65 63 74 20 61 72 | 65 20 74 68 65 20 5c 66 |bject ar|e the \f|
|000023d0| 32 77 6f 72 64 5c 66 31 | 20 61 6e 64 20 74 68 65 |2word\f1| and the|
|000023e0| 20 5c 66 32 6c 69 73 74 | 5c 66 31 2e 0a 58 2e 50 | \f2list|\f1..X.P|
|000023f0| 50 0a 58 41 20 5c 66 32 | 77 6f 72 64 5c 66 31 20 |P.XA \f2|word\f1 |
|00002400| 69 73 20 61 20 73 74 72 | 69 6e 67 20 6f 66 20 63 |is a str|ing of c|
|00002410| 68 61 72 61 63 74 65 72 | 73 2e 20 20 28 41 20 5c |haracter|s. (A \|
|00002420| 66 32 63 68 61 72 61 63 | 74 65 72 5c 66 31 20 69 |f2charac|ter\f1 i|
|00002430| 73 20 61 20 6c 65 74 74 | 65 72 2c 0a 58 64 69 67 |s a lett|er,.Xdig|
|00002440| 69 74 2c 20 73 70 61 63 | 65 2c 20 6f 72 20 70 75 |it, spac|e, or pu|
|00002450| 6e 63 74 75 61 74 69 6f | 6e 20 6d 61 72 6b 2e 20 |nctuatio|n mark. |
|00002460| 20 54 68 69 6e 67 73 20 | 6c 69 6b 65 20 54 41 42 | Things |like TAB|
|00002470| 20 61 6e 64 20 52 45 54 | 55 52 4e 20 6f 6e 20 74 | and RET|URN on t|
|00002480| 68 65 0a 58 74 65 72 6d | 69 6e 61 6c 20 6b 65 79 |he.Xterm|inal key|
|00002490| 62 6f 61 72 64 20 61 72 | 65 20 61 6c 73 6f 20 63 |board ar|e also c|
|000024a0| 68 61 72 61 63 74 65 72 | 73 2c 20 61 6c 74 68 6f |haracter|s, altho|
|000024b0| 75 67 68 20 74 68 65 79 | 20 61 72 65 20 6e 6f 74 |ugh they| are not|
|000024c0| 20 75 73 75 61 6c 6c 79 | 20 75 73 65 64 0a 58 61 | usually| used.Xa|
|000024d0| 73 20 70 61 72 74 20 6f | 66 20 4c 6f 67 6f 20 77 |s part o|f Logo w|
|000024e0| 6f 72 64 73 2e 29 20 20 | 41 20 77 6f 72 64 20 63 |ords.) |A word c|
|000024f0| 61 6e 20 62 65 20 61 6e | 79 20 6c 65 6e 67 74 68 |an be an|y length|
|00002500| 2c 20 69 6e 63 6c 75 64 | 69 6e 67 20 7a 65 72 6f |, includ|ing zero|
|00002510| 2e 20 20 54 68 65 20 77 | 61 79 0a 58 74 6f 20 69 |. The w|ay.Xto i|
|00002520| 6e 64 69 63 61 74 65 20 | 61 20 77 6f 72 64 20 61 |ndicate |a word a|
|00002530| 73 20 70 61 72 74 20 6f | 66 20 61 20 4c 6f 67 6f |s part o|f a Logo|
|00002540| 20 70 72 6f 67 72 61 6d | 20 69 73 20 74 6f 20 75 | program| is to u|
|00002550| 73 65 20 74 68 65 20 71 | 75 6f 74 61 74 69 6f 6e |se the q|uotation|
|00002560| 20 6d 61 72 6b 0a 58 28 | 22 29 20 62 65 66 6f 72 | mark.X(|") befor|
|00002570| 65 20 74 68 65 20 77 6f | 72 64 2e 20 20 54 68 65 |e the wo|rd. The|
|00002580| 20 77 6f 72 64 20 62 65 | 67 69 6e 73 20 77 69 74 | word be|gins wit|
|00002590| 68 20 74 68 65 20 63 68 | 61 72 61 63 74 65 72 20 |h the ch|aracter |
|000025a0| 61 66 74 65 72 20 74 68 | 65 0a 58 71 75 6f 74 61 |after th|e.Xquota|
|000025b0| 74 69 6f 6e 20 6d 61 72 | 6b 20 61 6e 64 20 63 6f |tion mar|k and co|
|000025c0| 6e 74 69 6e 75 65 73 20 | 75 6e 74 69 6c 20 61 20 |ntinues |until a |
|000025d0| 73 70 61 63 65 2c 20 61 | 20 74 61 62 2c 20 74 68 |space, a| tab, th|
|000025e0| 65 20 65 6e 64 20 6f 66 | 20 74 68 65 0a 58 6c 69 |e end of| the.Xli|
|000025f0| 6e 65 2c 20 6f 72 20 6f | 6e 65 20 6f 66 20 74 68 |ne, or o|ne of th|
|00002600| 65 73 65 20 63 68 61 72 | 61 63 74 65 72 73 3a 0a |ese char|acters:.|
|00002610| 58 2e 45 58 0a 58 28 20 | 29 20 5b 20 5d 20 7b 20 |X.EX.X( |) [ ] { |
|00002620| 7d 20 22 20 3b 0a 58 2e | 45 43 0a 58 41 20 71 75 |} " ;.X.|EC.XA qu|
|00002630| 6f 74 61 74 69 6f 6e 20 | 6d 61 72 6b 20 69 6d 6d |otation |mark imm|
|00002640| 65 64 69 61 74 65 6c 79 | 20 66 6f 6c 6c 6f 77 65 |ediately| followe|
|00002650| 64 20 62 79 20 61 20 73 | 70 61 63 65 20 6f 72 20 |d by a s|pace or |
|00002660| 6f 6e 65 20 6f 66 20 74 | 68 65 20 6f 74 68 65 72 |one of t|he other|
|00002670| 0a 58 77 6f 72 64 2d 74 | 65 72 6d 69 6e 61 74 69 |.Xword-t|erminati|
|00002680| 6e 67 20 63 68 61 72 61 | 63 74 65 72 73 20 69 6e |ng chara|cters in|
|00002690| 64 69 63 61 74 65 73 20 | 74 68 65 20 5c 66 32 65 |dicates |the \f2e|
|000026a0| 6d 70 74 79 20 77 6f 72 | 64 5c 66 31 2c 20 77 68 |mpty wor|d\f1, wh|
|000026b0| 69 63 68 20 69 73 20 61 | 20 77 6f 72 64 0a 58 6f |ich is a| word.Xo|
|000026c0| 66 20 6c 65 6e 67 74 68 | 20 7a 65 72 6f 2e 0a 58 |f length| zero..X|
|000026d0| 2e 50 50 0a 58 50 6c 65 | 61 73 65 20 6e 6f 74 69 |.PP.XPle|ase noti|
|000026e0| 63 65 20 74 68 61 74 2c | 20 75 6e 6c 69 6b 65 20 |ce that,| unlike |
|000026f0| 6d 6f 73 74 20 70 72 6f | 67 72 61 6d 6d 69 6e 67 |most pro|gramming|
|00002700| 20 6c 61 6e 67 75 61 67 | 65 73 2c 20 4c 6f 67 6f | languag|es, Logo|
|00002710| 20 64 6f 65 73 20 6e 6f | 74 20 75 73 65 0a 58 71 | does no|t use.Xq|
|00002720| 75 6f 74 61 74 69 6f 6e | 20 6d 61 72 6b 73 20 69 |uotation| marks i|
|00002730| 6e 20 70 61 69 72 73 20 | 74 6f 20 64 65 6c 69 6d |n pairs |to delim|
|00002740| 69 74 20 73 74 72 69 6e | 67 73 20 6f 66 20 63 68 |it strin|gs of ch|
|00002750| 61 72 61 63 74 65 72 73 | 2e 20 20 54 68 65 20 66 |aracters|. The f|
|00002760| 6f 6c 6c 6f 77 69 6e 67 | 0a 58 69 6e 73 74 72 75 |ollowing|.Xinstru|
|00002770| 63 74 69 6f 6e 20 69 73 | 20 61 6e 20 65 72 72 6f |ction is| an erro|
|00002780| 72 3a 0a 58 2e 45 58 0a | 58 70 72 69 6e 74 20 22 |r:.X.EX.|Xprint "|
|00002790| 61 61 72 64 76 61 72 6b | 22 0a 58 2e 45 43 0a 58 |aardvark|".X.EC.X|
|000027a0| 54 68 69 73 20 69 73 20 | 61 6e 20 65 72 72 6f 72 |This is |an error|
|000027b0| 20 62 65 63 61 75 73 65 | 20 74 68 65 20 5c 66 33 | because| the \f3|
|000027c0| 70 72 69 6e 74 5c 66 31 | 20 63 6f 6d 6d 61 6e 64 |print\f1| command|
|000027d0| 20 69 73 20 66 6f 6c 6c | 6f 77 65 64 20 62 79 20 | is foll|owed by |
|000027e0| 5c 66 32 74 77 6f 5c 66 | 31 0a 58 77 6f 72 64 73 |\f2two\f|1.Xwords|
|000027f0| 2c 20 74 68 65 20 77 6f | 72 64 20 5c 66 33 61 61 |, the wo|rd \f3aa|
|00002800| 72 64 76 61 72 6b 5c 66 | 31 20 61 6e 64 20 61 6e |rdvark\f|1 and an|
|00002810| 20 65 6d 70 74 79 20 77 | 6f 72 64 20 77 68 69 63 | empty w|ord whic|
|00002820| 68 20 69 73 20 69 6e 64 | 69 63 61 74 65 64 20 62 |h is ind|icated b|
|00002830| 79 20 74 68 65 0a 58 73 | 65 63 6f 6e 64 20 71 75 |y the.Xs|econd qu|
|00002840| 6f 74 61 74 69 6f 6e 20 | 6d 61 72 6b 2e 20 20 53 |otation |mark. S|
|00002850| 69 6e 63 65 20 5c 66 33 | 70 72 69 6e 74 5c 66 31 |ince \f3|print\f1|
|00002860| 20 6f 6e 6c 79 20 75 73 | 65 73 20 6f 6e 65 20 69 | only us|es one i|
|00002870| 6e 70 75 74 2c 20 74 68 | 65 20 73 65 63 6f 6e 64 |nput, th|e second|
|00002880| 0a 58 77 6f 72 64 20 68 | 61 73 20 6e 6f 20 70 75 |.Xword h|as no pu|
|00002890| 72 70 6f 73 65 2c 20 61 | 6e 64 20 4c 6f 67 6f 20 |rpose, a|nd Logo |
|000028a0| 67 69 76 65 73 20 74 68 | 65 20 65 72 72 6f 72 20 |gives th|e error |
|000028b0| 6d 65 73 73 61 67 65 0a | 58 2e 45 58 0a 58 59 6f |message.|X.EX.XYo|
|000028c0| 75 20 64 6f 6e 27 74 20 | 73 61 79 20 77 68 61 74 |u don't |say what|
|000028d0| 20 74 6f 20 64 6f 20 77 | 69 74 68 20 22 0a 58 2e | to do w|ith ".X.|
|000028e0| 45 45 0a 58 49 6e 20 6f | 72 64 65 72 20 74 6f 20 |EE.XIn o|rder to |
|000028f0| 69 6e 63 6c 75 64 65 20 | 6f 6e 65 20 6f 66 20 74 |include |one of t|
|00002900| 68 65 20 77 6f 72 64 2d | 74 65 72 6d 69 6e 61 74 |he word-|terminat|
|00002910| 69 6e 67 20 63 68 61 72 | 61 63 74 65 72 73 20 69 |ing char|acters i|
|00002920| 6e 20 61 20 77 6f 72 64 | 2c 20 79 6f 75 0a 58 6d |n a word|, you.Xm|
|00002930| 75 73 74 20 70 72 65 63 | 65 64 65 20 69 74 20 77 |ust prec|ede it w|
|00002940| 69 74 68 20 61 20 62 61 | 63 6b 73 6c 61 73 68 20 |ith a ba|ckslash |
|00002950| 28 5c 5c 29 2e 20 20 44 | 6f 20 6e 6f 74 20 63 6f |(\\). D|o not co|
|00002960| 6e 66 75 73 65 20 62 61 | 63 6b 73 6c 61 73 68 20 |nfuse ba|ckslash |
|00002970| 77 69 74 68 20 74 68 65 | 0a 58 72 65 67 75 6c 61 |with the|.Xregula|
|00002980| 72 20 73 6c 61 73 68 20 | 28 2f 29 20 63 68 61 72 |r slash |(/) char|
|00002990| 61 63 74 65 72 2e 20 20 | 46 6f 72 20 65 78 61 6d |acter. |For exam|
|000029a0| 70 6c 65 2c 20 74 68 69 | 73 20 69 6e 73 74 72 75 |ple, thi|s instru|
|000029b0| 63 74 69 6f 6e 3a 0a 58 | 2e 45 58 0a 58 70 72 69 |ction:.X|.EX.Xpri|
|000029c0| 6e 74 20 22 5c 5c 28 62 | 6f 6f 5c 5c 29 0a 58 2e |nt "\\(b|oo\\).X.|
|000029d0| 45 43 0a 58 77 69 6c 6c | 20 70 72 69 6e 74 20 74 |EC.Xwill| print t|
|000029e0| 68 65 20 66 69 76 65 20 | 63 68 61 72 61 63 74 65 |he five |characte|
|000029f0| 72 73 20 5c 66 33 28 62 | 6f 6f 29 5c 66 31 20 61 |rs \f3(b|oo)\f1 a|
|00002a00| 73 20 69 74 73 20 72 65 | 73 75 6c 74 2e 20 20 54 |s its re|sult. T|
|00002a10| 68 65 20 73 70 61 63 65 | 0a 58 63 68 61 72 61 63 |he space|.Xcharac|
|00002a20| 74 65 72 20 6d 61 79 20 | 62 65 20 69 6e 63 6c 75 |ter may |be inclu|
|00002a30| 64 65 64 20 69 6e 20 61 | 20 77 6f 72 64 20 62 79 |ded in a| word by|
|00002a40| 20 75 73 69 6e 67 20 61 | 20 70 65 72 63 65 6e 74 | using a| percent|
|00002a50| 20 28 25 29 20 69 6e 73 | 74 65 61 64 20 6f 66 20 | (%) ins|tead of |
|00002a60| 74 68 65 0a 58 73 70 61 | 63 65 2e 20 20 54 68 65 |the.Xspa|ce. The|
|00002a70| 72 65 66 6f 72 65 2c 20 | 74 68 65 20 66 6f 6c 6c |refore, |the foll|
|00002a80| 6f 77 69 6e 67 20 61 72 | 65 20 65 71 75 69 76 61 |owing ar|e equiva|
|00002a90| 6c 65 6e 74 3a 0a 58 2e | 45 58 0a 58 70 72 69 6e |lent:.X.|EX.Xprin|
|00002aa0| 74 20 22 48 65 6c 6c 6f | 25 74 68 65 72 65 2e 0a |t "Hello|%there..|
|00002ab0| 58 70 72 69 6e 74 20 22 | 48 65 6c 6c 6f 5c 5c 20 |Xprint "|Hello\\ |
|00002ac0| 74 68 65 72 65 2e 0a 58 | 2e 45 43 0a 58 54 6f 20 |there..X|.EC.XTo |
|00002ad0| 69 6e 63 6c 75 64 65 20 | 61 20 70 65 72 63 65 6e |include |a percen|
|00002ae0| 74 20 63 68 61 72 61 63 | 74 65 72 20 6f 72 20 61 |t charac|ter or a|
|00002af0| 20 62 61 63 6b 73 6c 61 | 73 68 20 63 68 61 72 61 | backsla|sh chara|
|00002b00| 63 74 65 72 20 69 6e 20 | 61 20 77 6f 72 64 2c 20 |cter in |a word, |
|00002b10| 79 6f 75 20 6d 75 73 74 | 0a 58 70 72 65 63 65 64 |you must|.Xpreced|
|00002b20| 65 20 69 74 20 77 69 74 | 68 20 61 20 62 61 63 6b |e it wit|h a back|
|00002b30| 73 6c 61 73 68 2e 0a 58 | 2e 50 50 0a 58 2e 55 42 |slash..X|.PP.X.UB|
|00002b40| 20 22 4e 75 6d 62 65 72 | 73 2e 22 0a 58 41 20 6e | "Number|s.".XA n|
|00002b50| 75 6d 62 65 72 20 69 73 | 20 61 20 73 70 65 63 69 |umber is| a speci|
|00002b60| 61 6c 20 63 61 73 65 20 | 6f 66 20 61 20 77 6f 72 |al case |of a wor|
|00002b70| 64 2c 20 69 6e 20 77 68 | 69 63 68 20 74 68 65 0a |d, in wh|ich the.|
|00002b80| 58 63 68 61 72 61 63 74 | 65 72 73 20 61 72 65 20 |Xcharact|ers are |
|00002b90| 61 6c 6c 20 64 69 67 69 | 74 73 2e 20 20 28 54 68 |all digi|ts. (Th|
|00002ba0| 61 74 20 64 65 66 69 6e | 69 74 69 6f 6e 20 69 73 |at defin|ition is|
|00002bb0| 6e 27 74 20 71 75 69 74 | 65 20 63 6f 6d 70 6c 65 |n't quit|e comple|
|00002bc0| 74 65 2c 20 61 6e 64 20 | 77 69 6c 6c 0a 58 62 65 |te, and |will.Xbe|
|00002bd0| 20 65 78 70 61 6e 64 65 | 64 20 69 6e 20 74 68 65 | expande|d in the|
|00002be0| 20 6e 65 78 74 20 70 61 | 72 61 67 72 61 70 68 2e | next pa|ragraph.|
|00002bf0| 29 20 20 41 20 6e 75 6d | 62 65 72 20 6e 65 65 64 |) A num|ber need|
|00002c00| 20 6e 6f 74 20 62 65 20 | 70 72 65 63 65 64 65 64 | not be |preceded|
|00002c10| 20 77 69 74 68 20 61 0a | 58 71 75 6f 74 61 74 69 | with a.|Xquotati|
|00002c20| 6f 6e 20 6d 61 72 6b 2e | 20 20 28 54 68 69 73 20 |on mark.| (This |
|00002c30| 72 75 6c 65 20 69 73 20 | 70 6f 73 73 69 62 6c 65 |rule is |possible|
|00002c40| 20 62 65 63 61 75 73 65 | 20 6e 6f 72 6d 61 6c 6c | because| normall|
|00002c50| 79 20 4c 6f 67 6f 20 69 | 6e 74 65 72 70 72 65 74 |y Logo i|nterpret|
|00002c60| 73 0a 58 77 6f 72 64 73 | 20 77 69 74 68 6f 75 74 |s.Xwords| without|
|00002c70| 20 71 75 6f 74 61 74 69 | 6f 6e 20 6d 61 72 6b 73 | quotati|on marks|
|00002c80| 20 61 73 20 74 68 65 20 | 6e 61 6d 65 73 20 6f 66 | as the |names of|
|00002c90| 20 70 72 6f 63 65 64 75 | 72 65 73 2c 20 62 75 74 | procedu|res, but|
|00002ca0| 20 74 68 65 72 65 20 61 | 72 65 20 6e 6f 0a 58 70 | there a|re no.Xp|
|00002cb0| 72 6f 63 65 64 75 72 65 | 73 20 77 68 6f 73 65 20 |rocedure|s whose |
|00002cc0| 6e 61 6d 65 73 20 62 65 | 67 69 6e 20 77 69 74 68 |names be|gin with|
|00002cd0| 20 64 69 67 69 74 73 2e | 29 20 20 49 66 20 61 20 | digits.|) If a |
|00002ce0| 71 75 6f 74 61 74 69 6f | 6e 20 6d 61 72 6b 20 69 |quotatio|n mark i|
|00002cf0| 73 20 6e 6f 74 0a 58 75 | 73 65 64 2c 20 74 68 65 |s not.Xu|sed, the|
|00002d00| 6e 20 61 6e 79 20 6e 6f | 6e 64 69 67 69 74 20 74 |n any no|ndigit t|
|00002d10| 65 72 6d 69 6e 61 74 65 | 73 20 74 68 65 20 77 6f |erminate|s the wo|
|00002d20| 72 64 2e 0a 58 2e 50 50 | 0a 58 41 63 74 75 61 6c |rd..X.PP|.XActual|
|00002d30| 6c 79 2c 20 6e 75 6d 62 | 65 72 73 20 6d 61 79 20 |ly, numb|ers may |
|00002d40| 62 65 20 77 72 69 74 74 | 65 6e 20 69 6e 20 73 63 |be writt|en in sc|
|00002d50| 69 65 6e 74 69 66 69 63 | 20 6e 6f 74 61 74 69 6f |ientific| notatio|
|00002d60| 6e 2e 20 20 54 68 61 74 | 20 69 73 2c 20 74 68 65 |n. That| is, the|
|00002d70| 79 20 63 61 6e 0a 58 69 | 6e 63 6c 75 64 65 20 73 |y can.Xi|nclude s|
|00002d80| 69 67 6e 73 2c 20 64 65 | 63 69 6d 61 6c 20 70 6f |igns, de|cimal po|
|00002d90| 69 6e 74 73 2c 20 61 6e | 64 20 61 20 70 6f 77 65 |ints, an|d a powe|
|00002da0| 72 20 6f 66 20 31 30 20 | 62 79 20 77 68 69 63 68 |r of 10 |by which|
|00002db0| 20 74 68 65 20 6e 75 6d | 62 65 72 20 69 73 0a 58 | the num|ber is.X|
|00002dc0| 6d 75 6c 74 69 70 6c 69 | 65 64 2e 20 20 54 68 69 |multipli|ed. Thi|
|00002dd0| 73 20 5c 66 32 65 78 70 | 6f 6e 65 6e 74 5c 66 31 |s \f2exp|onent\f1|
|00002de0| 20 69 73 20 69 6e 64 69 | 63 61 74 65 64 20 62 79 | is indi|cated by|
|00002df0| 20 74 68 65 20 6c 65 74 | 74 65 72 20 5c 66 33 65 | the let|ter \f3e|
|00002e00| 5c 66 31 0a 58 66 6f 6c | 6c 6f 77 65 64 20 62 79 |\f1.Xfol|lowed by|
|00002e10| 20 74 68 65 20 69 6e 74 | 65 67 65 72 20 70 6f 77 | the int|eger pow|
|00002e20| 65 72 20 6f 66 20 31 30 | 2e 20 20 54 68 65 20 66 |er of 10|. The f|
|00002e30| 6f 6c 6c 6f 77 69 6e 67 | 20 6e 75 6d 62 65 72 73 |ollowing| numbers|
|00002e40| 20 68 61 76 65 20 74 68 | 65 0a 58 73 61 6d 65 20 | have th|e.Xsame |
|00002e50| 76 61 6c 75 65 3a 0a 58 | 2e 45 58 0a 58 31 30 30 |value:.X|.EX.X100|
|00002e60| 30 0a 58 22 31 30 30 30 | 0a 58 31 30 30 30 2e 30 |0.X"1000|.X1000.0|
|00002e70| 30 0a 58 31 65 33 0a 58 | 31 30 2e 30 65 2b 32 0a |0.X1e3.X|10.0e+2.|
|00002e80| 58 22 2b 31 2e 30 65 33 | 0a 58 31 30 30 30 30 65 |X"+1.0e3|.X10000e|
|00002e90| 2d 31 0a 58 2e 45 43 0a | 58 4e 6f 74 69 63 65 20 |-1.X.EC.|XNotice |
|00002ea0| 74 68 61 74 20 69 66 20 | 74 68 65 20 6e 75 6d 62 |that if |the numb|
|00002eb0| 65 72 20 62 65 67 69 6e | 73 20 77 69 74 68 20 61 |er begin|s with a|
|00002ec0| 20 73 69 67 6e 20 69 74 | 20 6d 75 73 74 20 62 65 | sign it| must be|
|00002ed0| 20 71 75 6f 74 65 64 2e | 20 20 41 20 71 75 6f 74 | quoted.| A quot|
|00002ee0| 65 64 0a 58 6e 75 6d 62 | 65 72 20 73 74 69 6c 6c |ed.Xnumb|er still|
|00002ef0| 20 6d 75 73 74 20 62 65 | 67 69 6e 20 77 69 74 68 | must be|gin with|
|00002f00| 20 61 20 64 69 67 69 74 | 20 6f 72 20 61 20 73 69 | a digit| or a si|
|00002f10| 67 6e 2c 20 6e 6f 74 20 | 77 69 74 68 20 61 0a 58 |gn, not |with a.X|
|00002f20| 64 65 63 69 6d 61 6c 20 | 70 6f 69 6e 74 20 6f 72 |decimal |point or|
|00002f30| 20 61 20 6c 65 74 74 65 | 72 20 5c 66 33 65 5c 66 | a lette|r \f3e\f|
|00002f40| 31 2e 20 20 28 54 68 65 | 0a 58 6c 65 74 74 65 72 |1. (The|.Xletter|
|00002f50| 20 6d 61 79 20 62 65 20 | 61 20 63 61 70 69 74 61 | may be |a capita|
|00002f60| 6c 20 5c 66 33 45 5c 66 | 31 2c 20 62 79 20 74 68 |l \f3E\f|1, by th|
|00002f70| 65 20 77 61 79 2e 29 20 | 20 49 66 20 61 20 6e 75 |e way.) | If a nu|
|00002f80| 6d 62 65 72 20 69 73 20 | 71 75 6f 74 65 64 2c 20 |mber is |quoted, |
|00002f90| 69 74 0a 58 6d 75 73 74 | 20 65 6e 64 20 77 69 74 |it.Xmust| end wit|
|00002fa0| 68 20 6f 6e 65 20 6f 66 | 20 74 68 65 20 6e 6f 72 |h one of| the nor|
|00002fb0| 6d 61 6c 20 77 6f 72 64 | 2d 74 65 72 6d 69 6e 61 |mal word|-termina|
|00002fc0| 74 69 6e 67 20 63 68 61 | 72 61 63 74 65 72 73 2e |ting cha|racters.|
|00002fd0| 20 20 41 20 6e 75 6d 62 | 65 72 0a 58 77 68 69 63 | A numb|er.Xwhic|
|00002fe0| 68 20 63 6f 6e 74 61 69 | 6e 73 20 6f 6e 6c 79 20 |h contai|ns only |
|00002ff0| 64 69 67 69 74 73 20 28 | 6e 6f 20 64 65 63 69 6d |digits (|no decim|
|00003000| 61 6c 20 70 6f 69 6e 74 | 20 6f 72 20 65 78 70 6f |al point| or expo|
|00003010| 6e 65 6e 74 29 20 69 73 | 20 63 61 6c 6c 65 64 0a |nent) is| called.|
|00003020| 58 61 6e 20 5c 66 32 69 | 6e 74 65 67 65 72 5c 66 |Xan \f2i|nteger\f|
|00003030| 31 2e 20 20 4e 6f 74 65 | 20 74 68 61 74 20 61 20 |1. Note| that a |
|00003040| 6e 75 6d 62 65 72 20 77 | 69 74 68 20 61 20 64 65 |number w|ith a de|
|00003050| 63 69 6d 61 6c 20 70 6f | 69 6e 74 20 69 73 20 6e |cimal po|int is n|
|00003060| 6f 74 0a 58 63 6f 6e 73 | 69 64 65 72 65 64 20 61 |ot.Xcons|idered a|
|00003070| 6e 20 69 6e 74 65 67 65 | 72 20 65 76 65 6e 20 69 |n intege|r even i|
|00003080| 66 20 74 68 65 20 64 69 | 67 69 74 73 20 61 66 74 |f the di|gits aft|
|00003090| 65 72 20 74 68 65 20 64 | 65 63 69 6d 61 6c 20 70 |er the d|ecimal p|
|000030a0| 6f 69 6e 74 20 61 72 65 | 0a 58 61 6c 6c 20 7a 65 |oint are|.Xall ze|
|000030b0| 72 6f 2e 0a 58 2e 50 50 | 0a 58 53 69 6e 63 65 20 |ro..X.PP|.XSince |
|000030c0| 61 20 6e 75 6d 62 65 72 | 20 69 73 20 61 20 77 6f |a number| is a wo|
|000030d0| 72 64 2c 20 74 68 65 20 | 75 73 75 61 6c 20 63 68 |rd, the |usual ch|
|000030e0| 61 72 61 63 74 65 72 2d | 6d 61 6e 69 70 75 6c 61 |aracter-|manipula|
|000030f0| 74 69 6e 67 20 70 72 6f | 63 65 64 75 72 65 73 20 |ting pro|cedures |
|00003100| 6d 61 79 0a 58 62 65 20 | 61 70 70 6c 69 65 64 20 |may.Xbe |applied |
|00003110| 74 6f 20 69 74 2e 20 20 | 46 6f 72 20 65 78 61 6d |to it. |For exam|
|00003120| 70 6c 65 2c 0a 58 2e 45 | 58 0a 58 70 72 69 6e 74 |ple,.X.E|X.Xprint|
|00003130| 20 66 69 72 73 74 20 31 | 30 32 34 0a 58 2e 45 43 | first 1|024.X.EC|
|00003140| 0a 58 70 72 69 6e 74 73 | 20 74 68 65 20 64 69 67 |.Xprints| the dig|
|00003150| 69 74 20 5c 66 33 31 5c | 66 31 20 77 68 69 63 68 |it \f31\|f1 which|
|00003160| 20 69 73 20 74 68 65 20 | 66 69 72 73 74 20 63 68 | is the |first ch|
|00003170| 61 72 61 63 74 65 72 20 | 6f 66 20 74 68 65 20 6e |aracter |of the n|
|00003180| 75 6d 62 65 72 2e 20 20 | 49 6e 0a 58 61 64 64 69 |umber. |In.Xaddi|
|00003190| 74 69 6f 6e 2c 20 74 68 | 65 72 65 20 61 72 65 20 |tion, th|ere are |
|000031a0| 61 72 69 74 68 6d 65 74 | 69 63 20 70 72 6f 63 65 |arithmet|ic proce|
|000031b0| 64 75 72 65 73 20 77 68 | 69 63 68 20 61 70 70 6c |dures wh|ich appl|
|000031c0| 79 20 73 70 65 63 69 66 | 69 63 61 6c 6c 79 20 74 |y specif|ically t|
|000031d0| 6f 20 6e 75 6d 62 65 72 | 73 3a 0a 58 2e 45 58 0a |o number|s:.X.EX.|
|000031e0| 58 70 72 69 6e 74 20 73 | 75 6d 20 33 20 32 0a 58 |Xprint s|um 3 2.X|
|000031f0| 2e 45 43 0a 58 70 72 69 | 6e 74 73 20 74 68 65 20 |.EC.Xpri|nts the |
|00003200| 6e 75 6d 62 65 72 20 35 | 2e 20 20 54 68 65 73 65 |number 5|. These|
|00003210| 20 70 72 6f 63 65 64 75 | 72 65 73 20 77 69 6c 6c | procedu|res will|
|00003220| 20 62 65 20 6c 69 73 74 | 65 64 20 6c 61 74 65 72 | be list|ed later|
|00003230| 2e 0a 58 2e 50 50 0a 58 | 2e 55 42 20 22 4c 69 73 |..X.PP.X|.UB "Lis|
|00003240| 74 73 2e 22 0a 58 41 20 | 77 6f 72 64 20 63 61 6e |ts.".XA |word can|
|00003250| 20 62 65 20 74 68 6f 75 | 67 68 74 20 6f 66 20 61 | be thou|ght of a|
|00003260| 73 20 61 20 6c 69 73 74 | 20 6f 66 20 63 68 61 72 |s a list| of char|
|00003270| 61 63 74 65 72 73 3b 20 | 66 6f 72 0a 58 65 78 61 |acters; |for.Xexa|
|00003280| 6d 70 6c 65 2c 20 74 68 | 65 20 77 6f 72 64 20 5c |mple, th|e word \|
|00003290| 66 33 68 65 6c 6c 6f 5c | 66 31 20 69 73 20 61 20 |f3hello\|f1 is a |
|000032a0| 6c 69 73 74 20 6f 66 20 | 66 69 76 65 20 6c 65 74 |list of |five let|
|000032b0| 74 65 72 73 2e 20 20 49 | 6e 20 4c 6f 67 6f 20 69 |ters. I|n Logo i|
|000032c0| 74 20 69 73 0a 58 70 6f | 73 73 69 62 6c 65 20 74 |t is.Xpo|ssible t|
|000032d0| 6f 20 6d 61 6e 69 70 75 | 6c 61 74 65 20 6e 6f 74 |o manipu|late not|
|000032e0| 20 6f 6e 6c 79 20 6c 69 | 73 74 73 20 6f 66 20 63 | only li|sts of c|
|000032f0| 68 61 72 61 63 74 65 72 | 73 20 62 75 74 20 61 6c |haracter|s but al|
|00003300| 73 6f 20 6c 69 73 74 73 | 20 6f 66 0a 58 77 6f 72 |so lists| of.Xwor|
|00003310| 64 73 2c 20 6c 69 73 74 | 73 20 6f 66 20 6c 69 73 |ds, list|s of lis|
|00003320| 74 73 20 6f 66 20 77 6f | 72 64 73 2c 20 61 6e 64 |ts of wo|rds, and|
|00003330| 20 73 6f 20 6f 6e 2e 20 | 20 54 68 69 73 20 69 73 | so on. | This is|
|00003340| 20 61 20 76 65 72 79 20 | 70 6f 77 65 72 66 75 6c | a very |powerful|
|00003350| 20 63 61 70 61 62 69 6c | 69 74 79 0a 58 77 68 69 | capabil|ity.Xwhi|
|00003360| 63 68 20 61 6c 6c 6f 77 | 73 20 76 65 72 79 20 63 |ch allow|s very c|
|00003370| 6f 6d 70 6c 69 63 61 74 | 65 64 20 64 61 74 61 20 |omplicat|ed data |
|00003380| 73 74 72 75 63 74 75 72 | 65 73 20 74 6f 20 62 65 |structur|es to be|
|00003390| 20 6d 61 6e 69 70 75 6c | 61 74 65 64 20 65 61 73 | manipul|ated eas|
|000033a0| 69 6c 79 2e 20 20 54 6f | 0a 58 69 6e 64 69 63 61 |ily. To|.Xindica|
|000033b0| 74 65 20 61 20 6c 69 73 | 74 20 69 6e 20 61 20 70 |te a lis|t in a p|
|000033c0| 72 6f 67 72 61 6d 2c 20 | 79 6f 75 20 70 75 74 20 |rogram, |you put |
|000033d0| 73 71 75 61 72 65 20 62 | 72 61 63 6b 65 74 73 20 |square b|rackets |
|000033e0| 28 5b 20 61 6e 64 20 5d | 29 20 61 72 6f 75 6e 64 |([ and ]|) around|
|000033f0| 20 74 68 65 0a 58 6c 69 | 73 74 2c 20 61 6e 64 20 | the.Xli|st, and |
|00003400| 73 65 70 61 72 61 74 65 | 20 74 68 65 20 6c 69 73 |separate| the lis|
|00003410| 74 20 65 6c 65 6d 65 6e | 74 73 20 77 69 74 68 20 |t elemen|ts with |
|00003420| 73 70 61 63 65 73 2e 20 | 20 46 6f 72 20 65 78 61 |spaces. | For exa|
|00003430| 6d 70 6c 65 3a 0a 58 2e | 45 58 0a 58 70 72 69 6e |mple:.X.|EX.Xprin|
|00003440| 74 20 5b 54 68 69 73 20 | 69 73 20 61 20 6c 69 73 |t [This |is a lis|
|00003450| 74 20 6f 66 20 73 65 76 | 65 6e 20 77 6f 72 64 73 |t of sev|en words|
|00003460| 2e 5d 0a 58 2e 45 43 0a | 58 41 20 6c 69 73 74 20 |.].X.EC.|XA list |
|00003470| 61 6c 6c 20 6f 66 20 77 | 68 6f 73 65 20 65 6c 65 |all of w|hose ele|
|00003480| 6d 65 6e 74 73 20 61 72 | 65 20 77 6f 72 64 73 20 |ments ar|e words |
|00003490| 69 73 20 63 61 6c 6c 65 | 64 20 61 20 5c 66 32 73 |is calle|d a \f2s|
|000034a0| 65 6e 74 65 6e 63 65 5c | 66 31 2e 20 20 48 65 72 |entence\|f1. Her|
|000034b0| 65 0a 58 69 73 20 61 6e | 20 65 78 61 6d 70 6c 65 |e.Xis an| example|
|000034c0| 20 6f 66 20 61 20 6c 69 | 73 74 20 77 68 69 63 68 | of a li|st which|
|000034d0| 20 69 73 20 6e 6f 74 20 | 61 20 73 65 6e 74 65 6e | is not |a senten|
|000034e0| 63 65 3a 0a 58 2e 45 58 | 0a 58 70 72 69 6e 74 20 |ce:.X.EX|.Xprint |
|000034f0| 5b 5b 54 68 69 73 20 69 | 73 20 61 20 6c 69 73 74 |[[This i|s a list|
|00003500| 5d 5b 6f 66 20 74 77 6f | 20 73 65 6e 74 65 6e 63 |][of two| sentenc|
|00003510| 65 73 2e 5d 5d 0a 58 2e | 45 45 0a 58 57 69 74 68 |es.]].X.|EE.XWith|
|00003520| 69 6e 20 61 20 62 72 61 | 63 6b 65 74 65 64 20 6c |in a bra|cketed l|
|00003530| 69 73 74 2c 20 73 71 75 | 61 72 65 20 62 72 61 63 |ist, squ|are brac|
|00003540| 6b 65 74 73 20 64 65 6c | 69 6d 69 74 20 73 75 62 |kets del|imit sub|
|00003550| 2d 6c 69 73 74 73 20 28 | 6c 69 73 74 73 20 77 68 |-lists (|lists wh|
|00003560| 69 63 68 20 61 72 65 0a | 58 65 6c 65 6d 65 6e 74 |ich are.|Xelement|
|00003570| 73 20 6f 66 20 74 68 65 | 20 6d 61 69 6e 20 6c 69 |s of the| main li|
|00003580| 73 74 29 2e 20 20 54 68 | 65 20 71 75 6f 74 61 74 |st). Th|e quotat|
|00003590| 69 6f 6e 20 6d 61 72 6b | 2c 20 70 61 72 65 6e 74 |ion mark|, parent|
|000035a0| 68 65 73 65 73 2c 20 61 | 6e 64 20 62 72 61 63 65 |heses, a|nd brace|
|000035b0| 73 0a 58 61 72 65 20 6e | 6f 74 20 63 6f 6e 73 69 |s.Xare n|ot consi|
|000035c0| 64 65 72 65 64 20 73 70 | 65 63 69 61 6c 20 77 69 |dered sp|ecial wi|
|000035d0| 74 68 69 6e 20 61 20 62 | 72 61 63 6b 65 74 65 64 |thin a b|racketed|
|000035e0| 20 6c 69 73 74 2c 20 75 | 6e 6c 69 6b 65 20 74 68 | list, u|nlike th|
|000035f0| 65 20 72 75 6c 65 73 20 | 66 6f 72 0a 58 71 75 6f |e rules |for.Xquo|
|00003600| 74 65 64 20 77 6f 72 64 | 73 2e 20 20 41 20 6c 69 |ted word|s. A li|
|00003610| 73 74 20 6d 61 79 20 65 | 78 74 65 6e 64 20 6f 76 |st may e|xtend ov|
|00003620| 65 72 20 6d 6f 72 65 20 | 74 68 61 6e 20 6f 6e 65 |er more |than one|
|00003630| 20 6c 69 6e 65 3b 20 74 | 68 61 74 20 69 73 2c 20 | line; t|hat is, |
|00003640| 69 66 20 79 6f 75 0a 58 | 68 61 76 65 20 74 79 70 |if you.X|have typ|
|00003650| 65 64 20 61 6e 20 6f 70 | 65 6e 20 73 71 75 61 72 |ed an op|en squar|
|00003660| 65 20 62 72 61 63 6b 65 | 74 20 28 5b 29 20 61 6e |e bracke|t ([) an|
|00003670| 64 20 68 61 76 65 20 6e | 6f 74 20 79 65 74 20 74 |d have n|ot yet t|
|00003680| 79 70 65 64 20 74 68 65 | 20 6d 61 74 63 68 69 6e |yped the| matchin|
|00003690| 67 0a 58 63 6c 6f 73 65 | 20 73 71 75 61 72 65 20 |g.Xclose| square |
|000036a0| 62 72 61 63 6b 65 74 2c | 20 74 68 65 20 4c 6f 67 |bracket,| the Log|
|000036b0| 6f 20 69 6e 73 74 72 75 | 63 74 69 6f 6e 20 69 73 |o instru|ction is|
|000036c0| 20 6e 6f 74 20 65 6e 64 | 65 64 20 62 79 20 74 79 | not end|ed by ty|
|000036d0| 70 69 6e 67 20 74 68 65 | 20 52 45 54 55 52 4e 0a |ping the| RETURN.|
|000036e0| 58 6b 65 79 2e 0a 58 2e | 50 50 0a 58 2e 55 42 20 |Xkey..X.|PP.X.UB |
|000036f0| 22 56 61 72 69 61 62 6c | 65 73 2e 22 0a 58 41 20 |"Variabl|es.".XA |
|00003700| 76 61 72 69 61 62 6c 65 | 20 69 73 20 61 6e 20 65 |variable| is an e|
|00003710| 6e 74 69 74 79 20 77 68 | 69 63 68 20 68 61 73 20 |ntity wh|ich has |
|00003720| 61 20 5c 66 32 6e 61 6d | 65 5c 66 31 2c 20 77 68 |a \f2nam|e\f1, wh|
|00003730| 69 63 68 0a 58 69 73 20 | 61 20 77 6f 72 64 2c 20 |ich.Xis |a word, |
|00003740| 61 6e 64 20 61 20 5c 66 | 32 74 68 69 6e 67 5c 66 |and a \f|2thing\f|
|00003750| 31 20 28 61 6c 73 6f 20 | 63 61 6c 6c 65 64 20 61 |1 (also |called a|
|00003760| 20 5c 66 32 76 61 6c 75 | 65 5c 66 31 29 2c 20 77 | \f2valu|e\f1), w|
|00003770| 68 69 63 68 0a 58 63 61 | 6e 20 62 65 20 61 6e 79 |hich.Xca|n be any|
|00003780| 20 4c 6f 67 6f 20 6f 62 | 6a 65 63 74 2e 20 20 56 | Logo ob|ject. V|
|00003790| 61 72 69 61 62 6c 65 73 | 0a 58 61 72 65 20 75 73 |ariables|.Xare us|
|000037a0| 65 64 20 74 6f 20 22 72 | 65 6d 65 6d 62 65 72 22 |ed to "r|emember"|
|000037b0| 20 61 20 63 6f 6d 70 75 | 74 65 64 20 6f 62 6a 65 | a compu|ted obje|
|000037c0| 63 74 20 66 6f 72 20 72 | 65 70 65 61 74 65 64 20 |ct for r|epeated |
|000037d0| 6f 72 20 64 65 6c 61 79 | 65 64 20 75 73 65 0a 58 |or delay|ed use.X|
|000037e0| 69 6e 20 61 20 70 72 6f | 67 72 61 6d 2e 20 20 49 |in a pro|gram. I|
|000037f0| 6e 20 4c 6f 67 6f 2c 20 | 74 68 65 20 6d 6f 73 74 |n Logo, |the most|
|00003800| 20 63 6f 6d 6d 6f 6e 20 | 77 61 79 20 74 68 61 74 | common |way that|
|00003810| 20 61 20 76 61 72 69 61 | 62 6c 65 20 61 63 71 75 | a varia|ble acqu|
|00003820| 69 72 65 73 0a 58 61 20 | 76 61 6c 75 65 20 69 73 |ires.Xa |value is|
|00003830| 20 74 68 61 74 20 69 74 | 20 69 73 20 61 73 73 6f | that it| is asso|
|00003840| 63 69 61 74 65 64 20 77 | 69 74 68 20 61 6e 20 69 |ciated w|ith an i|
|00003850| 6e 70 75 74 20 74 6f 20 | 61 20 75 73 65 72 2d 77 |nput to |a user-w|
|00003860| 72 69 74 74 65 6e 0a 58 | 70 72 6f 63 65 64 75 72 |ritten.X|procedur|
|00003870| 65 2e 20 20 49 6e 20 74 | 68 65 20 66 6f 6c 6c 6f |e. In t|he follo|
|00003880| 77 69 6e 67 20 65 78 61 | 6d 70 6c 65 2c 20 64 6f |wing exa|mple, do|
|00003890| 6e 27 74 20 77 6f 72 72 | 79 20 61 62 6f 75 74 20 |n't worr|y about |
|000038a0| 74 68 65 20 64 65 74 61 | 69 6c 73 0a 58 6f 66 20 |the deta|ils.Xof |
|000038b0| 74 68 65 20 66 6f 72 6d | 61 74 20 6f 66 20 74 68 |the form|at of th|
|000038c0| 65 20 70 72 6f 63 65 64 | 75 72 65 2c 20 77 68 69 |e proced|ure, whi|
|000038d0| 63 68 20 77 69 6c 6c 20 | 62 65 20 65 78 70 6c 61 |ch will |be expla|
|000038e0| 69 6e 65 64 20 6c 61 74 | 65 72 3a 0a 58 2e 45 58 |ined lat|er:.X.EX|
|000038f0| 0a 58 74 6f 20 70 66 66 | 20 3a 73 65 6e 74 65 6e |.Xto pff| :senten|
|00003900| 63 65 0a 58 70 72 69 6e | 74 20 66 69 72 73 74 20 |ce.Xprin|t first |
|00003910| 66 69 72 73 74 20 3a 73 | 65 6e 74 65 6e 63 65 0a |first :s|entence.|
|00003920| 58 65 6e 64 0a 58 2e 45 | 43 0a 58 54 68 69 73 20 |Xend.X.E|C.XThis |
|00003930| 69 73 20 74 68 65 20 64 | 65 66 69 6e 69 74 69 6f |is the d|efinitio|
|00003940| 6e 20 6f 66 20 61 20 63 | 6f 6d 6d 61 6e 64 20 77 |n of a c|ommand w|
|00003950| 69 74 68 20 6f 6e 65 20 | 69 6e 70 75 74 2e 20 20 |ith one |input. |
|00003960| 54 68 65 20 6e 61 6d 65 | 20 6f 66 20 74 68 65 0a |The name| of the.|
|00003970| 58 63 6f 6d 6d 61 6e 64 | 20 69 73 20 5c 66 33 70 |Xcommand| is \f3p|
|00003980| 66 66 5c 66 31 2e 20 20 | 49 74 20 68 61 73 20 6f |ff\f1. |It has o|
|00003990| 6e 65 20 69 6e 70 75 74 | 20 62 65 63 61 75 73 65 |ne input| because|
|000039a0| 20 69 6e 20 74 68 65 20 | 22 74 69 74 6c 65 20 6c | in the |"title l|
|000039b0| 69 6e 65 22 20 28 74 68 | 65 0a 58 6f 6e 65 20 73 |ine" (th|e.Xone s|
|000039c0| 74 61 72 74 69 6e 67 20 | 5c 66 33 74 6f 20 70 66 |tarting |\f3to pf|
|000039d0| 66 5c 66 31 29 20 74 68 | 65 72 65 20 69 73 20 6f |f\f1) th|ere is o|
|000039e0| 6e 65 20 76 61 72 69 61 | 62 6c 65 20 6e 61 6d 65 |ne varia|ble name|
|000039f0| 20 61 66 74 65 72 20 74 | 68 65 20 63 6f 6d 6d 61 | after t|he comma|
|00003a00| 6e 64 0a 58 6e 61 6d 65 | 2e 20 20 54 68 65 20 76 |nd.Xname|. The v|
|00003a10| 61 72 69 61 62 6c 65 20 | 77 68 6f 73 65 20 6e 61 |ariable |whose na|
|00003a20| 6d 65 20 69 73 20 5c 66 | 33 73 65 6e 74 65 6e 63 |me is \f|3sentenc|
|00003a30| 65 5c 66 31 20 69 73 20 | 61 73 73 6f 63 69 61 74 |e\f1 is |associat|
|00003a40| 65 64 20 77 69 74 68 20 | 74 68 65 0a 58 66 69 72 |ed with |the.Xfir|
|00003a50| 73 74 20 28 61 6e 64 20 | 6f 6e 6c 79 2c 20 69 6e |st (and |only, in|
|00003a60| 20 74 68 69 73 20 63 61 | 73 65 29 20 69 6e 70 75 | this ca|se) inpu|
|00003a70| 74 20 74 6f 20 5c 66 33 | 70 66 66 5c 66 31 2e 20 |t to \f3|pff\f1. |
|00003a80| 20 49 6e 20 74 68 65 20 | 6c 69 6e 65 20 73 74 61 | In the |line sta|
|00003a90| 72 74 69 6e 67 0a 58 77 | 69 74 68 20 74 68 65 20 |rting.Xw|ith the |
|00003aa0| 77 6f 72 64 20 5c 66 33 | 70 72 69 6e 74 5c 66 31 |word \f3|print\f1|
|00003ab0| 2c 20 74 68 65 20 6e 6f | 74 61 74 69 6f 6e 20 5c |, the no|tation \|
|00003ac0| 66 33 3a 73 65 6e 74 65 | 6e 63 65 5c 66 31 20 6d |f3:sente|nce\f1 m|
|00003ad0| 65 61 6e 73 20 22 74 68 | 65 20 5c 66 32 74 68 69 |eans "th|e \f2thi|
|00003ae0| 6e 67 5c 66 31 0a 58 6f | 66 20 74 68 65 20 76 61 |ng\f1.Xo|f the va|
|00003af0| 72 69 61 62 6c 65 20 77 | 68 6f 73 65 20 5c 66 32 |riable w|hose \f2|
|00003b00| 6e 61 6d 65 5c 66 31 20 | 69 73 20 5c 66 33 73 65 |name\f1 |is \f3se|
|00003b10| 6e 74 65 6e 63 65 5c 66 | 31 22 2e 20 20 28 54 6f |ntence\f|1". (To|
|00003b20| 20 72 65 66 65 72 20 74 | 6f 20 74 68 65 0a 58 6e | refer t|o the.Xn|
|00003b30| 61 6d 65 20 69 74 73 65 | 6c 66 2c 20 71 75 6f 74 |ame itse|lf, quot|
|00003b40| 65 20 69 74 20 61 73 20 | 79 6f 75 20 77 6f 75 6c |e it as |you woul|
|00003b50| 64 20 61 6e 79 20 77 6f | 72 64 2e 29 20 20 49 66 |d any wo|rd.) If|
|00003b60| 20 74 68 69 73 20 70 72 | 6f 63 65 64 75 72 65 20 | this pr|ocedure |
|00003b70| 69 73 20 75 73 65 64 0a | 58 69 6e 20 61 20 4c 6f |is used.|Xin a Lo|
|00003b80| 67 6f 20 69 6e 73 74 72 | 75 63 74 69 6f 6e 20 6c |go instr|uction l|
|00003b90| 69 6b 65 20 74 68 69 73 | 3a 0a 58 2e 45 58 0a 58 |ike this|:.X.EX.X|
|00003ba0| 70 66 66 20 5b 54 68 69 | 73 20 69 73 20 74 68 65 |pff [Thi|s is the|
|00003bb0| 20 70 6f 6f 70 2e 5d 0a | 58 2e 45 43 0a 58 74 68 | poop.].|X.EC.Xth|
|00003bc0| 65 6e 20 74 68 65 20 76 | 61 72 69 61 62 6c 65 20 |en the v|ariable |
|00003bd0| 5c 66 33 73 65 6e 74 65 | 6e 63 65 5c 66 31 20 68 |\f3sente|nce\f1 h|
|00003be0| 61 73 20 74 68 65 20 76 | 61 6c 75 65 20 5c 66 33 |as the v|alue \f3|
|00003bf0| 5b 54 68 69 73 20 69 73 | 20 74 68 65 20 70 6f 6f |[This is| the poo|
|00003c00| 70 2e 5d 5c 66 31 2e 0a | 58 2e 50 50 0a 58 49 74 |p.]\f1..|X.PP.XIt|
|00003c10| 20 69 73 20 61 6c 73 6f | 20 70 6f 73 73 69 62 6c | is also| possibl|
|00003c20| 65 20 74 6f 20 61 73 73 | 69 67 6e 20 61 20 76 61 |e to ass|ign a va|
|00003c30| 6c 75 65 20 74 6f 20 61 | 20 76 61 72 69 61 62 6c |lue to a| variabl|
|00003c40| 65 20 62 79 20 61 6e 20 | 65 78 70 6c 69 63 69 74 |e by an |explicit|
|00003c50| 0a 58 4c 6f 67 6f 20 69 | 6e 73 74 72 75 63 74 69 |.XLogo i|nstructi|
|00003c60| 6f 6e 2e 20 20 54 68 65 | 72 65 20 69 73 20 61 20 |on. The|re is a |
|00003c70| 70 72 69 6d 69 74 69 76 | 65 20 70 72 6f 63 65 64 |primitiv|e proced|
|00003c80| 75 72 65 20 74 6f 20 64 | 6f 20 74 68 69 73 3a 0a |ure to d|o this:.|
|00003c90| 58 2e 73 70 20 31 0a 58 | 5c 66 33 6d 61 6b 65 5c |X.sp 1.X|\f3make\|
|00003ca0| 66 31 20 5c 28 65 6d 20 | 43 6f 6d 6d 61 6e 64 2c |f1 \(em |Command,|
|00003cb0| 20 74 77 6f 20 69 6e 70 | 75 74 73 2e 0a 58 2e 49 | two inp|uts..X.I|
|00003cc0| 4e 0a 58 54 68 65 20 66 | 69 72 73 74 20 69 6e 70 |N.XThe f|irst inp|
|00003cd0| 75 74 20 69 73 20 74 68 | 65 20 6e 61 6d 65 20 6f |ut is th|e name o|
|00003ce0| 66 20 61 20 76 61 72 69 | 61 62 6c 65 20 28 74 68 |f a vari|able (th|
|00003cf0| 61 74 20 69 73 2c 20 69 | 74 20 6d 75 73 74 20 62 |at is, i|t must b|
|00003d00| 65 20 61 20 77 6f 72 64 | 29 3b 20 74 68 65 0a 58 |e a word|); the.X|
|00003d10| 73 65 63 6f 6e 64 20 69 | 73 20 61 6e 79 20 4c 6f |second i|s any Lo|
|00003d20| 67 6f 20 6f 62 6a 65 63 | 74 2e 20 20 54 68 65 20 |go objec|t. The |
|00003d30| 65 66 66 65 63 74 20 6f | 66 20 74 68 65 20 63 6f |effect o|f the co|
|00003d40| 6d 6d 61 6e 64 20 69 73 | 20 74 6f 20 61 73 73 69 |mmand is| to assi|
|00003d50| 67 6e 20 74 68 65 0a 58 | 73 65 63 6f 6e 64 20 69 |gn the.X|second i|
|00003d60| 6e 70 75 74 20 61 73 20 | 74 68 65 20 76 61 6c 75 |nput as |the valu|
|00003d70| 65 20 6f 66 20 74 68 65 | 20 76 61 72 69 61 62 6c |e of the| variabl|
|00003d80| 65 20 6e 61 6d 65 64 20 | 62 79 20 74 68 65 20 66 |e named |by the f|
|00003d90| 69 72 73 74 20 69 6e 70 | 75 74 2e 0a 58 2e 4f 55 |irst inp|ut..X.OU|
|00003da0| 0a 58 49 66 20 79 6f 75 | 20 61 72 65 20 61 63 63 |.XIf you| are acc|
|00003db0| 75 73 74 6f 6d 65 64 20 | 74 6f 20 70 72 6f 67 72 |ustomed |to progr|
|00003dc0| 61 6d 6d 69 6e 67 20 69 | 6e 20 61 20 6e 6f 6e 2d |amming i|n a non-|
|00003dd0| 70 72 6f 63 65 64 75 72 | 61 6c 20 6c 61 6e 67 75 |procedur|al langu|
|00003de0| 61 67 65 20 6c 69 6b 65 | 0a 58 42 41 53 49 43 2c |age like|.XBASIC,|
|00003df0| 20 79 6f 75 20 73 68 6f | 75 6c 64 20 73 74 72 65 | you sho|uld stre|
|00003e00| 6e 75 6f 75 73 6c 79 20 | 61 76 6f 69 64 20 74 68 |nuously |avoid th|
|00003e10| 65 20 74 65 6d 70 74 61 | 74 69 6f 6e 20 74 6f 20 |e tempta|tion to |
|00003e20| 6f 76 65 72 75 73 65 20 | 5c 66 33 6d 61 6b 65 5c |overuse |\f3make\|
|00003e30| 66 31 3b 0a 58 65 78 70 | 6c 69 63 69 74 20 61 73 |f1;.Xexp|licit as|
|00003e40| 73 69 67 6e 6d 65 6e 74 | 20 69 73 20 61 6c 6d 6f |signment| is almo|
|00003e50| 73 74 20 61 6c 77 61 79 | 73 20 74 68 65 20 77 72 |st alway|s the wr|
|00003e60| 6f 6e 67 20 74 68 69 6e | 67 20 74 6f 20 64 6f 20 |ong thin|g to do |
|00003e70| 69 6e 20 4c 6f 67 6f 2e | 20 20 54 6f 74 61 6c 0a |in Logo.| Total.|
|00003e80| 58 61 62 73 74 65 6e 74 | 69 6f 6e 20 69 73 20 74 |Xabstent|ion is t|
|00003e90| 68 65 20 62 65 73 74 20 | 70 6f 6c 69 63 79 20 66 |he best |policy f|
|00003ea0| 6f 72 20 61 20 4c 6f 67 | 6f 20 62 65 67 69 6e 6e |or a Log|o beginn|
|00003eb0| 65 72 2e 0a 58 2e 50 50 | 0a 58 49 6e 20 4c 6f 67 |er..X.PP|.XIn Log|
|00003ec0| 6f 2c 20 76 61 72 69 61 | 62 6c 65 73 20 61 72 65 |o, varia|bles are|
|00003ed0| 20 5c 66 32 64 79 6e 61 | 6d 69 63 61 6c 6c 79 20 | \f2dyna|mically |
|00003ee0| 73 63 6f 70 65 64 5c 66 | 31 2e 20 20 54 68 61 74 |scoped\f|1. That|
|00003ef0| 20 6d 65 61 6e 73 20 74 | 68 61 74 20 61 0a 58 76 | means t|hat a.Xv|
|00003f00| 61 72 69 61 62 6c 65 20 | 63 61 6e 20 22 62 65 6c |ariable |can "bel|
|00003f10| 6f 6e 67 20 74 6f 22 20 | 61 20 70 61 72 74 69 63 |ong to" |a partic|
|00003f20| 75 6c 61 72 20 70 72 6f | 63 65 64 75 72 65 3b 20 |ular pro|cedure; |
|00003f30| 73 75 63 68 20 61 20 76 | 61 72 69 61 62 6c 65 20 |such a v|ariable |
|00003f40| 63 61 6e 0a 58 62 65 20 | 75 73 65 64 20 62 79 20 |can.Xbe |used by |
|00003f50| 74 68 61 74 20 70 72 6f | 63 65 64 75 72 65 20 61 |that pro|cedure a|
|00003f60| 6e 64 20 62 79 20 61 6e | 79 20 70 72 6f 63 65 64 |nd by an|y proced|
|00003f70| 75 72 65 20 77 68 69 63 | 68 20 69 73 20 75 73 65 |ure whic|h is use|
|00003f80| 64 20 62 79 20 61 6e 0a | 58 69 6e 73 74 72 75 63 |d by an.|Xinstruc|
|00003f90| 74 69 6f 6e 20 77 69 74 | 68 69 6e 20 74 68 65 20 |tion wit|hin the |
|00003fa0| 70 72 6f 63 65 64 75 72 | 65 2c 20 62 75 74 20 69 |procedur|e, but i|
|00003fb0| 73 20 6e 6f 74 20 61 76 | 61 69 6c 61 62 6c 65 20 |s not av|ailable |
|00003fc0| 74 6f 20 74 68 65 20 70 | 72 6f 63 65 64 75 72 65 |to the p|rocedure|
|00003fd0| 0a 58 77 68 69 63 68 20 | 69 6e 76 6f 6b 65 64 20 |.Xwhich |invoked |
|00003fe0| 74 68 65 20 6f 77 6e 69 | 6e 67 20 70 72 6f 63 65 |the owni|ng proce|
|00003ff0| 64 75 72 65 2e 20 20 49 | 6e 20 6f 74 68 65 72 20 |dure. I|n other |
|00004000| 77 6f 72 64 73 2c 20 73 | 75 63 68 20 61 20 5c 66 |words, s|uch a \f|
|00004010| 32 6c 6f 63 61 6c 5c 66 | 31 0a 58 76 61 72 69 61 |2local\f|1.Xvaria|
|00004020| 62 6c 65 20 63 6f 6d 65 | 73 20 69 6e 74 6f 20 62 |ble come|s into b|
|00004030| 65 69 6e 67 20 77 68 65 | 6e 20 74 68 65 20 6f 77 |eing whe|n the ow|
|00004040| 6e 69 6e 67 20 70 72 6f | 63 65 64 75 72 65 20 73 |ning pro|cedure s|
|00004050| 74 61 72 74 73 20 72 75 | 6e 6e 69 6e 67 2c 20 61 |tarts ru|nning, a|
|00004060| 6e 64 0a 58 64 69 73 61 | 70 70 65 61 72 73 20 77 |nd.Xdisa|ppears w|
|00004070| 68 65 6e 20 74 68 61 74 | 20 70 72 6f 63 65 64 75 |hen that| procedu|
|00004080| 72 65 20 69 73 20 66 69 | 6e 69 73 68 65 64 2e 20 |re is fi|nished. |
|00004090| 20 49 74 20 69 73 20 70 | 6f 73 73 69 62 6c 65 20 | It is p|ossible |
|000040a0| 66 6f 72 20 61 0a 58 70 | 72 6f 63 65 64 75 72 65 |for a.Xp|rocedure|
|000040b0| 20 77 69 74 68 20 61 20 | 6c 6f 63 61 6c 20 76 61 | with a |local va|
|000040c0| 72 69 61 62 6c 65 20 74 | 6f 20 75 73 65 20 61 6e |riable t|o use an|
|000040d0| 6f 74 68 65 72 20 70 72 | 6f 63 65 64 75 72 65 20 |other pr|ocedure |
|000040e0| 77 69 74 68 20 61 20 6c | 6f 63 61 6c 0a 58 76 61 |with a l|ocal.Xva|
|000040f0| 72 69 61 62 6c 65 20 6f | 66 20 74 68 65 20 73 61 |riable o|f the sa|
|00004100| 6d 65 20 6e 61 6d 65 2e | 20 20 49 6e 20 74 68 61 |me name.| In tha|
|00004110| 74 20 63 61 73 65 2c 20 | 74 68 65 20 76 61 72 69 |t case, |the vari|
|00004120| 61 62 6c 65 20 62 65 6c | 6f 6e 67 69 6e 67 20 74 |able bel|onging t|
|00004130| 6f 20 74 68 65 0a 58 22 | 69 6e 6e 65 72 22 20 70 |o the.X"|inner" p|
|00004140| 72 6f 63 65 64 75 72 65 | 20 69 73 20 74 68 65 20 |rocedure| is the |
|00004150| 6f 6e 65 20 77 68 69 63 | 68 20 69 73 20 61 73 73 |one whic|h is ass|
|00004160| 6f 63 69 61 74 65 64 20 | 77 69 74 68 20 74 68 65 |ociated |with the|
|00004170| 20 6e 61 6d 65 20 61 73 | 20 6c 6f 6e 67 0a 58 61 | name as| long.Xa|
|00004180| 73 20 69 74 20 65 78 69 | 73 74 73 3b 20 77 68 65 |s it exi|sts; whe|
|00004190| 6e 20 74 68 65 20 69 6e | 6e 65 72 20 70 72 6f 63 |n the in|ner proc|
|000041a0| 65 64 75 72 65 20 69 73 | 20 66 69 6e 69 73 68 65 |edure is| finishe|
|000041b0| 64 2c 20 74 68 65 20 22 | 68 69 64 64 65 6e 22 0a |d, the "|hidden".|
|000041c0| 58 76 61 72 69 61 62 6c | 65 20 62 65 6c 6f 6e 67 |Xvariabl|e belong|
|000041d0| 69 6e 67 20 74 6f 20 74 | 68 65 20 6f 75 74 65 72 |ing to t|he outer|
|000041e0| 20 70 72 6f 63 65 64 75 | 72 65 20 69 73 20 61 67 | procedu|re is ag|
|000041f0| 61 69 6e 20 61 76 61 69 | 6c 61 62 6c 65 2e 0a 58 |ain avai|lable..X|
|00004200| 2e 50 50 0a 58 41 20 76 | 61 72 69 61 62 6c 65 20 |.PP.XA v|ariable |
|00004210| 77 68 69 63 68 20 69 73 | 20 61 73 73 6f 63 69 61 |which is| associa|
|00004220| 74 65 64 20 77 69 74 68 | 20 74 68 65 20 69 6e 70 |ted with| the inp|
|00004230| 75 74 20 74 6f 20 61 20 | 70 72 6f 63 65 64 75 72 |ut to a |procedur|
|00004240| 65 20 69 73 0a 58 61 75 | 74 6f 6d 61 74 69 63 61 |e is.Xau|tomatica|
|00004250| 6c 6c 79 20 6c 6f 63 61 | 6c 20 74 6f 20 74 68 61 |lly loca|l to tha|
|00004260| 74 20 70 72 6f 63 65 64 | 75 72 65 2e 20 20 4f 74 |t proced|ure. Ot|
|00004270| 68 65 72 20 76 61 72 69 | 61 62 6c 65 73 20 61 72 |her vari|ables ar|
|00004280| 65 20 6e 6f 72 6d 61 6c | 6c 79 0a 58 5c 66 32 67 |e normal|ly.X\f2g|
|00004290| 6c 6f 62 61 6c 5c 66 31 | 3a 20 74 68 65 79 20 61 |lobal\f1|: they a|
|000042a0| 72 65 20 22 70 65 72 6d | 61 6e 65 6e 74 22 20 61 |re "perm|anent" a|
|000042b0| 6e 64 20 64 6f 20 6e 6f | 74 20 64 69 73 61 70 70 |nd do no|t disapp|
|000042c0| 65 61 72 20 77 68 65 6e | 20 74 68 65 0a 58 70 72 |ear when| the.Xpr|
|000042d0| 6f 63 65 64 75 72 65 20 | 69 6e 20 77 68 69 63 68 |ocedure |in which|
|000042e0| 20 74 68 65 79 20 67 65 | 74 20 74 68 65 69 72 20 | they ge|t their |
|000042f0| 76 61 6c 75 65 73 20 66 | 69 6e 69 73 68 2e 20 20 |values f|inish. |
|00004300| 49 74 20 69 73 20 62 6f | 74 68 20 70 6f 73 73 69 |It is bo|th possi|
|00004310| 62 6c 65 0a 58 61 6e 64 | 20 64 65 73 69 72 61 62 |ble.Xand| desirab|
|00004320| 6c 65 20 74 6f 20 6d 61 | 6b 65 20 73 75 63 68 20 |le to ma|ke such |
|00004330| 76 61 72 69 61 62 6c 65 | 73 20 6c 6f 63 61 6c 2c |variable|s local,|
|00004340| 20 62 79 20 61 6e 20 65 | 78 70 6c 69 63 69 74 20 | by an e|xplicit |
|00004350| 69 6e 73 74 72 75 63 74 | 69 6f 6e 0a 58 74 6f 20 |instruct|ion.Xto |
|00004360| 74 68 61 74 20 65 66 66 | 65 63 74 3a 0a 58 2e 73 |that eff|ect:.X.s|
|00004370| 70 20 31 0a 58 5c 66 33 | 6c 6f 63 61 6c 5c 66 31 |p 1.X\f3|local\f1|
|00004380| 20 5c 28 65 6d 20 43 6f | 6d 6d 61 6e 64 2c 20 6f | \(em Co|mmand, o|
|00004390| 6e 65 20 69 6e 70 75 74 | 2e 0a 58 2e 49 4e 0a 58 |ne input|..X.IN.X|
|000043a0| 54 68 65 20 69 6e 70 75 | 74 20 6d 75 73 74 20 62 |The inpu|t must b|
|000043b0| 65 20 61 20 77 6f 72 64 | 2e 20 20 41 20 76 61 72 |e a word|. A var|
|000043c0| 69 61 62 6c 65 20 77 69 | 74 68 20 74 68 61 74 20 |iable wi|th that |
|000043d0| 77 6f 72 64 20 61 73 20 | 69 74 73 20 6e 61 6d 65 |word as |its name|
|000043e0| 0a 58 69 73 20 63 72 65 | 61 74 65 64 2c 20 6c 6f |.Xis cre|ated, lo|
|000043f0| 63 61 6c 20 74 6f 20 74 | 68 65 20 63 75 72 72 65 |cal to t|he curre|
|00004400| 6e 74 6c 79 20 72 75 6e | 6e 69 6e 67 20 70 72 6f |ntly run|ning pro|
|00004410| 63 65 64 75 72 65 20 28 | 74 68 61 74 20 69 73 2c |cedure (|that is,|
|00004420| 0a 58 6c 6f 63 61 6c 20 | 74 6f 20 74 68 65 20 70 |.Xlocal |to the p|
|00004430| 72 6f 63 65 64 75 72 65 | 20 69 6e 20 77 68 69 63 |rocedure| in whic|
|00004440| 68 20 74 68 65 20 5c 66 | 33 6c 6f 63 61 6c 5c 66 |h the \f|3local\f|
|00004450| 31 20 63 6f 6d 6d 61 6e | 64 20 69 73 20 75 73 65 |1 comman|d is use|
|00004460| 64 29 2e 0a 58 2e 4f 55 | 0a 58 54 68 65 20 76 69 |d)..X.OU|.XThe vi|
|00004470| 72 74 75 65 20 6f 66 20 | 6c 6f 63 61 6c 20 76 61 |rtue of |local va|
|00004480| 72 69 61 62 6c 65 73 20 | 69 73 20 74 68 61 74 20 |riables |is that |
|00004490| 74 68 65 79 20 6d 61 6b | 65 20 70 72 6f 63 65 64 |they mak|e proced|
|000044a0| 75 72 65 73 20 6d 6f 72 | 65 0a 58 69 6e 64 65 70 |ures mor|e.Xindep|
|000044b0| 65 6e 64 65 6e 74 20 6f | 66 20 6f 6e 65 20 61 6e |endent o|f one an|
|000044c0| 6f 74 68 65 72 20 74 68 | 61 6e 20 74 68 65 79 20 |other th|an they |
|000044d0| 77 6f 75 6c 64 20 62 65 | 20 69 66 20 67 6c 6f 62 |would be| if glob|
|000044e0| 61 6c 20 76 61 72 69 61 | 62 6c 65 73 0a 58 77 65 |al varia|bles.Xwe|
|000044f0| 72 65 20 75 73 65 64 2e | 20 20 49 6e 20 6f 74 68 |re used.| In oth|
|00004500| 65 72 20 77 6f 72 64 73 | 2c 20 69 66 20 79 6f 75 |er words|, if you|
|00004510| 20 75 73 65 20 6c 6f 63 | 61 6c 20 76 61 72 69 61 | use loc|al varia|
|00004520| 62 6c 65 73 20 63 6f 6e | 73 69 73 74 65 6e 74 6c |bles con|sistentl|
|00004530| 79 2c 0a 58 74 68 65 6e | 20 6e 6f 74 68 69 6e 67 |y,.Xthen| nothing|
|00004540| 20 74 68 61 74 20 68 61 | 70 70 65 6e 73 20 69 6e | that ha|ppens in|
|00004550| 20 6f 6e 65 20 70 72 6f | 63 65 64 75 72 65 20 77 | one pro|cedure w|
|00004560| 69 6c 6c 20 63 68 61 6e | 67 65 20 74 68 65 20 76 |ill chan|ge the v|
|00004570| 61 6c 75 65 73 0a 58 6f | 66 20 76 61 72 69 61 62 |alues.Xo|f variab|
|00004580| 6c 65 73 20 75 73 65 64 | 20 69 6e 20 61 6e 6f 74 |les used| in anot|
|00004590| 68 65 72 20 70 72 6f 63 | 65 64 75 72 65 2e 20 20 |her proc|edure. |
|000045a0| 54 68 69 73 20 6d 61 6b | 65 73 20 69 74 20 76 65 |This mak|es it ve|
|000045b0| 72 79 20 6d 75 63 68 0a | 58 65 61 73 69 65 72 20 |ry much.|Xeasier |
|000045c0| 74 6f 20 66 69 6e 64 20 | 70 72 6f 67 72 61 6d 20 |to find |program |
|000045d0| 65 72 72 6f 72 73 2e 0a | 58 2e 50 50 0a 58 2e 55 |errors..|X.PP.X.U|
|000045e0| 42 20 22 43 61 73 65 20 | 69 6e 73 65 6e 73 69 74 |B "Case |insensit|
|000045f0| 69 76 69 74 79 2e 22 0a | 58 4e 61 6d 65 73 20 6f |ivity.".|XNames o|
|00004600| 66 20 70 72 6f 63 65 64 | 75 72 65 73 20 28 70 72 |f proced|ures (pr|
|00004610| 69 6d 69 74 69 76 65 20 | 6f 72 20 75 73 65 72 2d |imitive |or user-|
|00004620| 64 65 66 69 6e 65 64 29 | 20 61 6e 64 20 6e 61 6d |defined)| and nam|
|00004630| 65 73 20 6f 66 20 76 61 | 72 69 61 62 6c 65 73 0a |es of va|riables.|
|00004640| 58 6d 61 79 20 62 65 20 | 74 79 70 65 64 20 69 6e |Xmay be |typed in|
|00004650| 20 75 70 70 65 72 20 6f | 72 20 6c 6f 77 65 72 20 | upper o|r lower |
|00004660| 63 61 73 65 2e 20 20 54 | 68 65 79 20 61 72 65 20 |case. T|hey are |
|00004670| 63 6f 6e 76 65 72 74 65 | 64 20 69 6e 74 65 72 6e |converte|d intern|
|00004680| 61 6c 6c 79 20 74 6f 0a | 58 6c 6f 77 65 72 20 63 |ally to.|Xlower c|
|00004690| 61 73 65 2e 20 20 54 68 | 61 74 20 69 73 2c 20 74 |ase. Th|at is, t|
|000046a0| 68 65 20 76 61 72 69 61 | 62 6c 65 73 20 5c 66 33 |he varia|bles \f3|
|000046b0| 66 6f 6f 5c 66 31 20 61 | 6e 64 20 5c 66 33 46 4f |foo\f1 a|nd \f3FO|
|000046c0| 4f 5c 66 31 20 61 72 65 | 20 74 68 65 0a 58 73 61 |O\f1 are| the.Xsa|
|000046d0| 6d 65 20 76 61 72 69 61 | 62 6c 65 2e 20 20 4c 65 |me varia|ble. Le|
|000046e0| 74 74 65 72 73 20 69 6e | 20 6f 74 68 65 72 20 63 |tters in| other c|
|000046f0| 6f 6e 74 65 78 74 73 20 | 61 72 65 20 6e 6f 74 20 |ontexts |are not |
|00004700| 63 6f 6e 76 65 72 74 65 | 64 20 74 6f 20 6c 6f 77 |converte|d to low|
|00004710| 65 72 0a 58 63 61 73 65 | 2e 20 20 46 6f 72 20 65 |er.Xcase|. For e|
|00004720| 78 61 6d 70 6c 65 2c 20 | 5c 66 33 65 71 75 61 6c |xample, |\f3equal|
|00004730| 70 5c 66 31 20 77 69 6c | 6c 20 72 65 70 6f 72 74 |p\f1 wil|l report|
|00004740| 20 74 68 61 74 20 74 68 | 65 20 77 6f 72 64 73 20 | that th|e words |
|00004750| 5c 66 33 66 6f 6f 5c 66 | 31 0a 58 61 6e 64 20 5c |\f3foo\f|1.Xand \|
|00004760| 66 33 46 4f 4f 5c 66 31 | 20 61 72 65 20 6e 6f 74 |f3FOO\f1| are not|
|00004770| 20 65 71 75 61 6c 2e 0a | 58 2e 50 50 0a 58 4e 61 | equal..|X.PP.XNa|
|00004780| 6d 65 73 20 6f 66 20 70 | 72 6f 63 65 64 75 72 65 |mes of p|rocedure|
|00004790| 73 20 61 6e 64 20 6e 61 | 6d 65 73 20 6f 66 20 76 |s and na|mes of v|
|000047a0| 61 72 69 61 62 6c 65 73 | 20 6d 61 79 20 69 6e 63 |ariables| may inc|
|000047b0| 6c 75 64 65 20 6f 6e 6c | 79 20 6c 65 74 74 65 72 |lude onl|y letter|
|000047c0| 73 2c 0a 58 64 69 67 69 | 74 73 2c 20 61 6e 64 20 |s,.Xdigi|ts, and |
|000047d0| 74 68 65 20 73 70 65 63 | 69 61 6c 20 63 68 61 72 |the spec|ial char|
|000047e0| 61 63 74 65 72 73 20 70 | 65 72 69 6f 64 20 28 2e |acters p|eriod (.|
|000047f0| 29 20 61 6e 64 20 75 6e | 64 65 72 73 63 6f 72 65 |) and un|derscore|
|00004800| 20 28 5f 29 2e 20 20 41 | 6c 73 6f 2c 0a 58 6e 61 | (_). A|lso,.Xna|
|00004810| 6d 65 73 20 6f 66 20 70 | 72 6f 63 65 64 75 72 65 |mes of p|rocedure|
|00004820| 73 20 61 72 65 20 6c 69 | 6d 69 74 65 64 20 74 6f |s are li|mited to|
|00004830| 20 31 31 20 63 68 61 72 | 61 63 74 65 72 73 20 69 | 11 char|acters i|
|00004840| 6e 20 73 6f 6d 65 20 76 | 65 72 73 69 6f 6e 73 20 |n some v|ersions |
|00004850| 6f 66 20 55 6e 69 78 2e | 0a 58 2e 50 50 0a 58 2e |of Unix.|.X.PP.X.|
|00004860| 55 42 20 22 50 72 69 6d | 69 74 69 76 65 20 70 72 |UB "Prim|itive pr|
|00004870| 6f 63 65 64 75 72 65 73 | 20 74 6f 20 64 65 66 69 |ocedures| to defi|
|00004880| 6e 65 20 75 73 65 72 20 | 70 72 6f 63 65 64 75 72 |ne user |procedur|
|00004890| 65 73 2e 22 0a 58 54 68 | 65 72 65 20 61 72 65 0a |es.".XTh|ere are.|
|000048a0| 58 74 77 6f 20 77 61 79 | 73 20 74 6f 20 64 65 66 |Xtwo way|s to def|
|000048b0| 69 6e 65 20 79 6f 75 72 | 20 6f 77 6e 20 70 72 6f |ine your| own pro|
|000048c0| 63 65 64 75 72 65 2e 20 | 20 54 68 65 20 66 69 72 |cedure. | The fir|
|000048d0| 73 74 20 77 61 79 2c 20 | 75 73 69 6e 67 20 74 68 |st way, |using th|
|000048e0| 65 20 5c 66 33 74 6f 5c | 66 31 0a 58 63 6f 6d 6d |e \f3to\|f1.Xcomm|
|000048f0| 61 6e 64 2c 20 69 73 20 | 73 69 6d 70 6c 65 20 74 |and, is |simple t|
|00004900| 6f 20 6c 65 61 72 6e 20 | 62 75 74 20 6c 69 6d 69 |o learn |but limi|
|00004910| 74 65 64 20 69 6e 20 66 | 6c 65 78 69 62 69 6c 69 |ted in f|lexibili|
|00004920| 74 79 2e 20 20 54 68 65 | 20 73 65 63 6f 6e 64 20 |ty. The| second |
|00004930| 77 61 79 2c 0a 58 75 73 | 69 6e 67 20 74 68 65 20 |way,.Xus|ing the |
|00004940| 5c 66 33 65 64 69 74 5c | 66 31 20 63 6f 6d 6d 61 |\f3edit\|f1 comma|
|00004950| 6e 64 2c 20 69 73 20 6d | 6f 72 65 20 63 6f 6d 70 |nd, is m|ore comp|
|00004960| 6c 69 63 61 74 65 64 20 | 74 6f 20 6c 65 61 72 6e |licated |to learn|
|00004970| 2c 20 62 75 74 20 6d 61 | 6b 65 73 20 69 74 0a 58 |, but ma|kes it.X|
|00004980| 65 61 73 79 20 74 6f 20 | 6d 61 6b 65 20 63 68 61 |easy to |make cha|
|00004990| 6e 67 65 73 20 69 6e 20 | 79 6f 75 72 20 70 72 6f |nges in |your pro|
|000049a0| 63 65 64 75 72 65 73 2e | 20 20 54 68 65 20 5c 66 |cedures.| The \f|
|000049b0| 33 65 64 69 74 5c 66 31 | 20 63 6f 6d 6d 61 6e 64 |3edit\f1| command|
|000049c0| 20 75 73 65 73 20 74 68 | 65 0a 58 74 65 78 74 20 | uses th|e.Xtext |
|000049d0| 65 64 69 74 69 6e 67 20 | 70 72 6f 67 72 61 6d 20 |editing |program |
|000049e0| 5c 66 33 65 64 74 5c 66 | 31 2c 20 6a 75 73 74 20 |\f3edt\f|1, just |
|000049f0| 61 73 20 79 6f 75 20 6d | 69 67 68 74 20 75 73 65 |as you m|ight use|
|00004a00| 20 69 74 20 6f 75 74 73 | 69 64 65 20 6f 66 20 4c | it outs|ide of L|
|00004a10| 6f 67 6f 0a 58 74 6f 20 | 65 64 69 74 20 61 20 64 |ogo.Xto |edit a d|
|00004a20| 6f 63 75 6d 65 6e 74 20 | 79 6f 75 20 77 61 6e 74 |ocument |you want|
|00004a30| 20 74 6f 20 70 72 69 6e | 74 2e 20 20 4f 6e 63 65 | to prin|t. Once|
|00004a40| 20 79 6f 75 27 76 65 20 | 6c 65 61 72 6e 65 64 20 | you've |learned |
|00004a50| 74 68 65 20 73 70 65 63 | 69 61 6c 0a 58 65 64 69 |the spec|ial.Xedi|
|00004a60| 74 69 6e 67 20 63 6f 6d | 6d 61 6e 64 73 20 69 6e |ting com|mands in|
|00004a70| 20 5c 66 33 65 64 74 5c | 66 31 2c 20 69 74 27 73 | \f3edt\|f1, it's|
|00004a80| 20 65 61 73 79 20 74 6f | 20 75 73 65 2e 20 20 54 | easy to| use. T|
|00004a90| 68 65 20 5c 66 33 74 6f | 5c 66 31 20 63 6f 6d 6d |he \f3to|\f1 comm|
|00004aa0| 61 6e 64 20 6d 61 6b 65 | 73 0a 58 69 74 20 70 6f |and make|s.Xit po|
|00004ab0| 73 73 69 62 6c 65 20 74 | 6f 20 62 65 67 69 6e 20 |ssible t|o begin |
|00004ac0| 70 72 6f 67 72 61 6d 6d | 69 6e 67 20 69 6e 20 4c |programm|ing in L|
|00004ad0| 6f 67 6f 20 77 69 74 68 | 6f 75 74 20 68 61 76 69 |ogo with|out havi|
|00004ae0| 6e 67 20 6c 65 61 72 6e | 65 64 20 68 6f 77 20 74 |ng learn|ed how t|
|00004af0| 6f 20 75 73 65 0a 58 5c | 66 33 65 64 74 5c 66 31 |o use.X\|f3edt\f1|
|00004b00| 2e 20 20 49 74 20 6a 75 | 73 74 20 6c 65 74 73 20 |. It ju|st lets |
|00004b10| 79 6f 75 20 74 79 70 65 | 20 69 6e 20 79 6f 75 72 |you type| in your|
|00004b20| 20 70 72 6f 63 65 64 75 | 72 65 20 64 65 66 69 6e | procedu|re defin|
|00004b30| 69 74 69 6f 6e 2c 20 77 | 69 74 68 6f 75 74 20 61 |ition, w|ithout a|
|00004b40| 6e 79 0a 58 70 72 6f 76 | 69 73 69 6f 6e 20 66 6f |ny.Xprov|ision fo|
|00004b50| 72 20 63 6f 72 72 65 63 | 74 69 6e 67 20 65 72 72 |r correc|ting err|
|00004b60| 6f 72 73 20 6f 72 20 63 | 68 61 6e 67 69 6e 67 20 |ors or c|hanging |
|00004b70| 74 68 65 20 64 65 66 69 | 6e 69 74 69 6f 6e 20 6f |the defi|nition o|
|00004b80| 66 20 74 68 65 20 70 72 | 6f 63 65 64 75 72 65 2e |f the pr|ocedure.|
|00004b90| 0a 58 49 74 20 69 73 20 | 66 61 73 74 20 61 6e 64 |.XIt is |fast and|
|00004ba0| 20 63 6f 6e 76 65 6e 69 | 65 6e 74 20 66 6f 72 20 | conveni|ent for |
|00004bb0| 73 68 6f 72 74 20 70 72 | 6f 63 65 64 75 72 65 73 |short pr|ocedures|
|00004bc0| 2c 20 62 75 74 20 6c 69 | 6d 69 74 65 64 2e 0a 58 |, but li|mited..X|
|00004bd0| 2e 73 70 20 31 0a 58 54 | 68 65 20 5c 66 33 74 6f |.sp 1.XT|he \f3to|
|00004be0| 5c 66 31 20 63 6f 6d 6d | 61 6e 64 20 69 73 20 75 |\f1 comm|and is u|
|00004bf0| 6e 69 71 75 65 2c 20 69 | 6e 20 4c 6f 67 6f 2c 20 |nique, i|n Logo, |
|00004c00| 69 6e 20 74 68 61 74 20 | 69 74 73 20 69 6e 70 75 |in that |its inpu|
|00004c10| 74 73 20 61 72 65 20 69 | 6e 74 65 72 70 72 65 74 |ts are i|nterpret|
|00004c20| 65 64 0a 58 69 6e 20 61 | 20 73 70 65 63 69 61 6c |ed.Xin a| special|
|00004c30| 20 77 61 79 2e 20 20 54 | 68 65 20 69 6e 70 75 74 | way. T|he input|
|00004c40| 73 20 61 72 65 6e 27 74 | 20 5c 66 32 65 76 61 6c |s aren't| \f2eval|
|00004c50| 75 61 74 65 64 5c 66 31 | 3a 20 4c 6f 67 6f 20 64 |uated\f1|: Logo d|
|00004c60| 6f 65 73 6e 27 74 20 72 | 75 6e 20 61 6e 79 0a 58 |oesn't r|un any.X|
|00004c70| 70 72 6f 63 65 64 75 72 | 65 73 20 79 6f 75 20 6e |procedur|es you n|
|00004c80| 61 6d 65 2c 20 6f 72 20 | 6c 6f 6f 6b 20 75 70 20 |ame, or |look up |
|00004c90| 74 68 65 20 76 61 6c 75 | 65 73 20 6f 66 20 61 6e |the valu|es of an|
|00004ca0| 79 20 76 61 72 69 61 62 | 6c 65 73 2c 20 62 65 66 |y variab|les, bef|
|00004cb0| 6f 72 65 20 63 61 72 72 | 79 69 6e 67 0a 58 6f 75 |ore carr|ying.Xou|
|00004cc0| 74 20 74 68 65 20 5c 66 | 33 74 6f 5c 66 31 20 63 |t the \f|3to\f1 c|
|00004cd0| 6f 6d 6d 61 6e 64 2e 20 | 20 54 68 65 20 65 78 61 |ommand. | The exa|
|00004ce0| 6d 70 6c 65 20 62 65 6c | 6f 77 20 73 68 6f 75 6c |mple bel|ow shoul|
|00004cf0| 64 20 6d 61 6b 65 20 74 | 68 69 73 20 63 6c 65 61 |d make t|his clea|
|00004d00| 72 65 72 2e 0a 58 2e 73 | 70 20 31 0a 58 5c 66 33 |rer..X.s|p 1.X\f3|
|00004d10| 74 6f 5c 66 31 20 5c 28 | 65 6d 20 43 6f 6d 6d 61 |to\f1 \(|em Comma|
|00004d20| 6e 64 2c 20 73 70 65 63 | 69 61 6c 20 66 6f 72 6d |nd, spec|ial form|
|00004d30| 2c 20 73 65 65 20 62 65 | 6c 6f 77 2e 0a 58 2e 49 |, see be|low..X.I|
|00004d40| 4e 0a 58 54 68 69 73 20 | 63 6f 6d 6d 61 6e 64 20 |N.XThis |command |
|00004d50| 74 61 6b 65 73 20 61 20 | 76 61 72 69 61 62 6c 65 |takes a |variable|
|00004d60| 20 6e 75 6d 62 65 72 20 | 6f 66 20 69 6e 70 75 74 | number |of input|
|00004d70| 73 2e 20 20 54 68 65 20 | 66 69 72 73 74 20 69 73 |s. The |first is|
|00004d80| 20 74 68 65 20 6e 61 6d | 65 0a 58 6f 66 20 61 20 | the nam|e.Xof a |
|00004d90| 70 72 6f 63 65 64 75 72 | 65 20 74 6f 20 62 65 20 |procedur|e to be |
|00004da0| 64 65 66 69 6e 65 64 2e | 20 20 54 68 65 20 72 65 |defined.| The re|
|00004db0| 73 74 2c 20 69 66 20 61 | 6e 79 2c 20 6d 75 73 74 |st, if a|ny, must|
|00004dc0| 20 62 65 20 70 72 65 63 | 65 64 65 64 20 62 79 0a | be prec|eded by.|
|00004dd0| 58 63 6f 6c 6f 6e 73 2c | 20 61 6e 64 20 61 72 65 |Xcolons,| and are|
|00004de0| 20 74 68 65 20 6e 61 6d | 65 73 20 6f 66 20 76 61 | the nam|es of va|
|00004df0| 72 69 61 62 6c 65 73 20 | 74 6f 20 62 65 20 75 73 |riables |to be us|
|00004e00| 65 64 20 61 73 20 69 6e | 70 75 74 73 20 74 6f 20 |ed as in|puts to |
|00004e10| 74 68 65 0a 58 70 72 6f | 63 65 64 75 72 65 2e 20 |the.Xpro|cedure. |
|00004e20| 20 4c 6f 67 6f 20 72 65 | 73 70 6f 6e 64 73 20 74 | Logo re|sponds t|
|00004e30| 6f 20 74 68 65 20 5c 66 | 33 74 6f 5c 66 31 20 63 |o the \f|3to\f1 c|
|00004e40| 6f 6d 6d 61 6e 64 20 62 | 79 20 70 72 69 6e 74 69 |ommand b|y printi|
|00004e50| 6e 67 20 61 0a 58 22 67 | 72 65 61 74 65 72 20 74 |ng a.X"g|reater t|
|00004e60| 68 61 6e 22 20 73 69 67 | 6e 20 28 3e 29 20 70 72 |han" sig|n (>) pr|
|00004e70| 6f 6d 70 74 2c 20 74 6f | 20 73 68 6f 77 20 79 6f |ompt, to| show yo|
|00004e80| 75 20 74 68 61 74 20 79 | 6f 75 20 61 72 65 20 64 |u that y|ou are d|
|00004e90| 65 66 69 6e 69 6e 67 20 | 61 20 70 72 6f 63 65 64 |efining |a proced|
|00004ea0| 75 72 65 0a 58 72 61 74 | 68 65 72 20 74 68 61 6e |ure.Xrat|her than|
|00004eb0| 20 65 6e 74 65 72 69 6e | 67 20 63 6f 6d 6d 61 6e | enterin|g comman|
|00004ec0| 64 73 20 74 6f 20 62 65 | 20 65 78 65 63 75 74 65 |ds to be| execute|
|00004ed0| 64 20 69 6d 6d 65 64 69 | 61 74 65 6c 79 2e 20 20 |d immedi|ately. |
|00004ee0| 59 6f 75 20 74 79 70 65 | 0a 58 74 68 65 20 69 6e |You type|.Xthe in|
|00004ef0| 73 74 72 75 63 74 69 6f | 6e 20 6c 69 6e 65 73 20 |structio|n lines |
|00004f00| 77 68 69 63 68 20 6d 61 | 6b 65 20 75 70 20 74 68 |which ma|ke up th|
|00004f10| 65 20 64 65 66 69 6e 69 | 74 69 6f 6e 2e 20 20 57 |e defini|tion. W|
|00004f20| 68 65 6e 0a 58 79 6f 75 | 20 61 72 65 20 64 6f 6e |hen.Xyou| are don|
|00004f30| 65 20 77 69 74 68 20 74 | 68 65 20 64 65 66 69 6e |e with t|he defin|
|00004f40| 69 74 69 6f 6e 2c 20 74 | 79 70 65 20 74 68 65 20 |ition, t|ype the |
|00004f50| 73 70 65 63 69 61 6c 20 | 77 6f 72 64 20 5c 66 33 |special |word \f3|
|00004f60| 65 6e 64 5c 66 31 20 6f | 6e 0a 58 61 20 6c 69 6e |end\f1 o|n.Xa lin|
|00004f70| 65 20 62 79 20 69 74 73 | 65 6c 66 2e 20 20 46 6f |e by its|elf. Fo|
|00004f80| 72 20 65 78 61 6d 70 6c | 65 3a 0a 58 2e 73 70 20 |r exampl|e:.X.sp |
|00004f90| 31 0a 58 2e 6e 66 0a 58 | 5c 66 33 5c 7a 5f 3f 74 |1.X.nf.X|\f3\z_?t|
|00004fa0| 6f 20 74 77 6f 70 72 69 | 6e 74 20 3a 74 68 69 6e |o twopri|nt :thin|
|00004fb0| 67 0a 58 5c 7a 5f 3e 70 | 72 69 6e 74 20 3a 74 68 |g.X\z_>p|rint :th|
|00004fc0| 69 6e 67 0a 58 5c 7a 5f | 3e 70 72 69 6e 74 20 3a |ing.X\z_|>print :|
|00004fd0| 74 68 69 6e 67 0a 58 5c | 7a 5f 3e 65 6e 64 0a 58 |thing.X\|z_>end.X|
|00004fe0| 5c 7a 5f 3f 5c 66 31 0a | 58 2e 66 69 0a 58 2e 73 |\z_?\f1.|X.fi.X.s|
|00004ff0| 70 20 31 0a 58 54 68 69 | 73 20 65 78 61 6d 70 6c |p 1.XThi|s exampl|
|00005000| 65 20 73 68 6f 77 73 20 | 74 68 65 20 64 65 66 69 |e shows |the defi|
|00005010| 6e 69 74 69 6f 6e 20 6f | 66 20 61 20 70 72 6f 63 |nition o|f a proc|
|00005020| 65 64 75 72 65 20 6e 61 | 6d 65 64 20 5c 66 33 74 |edure na|med \f3t|
|00005030| 77 6f 70 72 69 6e 74 5c | 66 31 2c 0a 58 77 68 69 |woprint\|f1,.Xwhi|
|00005040| 63 68 20 68 61 73 20 6f | 6e 65 20 69 6e 70 75 74 |ch has o|ne input|
|00005050| 2c 20 6e 61 6d 65 64 20 | 5c 66 33 74 68 69 6e 67 |, named |\f3thing|
|00005060| 5c 66 31 2e 20 20 54 68 | 65 20 70 72 6f 63 65 64 |\f1. Th|e proced|
|00005070| 75 72 65 20 79 6f 75 20 | 61 72 65 20 64 65 66 69 |ure you |are defi|
|00005080| 6e 69 6e 67 0a 58 77 69 | 74 68 20 74 68 65 20 5c |ning.Xwi|th the \|
|00005090| 66 33 74 6f 5c 66 31 20 | 63 6f 6d 6d 61 6e 64 20 |f3to\f1 |command |
|000050a0| 6d 75 73 74 20 6e 6f 74 | 20 61 6c 72 65 61 64 79 |must not| already|
|000050b0| 20 62 65 20 64 65 66 69 | 6e 65 64 2e 0a 58 2e 4f | be defi|ned..X.O|
|000050c0| 55 0a 58 5c 66 33 65 64 | 69 74 5c 66 31 20 5c 28 |U.X\f3ed|it\f1 \(|
|000050d0| 65 6d 20 43 6f 6d 6d 61 | 6e 64 2c 20 7a 65 72 6f |em Comma|nd, zero|
|000050e0| 20 6f 72 20 6f 6e 65 20 | 69 6e 70 75 74 2e 20 20 | or one |input. |
|000050f0| 41 62 62 72 65 76 69 61 | 74 69 6f 6e 3a 20 5c 66 |Abbrevia|tion: \f|
|00005100| 33 65 64 5c 66 31 0a 58 | 2e 49 4e 0a 58 54 68 65 |3ed\f1.X|.IN.XThe|
|00005110| 20 69 6e 70 75 74 20 74 | 6f 20 74 68 69 73 20 63 | input t|o this c|
|00005120| 6f 6d 6d 61 6e 64 20 6d | 75 73 74 20 62 65 20 61 |ommand m|ust be a|
|00005130| 20 77 6f 72 64 2c 20 77 | 68 69 63 68 20 69 73 20 | word, w|hich is |
|00005140| 74 68 65 20 6e 61 6d 65 | 20 6f 66 20 61 20 70 72 |the name| of a pr|
|00005150| 6f 63 65 64 75 72 65 2c | 0a 58 6f 72 20 61 20 6c |ocedure,|.Xor a l|
|00005160| 69 73 74 20 6f 66 20 77 | 6f 72 64 73 2c 20 65 61 |ist of w|ords, ea|
|00005170| 63 68 20 6f 66 20 77 68 | 69 63 68 20 69 73 20 74 |ch of wh|ich is t|
|00005180| 68 65 20 6e 61 6d 65 20 | 6f 66 20 61 20 70 72 6f |he name |of a pro|
|00005190| 63 65 64 75 72 65 2e 0a | 58 28 55 6e 6c 69 6b 65 |cedure..|X(Unlike|
|000051a0| 20 74 68 65 20 5c 66 33 | 74 6f 5c 66 31 20 63 6f | the \f3|to\f1 co|
|000051b0| 6d 6d 61 6e 64 2c 20 62 | 75 74 20 6c 69 6b 65 20 |mmand, b|ut like |
|000051c0| 61 6c 6c 20 6f 74 68 65 | 72 20 4c 6f 67 6f 20 70 |all othe|r Logo p|
|000051d0| 72 6f 63 65 64 75 72 65 | 73 2c 20 74 68 65 0a 58 |rocedure|s, the.X|
|000051e0| 5c 66 33 65 64 69 74 5c | 66 31 20 63 6f 6d 6d 61 |\f3edit\|f1 comma|
|000051f0| 6e 64 20 65 76 61 6c 75 | 61 74 65 73 20 69 74 73 |nd evalu|ates its|
|00005200| 20 69 6e 70 75 74 2c 20 | 73 6f 20 79 6f 75 20 6d | input, |so you m|
|00005210| 75 73 74 20 75 73 65 20 | 61 20 71 75 6f 74 61 74 |ust use |a quotat|
|00005220| 69 6f 6e 20 6d 61 72 6b | 0a 58 62 65 66 6f 72 65 |ion mark|.Xbefore|
|00005230| 20 74 68 65 20 70 72 6f | 63 65 64 75 72 65 20 6e | the pro|cedure n|
|00005240| 61 6d 65 2c 20 69 66 20 | 6f 6e 6c 79 20 6f 6e 65 |ame, if |only one|
|00005250| 20 69 73 20 67 69 76 65 | 6e 2c 20 74 6f 20 69 6e | is give|n, to in|
|00005260| 64 69 63 61 74 65 0a 58 | 74 68 61 74 20 69 74 20 |dicate.X|that it |
|00005270| 69 73 20 74 68 65 20 6e | 61 6d 65 20 69 74 73 65 |is the n|ame itse|
|00005280| 6c 66 20 77 68 69 63 68 | 20 69 73 0a 58 74 68 65 |lf which| is.Xthe|
|00005290| 20 69 6e 70 75 74 20 74 | 6f 20 5c 66 33 65 64 69 | input t|o \f3edi|
|000052a0| 74 5c 66 31 3b 20 6f 74 | 68 65 72 77 69 73 65 20 |t\f1; ot|herwise |
|000052b0| 4c 6f 67 6f 20 77 6f 75 | 6c 64 20 61 63 74 75 61 |Logo wou|ld actua|
|000052c0| 6c 6c 79 20 72 75 6e 20 | 74 68 65 20 70 72 6f 63 |lly run |the proc|
|000052d0| 65 64 75 72 65 0a 58 74 | 6f 20 63 61 6c 63 75 6c |edure.Xt|o calcul|
|000052e0| 61 74 65 20 74 68 65 20 | 69 6e 70 75 74 20 74 6f |ate the |input to|
|000052f0| 20 5c 66 33 65 64 69 74 | 5c 66 31 2e 29 20 20 54 | \f3edit|\f1.) T|
|00005300| 68 65 20 70 72 6f 63 65 | 64 75 72 65 20 79 6f 75 |he proce|dure you|
|00005310| 20 6e 61 6d 65 20 6d 61 | 79 20 6f 72 20 6d 61 79 | name ma|y or may|
|00005320| 0a 58 6e 6f 74 20 61 6c | 72 65 61 64 79 20 62 65 |.Xnot al|ready be|
|00005330| 20 64 65 66 69 6e 65 64 | 2e 20 20 4c 6f 67 6f 20 | defined|. Logo |
|00005340| 72 65 73 70 6f 6e 64 73 | 20 74 6f 20 74 68 65 20 |responds| to the |
|00005350| 5c 66 33 65 64 69 74 5c | 66 31 20 63 6f 6d 6d 61 |\f3edit\|f1 comma|
|00005360| 6e 64 20 62 79 20 72 75 | 6e 6e 69 6e 67 0a 58 74 |nd by ru|nning.Xt|
|00005370| 68 65 20 74 65 78 74 20 | 65 64 69 74 6f 72 20 5c |he text |editor \|
|00005380| 66 33 65 64 74 5c 66 31 | 2c 20 65 64 69 74 69 6e |f3edt\f1|, editin|
|00005390| 67 20 74 68 65 20 64 65 | 66 69 6e 69 74 69 6f 6e |g the de|finition|
|000053a0| 20 6f 66 20 74 68 65 20 | 70 72 6f 63 65 64 75 72 | of the |procedur|
|000053b0| 65 28 73 29 20 6e 61 6d | 65 64 20 69 6e 0a 58 69 |e(s) nam|ed in.Xi|
|000053c0| 74 73 20 69 6e 70 75 74 | 2e 20 20 28 49 66 20 61 |ts input|. (If a|
|000053d0| 20 70 72 6f 63 65 64 75 | 72 65 20 77 61 73 20 6e | procedu|re was n|
|000053e0| 6f 74 20 70 72 65 76 69 | 6f 75 73 6c 79 20 64 65 |ot previ|ously de|
|000053f0| 66 69 6e 65 64 2c 20 4c | 6f 67 6f 20 63 72 65 61 |fined, L|ogo crea|
|00005400| 74 65 73 20 61 6e 0a 58 | 69 6e 69 74 69 61 6c 20 |tes an.X|initial |
|00005410| 64 65 66 69 6e 69 74 69 | 6f 6e 20 66 6f 72 20 69 |definiti|on for i|
|00005420| 74 20 77 68 69 63 68 20 | 63 6f 6e 74 61 69 6e 73 |t which |contains|
|00005430| 20 6f 6e 6c 79 20 61 20 | 74 69 74 6c 65 20 6c 69 | only a |title li|
|00005440| 6e 65 20 61 6e 64 20 74 | 68 65 20 65 6e 64 20 6c |ne and t|he end l|
|00005450| 69 6e 65 2e 29 0a 58 59 | 6f 75 20 74 68 65 6e 20 |ine.).XY|ou then |
|00005460| 65 64 69 74 20 74 68 65 | 20 64 65 66 69 6e 69 74 |edit the| definit|
|00005470| 69 6f 6e 28 73 29 20 77 | 69 74 68 20 5c 66 33 65 |ion(s) w|ith \f3e|
|00005480| 64 74 5c 66 31 2e 20 20 | 57 68 65 6e 20 79 6f 75 |dt\f1. |When you|
|00005490| 20 77 72 69 74 65 20 74 | 68 65 20 66 69 6c 65 20 | write t|he file |
|000054a0| 61 6e 64 0a 58 6c 65 61 | 76 65 20 5c 66 33 65 64 |and.Xlea|ve \f3ed|
|000054b0| 74 5c 66 31 2c 20 4c 6f | 67 6f 20 77 69 6c 6c 20 |t\f1, Lo|go will |
|000054c0| 75 73 65 20 74 68 65 20 | 65 64 69 74 65 64 20 66 |use the |edited f|
|000054d0| 69 6c 65 20 61 73 20 74 | 68 65 20 64 65 66 69 6e |ile as t|he defin|
|000054e0| 69 74 69 6f 6e 28 73 29 | 20 6f 66 20 74 68 65 0a |ition(s)| of the.|
|000054f0| 58 70 72 6f 63 65 64 75 | 72 65 28 73 29 2e 20 20 |Xprocedu|re(s). |
|00005500| 59 6f 75 20 6d 75 73 74 | 20 6e 6f 74 20 70 75 74 |You must| not put|
|00005510| 20 61 6e 79 74 68 69 6e | 67 20 69 6e 20 74 68 65 | anythin|g in the|
|00005520| 20 66 69 6c 65 20 65 78 | 63 65 70 74 20 70 72 6f | file ex|cept pro|
|00005530| 63 65 64 75 72 65 0a 58 | 64 65 66 69 6e 69 74 69 |cedure.X|definiti|
|00005540| 6f 6e 73 3b 20 69 6e 20 | 6f 74 68 65 72 20 77 6f |ons; in |other wo|
|00005550| 72 64 73 2c 20 65 76 65 | 72 79 20 6e 6f 6e 65 6d |rds, eve|ry nonem|
|00005560| 70 74 79 20 6c 69 6e 65 | 20 69 6e 20 74 68 65 20 |pty line| in the |
|00005570| 66 69 6c 65 20 6d 75 73 | 74 20 62 65 20 62 65 74 |file mus|t be bet|
|00005580| 77 65 65 6e 0a 58 61 20 | 22 74 6f 22 20 6c 69 6e |ween.Xa |"to" lin|
|00005590| 65 20 61 6e 64 20 61 6e | 20 22 65 6e 64 22 20 6c |e and an| "end" l|
|000055a0| 69 6e 65 2e 0a 58 2e 73 | 70 20 31 0a 58 49 66 20 |ine..X.s|p 1.XIf |
|000055b0| 74 68 65 20 5c 66 33 65 | 64 69 74 5c 66 31 20 63 |the \f3e|dit\f1 c|
|000055c0| 6f 6d 6d 61 6e 64 20 69 | 73 20 67 69 76 65 6e 20 |ommand i|s given |
|000055d0| 77 69 74 68 20 6e 6f 20 | 69 6e 70 75 74 2c 20 5c |with no |input, \|
|000055e0| 66 33 65 64 74 5c 66 31 | 20 69 73 20 67 69 76 65 |f3edt\f1| is give|
|000055f0| 6e 20 74 68 65 20 73 61 | 6d 65 0a 58 66 69 6c 65 |n the sa|me.Xfile|
|00005600| 20 61 73 20 66 72 6f 6d | 20 74 68 65 20 6c 61 73 | as from| the las|
|00005610| 74 20 74 69 6d 65 20 79 | 6f 75 20 75 73 65 64 20 |t time y|ou used |
|00005620| 74 68 65 20 5c 66 33 65 | 64 69 74 5c 66 31 20 63 |the \f3e|dit\f1 c|
|00005630| 6f 6d 6d 61 6e 64 2e 20 | 20 54 68 69 73 20 69 73 |ommand. | This is|
|00005640| 20 61 0a 58 63 6f 6e 76 | 65 6e 69 65 6e 63 65 20 | a.Xconv|enience |
|00005650| 66 6f 72 20 65 64 69 74 | 69 6e 67 20 74 68 65 20 |for edit|ing the |
|00005660| 73 61 6d 65 20 70 72 6f | 63 65 64 75 72 65 28 73 |same pro|cedure(s|
|00005670| 29 20 72 65 70 65 61 74 | 65 64 6c 79 2e 0a 58 2e |) repeat|edly..X.|
|00005680| 73 70 20 31 0a 58 49 66 | 2c 20 77 68 69 6c 65 20 |sp 1.XIf|, while |
|00005690| 65 64 69 74 69 6e 67 2c | 20 79 6f 75 20 63 68 61 |editing,| you cha|
|000056a0| 6e 67 65 20 79 6f 75 72 | 20 6d 69 6e 64 20 61 6e |nge your| mind an|
|000056b0| 64 20 77 61 6e 74 20 74 | 6f 20 6c 65 61 76 65 20 |d want t|o leave |
|000056c0| 5c 66 33 65 64 74 5c 66 | 31 0a 58 77 69 74 68 6f |\f3edt\f|1.Xwitho|
|000056d0| 75 74 20 72 65 64 65 66 | 69 6e 69 6e 67 20 61 6e |ut redef|ining an|
|000056e0| 79 74 68 69 6e 67 2c 20 | 75 73 65 20 74 68 65 20 |ything, |use the |
|000056f0| 63 6f 6d 6d 61 6e 64 20 | 5c 66 33 45 53 43 20 5e |command |\f3ESC ^|
|00005700| 5a 5c 66 31 20 69 6e 73 | 74 65 61 64 20 6f 66 0a |Z\f1 ins|tead of.|
|00005710| 58 74 68 65 20 6e 6f 72 | 6d 61 6c 20 5c 66 33 5e |Xthe nor|mal \f3^|
|00005720| 5a 5c 66 31 2e 20 20 54 | 68 69 73 20 73 70 65 63 |Z\f1. T|his spec|
|00005730| 69 61 6c 20 77 61 79 20 | 6f 66 20 6c 65 61 76 69 |ial way |of leavi|
|00005740| 6e 67 20 5c 66 33 65 64 | 74 5c 66 31 20 74 65 6c |ng \f3ed|t\f1 tel|
|00005750| 6c 73 20 4c 6f 67 6f 0a | 58 6e 6f 74 20 74 6f 20 |ls Logo.|Xnot to |
|00005760| 72 65 64 65 66 69 6e 65 | 20 79 6f 75 72 20 70 72 |redefine| your pr|
|00005770| 6f 63 65 64 75 72 65 73 | 2e 20 20 59 6f 75 20 68 |ocedures|. You h|
|00005780| 61 76 65 20 74 68 65 20 | 63 68 6f 69 63 65 2c 20 |ave the |choice, |
|00005790| 62 65 66 6f 72 65 20 65 | 78 69 74 69 6e 67 0a 58 |before e|xiting.X|
|000057a0| 5c 66 33 65 64 74 5c 66 | 31 2c 20 6f 66 20 77 72 |\f3edt\f|1, of wr|
|000057b0| 69 74 69 6e 67 20 6f 72 | 20 6e 6f 74 20 77 72 69 |iting or| not wri|
|000057c0| 74 69 6e 67 20 74 68 65 | 20 74 65 6d 70 6f 72 61 |ting the| tempora|
|000057d0| 72 79 20 66 69 6c 65 20 | 77 68 69 63 68 20 63 6f |ry file |which co|
|000057e0| 6e 74 61 69 6e 73 0a 58 | 74 68 65 20 64 65 66 69 |ntains.X|the defi|
|000057f0| 6e 69 74 69 6f 6e 73 2e | 20 20 49 66 20 79 6f 75 |nitions.| If you|
|00005800| 20 64 6f 6e 27 74 20 77 | 72 69 74 65 20 74 68 65 | don't w|rite the|
|00005810| 20 66 69 6c 65 2c 20 61 | 6e 6f 74 68 65 72 20 5c | file, a|nother \|
|00005820| 66 33 65 64 69 74 5c 66 | 31 20 63 6f 6d 6d 61 6e |f3edit\f|1 comman|
|00005830| 64 0a 58 77 69 74 68 20 | 6e 6f 20 69 6e 70 75 74 |d.Xwith |no input|
|00005840| 20 77 69 6c 6c 20 72 65 | 2d 72 65 61 64 20 74 68 | will re|-read th|
|00005850| 65 20 70 72 65 76 69 6f | 75 73 20 63 6f 6e 74 65 |e previo|us conte|
|00005860| 6e 74 73 20 6f 66 20 74 | 68 65 20 74 65 6d 70 6f |nts of t|he tempo|
|00005870| 72 61 72 79 20 66 69 6c | 65 3b 0a 58 69 66 20 79 |rary fil|e;.Xif y|
|00005880| 6f 75 20 64 6f 2c 20 61 | 6e 6f 74 68 65 72 20 5c |ou do, a|nother \|
|00005890| 66 33 65 64 69 74 5c 66 | 31 20 77 69 6c 6c 20 72 |f3edit\f|1 will r|
|000058a0| 65 2d 72 65 61 64 20 74 | 68 65 20 6e 65 77 20 76 |e-read t|he new v|
|000058b0| 65 72 73 69 6f 6e 2e 0a | 58 2e 73 70 20 31 0a 58 |ersion..|X.sp 1.X|
|000058c0| 49 66 20 79 6f 75 72 20 | 55 6e 69 78 20 65 6e 76 |If your |Unix env|
|000058d0| 69 72 6f 6e 6d 65 6e 74 | 20 63 6f 6e 74 61 69 6e |ironment| contain|
|000058e0| 73 20 61 20 76 61 72 69 | 61 62 6c 65 20 6e 61 6d |s a vari|able nam|
|000058f0| 65 64 20 45 44 49 54 4f | 52 2c 20 74 68 65 20 63 |ed EDITO|R, the c|
|00005900| 6f 6e 74 65 6e 74 73 20 | 6f 66 0a 58 74 68 61 74 |ontents |of.Xthat|
|00005910| 20 76 61 72 69 61 62 6c | 65 20 69 73 20 75 73 65 | variabl|e is use|
|00005920| 64 20 61 73 20 74 68 65 | 20 6e 61 6d 65 20 6f 66 |d as the| name of|
|00005930| 20 74 68 65 20 74 65 78 | 74 20 65 64 69 74 6f 72 | the tex|t editor|
|00005940| 20 70 72 6f 67 72 61 6d | 20 69 6e 73 74 65 61 64 | program| instead|
|00005950| 20 6f 66 0a 58 74 68 65 | 20 73 74 61 6e 64 61 72 | of.Xthe| standar|
|00005960| 64 20 5c 66 33 65 64 74 | 5c 66 31 2e 20 20 54 68 |d \f3edt|\f1. Th|
|00005970| 65 20 76 61 72 69 61 62 | 6c 65 20 63 61 6e 20 63 |e variab|le can c|
|00005980| 6f 6e 74 61 69 6e 20 61 | 20 66 75 6c 6c 20 70 61 |ontain a| full pa|
|00005990| 74 68 6e 61 6d 65 2c 20 | 6f 72 20 6a 75 73 74 0a |thname, |or just.|
|000059a0| 58 61 20 70 72 6f 67 72 | 61 6d 20 6e 61 6d 65 20 |Xa progr|am name |
|000059b0| 69 66 20 74 68 65 20 70 | 72 6f 67 72 61 6d 20 63 |if the p|rogram c|
|000059c0| 61 6e 20 62 65 20 66 6f | 75 6e 64 20 69 6e 20 2f |an be fo|und in /|
|000059d0| 62 69 6e 20 6f 72 20 2f | 75 73 72 2f 62 69 6e 2e |bin or /|usr/bin.|
|000059e0| 20 20 59 6f 75 72 20 66 | 61 76 6f 72 69 74 65 0a | Your f|avorite.|
|000059f0| 58 65 64 69 74 6f 72 20 | 6d 61 79 20 6e 6f 74 20 |Xeditor |may not |
|00005a00| 68 61 76 65 20 61 20 66 | 61 63 69 6c 69 74 79 20 |have a f|acility |
|00005a10| 6c 69 6b 65 20 5c 66 33 | 65 64 74 5c 66 31 27 73 |like \f3|edt\f1's|
|00005a20| 20 45 53 43 20 5e 5a 20 | 74 6f 20 61 62 6f 72 74 | ESC ^Z |to abort|
|00005a30| 20 72 65 64 65 66 69 6e | 69 74 69 6f 6e 2e 0a 58 | redefin|ition..X|
|00005a40| 2e 4f 55 0a 58 5c 66 33 | 73 68 6f 77 5c 66 31 20 |.OU.X\f3|show\f1 |
|00005a50| 5c 28 65 6d 20 43 6f 6d | 6d 61 6e 64 2c 20 6f 6e |\(em Com|mand, on|
|00005a60| 65 20 69 6e 70 75 74 2e | 20 20 41 62 62 72 65 76 |e input.| Abbrev|
|00005a70| 69 61 74 69 6f 6e 3a 20 | 5c 66 33 70 6f 5c 66 31 |iation: |\f3po\f1|
|00005a80| 0a 58 2e 49 4e 0a 58 54 | 68 65 20 69 6e 70 75 74 |.X.IN.XT|he input|
|00005a90| 20 74 6f 20 74 68 69 73 | 20 63 6f 6d 6d 61 6e 64 | to this| command|
|00005aa0| 20 69 73 20 61 20 77 6f | 72 64 20 6f 72 20 61 20 | is a wo|rd or a |
|00005ab0| 6c 69 73 74 20 6f 66 20 | 77 6f 72 64 73 2e 20 20 |list of |words. |
|00005ac0| 45 61 63 68 20 77 6f 72 | 64 20 6d 75 73 74 20 62 |Each wor|d must b|
|00005ad0| 65 0a 58 74 68 65 20 6e | 61 6d 65 20 6f 66 20 61 |e.Xthe n|ame of a|
|00005ae0| 20 70 72 6f 63 65 64 75 | 72 65 2e 20 20 54 68 65 | procedu|re. The|
|00005af0| 20 63 6f 6d 6d 61 6e 64 | 20 70 72 69 6e 74 73 20 | command| prints |
|00005b00| 6f 75 74 20 74 68 65 20 | 64 65 66 69 6e 69 74 69 |out the |definiti|
|00005b10| 6f 6e 28 73 29 20 6f 66 | 20 74 68 65 0a 58 70 72 |on(s) of| the.Xpr|
|00005b20| 6f 63 65 64 75 72 65 28 | 73 29 20 6f 6e 20 79 6f |ocedure(|s) on yo|
|00005b30| 75 72 20 74 65 72 6d 69 | 6e 61 6c 2e 20 20 28 54 |ur termi|nal. (T|
|00005b40| 68 65 20 61 62 62 72 65 | 76 69 61 74 69 6f 6e 20 |he abbre|viation |
|00005b50| 5c 66 33 70 6f 5c 66 31 | 20 73 74 61 6e 64 73 20 |\f3po\f1| stands |
|00005b60| 66 6f 72 0a 58 5c 66 33 | 70 72 69 6e 74 6f 75 74 |for.X\f3|printout|
|00005b70| 5c 66 31 2c 20 77 68 69 | 63 68 20 69 73 20 74 68 |\f1, whi|ch is th|
|00005b80| 65 20 6e 61 6d 65 20 75 | 73 65 64 20 66 6f 72 20 |e name u|sed for |
|00005b90| 74 68 69 73 20 63 6f 6d | 6d 61 6e 64 20 69 6e 20 |this com|mand in |
|00005ba0| 73 6f 6d 65 20 6f 74 68 | 65 72 20 76 65 72 73 69 |some oth|er versi|
|00005bb0| 6f 6e 73 0a 58 6f 66 20 | 4c 6f 67 6f 2e 29 0a 58 |ons.Xof |Logo.).X|
|00005bc0| 2e 4f 55 0a 58 5c 66 33 | 70 6f 74 73 5c 66 31 20 |.OU.X\f3|pots\f1 |
|00005bd0| 5c 28 65 6d 20 43 6f 6d | 6d 61 6e 64 2c 20 6e 6f |\(em Com|mand, no|
|00005be0| 20 69 6e 70 75 74 73 2e | 0a 58 2e 49 4e 0a 58 54 | inputs.|.X.IN.XT|
|00005bf0| 68 69 73 20 63 6f 6d 6d | 61 6e 64 20 74 79 70 65 |his comm|and type|
|00005c00| 73 20 61 74 20 79 6f 75 | 72 20 74 65 72 6d 69 6e |s at you|r termin|
|00005c10| 61 6c 20 74 68 65 20 74 | 69 74 6c 65 20 6c 69 6e |al the t|itle lin|
|00005c20| 65 73 20 6f 66 20 61 6c | 6c 20 70 72 6f 63 65 64 |es of al|l proced|
|00005c30| 75 72 65 73 0a 58 79 6f | 75 27 76 65 20 64 65 66 |ures.Xyo|u've def|
|00005c40| 69 6e 65 64 2e 20 20 54 | 68 65 20 6e 61 6d 65 20 |ined. T|he name |
|00005c50| 69 73 20 61 6e 20 61 62 | 62 72 65 76 69 61 74 69 |is an ab|breviati|
|00005c60| 6f 6e 20 66 6f 72 20 22 | 70 72 69 6e 74 20 6f 75 |on for "|print ou|
|00005c70| 74 20 74 69 74 6c 65 73 | 22 2e 0a 58 2e 4f 55 0a |t titles|"..X.OU.|
|00005c80| 58 5c 66 33 65 72 61 73 | 65 5c 66 31 20 5c 28 65 |X\f3eras|e\f1 \(e|
|00005c90| 6d 20 43 6f 6d 6d 61 6e | 64 2c 20 6f 6e 65 20 69 |m Comman|d, one i|
|00005ca0| 6e 70 75 74 2e 20 20 41 | 62 62 72 65 76 69 61 74 |nput. A|bbreviat|
|00005cb0| 69 6f 6e 3a 20 5c 66 33 | 65 72 5c 66 31 0a 58 2e |ion: \f3|er\f1.X.|
|00005cc0| 49 4e 0a 58 41 73 20 66 | 6f 72 20 74 68 65 20 5c |IN.XAs f|or the \|
|00005cd0| 66 33 73 68 6f 77 5c 66 | 31 20 63 6f 6d 6d 61 6e |f3show\f|1 comman|
|00005ce0| 64 2c 20 74 68 65 20 69 | 6e 70 75 74 20 69 73 20 |d, the i|nput is |
|00005cf0| 65 69 74 68 65 72 20 61 | 20 77 6f 72 64 2c 20 6e |either a| word, n|
|00005d00| 61 6d 69 6e 67 20 6f 6e | 65 0a 58 70 72 6f 63 65 |aming on|e.Xproce|
|00005d10| 64 75 72 65 2c 20 6f 72 | 20 61 20 6c 69 73 74 20 |dure, or| a list |
|00005d20| 6f 66 20 77 6f 72 64 73 | 2c 20 6e 61 6d 69 6e 67 |of words|, naming|
|00005d30| 20 6d 6f 72 65 20 74 68 | 61 6e 20 6f 6e 65 2e 20 | more th|an one. |
|00005d40| 20 54 68 65 20 6e 61 6d | 65 64 20 70 72 6f 63 65 | The nam|ed proce|
|00005d50| 64 75 72 65 73 0a 58 61 | 72 65 20 65 72 61 73 65 |dures.Xa|re erase|
|00005d60| 64 2c 20 73 6f 20 74 68 | 61 74 20 74 68 65 79 20 |d, so th|at they |
|00005d70| 61 72 65 20 6e 6f 20 6c | 6f 6e 67 65 72 20 64 65 |are no l|onger de|
|00005d80| 66 69 6e 65 64 2e 0a 58 | 2e 4f 55 0a 58 2e 74 69 |fined..X|.OU.X.ti|
|00005d90| 20 35 0a 58 2e 55 42 20 | 22 50 72 69 6d 69 74 69 | 5.X.UB |"Primiti|
|00005da0| 76 65 20 70 72 6f 63 65 | 64 75 72 65 73 20 74 6f |ve proce|dures to|
|00005db0| 20 6d 61 6e 69 70 75 6c | 61 74 65 20 77 6f 72 64 | manipul|ate word|
|00005dc0| 73 20 61 6e 64 20 6c 69 | 73 74 73 2e 22 0a 58 54 |s and li|sts.".XT|
|00005dd0| 68 65 72 65 20 61 72 65 | 0a 58 70 72 69 6d 69 74 |here are|.Xprimit|
|00005de0| 69 76 65 20 70 72 6f 63 | 65 64 75 72 65 73 20 74 |ive proc|edures t|
|00005df0| 6f 20 70 72 69 6e 74 20 | 74 65 78 74 20 6f 62 6a |o print |text obj|
|00005e00| 65 63 74 73 20 6f 6e 20 | 74 68 65 20 74 65 72 6d |ects on |the term|
|00005e10| 69 6e 61 6c 2c 20 74 6f | 20 72 65 61 64 0a 58 74 |inal, to| read.Xt|
|00005e20| 68 65 6d 20 66 72 6f 6d | 20 74 68 65 20 74 65 72 |hem from| the ter|
|00005e30| 6d 69 6e 61 6c 2c 20 74 | 6f 20 63 6f 6d 62 69 6e |minal, t|o combin|
|00005e40| 65 20 74 68 65 6d 20 69 | 6e 74 6f 20 6c 61 72 67 |e them i|nto larg|
|00005e50| 65 72 20 6f 62 6a 65 63 | 74 73 2c 20 74 6f 20 73 |er objec|ts, to s|
|00005e60| 70 6c 69 74 0a 58 74 68 | 65 6d 20 69 6e 74 6f 20 |plit.Xth|em into |
|00005e70| 73 6d 61 6c 6c 65 72 20 | 6f 62 6a 65 63 74 73 2c |smaller |objects,|
|00005e80| 20 61 6e 64 20 74 6f 20 | 64 65 74 65 72 6d 69 6e | and to |determin|
|00005e90| 65 20 74 68 65 69 72 20 | 73 69 7a 65 20 61 6e 64 |e their |size and|
|00005ea0| 20 6e 61 74 75 72 65 3a | 0a 58 2e 73 70 20 31 0a | nature:|.X.sp 1.|
|00005eb0| 58 5c 66 33 70 72 69 6e | 74 5c 66 31 20 5c 28 65 |X\f3prin|t\f1 \(e|
|00005ec0| 6d 20 43 6f 6d 6d 61 6e | 64 2c 20 6f 6e 65 20 69 |m Comman|d, one i|
|00005ed0| 6e 70 75 74 2e 20 20 41 | 62 62 72 65 76 69 61 74 |nput. A|bbreviat|
|00005ee0| 69 6f 6e 3a 20 5c 66 33 | 70 72 5c 66 31 0a 58 2e |ion: \f3|pr\f1.X.|
|00005ef0| 49 4e 0a 58 54 68 65 20 | 69 6e 70 75 74 2c 20 77 |IN.XThe |input, w|
|00005f00| 68 69 63 68 20 6d 61 79 | 20 62 65 20 61 20 77 6f |hich may| be a wo|
|00005f10| 72 64 20 6f 72 20 61 20 | 6c 69 73 74 2c 20 69 73 |rd or a |list, is|
|00005f20| 20 70 72 69 6e 74 65 64 | 20 6f 6e 20 74 68 65 20 | printed| on the |
|00005f30| 74 65 72 6d 69 6e 61 6c | 2c 0a 58 66 6f 6c 6c 6f |terminal|,.Xfollo|
|00005f40| 77 65 64 20 62 79 20 61 | 20 6e 65 77 20 6c 69 6e |wed by a| new lin|
|00005f50| 65 20 63 68 61 72 61 63 | 74 65 72 2e 20 20 28 54 |e charac|ter. (T|
|00005f60| 68 61 74 20 69 73 2c 20 | 74 68 65 20 74 65 72 6d |hat is, |the term|
|00005f70| 69 6e 61 6c 20 69 73 20 | 70 6f 73 69 74 69 6f 6e |inal is |position|
|00005f80| 65 64 0a 58 61 74 20 74 | 68 65 20 62 65 67 69 6e |ed.Xat t|he begin|
|00005f90| 6e 69 6e 67 20 6f 66 20 | 61 20 6e 65 77 20 6c 69 |ning of |a new li|
|00005fa0| 6e 65 20 61 66 74 65 72 | 20 70 72 69 6e 74 69 6e |ne after| printin|
|00005fb0| 67 20 74 68 65 20 6f 62 | 6a 65 63 74 2e 29 20 20 |g the ob|ject.) |
|00005fc0| 49 66 20 74 68 65 0a 58 | 6f 62 6a 65 63 74 20 69 |If the.X|object i|
|00005fd0| 73 20 61 20 6c 69 73 74 | 2c 20 61 6e 79 20 73 75 |s a list|, any su|
|00005fe0| 62 2d 6c 69 73 74 73 20 | 61 72 65 20 64 65 6c 69 |b-lists |are deli|
|00005ff0| 6d 69 74 65 64 20 62 79 | 20 73 71 75 61 72 65 20 |mited by| square |
|00006000| 62 72 61 63 6b 65 74 73 | 2c 20 62 75 74 0a 58 74 |brackets|, but.Xt|
|00006010| 68 65 20 65 6e 74 69 72 | 65 20 6f 62 6a 65 63 74 |he entir|e object|
|00006020| 20 69 73 20 6e 6f 74 20 | 64 65 6c 69 6d 69 74 65 | is not |delimite|
|00006030| 64 20 62 79 20 62 72 61 | 63 6b 65 74 73 2e 0a 58 |d by bra|ckets..X|
|00006040| 2e 4f 55 0a 58 5c 66 33 | 74 79 70 65 5c 66 31 20 |.OU.X\f3|type\f1 |
|00006050| 5c 28 65 6d 20 43 6f 6d | 6d 61 6e 64 2c 20 6f 6e |\(em Com|mand, on|
|00006060| 65 20 69 6e 70 75 74 2e | 0a 58 2e 49 4e 0a 58 54 |e input.|.X.IN.XT|
|00006070| 68 65 20 69 6e 70 75 74 | 2c 20 77 68 69 63 68 20 |he input|, which |
|00006080| 6d 61 79 20 62 65 20 61 | 20 77 6f 72 64 20 6f 72 |may be a| word or|
|00006090| 20 61 20 6c 69 73 74 2c | 20 69 73 20 70 72 69 6e | a list,| is prin|
|000060a0| 74 65 64 20 6f 6e 20 74 | 68 65 20 74 65 72 6d 69 |ted on t|he termi|
|000060b0| 6e 61 6c 2c 0a 58 5c 66 | 32 77 69 74 68 6f 75 74 |nal,.X\f|2without|
|000060c0| 5c 66 31 20 61 20 6e 65 | 77 20 6c 69 6e 65 20 63 |\f1 a ne|w line c|
|000060d0| 68 61 72 61 63 74 65 72 | 2e 20 20 28 54 68 61 74 |haracter|. (That|
|000060e0| 20 69 73 2c 20 74 68 65 | 20 74 65 72 6d 69 6e 61 | is, the| termina|
|000060f0| 6c 20 72 65 6d 61 69 6e | 73 0a 58 70 6f 73 69 74 |l remain|s.Xposit|
|00006100| 69 6f 6e 65 64 20 61 74 | 20 74 68 65 20 65 6e 64 |ioned at| the end|
|00006110| 20 6f 66 20 74 68 65 20 | 6f 62 6a 65 63 74 20 61 | of the |object a|
|00006120| 66 74 65 72 20 70 72 69 | 6e 74 69 6e 67 20 69 74 |fter pri|nting it|
|00006130| 2e 29 20 20 42 72 61 63 | 6b 65 74 73 0a 58 61 72 |.) Brac|kets.Xar|
|00006140| 65 20 75 73 65 64 20 61 | 73 20 77 69 74 68 20 74 |e used a|s with t|
|00006150| 68 65 20 5c 66 33 70 72 | 69 6e 74 5c 66 31 20 63 |he \f3pr|int\f1 c|
|00006160| 6f 6d 6d 61 6e 64 2e 0a | 58 2e 4f 55 0a 58 5c 66 |ommand..|X.OU.X\f|
|00006170| 33 66 70 72 69 6e 74 5c | 66 31 20 5c 28 65 6d 20 |3fprint\|f1 \(em |
|00006180| 43 6f 6d 6d 61 6e 64 2c | 20 6f 6e 65 20 69 6e 70 |Command,| one inp|
|00006190| 75 74 2e 20 20 41 62 62 | 72 65 76 69 61 74 69 6f |ut. Abb|reviatio|
|000061a0| 6e 3a 20 5c 66 33 66 70 | 5c 66 31 0a 58 2e 49 4e |n: \f3fp|\f1.X.IN|
|000061b0| 0a 58 54 68 65 20 69 6e | 70 75 74 20 69 73 20 70 |.XThe in|put is p|
|000061c0| 72 69 6e 74 65 64 20 61 | 73 20 62 79 20 74 68 65 |rinted a|s by the|
|000061d0| 20 5c 66 33 70 72 69 6e | 74 5c 66 31 20 63 6f 6d | \f3prin|t\f1 com|
|000061e0| 6d 61 6e 64 2c 20 65 78 | 63 65 70 74 20 74 68 61 |mand, ex|cept tha|
|000061f0| 74 20 69 66 20 69 74 0a | 58 69 73 20 61 20 6c 69 |t if it.|Xis a li|
|00006200| 73 74 20 28 61 73 20 6f | 70 70 6f 73 65 64 20 74 |st (as o|pposed t|
|00006210| 6f 20 61 20 77 6f 72 64 | 29 20 69 74 20 69 73 20 |o a word|) it is |
|00006220| 65 6e 63 6c 6f 73 65 64 | 20 69 6e 20 73 71 75 61 |enclosed| in squa|
|00006230| 72 65 20 62 72 61 63 6b | 65 74 73 2e 20 20 54 68 |re brack|ets. Th|
|00006240| 65 0a 58 6e 61 6d 65 20 | 6f 66 20 74 68 65 20 63 |e.Xname |of the c|
|00006250| 6f 6d 6d 61 6e 64 20 69 | 73 20 73 68 6f 72 74 20 |ommand i|s short |
|00006260| 66 6f 72 20 22 66 75 6c | 6c 20 70 72 69 6e 74 22 |for "ful|l print"|
|00006270| 2e 0a 58 2e 4f 55 0a 58 | 5c 66 33 66 74 79 70 65 |..X.OU.X|\f3ftype|
|00006280| 5c 66 31 20 5c 28 65 6d | 20 43 6f 6d 6d 61 6e 64 |\f1 \(em| Command|
|00006290| 2c 20 6f 6e 65 20 69 6e | 70 75 74 2e 20 20 41 62 |, one in|put. Ab|
|000062a0| 62 72 65 76 69 61 74 69 | 6f 6e 3a 20 5c 66 33 66 |breviati|on: \f3f|
|000062b0| 74 79 5c 66 31 0a 58 2e | 49 4e 0a 58 54 68 65 20 |ty\f1.X.|IN.XThe |
|000062c0| 69 6e 70 75 74 20 69 73 | 20 70 72 69 6e 74 65 64 |input is| printed|
|000062d0| 20 61 73 20 62 79 20 74 | 68 65 20 5c 66 33 74 79 | as by t|he \f3ty|
|000062e0| 70 65 5c 66 31 20 63 6f | 6d 6d 61 6e 64 2c 20 65 |pe\f1 co|mmand, e|
|000062f0| 78 63 65 70 74 20 74 68 | 61 74 20 69 66 20 69 74 |xcept th|at if it|
|00006300| 0a 58 69 73 20 61 20 6c | 69 73 74 2c 20 69 74 20 |.Xis a l|ist, it |
|00006310| 69 73 20 65 6e 63 6c 6f | 73 65 64 20 69 6e 20 73 |is enclo|sed in s|
|00006320| 71 75 61 72 65 20 62 72 | 61 63 6b 65 74 73 2e 0a |quare br|ackets..|
|00006330| 58 2e 4f 55 0a 58 5c 66 | 33 72 65 61 64 6c 69 73 |X.OU.X\f|3readlis|
|00006340| 74 5c 66 31 20 5c 28 65 | 6d 20 4f 70 65 72 61 74 |t\f1 \(e|m Operat|
|00006350| 69 6f 6e 2c 20 6e 6f 20 | 69 6e 70 75 74 73 2e 20 |ion, no |inputs. |
|00006360| 20 41 62 62 72 65 76 69 | 61 74 69 6f 6e 3a 20 5c | Abbrevi|ation: \|
|00006370| 66 33 72 6c 5c 66 31 0a | 58 2e 49 4e 0a 58 4c 6f |f3rl\f1.|X.IN.XLo|
|00006380| 67 6f 20 77 61 69 74 73 | 0a 58 66 6f 72 20 61 20 |go waits|.Xfor a |
|00006390| 6c 69 6e 65 20 74 6f 20 | 62 65 20 74 79 70 65 64 |line to |be typed|
|000063a0| 20 62 79 20 74 68 65 20 | 75 73 65 72 2e 20 20 54 | by the |user. T|
|000063b0| 68 65 20 63 6f 6e 74 65 | 6e 74 73 20 6f 66 20 74 |he conte|nts of t|
|000063c0| 68 65 20 6c 69 6e 65 20 | 61 72 65 20 6d 61 64 65 |he line |are made|
|000063d0| 0a 58 69 6e 74 6f 20 61 | 20 6c 69 73 74 2c 20 61 |.Xinto a| list, a|
|000063e0| 73 20 74 68 6f 75 67 68 | 20 74 79 70 65 64 20 77 |s though| typed w|
|000063f0| 69 74 68 69 6e 20 73 71 | 75 61 72 65 20 62 72 61 |ithin sq|uare bra|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.