home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
1%
| dexvert
| Corel 10 Texture (image/corel10Texture)
| ext
| Unsupported |
1%
| dexvert
| Croteam texture file (image/croteamTextureFile)
| ext
| Unsupported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| LaTeX document text
| default
| |
99%
| file
| LaTeX document, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 64 6f 63 75 6d 65 6e | 74 73 74 79 6c 65 7b 61 |\documen|tstyle{a|
|00000010| 72 74 69 63 6c 65 7d 0a | 0a 0a 5c 74 69 74 6c 65 |rticle}.|..\title|
|00000020| 7b 20 41 6e 20 49 6e 74 | 72 6f 64 75 63 74 69 6f |{ An Int|roductio|
|00000030| 6e 20 74 6f 20 49 53 45 | 54 4c 7d 0a 5c 61 75 74 |n to ISE|TL}.\aut|
|00000040| 68 6f 72 7b 47 61 72 79 | 20 4d 61 72 63 20 4c 65 |hor{Gary| Marc Le|
|00000050| 76 69 6e 20 5c 5c 20 43 | 6c 61 72 6b 73 6f 6e 20 |vin \\ C|larkson |
|00000060| 55 6e 69 76 65 72 73 69 | 74 79 20 5c 5c 20 44 65 |Universi|ty \\ De|
|00000070| 70 74 20 6f 66 20 4d 61 | 74 68 20 61 6e 64 0a 43 |pt of Ma|th and.C|
|00000080| 6f 6d 70 75 74 65 72 20 | 53 63 69 65 6e 63 65 7d |omputer |Science}|
|00000090| 0a 0a 5c 62 65 67 69 6e | 7b 64 6f 63 75 6d 65 6e |..\begin|{documen|
|000000a0| 74 7d 0a 5c 68 79 70 68 | 65 6e 61 74 69 6f 6e 7b |t}.\hyph|enation{|
|000000b0| 62 6f 6f 6c 2d 65 61 6e | 7d 0a 0a 5c 64 65 66 5c |bool-ean|}..\def\|
|000000c0| 5b 7b 5c 62 65 67 69 6e | 67 72 6f 75 70 20 5c 74 |[{\begin|group \t|
|000000d0| 74 7d 0a 5c 64 65 66 5c | 5d 7b 5c 65 6e 64 67 72 |t}.\def\|]{\endgr|
|000000e0| 6f 75 70 7d 0a 5c 64 65 | 66 5c 64 69 76 7b 5c 2c |oup}.\de|f\div{\,|
|000000f0| 7b 5c 74 74 20 64 69 76 | 7d 5c 2c 7d 0a 5c 64 65 |{\tt div|}\,}.\de|
|00000100| 66 5c 6d 6f 64 7b 5c 2c | 7b 5c 74 74 20 6d 6f 64 |f\mod{\,|{\tt mod|
|00000110| 7d 5c 2c 7d 0a 0a 5c 61 | 72 61 62 69 63 7b 65 6e |}\,}..\a|rabic{en|
|00000120| 75 6d 69 7d 0a 5c 61 6c | 70 68 7b 65 6e 75 6d 69 |umi}.\al|ph{enumi|
|00000130| 69 7d 0a 5c 72 6f 6d 61 | 6e 7b 65 6e 75 6d 69 69 |i}.\roma|n{enumii|
|00000140| 69 7d 0a 0a 5c 6e 65 77 | 63 6f 6d 6d 61 6e 64 7b |i}..\new|command{|
|00000150| 5c 44 53 7d 7b 5c 62 65 | 67 69 6e 7b 63 65 6e 74 |\DS}{\be|gin{cent|
|00000160| 65 72 7d 5c 62 65 67 69 | 6e 7b 6d 69 6e 69 70 61 |er}\begi|n{minipa|
|00000170| 67 65 7d 7b 31 30 69 6e | 7d 5c 74 74 5c 62 65 67 |ge}{10in|}\tt\beg|
|00000180| 69 6e 7b 74 61 62 62 69 | 6e 67 7d 7d 0a 5c 6e 65 |in{tabbi|ng}}.\ne|
|00000190| 77 63 6f 6d 6d 61 6e 64 | 7b 5c 44 45 7d 7b 5c 65 |wcommand|{\DE}{\e|
|000001a0| 6e 64 7b 74 61 62 62 69 | 6e 67 7d 5c 65 6e 64 7b |nd{tabbi|ng}\end{|
|000001b0| 6d 69 6e 69 70 61 67 65 | 7d 5c 65 6e 64 7b 63 65 |minipage|}\end{ce|
|000001c0| 6e 74 65 72 7d 7d 0a 0a | 5c 6e 65 77 63 6f 6d 6d |nter}}..|\newcomm|
|000001d0| 61 6e 64 7b 5c 48 45 41 | 44 7d 5b 31 5d 7b 5c 76 |and{\HEA|D}[1]{\v|
|000001e0| 73 70 61 63 65 7b 5c 6d | 65 64 73 6b 69 70 61 6d |space{\m|edskipam|
|000001f0| 6f 75 6e 74 7d 5c 76 73 | 70 61 63 65 7b 5c 73 74 |ount}\vs|pace{\st|
|00000200| 72 65 74 63 68 7b 33 7d | 7d 0a 20 20 20 20 20 20 |retch{3}|}. |
|00000210| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000220| 5c 70 61 72 5c 6e 6f 69 | 6e 64 65 6e 74 0a 20 20 |\par\noi|ndent. |
|00000230| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000240| 20 20 20 20 7b 5c 74 74 | 20 23 31 7d 7d 0a 5c 6e | {\tt| #1}}.\n|
|00000250| 65 77 63 6f 6d 6d 61 6e | 64 7b 5c 52 55 4c 45 7d |ewcomman|d{\RULE}|
|00000260| 5b 31 5d 7b 5c 76 73 70 | 61 63 65 7b 5c 73 6d 61 |[1]{\vsp|ace{\sma|
|00000270| 6c 6c 73 6b 69 70 61 6d | 6f 75 6e 74 7d 5c 76 73 |llskipam|ount}\vs|
|00000280| 70 61 63 65 7b 5c 73 74 | 72 65 74 63 68 7b 31 7d |pace{\st|retch{1}|
|00000290| 7d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |}. | |
|000002a0| 20 20 20 20 20 20 20 20 | 5c 6e 6f 70 61 67 65 62 | |\nopageb|
|000002b0| 72 65 61 6b 0a 20 20 20 | 20 20 20 20 20 20 20 20 |reak. | |
|000002c0| 20 20 20 20 20 20 20 20 | 20 20 20 5c 70 61 72 0a | | \par.|
|000002d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000002e0| 20 20 20 20 20 20 5c 6e | 6f 70 61 67 65 62 72 65 | \n|opagebre|
|000002f0| 61 6b 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ak. | |
|00000300| 20 20 20 20 20 20 20 20 | 20 20 7b 5c 74 74 20 23 | | {\tt #|
|00000310| 31 7d 5c 6e 6f 70 61 67 | 65 62 72 65 61 6b 7d 0a |1}\nopag|ebreak}.|
|00000320| 5c 6e 65 77 63 6f 6d 6d | 61 6e 64 7b 5c 43 4f 4d |\newcomm|and{\COM|
|00000330| 4d 45 4e 54 7d 5b 31 5d | 7b 5c 6e 6f 70 61 67 65 |MENT}[1]|{\nopage|
|00000340| 62 72 65 61 6b 5c 62 65 | 67 69 6e 7b 73 6c 6f 70 |break\be|gin{slop|
|00000350| 70 79 70 61 72 7d 5c 6e | 6f 70 61 67 65 62 72 65 |pypar}\n|opagebre|
|00000360| 61 6b 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ak. | |
|00000370| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 5c 62 65 | | \be|
|00000380| 67 69 6e 7b 6c 69 73 74 | 7d 7b 7d 0a 20 20 20 20 |gin{list|}{}. |
|00000390| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000003a0| 20 20 20 20 20 20 20 20 | 20 7b 5c 73 65 74 6c 65 | | {\setle|
|000003b0| 6e 67 74 68 7b 5c 74 6f | 70 73 65 70 7d 7b 2d 32 |ngth{\to|psep}{-2|
|000003c0| 70 74 7d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |pt}. | |
|000003d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000003e0| 20 20 5c 73 65 74 6c 65 | 6e 67 74 68 7b 5c 70 61 | \setle|ngth{\pa|
|000003f0| 72 73 65 70 7d 7b 32 70 | 74 7d 0a 20 20 20 20 20 |rsep}{2p|t}. |
|00000400| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000410| 20 20 20 20 20 20 20 20 | 20 5c 73 65 74 6c 65 6e | | \setlen|
|00000420| 67 74 68 7b 5c 6c 65 66 | 74 6d 61 72 67 69 6e 7d |gth{\lef|tmargin}|
|00000430| 7b 32 5c 70 61 72 69 6e | 64 65 6e 74 7d 0a 09 09 |{2\parin|dent}...|
|00000440| 09 20 20 20 20 20 7d 5c | 6e 6f 70 61 67 65 62 72 |. }\|nopagebr|
|00000450| 65 61 6b 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |eak. | |
|00000460| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 5c 69 74 | | \it|
|00000470| 65 6d 5c 6e 6f 70 61 67 | 65 62 72 65 61 6b 20 23 |em\nopag|ebreak #|
|00000480| 31 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |1. | |
|00000490| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 5c 65 6e | | \en|
|000004a0| 64 7b 6c 69 73 74 7d 0a | 20 20 20 20 20 20 20 20 |d{list}.| |
|000004b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000004c0| 20 20 20 5c 65 6e 64 7b | 73 6c 6f 70 70 79 70 61 | \end{|sloppypa|
|000004d0| 72 7d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |r}. | |
|000004e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 7d 0a 5c | | }.\|
|000004f0| 6d 61 6b 65 74 69 74 6c | 65 0a 0a 54 68 69 73 20 |maketitl|e..This |
|00000500| 69 6e 74 72 6f 64 75 63 | 74 69 6f 6e 20 69 73 20 |introduc|tion is |
|00000510| 69 6e 74 65 6e 64 65 64 | 20 66 6f 72 20 70 65 6f |intended| for peo|
|00000520| 70 6c 65 20 77 68 6f 20 | 68 61 76 65 20 68 61 64 |ple who |have had|
|00000530| 20 6e 6f 0a 70 72 65 76 | 69 6f 75 73 20 65 78 70 | no.prev|ious exp|
|00000540| 65 72 69 65 6e 63 65 20 | 77 69 74 68 20 53 45 54 |erience |with SET|
|00000550| 4c 20 6f 72 20 49 53 45 | 54 4c 2c 0a 62 75 74 20 |L or ISE|TL,.but |
|00000560| 77 68 6f 20 61 72 65 20 | 72 65 61 73 6f 6e 61 62 |who are |reasonab|
|00000570| 6c 79 20 63 6f 6d 66 6f | 72 74 61 62 6c 65 20 77 |ly comfo|rtable w|
|00000580| 69 74 68 20 6c 65 61 72 | 6e 69 6e 67 0a 61 20 6e |ith lear|ning.a n|
|00000590| 65 77 20 70 72 6f 67 72 | 61 6d 6d 69 6e 67 20 6c |ew progr|amming l|
|000005a0| 61 6e 67 75 61 67 65 2e | 0a 56 65 72 79 20 66 65 |anguage.|.Very fe|
|000005b0| 77 20 65 78 61 6d 70 6c | 65 73 20 61 72 65 20 67 |w exampl|es are g|
|000005c0| 69 76 65 6e 20 69 6e 20 | 74 68 65 20 64 65 73 63 |iven in |the desc|
|000005d0| 72 69 70 74 69 6f 6e 2c | 0a 62 75 74 20 61 20 6c |ription,|.but a l|
|000005e0| 61 72 67 65 20 6e 75 6d | 62 65 72 20 6f 66 20 65 |arge num|ber of e|
|000005f0| 78 61 6d 70 6c 65 73 20 | 69 73 20 64 69 73 74 72 |xamples |is distr|
|00000600| 69 62 75 74 65 64 20 77 | 69 74 68 20 74 68 65 20 |ibuted w|ith the |
|00000610| 73 6f 66 74 77 61 72 65 | 2e 0a 0a 54 68 69 73 20 |software|...This |
|00000620| 64 6f 63 75 6d 65 6e 74 | 61 74 69 6f 6e 20 61 70 |document|ation ap|
|00000630| 70 65 61 72 73 20 61 73 | 20 61 6e 20 61 70 70 65 |pears as| an appe|
|00000640| 6e 64 69 78 20 69 6e 20 | 61 20 64 69 73 63 72 65 |ndix in |a discre|
|00000650| 74 65 20 6d 61 74 68 20 | 74 65 78 74 0a 77 72 69 |te math |text.wri|
|00000660| 74 74 65 6e 20 62 79 20 | 4e 61 6e 63 79 20 42 61 |tten by |Nancy Ba|
|00000670| 78 74 65 72 2c 20 45 64 | 20 44 75 62 69 6e 73 6b |xter, Ed| Dubinsk|
|00000680| 79 2c 20 61 6e 64 20 47 | 61 72 79 20 4c 65 76 69 |y, and G|ary Levi|
|00000690| 6e 2e 0a 54 68 61 74 20 | 74 65 78 74 20 75 73 65 |n..That |text use|
|000006a0| 73 20 49 53 45 54 4c 20 | 61 73 20 61 20 74 6f 6f |s ISETL |as a too|
|000006b0| 6c 20 66 6f 72 20 74 65 | 61 63 68 69 6e 67 20 64 |l for te|aching d|
|000006c0| 69 73 63 72 65 74 65 20 | 6d 61 74 68 65 6d 61 74 |iscrete |mathemat|
|000006d0| 69 63 73 2e 0a 0a 5c 73 | 65 63 74 69 6f 6e 7b 52 |ics...\s|ection{R|
|000006e0| 75 6e 6e 69 6e 67 20 49 | 53 45 54 4c 7d 0a 0a 49 |unning I|SETL}..I|
|000006f0| 53 45 54 4c 20 69 73 20 | 61 6e 20 69 6e 74 65 72 |SETL is |an inter|
|00000700| 70 72 65 74 65 64 2c 20 | 69 6e 74 65 72 61 63 74 |preted, |interact|
|00000710| 69 76 65 20 76 65 72 73 | 69 6f 6e 20 6f 66 20 74 |ive vers|ion of t|
|00000720| 68 65 20 70 72 6f 67 72 | 61 6d 6d 69 6e 67 20 6c |he progr|amming l|
|00000730| 61 6e 67 75 61 67 65 0a | 53 45 54 4c 2e 0a 57 72 |anguage.|SETL..Wr|
|00000740| 69 74 74 65 6e 20 69 6e | 20 43 2c 20 69 74 20 69 |itten in| C, it i|
|00000750| 73 20 69 6e 76 6f 6b 65 | 64 20 62 79 20 74 79 70 |s invoke|d by typ|
|00000760| 69 6e 67 20 61 20 63 6f | 6d 6d 61 6e 64 20 6c 69 |ing a co|mmand li|
|00000770| 6e 65 20 77 69 74 68 0a | 74 68 65 20 65 78 65 63 |ne with.|the exec|
|00000780| 75 74 61 62 6c 65 20 6e | 61 6d 65 2c 20 73 61 79 |utable n|ame, say|
|00000790| 20 5c 5b 69 73 65 74 6c | 5c 5d 2c 20 61 6c 6f 6e | \[isetl|\], alon|
|000007a0| 67 20 77 69 74 68 20 6f | 70 74 69 6f 6e 61 6c 20 |g with o|ptional |
|000007b0| 66 69 6c 65 0a 6e 61 6d | 65 73 20 74 68 61 74 20 |file.nam|es that |
|000007c0| 61 72 65 20 64 69 73 63 | 75 73 73 65 64 20 62 65 |are disc|ussed be|
|000007d0| 6c 6f 77 2e 5c 66 6f 6f | 74 6e 6f 74 65 7b 54 68 |low.\foo|tnote{Th|
|000007e0| 65 20 4d 61 63 69 6e 74 | 6f 73 68 20 76 65 72 73 |e Macint|osh vers|
|000007f0| 69 6f 6e 0a 69 73 20 63 | 6c 69 63 6b 61 62 6c 65 |ion.is c|lickable|
|00000800| 2e 20 20 54 68 65 72 65 | 66 6f 72 65 2c 20 73 74 |. There|fore, st|
|00000810| 61 74 65 6d 65 6e 74 73 | 20 61 62 6f 75 74 20 74 |atements| about t|
|00000820| 68 65 20 63 6f 6d 6d 61 | 6e 64 20 6c 69 6e 65 20 |he comma|nd line |
|00000830| 64 6f 20 6e 6f 74 0a 61 | 70 70 6c 79 20 74 6f 20 |do not.a|pply to |
|00000840| 74 68 65 20 4d 61 63 2e | 7d 0a 0a 54 68 65 72 65 |the Mac.|}..There|
|00000850| 20 69 73 20 6e 6f 20 63 | 6f 6d 70 69 6c 65 72 20 | is no c|ompiler |
|00000860| 66 6f 72 20 49 53 45 54 | 4c 2e 0a 57 68 65 6e 20 |for ISET|L..When |
|00000870| 49 53 45 54 4c 20 69 73 | 20 72 75 6e 6e 69 6e 67 |ISETL is| running|
|00000880| 2c 0a 69 74 20 70 72 6f | 6d 70 74 73 20 66 6f 72 |,.it pro|mpts for|
|00000890| 20 69 6e 70 75 74 20 77 | 69 74 68 20 74 68 65 20 | input w|ith the |
|000008a0| 63 68 61 72 61 63 74 65 | 72 20 60 60 5c 5b 3e 5c |characte|r ``\[>\|
|000008b0| 5d 27 27 2e 0a 49 6e 70 | 75 74 20 63 6f 6e 73 69 |]''..Inp|ut consi|
|000008c0| 73 74 73 20 6f 66 20 61 | 20 73 65 71 75 65 6e 63 |sts of a| sequenc|
|000008d0| 65 20 6f 66 20 65 78 70 | 72 65 73 73 69 6f 6e 73 |e of exp|ressions|
|000008e0| 0a 28 65 61 63 68 20 74 | 65 72 6d 69 6e 61 74 65 |.(each t|erminate|
|000008f0| 64 20 62 79 20 61 20 73 | 65 6d 69 63 6f 6c 6f 6e |d by a s|emicolon|
|00000900| 20 60 60 5c 5b 3b 5c 5d | 27 27 29 2c 20 73 74 61 | ``\[;\]|''), sta|
|00000910| 74 65 6d 65 6e 74 73 2c | 20 61 6e 64 20 70 72 6f |tements,| and pro|
|00000920| 67 72 61 6d 73 2e 0a 45 | 61 63 68 20 69 6e 70 75 |grams..E|ach inpu|
|00000930| 74 20 69 73 20 61 63 74 | 65 64 20 75 70 6f 6e 20 |t is act|ed upon |
|00000940| 61 73 20 73 6f 6f 6e 20 | 61 73 20 69 74 20 69 73 |as soon |as it is|
|00000950| 20 65 6e 74 65 72 65 64 | 2e 0a 54 68 65 20 72 65 | entered|..The re|
|00000960| 73 75 6c 74 20 6f 66 20 | 74 68 69 73 20 61 63 74 |sult of |this act|
|00000970| 69 6f 6e 20 69 73 20 65 | 78 70 6c 61 69 6e 65 64 |ion is e|xplained|
|00000980| 20 62 65 6c 6f 77 2e 0a | 49 6e 20 74 68 65 20 63 | below..|In the c|
|00000990| 61 73 65 20 6f 66 20 65 | 78 70 72 65 73 73 69 6f |ase of e|xpressio|
|000009a0| 6e 73 2c 0a 74 68 65 20 | 72 65 73 75 6c 74 20 69 |ns,.the |result i|
|000009b0| 6e 63 6c 75 64 65 73 20 | 69 74 73 20 76 61 6c 75 |ncludes |its valu|
|000009c0| 65 20 62 65 69 6e 67 20 | 73 65 6e 74 20 74 6f 20 |e being |sent to |
|000009d0| 73 74 61 6e 64 61 72 64 | 20 6f 75 74 70 75 74 2e |standard| output.|
|000009e0| 0a 49 66 20 79 6f 75 20 | 68 61 76 65 20 6e 6f 74 |.If you |have not|
|000009f0| 20 63 6f 6d 70 6c 65 74 | 65 64 20 79 6f 75 72 20 | complet|ed your |
|00000a00| 65 6e 74 72 79 2c 0a 79 | 6f 75 20 77 69 6c 6c 20 |entry,.y|ou will |
|00000a10| 72 65 63 65 69 76 65 20 | 74 68 65 20 70 72 6f 6d |receive |the prom|
|00000a20| 70 74 20 60 60 5c 5b 3e | 3e 5c 5d 27 27 2c 0a 69 |pt ``\[>|>\]'',.i|
|00000a30| 6e 64 69 63 61 74 69 6e | 67 20 74 68 61 74 20 6d |ndicatin|g that m|
|00000a40| 6f 72 65 20 69 73 20 65 | 78 70 65 63 74 65 64 2e |ore is e|xpected.|
|00000a50| 0a 0a 5c 62 65 67 69 6e | 7b 65 6e 75 6d 65 72 61 |..\begin|{enumera|
|00000a60| 74 65 7d 0a 0a 5c 69 74 | 65 6d 0a 49 53 45 54 4c |te}..\it|em.ISETL|
|00000a70| 20 69 73 20 65 78 69 74 | 65 64 20 62 79 20 74 79 | is exit|ed by ty|
|00000a80| 70 69 6e 67 20 60 60 5c | 5b 21 71 75 69 74 5c 5d |ping ``\|[!quit\]|
|00000a90| 27 27 2e 0a 49 74 20 6d | 61 79 20 61 6c 73 6f 20 |''..It m|ay also |
|00000aa0| 62 65 20 65 78 69 74 65 | 64 20 62 79 20 65 6e 64 |be exite|d by end|
|00000ab0| 69 6e 67 20 74 68 65 20 | 73 74 61 6e 64 61 72 64 |ing the |standard|
|00000ac0| 20 69 6e 70 75 74 2e 0a | 28 49 6e 20 55 6e 69 78 | input..|(In Unix|
|00000ad0| 2c 20 74 68 69 73 20 69 | 73 20 64 6f 6e 65 20 62 |, this i|s done b|
|00000ae0| 79 20 74 79 70 69 6e 67 | 20 63 74 72 6c 2d 44 29 |y typing| ctrl-D)|
|00000af0| 2e 0a 0a 5c 69 74 65 6d | 0a 41 20 63 6f 6d 6d 6f |...\item|.A commo|
|00000b00| 6e 20 6d 69 73 74 61 6b | 65 20 69 73 20 6f 6d 69 |n mistak|e is omi|
|00000b10| 74 74 69 6e 67 20 74 68 | 65 20 73 65 6d 69 63 6f |tting th|e semico|
|00000b20| 6c 6f 6e 20 61 66 74 65 | 72 20 61 6e 20 65 78 70 |lon afte|r an exp|
|00000b30| 72 65 73 73 69 6f 6e 2e | 0a 49 53 45 54 4c 20 77 |ression.|.ISETL w|
|00000b40| 69 6c 6c 20 77 61 69 74 | 20 75 6e 74 69 6c 20 69 |ill wait| until i|
|00000b50| 74 20 67 65 74 73 20 61 | 20 73 65 6d 69 63 6f 6c |t gets a| semicol|
|00000b60| 6f 6e 20 62 65 66 6f 72 | 65 20 70 72 6f 63 65 65 |on befor|e procee|
|00000b70| 64 69 6e 67 20 2d 2d 2d | 20 65 76 65 6e 20 69 66 |ding ---| even if|
|00000b80| 0a 61 20 63 61 72 72 69 | 61 67 65 20 72 65 74 75 |.a carri|age retu|
|00000b90| 72 6e 20 69 73 20 65 6e | 74 65 72 65 64 2e 0a 54 |rn is en|tered..T|
|00000ba0| 68 65 20 64 6f 75 62 6c | 65 64 20 70 72 6f 6d 70 |he doubl|ed promp|
|00000bb0| 74 20 60 60 5c 5b 3e 3e | 5c 5d 27 27 20 69 6e 64 |t ``\[>>|\]'' ind|
|00000bc0| 69 63 61 74 65 73 20 74 | 68 61 74 20 49 53 45 54 |icates t|hat ISET|
|00000bd0| 4c 20 69 73 20 65 78 70 | 65 63 74 69 6e 67 20 6d |L is exp|ecting m|
|00000be0| 6f 72 65 0a 69 6e 70 75 | 74 2e 0a 0a 5c 69 74 65 |ore.inpu|t...\ite|
|00000bf0| 6d 0a 49 53 45 54 4c 20 | 63 61 6e 20 67 65 74 20 |m.ISETL |can get |
|00000c00| 69 74 73 20 69 6e 70 75 | 74 20 66 72 6f 6d 20 73 |its inpu|t from s|
|00000c10| 6f 75 72 63 65 73 20 6f | 74 68 65 72 20 74 68 61 |ources o|ther tha|
|00000c20| 6e 20 74 68 65 20 73 74 | 61 6e 64 61 72 64 20 69 |n the st|andard i|
|00000c30| 6e 70 75 74 2e 0a 0a 5c | 62 65 67 69 6e 7b 65 6e |nput...\|begin{en|
|00000c40| 75 6d 65 72 61 74 65 7d | 0a 20 20 20 20 5c 69 74 |umerate}|. \it|
|00000c50| 65 6d 0a 20 20 20 20 49 | 66 20 74 68 65 72 65 20 |em. I|f there |
|00000c60| 69 73 20 61 20 66 69 6c | 65 20 77 69 74 68 20 74 |is a fil|e with t|
|00000c70| 68 65 20 6e 61 6d 65 20 | 60 60 5c 5b 2e 69 73 65 |he name |``\[.ise|
|00000c80| 74 6c 72 63 5c 5d 27 27 | 20 69 6e 20 74 68 65 20 |tlrc\]''| in the |
|00000c90| 63 75 72 72 65 6e 74 20 | 64 69 72 65 63 74 6f 72 |current |director|
|00000ca0| 79 2c 0a 20 20 20 20 74 | 68 65 6e 20 74 68 65 20 |y,. t|hen the |
|00000cb0| 66 69 72 73 74 20 74 68 | 69 6e 67 20 49 53 45 54 |first th|ing ISET|
|00000cc0| 4c 20 77 69 6c 6c 20 64 | 6f 20 69 73 20 72 65 61 |L will d|o is rea|
|00000cd0| 64 20 74 68 69 73 20 66 | 69 6c 65 2e 0a 20 20 20 |d this f|ile.. |
|00000ce0| 20 5c 66 6f 6f 74 6e 6f | 74 65 7b 4f 6e 20 73 79 | \footno|te{On sy|
|00000cf0| 73 74 65 6d 73 20 74 68 | 61 74 20 75 73 65 20 66 |stems th|at use f|
|00000d00| 69 6c 65 20 65 78 74 65 | 6e 74 69 6f 6e 73 2c 20 |ile exte|ntions, |
|00000d10| 74 68 69 73 20 66 69 6c | 65 20 77 69 6c 6c 20 62 |this fil|e will b|
|00000d20| 65 20 63 61 6c 6c 65 64 | 0a 20 20 20 20 60 60 5c |e called|. ``\|
|00000d30| 5b 69 73 65 74 6c 2e 69 | 6e 69 5c 5d 27 27 2e 7d |[isetl.i|ni\]''.}|
|00000d40| 0a 0a 20 20 20 20 5c 69 | 74 65 6d 0a 20 20 20 20 |.. \i|tem. |
|00000d50| 4e 65 78 74 2c 20 69 66 | 20 74 68 65 20 63 6f 6d |Next, if| the com|
|00000d60| 6d 61 6e 64 20 6c 69 6e | 65 20 68 61 73 20 61 6e |mand lin|e has an|
|00000d70| 79 20 66 69 6c 65 20 6e | 61 6d 65 73 20 6c 69 73 |y file n|ames lis|
|00000d80| 74 65 64 2c 20 49 53 45 | 54 4c 20 77 69 6c 6c 0a |ted, ISE|TL will.|
|00000d90| 20 20 20 20 72 65 61 64 | 20 65 61 63 68 20 6f 66 | read| each of|
|00000da0| 20 74 68 65 73 65 20 69 | 6e 20 74 75 72 6e 2e 0a | these i|n turn..|
|00000db0| 20 20 20 20 5c 66 6f 6f | 74 6e 6f 74 65 7b 54 68 | \foo|tnote{Th|
|00000dc0| 69 73 20 66 65 61 74 75 | 72 65 20 69 73 20 73 79 |is featu|re is sy|
|00000dd0| 73 74 65 6d 20 64 65 70 | 65 6e 64 65 6e 74 2e 20 |stem dep|endent. |
|00000de0| 20 43 75 72 72 65 6e 74 | 6c 79 2c 20 6e 65 69 74 | Current|ly, neit|
|00000df0| 68 65 72 20 74 68 65 20 | 56 4d 53 20 0a 20 20 20 |her the |VMS . |
|00000e00| 20 20 6e 6f 72 20 74 68 | 65 20 4d 61 63 69 6e 74 | nor th|e Macint|
|00000e10| 6f 73 68 20 76 65 72 73 | 69 6f 6e 20 68 61 73 20 |osh vers|ion has |
|00000e20| 74 68 69 73 20 66 65 61 | 74 75 72 65 2e 7d 0a 0a |this fea|ture.}..|
|00000e30| 20 20 20 20 54 68 75 73 | 2c 20 69 66 20 74 68 65 | Thus|, if the|
|00000e40| 20 63 6f 6d 6d 61 6e 64 | 20 6c 69 6e 65 20 72 65 | command| line re|
|00000e50| 61 64 73 2c 0a 0a 20 20 | 20 20 5c 44 53 20 69 73 |ads,.. | \DS is|
|00000e60| 65 74 6c 20 66 69 6c 65 | 2e 31 20 66 6f 6f 20 62 |etl file|.1 foo b|
|00000e70| 61 72 20 5c 44 45 0a 0a | 0a 20 20 20 20 49 53 45 |ar \DE..|. ISE|
|00000e80| 54 4c 20 77 69 6c 6c 20 | 66 69 72 73 74 20 72 65 |TL will |first re|
|00000e90| 61 64 20 66 72 6f 6d 20 | 74 68 65 20 60 60 5c 5b |ad from |the ``\[|
|00000ea0| 2e 69 73 65 74 6c 72 63 | 5c 5d 27 27 20 66 69 6c |.isetlrc|\]'' fil|
|00000eb0| 65 2c 20 69 66 20 69 74 | 20 65 78 69 73 74 73 2c |e, if it| exists,|
|00000ec0| 0a 20 20 20 20 61 6e 64 | 20 74 68 65 6e 20 66 72 |. and| then fr|
|00000ed0| 6f 6d 20 74 68 65 20 66 | 69 6c 65 20 60 60 5c 5b |om the f|ile ``\[|
|00000ee0| 66 69 6c 65 2e 31 5c 5d | 27 27 2c 20 74 68 65 6e |file.1\]|'', then|
|00000ef0| 20 66 72 6f 6d 20 60 60 | 5c 5b 66 6f 6f 5c 5d 27 | from ``|\[foo\]'|
|00000f00| 27 2c 0a 20 20 20 20 61 | 6e 64 20 74 68 65 6e 20 |',. a|nd then |
|00000f10| 66 72 6f 6d 20 60 60 5c | 5b 62 61 72 5c 5d 27 27 |from ``\|[bar\]''|
|00000f20| 2e 0a 20 20 20 20 46 69 | 6e 61 6c 6c 79 2c 20 69 |.. Fi|nally, i|
|00000f30| 74 20 69 73 20 72 65 61 | 64 79 20 66 6f 72 20 69 |t is rea|dy for i|
|00000f40| 6e 70 75 74 20 66 72 6f | 6d 20 74 68 65 20 74 65 |nput fro|m the te|
|00000f50| 72 6d 69 6e 61 6c 2e 0a | 20 20 20 20 28 54 68 69 |rminal..| (Thi|
|00000f60| 73 20 69 73 20 6f 6e 6c | 79 20 61 76 61 69 6c 61 |s is onl|y availa|
|00000f70| 62 6c 65 20 75 6e 64 65 | 72 20 55 4e 49 58 20 61 |ble unde|r UNIX a|
|00000f80| 6e 64 20 4d 53 44 4f 53 | 2e 29 0a 0a 20 20 20 20 |nd MSDOS|.).. |
|00000f90| 5c 69 74 65 6d 0a 20 20 | 20 20 49 66 20 74 68 65 |\item. | If the|
|00000fa0| 72 65 20 69 73 20 61 20 | 66 69 6c 65 20 61 76 61 |re is a |file ava|
|00000fb0| 69 6c 61 62 6c 65 20 77 | 69 74 68 20 74 68 65 20 |ilable w|ith the |
|00000fc0| 6e 61 6d 65 2c 20 73 61 | 79 20 60 60 5c 5b 66 69 |name, sa|y ``\[fi|
|00000fd0| 6c 65 2e 32 5c 5d 27 27 | 20 61 6e 64 0a 20 20 20 |le.2\]''| and. |
|00000fe0| 20 49 53 45 54 4c 20 69 | 73 20 67 69 76 65 6e 20 | ISETL i|s given |
|00000ff0| 28 61 74 20 61 6e 79 20 | 74 69 6d 65 29 2c 20 74 |(at any |time), t|
|00001000| 68 65 20 69 6e 70 75 74 | 2c 0a 0a 20 20 20 20 5c |he input|,.. \|
|00001010| 44 53 20 21 69 6e 63 6c | 75 64 65 20 66 69 6c 65 |DS !incl|ude file|
|00001020| 2e 32 20 5c 44 45 0a 0a | 20 20 20 20 28 6e 6f 74 |.2 \DE..| (not|
|00001030| 69 63 65 20 74 68 61 74 | 20 74 68 65 72 65 20 69 |ice that| there i|
|00001040| 73 20 7b 5c 65 6d 20 6e | 6f 7d 20 73 65 6d 69 63 |s {\em n|o} semic|
|00001050| 6f 6c 6f 6e 29 2c 0a 20 | 20 20 20 74 68 65 6e 20 |olon),. | then |
|00001060| 69 74 20 77 69 6c 6c 20 | 74 61 6b 65 20 69 74 73 |it will |take its|
|00001070| 20 69 6e 70 75 74 20 66 | 72 6f 6d 20 60 60 5c 5b | input f|rom ``\[|
|00001080| 66 69 6c 65 2e 32 5c 5d | 27 27 0a 20 20 20 20 62 |file.2\]|''. b|
|00001090| 65 66 6f 72 65 20 62 65 | 69 6e 67 20 72 65 61 64 |efore be|ing read|
|000010a0| 79 20 66 6f 72 20 61 6e | 79 20 66 75 72 74 68 65 |y for an|y furthe|
|000010b0| 72 20 69 6e 70 75 74 2e | 0a 20 20 20 20 54 68 65 |r input.|. The|
|000010c0| 20 6d 61 74 65 72 69 61 | 6c 20 69 6e 20 73 75 63 | materia|l in suc|
|000010d0| 68 20 61 20 66 69 6c 65 | 20 69 73 20 74 72 65 61 |h a file| is trea|
|000010e0| 74 65 64 0a 20 20 20 20 | 7b 5c 65 6d 20 65 78 61 |ted. |{\em exa|
|000010f0| 63 74 6c 79 20 61 73 20 | 69 66 20 69 74 20 77 65 |ctly as |if it we|
|00001100| 72 65 20 74 79 70 65 64 | 20 64 69 72 65 63 74 6c |re typed| directl|
|00001110| 79 20 74 6f 20 74 68 65 | 20 74 65 72 6d 69 6e 61 |y to the| termina|
|00001120| 6c 2c 7d 0a 20 20 20 20 | 61 6e 64 20 69 74 20 63 |l,}. |and it c|
|00001130| 61 6e 20 62 65 20 66 6f | 6c 6c 6f 77 65 64 20 62 |an be fo|llowed b|
|00001140| 79 20 61 6e 79 20 61 64 | 64 69 74 69 6f 6e 61 6c |y any ad|ditional|
|00001150| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 74 68 61 | informa|tion tha|
|00001160| 74 0a 20 20 20 20 74 68 | 65 20 75 73 65 72 20 77 |t. th|e user w|
|00001170| 6f 75 6c 64 20 6c 69 6b | 65 20 74 6f 20 65 6e 74 |ould lik|e to ent|
|00001180| 65 72 2e 0a 0a 20 20 20 | 20 43 6f 6e 73 69 64 65 |er... | Conside|
|00001190| 72 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |r the fo|llowing |
|000011a0| 28 72 61 74 68 65 72 20 | 63 6f 6e 74 72 69 76 65 |(rather |contrive|
|000011b0| 64 29 20 65 78 61 6d 70 | 6c 65 3a 0a 20 20 20 20 |d) examp|le:. |
|000011c0| 53 75 70 70 6f 73 65 20 | 74 68 61 74 20 74 68 65 |Suppose |that the|
|000011d0| 20 66 69 6c 65 20 60 60 | 5c 5b 66 69 6c 65 2e 33 | file ``|\[file.3|
|000011e0| 5c 5d 27 27 20 63 6f 6e | 74 61 69 6e 65 64 20 74 |\]'' con|tained t|
|000011f0| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 64 61 74 |he follo|wing dat|
|00001200| 61 2c 0a 0a 20 20 20 20 | 5c 44 53 20 35 2c 20 36 |a,.. |\DS 5, 6|
|00001210| 2c 20 37 2c 20 33 2c 20 | 2d 34 2c 20 22 74 68 65 |, 7, 3, |-4, "the|
|00001220| 22 20 5c 44 45 0a 0a 20 | 20 20 20 54 68 65 6e 20 |" \DE.. | Then |
|00001230| 69 66 20 74 68 65 20 75 | 73 65 72 20 74 79 70 65 |if the u|ser type|
|00001240| 64 2c 0a 0a 20 20 20 20 | 5c 44 53 0a 20 20 20 20 |d,.. |\DS. |
|00001250| 3e 20 20 20 73 65 74 61 | 20 3a 3d 20 5c 7b 5c 5c |> seta| := \{\\|
|00001260| 0a 20 20 20 20 3e 3e 20 | 20 21 69 6e 63 6c 75 64 |. >> | !includ|
|00001270| 65 20 66 69 6c 65 2e 33 | 5c 5c 0a 20 20 20 20 21 |e file.3|\\. !|
|00001280| 69 6e 63 6c 75 64 65 20 | 66 69 6c 65 2e 33 20 63 |include |file.3 c|
|00001290| 6f 6d 70 6c 65 74 65 64 | 5c 5c 0a 20 20 20 20 3e |ompleted|\\. >|
|000012a0| 3e 20 20 2c 20 78 20 5c | 7d 3b 5c 5c 0a 20 20 20 |> , x \|};\\. |
|000012b0| 20 5c 44 45 0a 0a 20 20 | 20 20 74 68 65 20 65 66 | \DE.. | the ef|
|000012c0| 66 65 63 74 20 77 6f 75 | 6c 64 20 62 65 20 65 78 |fect wou|ld be ex|
|000012d0| 61 63 74 6c 79 20 74 68 | 65 20 73 61 6d 65 20 61 |actly th|e same a|
|000012e0| 73 20 69 66 20 74 68 65 | 20 75 73 65 72 20 68 61 |s if the| user ha|
|000012f0| 64 20 65 6e 74 65 72 65 | 64 2c 0a 0a 20 20 20 20 |d entere|d,.. |
|00001300| 5c 44 53 0a 20 20 20 20 | 3e 20 73 65 74 61 20 3a |\DS. |> seta :|
|00001310| 3d 20 5c 7b 35 2c 20 36 | 2c 20 37 2c 20 33 2c 20 |= \{5, 6|, 7, 3, |
|00001320| 2d 34 2c 20 22 74 68 65 | 22 2c 20 78 5c 7d 3b 5c |-4, "the|", x\};\|
|00001330| 5c 0a 20 20 20 20 5c 44 | 45 0a 0a 20 20 20 20 54 |\. \D|E.. T|
|00001340| 68 65 20 6c 69 6e 65 20 | 60 60 5c 5b 21 69 6e 63 |he line |``\[!inc|
|00001350| 6c 75 64 65 20 66 69 6c | 65 2e 33 20 63 6f 6d 70 |lude fil|e.3 comp|
|00001360| 6c 65 74 65 64 5c 5d 27 | 27 0a 20 20 20 20 63 6f |leted\]'|'. co|
|00001370| 6d 65 73 20 66 72 6f 6d | 20 49 53 45 54 4c 20 61 |mes from| ISETL a|
|00001380| 6e 64 20 69 73 20 61 6c | 77 61 79 73 20 70 72 69 |nd is al|ways pri|
|00001390| 6e 74 65 64 20 61 66 74 | 65 72 20 61 6e 20 60 60 |nted aft|er an ``|
|000013a0| 5c 5b 21 69 6e 63 6c 75 | 64 65 5c 5d 27 27 2e 0a |\[!inclu|de\]''..|
|000013b0| 5c 65 6e 64 7b 65 6e 75 | 6d 65 72 61 74 65 7d 0a |\end{enu|merate}.|
|000013c0| 0a 5c 69 74 65 6d 0a 43 | 6f 6d 6d 65 6e 74 73 0a |.\item.C|omments.|
|000013d0| 0a 49 66 20 61 20 64 6f | 6c 6c 61 72 20 73 69 67 |.If a do|llar sig|
|000013e0| 6e 20 60 60 5c 5b 5c 24 | 5c 5d 27 27 20 61 70 70 |n ``\[\$|\]'' app|
|000013f0| 65 61 72 73 20 6f 6e 20 | 61 20 6c 69 6e 65 2c 0a |ears on |a line,.|
|00001400| 74 68 65 6e 20 65 76 65 | 72 79 74 68 69 6e 67 20 |then eve|rything |
|00001410| 74 68 61 74 20 61 70 70 | 65 61 72 73 20 75 6e 74 |that app|ears unt|
|00001420| 69 6c 0a 74 68 65 20 6e | 65 78 74 20 63 61 72 72 |il.the n|ext carr|
|00001430| 69 61 67 65 20 72 65 74 | 75 72 6e 20 69 73 20 69 |iage ret|urn is i|
|00001440| 67 6e 6f 72 65 64 20 62 | 79 20 49 53 45 54 4c 2e |gnored b|y ISETL.|
|00001450| 0a 0a 5c 69 74 65 6d 0a | 41 66 74 65 72 20 61 20 |..\item.|After a |
|00001460| 70 72 6f 67 72 61 6d 20 | 6f 72 20 73 74 61 74 65 |program |or state|
|00001470| 6d 65 6e 74 20 68 61 73 | 20 65 78 65 63 75 74 65 |ment has| execute|
|00001480| 64 2c 0a 74 68 65 20 76 | 61 6c 75 65 73 20 6f 66 |d,.the v|alues of|
|00001490| 20 67 6c 6f 62 61 6c 20 | 76 61 72 69 61 62 6c 65 | global |variable|
|000014a0| 73 20 70 65 72 73 69 73 | 74 2e 0a 54 68 65 20 75 |s persis|t..The u|
|000014b0| 73 65 72 20 63 61 6e 20 | 74 68 65 6e 20 65 76 61 |ser can |then eva|
|000014c0| 6c 75 61 74 65 20 65 78 | 70 72 65 73 73 69 6f 6e |luate ex|pression|
|000014d0| 73 20 69 6e 20 74 65 72 | 6d 73 20 6f 66 20 74 68 |s in ter|ms of th|
|000014e0| 65 73 65 20 76 61 72 69 | 61 62 6c 65 73 2e 0a 28 |ese vari|ables..(|
|000014f0| 53 65 65 20 62 65 6c 6f | 77 20 66 6f 72 20 6d 6f |See belo|w for mo|
|00001500| 72 65 20 64 65 74 61 69 | 6c 20 6f 6e 20 73 63 6f |re detai|l on sco|
|00001510| 70 65 2e 29 0a 5c 65 6e | 64 7b 65 6e 75 6d 65 72 |pe.).\en|d{enumer|
|00001520| 61 74 65 7d 0a 0a 0a 5c | 73 65 63 74 69 6f 6e 7b |ate}...\|section{|
|00001530| 43 68 61 72 61 63 74 65 | 72 73 20 61 6e 64 20 4b |Characte|rs and K|
|00001540| 65 79 77 6f 72 64 73 7d | 0a 0a 5c 73 75 62 73 65 |eywords}|..\subse|
|00001550| 63 74 69 6f 6e 7b 43 68 | 61 72 61 63 74 65 72 20 |ction{Ch|aracter |
|00001560| 73 65 74 2e 7d 20 20 0a | 0a 54 68 65 20 66 6f 6c |set.} .|.The fol|
|00001570| 6c 6f 77 69 6e 67 20 69 | 73 20 61 20 6c 69 73 74 |lowing i|s a list|
|00001580| 20 6f 66 20 63 68 61 72 | 61 63 74 65 72 73 20 75 | of char|acters u|
|00001590| 73 65 64 20 62 79 20 49 | 53 45 54 4c 2e 0a 0a 5c |sed by I|SETL...\|
|000015a0| 44 53 0a 5d 20 5b 20 3b | 20 3a 20 3d 20 7c 20 5c |DS.] [ ;| : = | \|
|000015b0| 7d 20 5c 7b 20 29 20 28 | 20 2e 20 5c 23 20 3f 20 |} \{ ) (| . \# ? |
|000015c0| 2a 20 2f 20 2b 20 2d 20 | 5c 5f 20 22 20 3e 20 3c |* / + - |\_ " > <|
|000015d0| 20 5c 25 20 5c 7e 5c 20 | 20 2c 20 20 20 5c 5c 0a | \% \~\ | , \\.|
|000015e0| 5c 5c 0a 61 20 7b 5c 72 | 6d 20 2d 2d 20 7d 20 7a |\\.a {\r|m -- } z|
|000015f0| 20 5c 20 5c 20 20 20 20 | 41 20 7b 5c 72 6d 20 2d | \ \ |A {\rm -|
|00001600| 2d 20 7d 20 5a 20 20 5c | 20 5c 20 20 20 30 20 7b |- } Z \| \ 0 {|
|00001610| 5c 72 6d 20 2d 2d 20 7d | 20 39 0a 5c 44 45 0a 0a |\rm -- }| 9.\DE..|
|00001620| 49 6e 20 61 64 64 69 74 | 69 6f 6e 2c 20 74 68 65 |In addit|ion, the|
|00001630| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 63 68 61 72 61 | followi|ng chara|
|00001640| 63 74 65 72 2d 70 61 69 | 72 73 20 61 72 65 20 75 |cter-pai|rs are u|
|00001650| 73 65 64 2e 0a 0a 5c 44 | 53 0a 3a 3d 20 5c 20 5c |sed...\D|S.:= \ \|
|00001660| 20 20 2e 2e 20 5c 20 5c | 20 20 2a 2a 20 5c 20 5c | .. \ \| ** \ \|
|00001670| 20 20 2f 3d 20 5c 20 5c | 20 20 3c 3d 20 5c 20 5c | /= \ \| <= \ \|
|00001680| 20 20 3e 3d 0a 5c 44 45 | 0a 0a 0a 5c 73 75 62 73 | >=.\DE|...\subs|
|00001690| 65 63 74 69 6f 6e 7b 4b | 65 79 77 6f 72 64 73 2e |ection{K|eywords.|
|000016a0| 7d 0a 0a 54 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |}..The f|ollowing|
|000016b0| 20 69 73 20 61 20 6c 69 | 73 74 20 6f 66 20 49 53 | is a li|st of IS|
|000016c0| 45 54 4c 20 6b 65 79 77 | 6f 72 64 73 2e 0a 5c 44 |ETL keyw|ords..\D|
|000016d0| 53 0a 5c 62 65 67 69 6e | 7b 74 61 62 75 6c 61 72 |S.\begin|{tabular|
|000016e0| 7d 7b 6c 20 6c 20 6c 20 | 6c 7d 0a 61 6e 64 26 09 |}{l l l |l}.and&.|
|000016f0| 66 72 6f 6d 26 09 6e 65 | 77 61 74 26 09 73 75 62 |from&.ne|wat&.sub|
|00001700| 73 65 74 09 5c 5c 0a 64 | 69 76 26 09 66 72 6f 6d |set.\\.d|iv&.from|
|00001710| 62 26 09 6e 6f 74 26 09 | 74 61 6b 65 09 5c 5c 0a |b&.not&.|take.\\.|
|00001720| 64 6f 26 09 66 72 6f 6d | 65 26 09 6e 6f 74 69 6e |do&.from|e&.notin|
|00001730| 26 09 74 68 65 6e 09 5c | 5c 0a 65 6c 73 65 26 09 |&.then.\|\.else&.|
|00001740| 66 75 6e 63 26 09 6f 66 | 26 09 74 6f 09 5c 5c 0a |func&.of|&.to.\\.|
|00001750| 65 6c 73 65 69 66 26 09 | 69 66 26 09 6f 6d 20 28 |elseif&.|if&.om (|
|00001760| 4f 4d 29 26 09 74 72 75 | 65 09 5c 5c 0a 65 6e 64 |OM)&.tru|e.\\.end|
|00001770| 26 09 69 6d 70 6c 26 09 | 6f 72 26 09 76 61 6c 75 |&.impl&.|or&.valu|
|00001780| 65 09 5c 5c 0a 65 78 69 | 73 74 73 26 09 69 6e 26 |e.\\.exi|sts&.in&|
|00001790| 09 70 72 69 6e 74 26 09 | 77 68 69 6c 65 09 5c 5c |.print&.|while.\\|
|000017a0| 0a 66 61 6c 73 65 26 09 | 6c 65 73 73 26 09 70 72 |.false&.|less&.pr|
|000017b0| 6f 67 72 61 6d 26 09 77 | 68 65 72 65 09 5c 5c 0a |ogram&.w|here.\\.|
|000017c0| 66 6f 72 26 09 6c 6f 63 | 61 6c 26 09 72 65 61 64 |for&.loc|al&.read|
|000017d0| 26 09 77 69 74 68 09 5c | 5c 0a 66 6f 72 61 6c 6c |&.with.\|\.forall|
|000017e0| 26 09 6d 6f 64 26 09 72 | 65 74 75 72 6e 09 5c 5c |&.mod&.r|eturn.\\|
|000017f0| 0a 5c 65 6e 64 7b 74 61 | 62 75 6c 61 72 7d 0a 5c |.\end{ta|bular}.\|
|00001800| 44 45 0a 0a 0a 5c 73 65 | 63 74 69 6f 6e 7b 49 64 |DE...\se|ction{Id|
|00001810| 65 6e 74 69 66 69 65 72 | 73 2e 7d 0a 0a 20 20 20 |entifier|s.}.. |
|00001820| 20 5c 62 65 67 69 6e 7b | 65 6e 75 6d 65 72 61 74 | \begin{|enumerat|
|00001830| 65 7d 0a 0a 20 20 20 20 | 5c 69 74 65 6d 0a 20 20 |e}.. |\item. |
|00001840| 20 20 41 6e 20 69 64 65 | 6e 74 69 66 69 65 72 20 | An ide|ntifier |
|00001850| 69 73 20 61 20 73 65 71 | 75 65 6e 63 65 20 6f 66 |is a seq|uence of|
|00001860| 20 61 6c 70 68 61 6e 75 | 6d 65 72 69 63 20 63 68 | alphanu|meric ch|
|00001870| 61 72 61 63 74 65 72 73 | 20 61 6c 6f 6e 67 20 77 |aracters| along w|
|00001880| 69 74 68 20 74 68 65 0a | 20 20 20 20 75 6e 64 65 |ith the.| unde|
|00001890| 72 73 63 6f 72 65 2c 20 | 60 60 5c 5b 5c 5f 5c 5d |rscore, |``\[\_\]|
|000018a0| 27 27 2e 0a 20 20 20 20 | 49 74 20 6d 75 73 74 20 |''.. |It must |
|000018b0| 62 65 67 69 6e 20 77 69 | 74 68 20 61 20 6c 65 74 |begin wi|th a let|
|000018c0| 74 65 72 2e 0a 20 20 20 | 20 55 70 70 65 72 20 6f |ter.. | Upper o|
|000018d0| 72 20 6c 6f 77 65 72 20 | 63 61 73 65 20 6d 61 79 |r lower |case may|
|000018e0| 0a 20 20 20 20 62 65 20 | 75 73 65 64 2c 20 61 6e |. be |used, an|
|000018f0| 64 20 49 53 45 54 4c 20 | 70 72 65 73 65 72 76 65 |d ISETL |preserve|
|00001900| 73 20 74 68 65 20 64 69 | 73 74 69 6e 63 74 69 6f |s the di|stinctio|
|00001910| 6e 2e 0a 20 20 20 20 28 | 49 2e 65 2e 3a 20 5c 5b |n.. (|I.e.: \[|
|00001920| 61 5c 5f 5c 2c 67 6f 6f | 64 5c 5f 5c 2c 74 68 69 |a\_\,goo|d\_\,thi|
|00001930| 6e 67 5c 5d 20 61 6e 64 | 20 5c 5b 41 5c 5f 5c 2c |ng\] and| \[A\_\,|
|00001940| 47 6f 6f 64 5c 5f 5c 2c | 54 68 69 6e 67 5c 5d 0a |Good\_\,|Thing\].|
|00001950| 20 20 20 20 61 72 65 20 | 62 6f 74 68 20 6c 65 67 | are |both leg|
|00001960| 61 6c 20 61 6e 64 20 61 | 72 65 20 64 69 66 66 65 |al and a|re diffe|
|00001970| 72 65 6e 74 2e 29 0a 0a | 20 20 20 20 5c 69 74 65 |rent.)..| \ite|
|00001980| 6d 0a 20 20 20 20 41 6e | 20 69 64 65 6e 74 69 66 |m. An| identif|
|00001990| 69 65 72 20 73 65 72 76 | 65 73 20 61 73 20 61 20 |ier serv|es as a |
|000019a0| 76 61 72 69 61 62 6c 65 | 20 61 6e 64 20 63 61 6e |variable| and can|
|000019b0| 20 74 61 6b 65 20 6f 6e | 20 61 20 76 61 6c 75 65 | take on| a value|
|000019c0| 20 6f 66 20 61 6e 79 20 | 49 53 45 54 4c 0a 20 20 | of any |ISETL. |
|000019d0| 20 20 64 61 74 61 20 74 | 79 70 65 2e 0a 20 20 20 | data t|ype.. |
|000019e0| 20 54 68 65 20 74 79 70 | 65 20 6f 66 20 61 20 76 | The typ|e of a v|
|000019f0| 61 72 69 61 62 6c 65 20 | 69 73 20 65 6e 74 69 72 |ariable |is entir|
|00001a00| 65 6c 79 20 64 65 74 65 | 72 6d 69 6e 65 64 20 62 |ely dete|rmined b|
|00001a10| 79 20 74 68 65 20 76 61 | 6c 75 65 0a 20 20 20 20 |y the va|lue. |
|00001a20| 74 68 61 74 20 69 73 20 | 61 73 73 69 67 6e 65 64 |that is |assigned|
|00001a30| 20 74 6f 20 69 74 20 61 | 6e 64 20 63 68 61 6e 67 | to it a|nd chang|
|00001a40| 65 73 20 77 68 65 6e 20 | 61 20 76 61 6c 75 65 20 |es when |a value |
|00001a50| 6f 66 20 61 20 64 69 66 | 66 65 72 65 6e 74 20 74 |of a dif|ferent t|
|00001a60| 79 70 65 20 69 73 0a 20 | 20 20 20 61 73 73 69 67 |ype is. | assig|
|00001a70| 6e 65 64 20 74 6f 20 69 | 74 2e 0a 20 20 20 20 5c |ned to i|t.. \|
|00001a80| 65 6e 64 7b 65 6e 75 6d | 65 72 61 74 65 7d 0a 0a |end{enum|erate}..|
|00001a90| 5c 73 65 63 74 69 6f 6e | 7b 53 69 6d 70 6c 65 20 |\section|{Simple |
|00001aa0| 44 61 74 61 20 54 79 70 | 65 73 2e 7d 0a 0a 20 20 |Data Typ|es.}.. |
|00001ab0| 20 20 5c 73 75 62 73 65 | 63 74 69 6f 6e 7b 49 6e | \subse|ction{In|
|00001ac0| 74 65 67 65 72 73 2e 7d | 0a 20 20 20 20 5c 62 65 |tegers.}|. \be|
|00001ad0| 67 69 6e 7b 65 6e 75 6d | 65 72 61 74 65 7d 0a 20 |gin{enum|erate}. |
|00001ae0| 20 20 20 5c 69 74 65 6d | 0a 20 20 20 20 54 68 65 | \item|. The|
|00001af0| 72 65 20 69 73 20 6e 6f | 20 6c 69 6d 69 74 20 74 |re is no| limit t|
|00001b00| 6f 20 74 68 65 20 73 69 | 7a 65 20 6f 66 20 69 6e |o the si|ze of in|
|00001b10| 74 65 67 65 72 73 2e 0a | 20 20 20 20 5c 66 6f 6f |tegers..| \foo|
|00001b20| 74 6e 6f 74 65 20 7b 4e | 6f 20 70 72 61 63 74 69 |tnote {N|o practi|
|00001b30| 63 61 6c 20 6c 69 6d 69 | 74 2e 20 20 0a 20 20 20 |cal limi|t. . |
|00001b40| 20 41 63 74 75 61 6c 6c | 79 20 6c 69 6d 69 74 65 | Actuall|y limite|
|00001b50| 64 20 74 6f 20 61 62 6f | 75 74 20 32 30 2c 30 30 |d to abo|ut 20,00|
|00001b60| 30 20 64 69 67 69 74 73 | 20 70 65 72 20 69 6e 74 |0 digits| per int|
|00001b70| 65 67 65 72 2e 7d 0a 20 | 20 20 20 5c 69 74 65 6d |eger.}. | \item|
|00001b80| 0a 20 20 20 20 41 6e 20 | 7b 5c 74 74 20 69 6e 74 |. An |{\tt int|
|00001b90| 65 67 65 72 7d 20 63 6f | 6e 73 74 61 6e 74 20 69 |eger} co|nstant i|
|00001ba0| 73 20 61 20 73 65 71 75 | 65 6e 63 65 20 6f 66 20 |s a sequ|ence of |
|00001bb0| 6f 6e 65 20 6f 72 20 6d | 6f 72 65 20 64 69 67 69 |one or m|ore digi|
|00001bc0| 74 73 2e 0a 20 20 20 20 | 49 74 20 72 65 70 72 65 |ts.. |It repre|
|00001bd0| 73 65 6e 74 73 20 61 6e | 20 75 6e 73 69 67 6e 65 |sents an| unsigne|
|00001be0| 64 20 69 6e 74 65 67 65 | 72 2e 0a 20 20 20 20 5c |d intege|r.. \|
|00001bf0| 69 74 65 6d 0a 20 20 20 | 20 4f 6e 20 6f 75 74 70 |item. | On outp|
|00001c00| 75 74 2c 20 6c 6f 6e 67 | 20 69 6e 74 65 67 65 72 |ut, long| integer|
|00001c10| 73 20 6d 61 79 20 62 65 | 20 62 72 6f 6b 65 6e 20 |s may be| broken |
|00001c20| 74 6f 20 61 63 63 6f 6d | 6f 64 61 74 65 20 0a 20 |to accom|odate . |
|00001c30| 20 20 20 6c 69 6d 69 74 | 65 64 20 6c 69 6e 65 20 | limit|ed line |
|00001c40| 6c 65 6e 67 74 68 2e 20 | 20 54 68 69 73 20 66 6f |length. | This fo|
|00001c50| 72 6d 61 74 20 69 73 20 | 6e 6f 74 20 79 65 74 20 |rmat is |not yet |
|00001c60| 61 76 61 69 6c 61 62 6c | 65 20 66 6f 72 0a 20 20 |availabl|e for. |
|00001c70| 20 20 69 6e 70 75 74 2e | 0a 0a 20 20 20 20 5c 65 | input.|.. \e|
|00001c80| 6e 64 7b 65 6e 75 6d 65 | 72 61 74 65 7d 0a 0a 20 |nd{enume|rate}.. |
|00001c90| 20 20 20 5c 73 75 62 73 | 65 63 74 69 6f 6e 7b 46 | \subs|ection{F|
|00001ca0| 6c 6f 61 74 69 6e 67 5c | 5f 5c 2c 50 6f 69 6e 74 |loating\|_\,Point|
|00001cb0| 20 4e 75 6d 62 65 72 73 | 2e 7d 0a 20 20 20 20 5c | Numbers|.}. \|
|00001cc0| 62 65 67 69 6e 7b 65 6e | 75 6d 65 72 61 74 65 7d |begin{en|umerate}|
|00001cd0| 0a 20 20 20 20 5c 69 74 | 65 6d 0a 20 20 20 20 54 |. \it|em. T|
|00001ce0| 68 65 20 70 6f 73 73 69 | 62 6c 65 20 72 61 6e 67 |he possi|ble rang|
|00001cf0| 65 20 6f 66 20 7b 5c 74 | 74 20 66 6c 6f 61 74 69 |e of {\t|t floati|
|00001d00| 6e 67 5c 5f 5c 2c 70 6f | 69 6e 74 7d 20 6e 75 6d |ng\_\,po|int} num|
|00001d10| 62 65 72 73 20 69 73 20 | 6d 61 63 68 69 6e 65 20 |bers is |machine |
|00001d20| 64 65 70 65 6e 64 65 6e | 74 2e 0a 20 20 20 20 41 |dependen|t.. A|
|00001d30| 74 20 61 20 6d 69 6e 69 | 6d 75 6d 2c 20 74 68 65 |t a mini|mum, the|
|00001d40| 20 76 61 6c 75 65 73 20 | 77 69 6c 6c 20 68 61 76 | values |will hav|
|00001d50| 65 20 35 20 70 6c 61 63 | 65 20 61 63 63 75 72 61 |e 5 plac|e accura|
|00001d60| 63 79 2c 20 77 69 74 68 | 20 61 20 72 61 6e 67 65 |cy, with| a range|
|00001d70| 20 6f 66 0a 20 20 20 20 | 61 70 70 72 6f 78 69 6d | of. |approxim|
|00001d80| 61 74 65 6c 79 20 24 31 | 30 5e 7b 33 38 7d 24 2e |ately $1|0^{38}$.|
|00001d90| 0a 20 20 20 20 5c 69 74 | 65 6d 0a 20 20 20 20 41 |. \it|em. A|
|00001da0| 20 7b 5c 74 74 20 66 6c | 6f 61 74 69 6e 67 5c 5f | {\tt fl|oating\_|
|00001db0| 5c 2c 70 6f 69 6e 74 20 | 63 6f 6e 73 74 61 6e 74 |\,point |constant|
|00001dc0| 7d 20 69 73 20 61 20 73 | 65 71 75 65 6e 63 65 20 |} is a s|equence |
|00001dd0| 6f 66 20 6f 6e 65 20 6f | 72 20 6d 6f 72 65 20 64 |of one o|r more d|
|00001de0| 69 67 69 74 73 2c 0a 20 | 20 20 20 66 6f 6c 6c 6f |igits,. | follo|
|00001df0| 77 65 64 20 62 79 20 61 | 20 70 65 72 69 6f 64 2c |wed by a| period,|
|00001e00| 20 60 60 5c 5b 2e 5c 5d | 27 27 2c 0a 20 20 20 20 | ``\[.\]|'',. |
|00001e10| 66 6f 6c 6c 6f 77 65 64 | 20 62 79 20 6f 6e 65 20 |followed| by one |
|00001e20| 6f 72 20 6d 6f 72 65 20 | 64 69 67 69 74 73 2e 0a |or more |digits..|
|00001e30| 20 20 20 20 54 68 75 73 | 2c 20 5c 5b 32 2e 30 5c | Thus|, \[2.0\|
|00001e40| 5d 20 69 73 20 6c 65 67 | 61 6c 2c 20 61 6e 64 20 |] is leg|al, and |
|00001e50| 5c 5b 32 2e 5c 5d 20 61 | 6e 64 20 5c 5b 2e 35 5c |\[2.\] a|nd \[.5\|
|00001e60| 5d 20 61 72 65 20 69 6c | 6c 65 67 61 6c 2e 0a 20 |] are il|legal.. |
|00001e70| 20 20 20 0a 20 20 20 20 | 49 74 20 6d 61 79 20 62 | . |It may b|
|00001e80| 65 20 66 6f 6c 6c 6f 77 | 65 64 20 62 79 20 61 6e |e follow|ed by an|
|00001e90| 20 65 78 70 6f 6e 65 6e | 74 2e 0a 20 20 20 20 41 | exponen|t.. A|
|00001ea0| 6e 20 65 78 70 6f 6e 65 | 6e 74 20 63 6f 6e 73 69 |n expone|nt consi|
|00001eb0| 73 74 73 20 6f 66 20 6f | 6e 65 20 6f 66 20 74 68 |sts of o|ne of th|
|00001ec0| 65 20 63 68 61 72 61 63 | 74 65 72 73 20 60 60 5c |e charac|ters ``\|
|00001ed0| 5b 65 5c 5d 27 27 2c 0a | 20 20 20 20 60 60 5c 5b |[e\]'',.| ``\[|
|00001ee0| 45 5c 5d 27 27 2c 20 60 | 60 5c 5b 66 5c 5d 27 27 |E\]'', `|`\[f\]''|
|00001ef0| 2c 20 60 60 5c 5b 46 5c | 5d 27 27 20 66 6f 6c 6c |, ``\[F\|]'' foll|
|00001f00| 6f 77 65 64 20 62 79 20 | 61 20 73 69 67 6e 65 64 |owed by |a signed|
|00001f10| 20 6f 72 20 75 6e 73 69 | 67 6e 65 64 0a 20 20 20 | or unsi|gned. |
|00001f20| 20 7b 5c 74 74 20 69 6e | 74 65 67 65 72 7d 2e 0a | {\tt in|teger}..|
|00001f30| 20 20 20 20 54 68 65 20 | 76 61 6c 75 65 20 6f 66 | The |value of|
|00001f40| 20 61 20 7b 5c 74 74 20 | 66 6c 6f 61 74 69 6e 67 | a {\tt |floating|
|00001f50| 5c 5f 5c 2c 70 6f 69 6e | 74 7d 20 63 6f 6e 73 74 |\_\,poin|t} const|
|00001f60| 61 6e 74 0a 20 20 20 20 | 69 73 20 64 65 74 65 72 |ant. |is deter|
|00001f70| 6d 69 6e 65 64 20 61 73 | 20 69 73 20 75 73 75 61 |mined as| is usua|
|00001f80| 6c 20 77 69 74 68 20 73 | 63 69 65 6e 74 69 66 69 |l with s|cientifi|
|00001f90| 63 20 6e 6f 74 61 74 69 | 6f 6e 2e 0a 20 20 20 20 |c notati|on.. |
|00001fa0| 41 73 20 77 69 74 68 20 | 69 6e 74 65 67 65 72 73 |As with |integers|
|00001fb0| 2c 20 69 74 20 69 73 20 | 75 6e 73 69 67 6e 65 64 |, it is |unsigned|
|00001fc0| 2e 0a 20 20 20 20 48 65 | 6e 63 65 2c 20 66 6f 72 |.. He|nce, for|
|00001fd0| 20 65 78 61 6d 70 6c 65 | 2c 20 5c 5b 30 2e 32 5c | example|, \[0.2\|
|00001fe0| 5d 2c 20 5c 5b 32 2e 30 | 65 2d 31 5c 5d 2c 20 5c |], \[2.0|e-1\], \|
|00001ff0| 5b 32 30 2e 30 65 2d 32 | 5c 5d 20 61 72 65 20 61 |[20.0e-2|\] are a|
|00002000| 6c 6c 20 65 71 75 69 76 | 61 6c 65 6e 74 2e 0a 20 |ll equiv|alent.. |
|00002010| 20 20 20 5c 69 74 65 6d | 0a 20 20 20 20 44 69 66 | \item|. Dif|
|00002020| 66 65 72 65 6e 74 20 73 | 79 73 74 65 6d 73 20 75 |ferent s|ystems u|
|00002030| 73 65 20 64 69 66 66 65 | 72 65 6e 74 20 70 72 69 |se diffe|rent pri|
|00002040| 6e 74 65 64 20 72 65 70 | 72 65 73 65 6e 74 61 74 |nted rep|resentat|
|00002050| 69 6f 6e 73 20 77 68 65 | 6e 0a 20 20 20 20 66 6c |ions whe|n. fl|
|00002060| 6f 61 74 69 6e 67 20 70 | 6f 69 6e 74 20 76 61 6c |oating p|oint val|
|00002070| 75 65 73 20 61 72 65 20 | 6f 75 74 20 6f 66 20 74 |ues are |out of t|
|00002080| 68 65 20 6d 61 63 68 69 | 6e 65 27 73 20 72 61 6e |he machi|ne's ran|
|00002090| 67 65 2e 0a 20 20 20 20 | 46 6f 72 20 65 78 61 6d |ge.. |For exam|
|000020a0| 70 6c 65 2c 20 77 68 65 | 6e 20 74 68 65 20 76 61 |ple, whe|n the va|
|000020b0| 6c 75 65 20 69 73 20 74 | 6f 6f 20 6c 61 72 67 65 |lue is t|oo large|
|000020c0| 2c 20 74 68 65 20 4d 61 | 63 20 70 72 69 6e 74 73 |, the Ma|c prints|
|000020d0| 20 60 60 2b 2b 2b 2b 2b | 27 27 0a 20 20 20 20 61 | ``+++++|''. a|
|000020e0| 6e 64 20 74 68 65 20 53 | 75 6e 20 70 72 69 6e 74 |nd the S|un print|
|000020f0| 73 20 22 49 6e 66 69 6e | 69 74 79 22 2e 0a 20 20 |s "Infin|ity".. |
|00002100| 20 20 5c 65 6e 64 7b 65 | 6e 75 6d 65 72 61 74 65 | \end{e|numerate|
|00002110| 7d 0a 0a 20 20 20 20 5c | 73 75 62 73 65 63 74 69 |}.. \|subsecti|
|00002120| 6f 6e 7b 42 6f 6f 6c 65 | 61 6e 73 2e 7d 0a 20 20 |on{Boole|ans.}. |
|00002130| 20 20 5c 62 65 67 69 6e | 7b 65 6e 75 6d 65 72 61 | \begin|{enumera|
|00002140| 74 65 7d 0a 20 20 20 20 | 5c 69 74 65 6d 0a 20 20 |te}. |\item. |
|00002150| 20 20 41 20 7b 5c 74 74 | 20 42 6f 6f 6c 65 61 6e | A {\tt| Boolean|
|00002160| 7d 20 63 6f 6e 73 74 61 | 6e 74 20 69 73 20 6f 6e |} consta|nt is on|
|00002170| 65 20 6f 66 20 74 68 65 | 20 6b 65 79 77 6f 72 64 |e of the| keyword|
|00002180| 73 20 5c 5b 74 72 75 65 | 5c 5d 20 6f 72 20 5c 5b |s \[true|\] or \[|
|00002190| 66 61 6c 73 65 5c 5d 2c | 0a 20 20 20 20 77 69 74 |false\],|. wit|
|000021a0| 68 20 74 68 65 20 6f 62 | 76 69 6f 75 73 20 6d 65 |h the ob|vious me|
|000021b0| 61 6e 69 6e 67 20 66 6f | 72 20 69 74 73 20 76 61 |aning fo|r its va|
|000021c0| 6c 75 65 2e 0a 20 20 20 | 20 5c 65 6e 64 7b 65 6e |lue.. | \end{en|
|000021d0| 75 6d 65 72 61 74 65 7d | 0a 0a 20 20 20 20 5c 73 |umerate}|.. \s|
|000021e0| 75 62 73 65 63 74 69 6f | 6e 7b 53 74 72 69 6e 67 |ubsectio|n{String|
|000021f0| 73 2e 7d 0a 20 20 20 20 | 5c 62 65 67 69 6e 7b 65 |s.}. |\begin{e|
|00002200| 6e 75 6d 65 72 61 74 65 | 7d 0a 20 20 20 20 5c 69 |numerate|}. \i|
|00002210| 74 65 6d 0a 20 20 20 20 | 41 20 7b 5c 74 74 20 73 |tem. |A {\tt s|
|00002220| 74 72 69 6e 67 7d 20 63 | 6f 6e 73 74 61 6e 74 20 |tring} c|onstant |
|00002230| 69 73 20 61 6e 79 20 73 | 65 71 75 65 6e 63 65 20 |is any s|equence |
|00002240| 6f 66 0a 20 20 20 20 63 | 68 61 72 61 63 74 65 72 |of. c|haracter|
|00002250| 73 20 70 72 65 63 65 64 | 65 64 20 61 6e 64 20 66 |s preced|ed and f|
|00002260| 6f 6c 6c 6f 77 65 64 20 | 62 79 20 61 20 64 6f 75 |ollowed |by a dou|
|00002270| 62 6c 65 20 71 75 6f 74 | 65 2c 20 60 60 5c 5b 22 |ble quot|e, ``\["|
|00002280| 5c 5d 27 27 2e 0a 20 20 | 20 20 54 68 65 20 64 6f |\]''.. | The do|
|00002290| 75 62 6c 65 20 71 75 6f | 74 65 20 6d 61 79 20 6e |uble quo|te may n|
|000022a0| 6f 74 20 62 65 20 75 73 | 65 64 20 69 6e 20 61 20 |ot be us|ed in a |
|000022b0| 7b 5c 74 74 20 73 74 72 | 69 6e 67 7d 2e 0a 20 20 |{\tt str|ing}.. |
|000022c0| 20 20 41 20 7b 5c 74 74 | 20 73 74 72 69 6e 67 7d | A {\tt| string}|
|000022d0| 20 6d 61 79 20 6e 6f 74 | 20 62 65 20 73 70 6c 69 | may not| be spli|
|000022e0| 74 20 61 63 72 6f 73 73 | 20 6c 69 6e 65 73 2e 0a |t across| lines..|
|000022f0| 20 20 20 20 4c 61 72 67 | 65 20 7b 5c 74 74 20 73 | Larg|e {\tt s|
|00002300| 74 72 69 6e 67 7d 73 20 | 6d 61 79 20 62 65 20 63 |tring}s |may be c|
|00002310| 6f 6e 73 74 72 75 63 74 | 65 64 20 75 73 69 6e 67 |onstruct|ed using|
|00002320| 20 74 68 65 0a 20 20 20 | 20 6f 70 65 72 61 74 69 | the. | operati|
|00002330| 6f 6e 20 6f 66 20 63 6f | 6e 63 61 74 65 6e 61 74 |on of co|ncatenat|
|00002340| 69 6f 6e 2e 0a 0a 20 20 | 20 20 7b 5c 65 6d 20 57 |ion... | {\em W|
|00002350| 61 72 6e 69 6e 67 3a 7d | 20 43 6f 6e 73 74 72 75 |arning:}| Constru|
|00002360| 63 74 69 6f 6e 20 6f 66 | 20 7b 5c 74 74 20 73 74 |ction of| {\tt st|
|00002370| 72 69 6e 67 7d 73 20 63 | 6f 6e 74 61 69 6e 69 6e |ring}s c|ontainin|
|00002380| 67 20 64 6f 75 62 6c 65 | 20 71 75 6f 74 65 20 69 |g double| quote i|
|00002390| 73 0a 20 20 20 20 70 6f | 73 73 69 62 6c 65 2c 20 |s. po|ssible, |
|000023a0| 62 75 74 20 74 68 65 20 | 6f 75 74 70 75 74 20 6f |but the |output o|
|000023b0| 66 20 73 75 63 68 20 7b | 5c 74 74 20 73 74 72 69 |f such {|\tt stri|
|000023c0| 6e 67 7d 73 20 6d 61 79 | 20 63 61 75 73 65 20 64 |ng}s may| cause d|
|000023d0| 69 66 66 69 63 75 6c 74 | 69 65 73 2e 0a 20 20 20 |ifficult|ies.. |
|000023e0| 20 5c 65 6e 64 7b 65 6e | 75 6d 65 72 61 74 65 7d | \end{en|umerate}|
|000023f0| 0a 0a 20 20 20 20 5c 73 | 75 62 73 65 63 74 69 6f |.. \s|ubsectio|
|00002400| 6e 7b 41 74 6f 6d 73 2e | 7d 0a 20 20 20 20 5c 62 |n{Atoms.|}. \b|
|00002410| 65 67 69 6e 7b 65 6e 75 | 6d 65 72 61 74 65 7d 0a |egin{enu|merate}.|
|00002420| 20 20 20 20 5c 69 74 65 | 6d 0a 20 20 20 20 41 74 | \ite|m. At|
|00002430| 6f 6d 73 20 61 72 65 20 | 60 60 61 62 73 74 72 61 |oms are |``abstra|
|00002440| 63 74 20 70 6f 69 6e 74 | 73 27 27 2e 0a 20 20 20 |ct point|s''.. |
|00002450| 20 54 68 65 79 20 68 61 | 76 65 20 6e 6f 20 69 64 | They ha|ve no id|
|00002460| 65 6e 74 69 66 79 69 6e | 67 20 70 72 6f 70 65 72 |entifyin|g proper|
|00002470| 74 69 65 73 20 6f 74 68 | 65 72 20 74 68 61 6e 20 |ties oth|er than |
|00002480| 74 68 65 69 72 20 69 6e | 64 69 76 69 64 75 61 6c |their in|dividual|
|00002490| 20 65 78 69 73 74 65 6e | 63 65 2e 0a 20 20 20 20 | existen|ce.. |
|000024a0| 5c 65 6e 64 7b 65 6e 75 | 6d 65 72 61 74 65 7d 0a |\end{enu|merate}.|
|000024b0| 20 20 20 20 0a 20 20 20 | 20 5c 73 75 62 73 65 63 | . | \subsec|
|000024c0| 74 69 6f 6e 7b 46 69 6c | 65 73 2e 7d 0a 20 20 20 |tion{Fil|es.}. |
|000024d0| 20 5c 62 65 67 69 6e 7b | 65 6e 75 6d 65 72 61 74 | \begin{|enumerat|
|000024e0| 65 7d 0a 20 20 20 20 5c | 69 74 65 6d 0a 20 20 20 |e}. \|item. |
|000024f0| 20 7b 5c 74 74 20 46 69 | 6c 65 73 7d 20 61 72 65 | {\tt Fi|les} are|
|00002500| 20 49 53 45 54 4c 20 76 | 61 6c 75 65 73 0a 20 20 | ISETL v|alues. |
|00002510| 20 20 74 68 61 74 20 61 | 72 65 20 63 72 65 61 74 | that a|re creat|
|00002520| 65 64 20 61 73 20 61 20 | 72 65 73 75 6c 74 20 6f |ed as a |result o|
|00002530| 66 20 61 70 70 6c 79 69 | 6e 67 20 6f 6e 65 20 6f |f applyi|ng one o|
|00002540| 66 20 74 68 65 20 70 72 | 65 2d 64 65 66 69 6e 65 |f the pr|e-define|
|00002550| 64 0a 20 20 20 20 66 75 | 6e 63 74 69 6f 6e 73 20 |d. fu|nctions |
|00002560| 5c 5b 6f 70 65 6e 72 5c | 5d 2c 20 5c 5b 6f 70 65 |\[openr\|], \[ope|
|00002570| 6e 61 5c 5d 2c 20 5c 5b | 6f 70 65 6e 77 5c 5d 2e |na\], \[|openw\].|
|00002580| 0a 20 20 20 20 54 68 65 | 79 20 63 6f 72 72 65 73 |. The|y corres|
|00002590| 70 6f 6e 64 20 74 6f 20 | 65 78 74 65 72 6e 61 6c |pond to |external|
|000025a0| 20 66 69 6c 65 73 20 69 | 6e 20 74 68 65 20 6f 70 | files i|n the op|
|000025b0| 65 72 61 74 69 6e 67 20 | 73 79 73 74 65 6d 20 65 |erating |system e|
|000025c0| 6e 76 69 72 6f 6e 6d 65 | 6e 74 2e 0a 20 20 20 20 |nvironme|nt.. |
|000025d0| 5c 65 6e 64 7b 65 6e 75 | 6d 65 72 61 74 65 7d 0a |\end{enu|merate}.|
|000025e0| 0a 20 20 20 20 5c 73 75 | 62 73 65 63 74 69 6f 6e |. \su|bsection|
|000025f0| 7b 55 6e 64 65 66 69 6e | 65 64 2e 7d 0a 20 20 20 |{Undefin|ed.}. |
|00002600| 20 5c 62 65 67 69 6e 7b | 65 6e 75 6d 65 72 61 74 | \begin{|enumerat|
|00002610| 65 7d 0a 20 20 20 20 5c | 69 74 65 6d 0a 20 20 20 |e}. \|item. |
|00002620| 20 54 68 65 20 64 61 74 | 61 20 74 79 70 65 20 75 | The dat|a type u|
|00002630| 6e 64 65 66 69 6e 65 64 | 0a 20 20 20 20 68 61 73 |ndefined|. has|
|00002640| 20 61 20 73 69 6e 67 6c | 65 20 76 61 6c 75 65 2c | a singl|e value,|
|00002650| 20 5c 5b 4f 4d 5c 5d 2e | 0a 20 20 20 20 41 6e 79 | \[OM\].|. Any|
|00002660| 20 69 64 65 6e 74 69 66 | 69 65 72 20 74 68 61 74 | identif|ier that|
|00002670| 20 68 61 73 20 6e 6f 74 | 20 62 65 65 6e 20 67 69 | has not| been gi|
|00002680| 76 65 6e 20 61 20 76 61 | 6c 75 65 20 68 61 73 20 |ven a va|lue has |
|00002690| 74 68 65 20 76 61 6c 75 | 65 20 5c 5b 4f 4d 5c 5d |the valu|e \[OM\]|
|000026a0| 2e 0a 20 20 20 20 49 74 | 20 6d 61 79 20 61 6c 73 |.. It| may als|
|000026b0| 6f 20 62 65 20 65 6e 74 | 65 72 65 64 20 61 73 20 |o be ent|ered as |
|000026c0| 5c 5b 6f 6d 5c 5d 2e 0a | 20 20 20 20 5c 65 6e 64 |\[om\]..| \end|
|000026d0| 7b 65 6e 75 6d 65 72 61 | 74 65 7d 0a 0a 0a 0a 5c |{enumera|te}....\|
|000026e0| 73 65 63 74 69 6f 6e 7b | 43 6f 6d 70 6f 75 6e 64 |section{|Compound|
|000026f0| 20 44 61 74 61 20 54 79 | 70 65 73 2e 7d 0a 0a 5c | Data Ty|pes.}..\|
|00002700| 73 75 62 73 65 63 74 69 | 6f 6e 7b 53 65 74 73 2e |subsecti|on{Sets.|
|00002710| 7d 0a 20 20 20 20 5c 62 | 65 67 69 6e 7b 65 6e 75 |}. \b|egin{enu|
|00002720| 6d 65 72 61 74 65 7d 0a | 20 20 20 20 5c 69 74 65 |merate}.| \ite|
|00002730| 6d 0a 20 20 20 20 4f 6e | 6c 79 20 66 69 6e 69 74 |m. On|ly finit|
|00002740| 65 20 7b 5c 74 74 20 73 | 65 74 73 7d 20 6d 61 79 |e {\tt s|ets} may|
|00002750| 20 62 65 20 72 65 70 72 | 65 73 65 6e 74 65 64 20 | be repr|esented |
|00002760| 69 6e 20 49 53 45 54 4c | 2e 0a 20 20 20 20 54 68 |in ISETL|.. Th|
|00002770| 65 20 65 6c 65 6d 65 6e | 74 73 20 6d 61 79 20 62 |e elemen|ts may b|
|00002780| 65 20 6f 66 20 61 6e 79 | 20 74 79 70 65 2c 20 6d |e of any| type, m|
|00002790| 69 78 65 64 20 68 65 74 | 65 72 6f 67 65 6e 65 6f |ixed het|erogeneo|
|000027a0| 75 73 6c 79 2e 0a 20 20 | 20 20 45 6c 65 6d 65 6e |usly.. | Elemen|
|000027b0| 74 73 20 6f 63 63 75 72 | 20 61 74 20 6d 6f 73 74 |ts occur| at most|
|000027c0| 20 6f 6e 63 65 20 70 65 | 72 20 7b 5c 74 74 20 73 | once pe|r {\tt s|
|000027d0| 65 74 7d 2e 0a 0a 20 20 | 20 20 5c 69 74 65 6d 0a |et}... | \item.|
|000027e0| 20 20 20 20 54 68 65 20 | 6f 72 64 65 72 20 6f 66 | The |order of|
|000027f0| 20 65 6c 65 6d 65 6e 74 | 73 20 69 73 20 6e 6f 74 | element|s is not|
|00002800| 20 73 69 67 6e 69 66 69 | 63 61 6e 74 0a 20 20 20 | signifi|cant. |
|00002810| 20 69 6e 20 61 20 7b 5c | 74 74 20 73 65 74 7d 20 | in a {\|tt set} |
|00002820| 61 6e 64 20 70 72 69 6e | 74 69 6e 67 20 74 68 65 |and prin|ting the|
|00002830| 20 76 61 6c 75 65 0a 20 | 20 20 20 6f 66 20 61 20 | value. | of a |
|00002840| 7b 5c 74 74 20 73 65 74 | 7d 20 74 77 69 63 65 20 |{\tt set|} twice |
|00002850| 69 6e 20 73 75 63 63 65 | 73 73 69 6f 6e 20 63 6f |in succe|ssion co|
|00002860| 75 6c 64 20 64 69 73 70 | 6c 61 79 20 74 68 65 20 |uld disp|lay the |
|00002870| 65 6c 65 6d 65 6e 74 73 | 20 69 6e 0a 20 20 20 20 |elements| in. |
|00002880| 64 69 66 66 65 72 65 6e | 74 20 6f 72 64 65 72 73 |differen|t orders|
|00002890| 2e 0a 0a 20 20 20 20 5c | 69 74 65 6d 0a 20 20 20 |... \|item. |
|000028a0| 20 5c 5b 4f 4d 5c 5d 20 | 6d 61 79 20 6e 6f 74 20 | \[OM\] |may not |
|000028b0| 62 65 20 61 6e 20 65 6c | 65 6d 65 6e 74 20 6f 66 |be an el|ement of|
|000028c0| 20 61 20 7b 5c 74 74 20 | 73 65 74 7d 2e 0a 20 20 | a {\tt |set}.. |
|000028d0| 20 20 41 6e 79 20 73 65 | 74 20 74 68 61 74 20 77 | Any se|t that w|
|000028e0| 6f 75 6c 64 20 63 6f 6e | 74 61 69 6e 20 5c 5b 4f |ould con|tain \[O|
|000028f0| 4d 5c 5d 20 69 73 20 63 | 6f 6e 73 69 64 65 72 65 |M\] is c|onsidere|
|00002900| 64 20 74 6f 20 62 65 20 | 75 6e 64 65 66 69 6e 65 |d to be |undefine|
|00002910| 64 2e 0a 0a 20 20 20 20 | 5c 69 74 65 6d 0a 20 20 |d... |\item. |
|00002920| 20 20 41 6e 20 65 78 70 | 72 65 73 73 69 6f 6e 2c | An exp|ression,|
|00002930| 20 6f 72 20 73 65 76 65 | 72 61 6c 20 65 78 70 72 | or seve|ral expr|
|00002940| 65 73 73 69 6f 6e 73 20 | 73 65 70 61 72 61 74 65 |essions |separate|
|00002950| 64 0a 20 20 20 20 62 79 | 20 63 6f 6d 6d 61 73 2c |d. by| commas,|
|00002960| 20 61 6e 64 2c 20 69 6e | 20 65 69 74 68 65 72 20 | and, in| either |
|00002970| 63 61 73 65 2c 20 65 6e | 63 6c 6f 73 65 64 20 69 |case, en|closed i|
|00002980| 6e 20 5c 5b 5c 7b 20 5c | 7d 5c 5d 20 65 76 61 6c |n \[\{ \|}\] eval|
|00002990| 75 61 74 65 73 20 74 6f | 0a 20 20 20 20 74 68 65 |uates to|. the|
|000029a0| 20 7b 5c 74 74 20 73 65 | 74 7d 20 77 68 6f 73 65 | {\tt se|t} whose|
|000029b0| 20 65 6c 65 6d 65 6e 74 | 73 20 61 72 65 20 74 68 | element|s are th|
|000029c0| 65 20 76 61 6c 75 65 73 | 20 6f 66 20 74 68 65 0a |e values| of the.|
|000029d0| 20 20 20 20 65 6e 63 6c | 6f 73 65 64 20 65 78 70 | encl|osed exp|
|000029e0| 72 65 73 73 69 6f 6e 73 | 2e 0a 0a 20 20 20 20 5c |ressions|... \|
|000029f0| 69 74 65 6d 0a 20 20 20 | 20 54 68 65 20 65 6d 70 |item. | The emp|
|00002a00| 74 79 20 7b 5c 74 74 20 | 73 65 74 7d 20 69 73 20 |ty {\tt |set} is |
|00002a10| 64 65 6e 6f 74 65 64 20 | 62 79 20 5c 5b 5c 7b 20 |denoted |by \[\{ |
|00002a20| 5c 7d 5c 5d 2e 0a 0a 20 | 20 20 20 5c 69 74 65 6d |\}\]... | \item|
|00002a30| 0a 20 20 20 20 54 68 65 | 72 65 20 61 72 65 20 73 |. The|re are s|
|00002a40| 79 6e 74 61 63 74 69 63 | 20 66 6f 72 6d 73 2c 20 |yntactic| forms, |
|00002a50| 65 78 70 6c 61 69 6e 65 | 64 20 69 6e 20 74 68 65 |explaine|d in the|
|00002a60| 20 67 72 61 6d 6d 61 72 | 2c 20 66 6f 72 20 61 20 | grammar|, for a |
|00002a70| 66 69 6e 69 74 65 20 7b | 5c 74 74 20 73 65 74 7d |finite {|\tt set}|
|00002a80| 0a 20 20 20 20 74 68 61 | 74 20 69 73 20 61 6e 20 |. tha|t is an |
|00002a90| 61 72 69 74 68 6d 65 74 | 69 63 20 70 72 6f 67 72 |arithmet|ic progr|
|00002aa0| 65 73 73 69 6f 6e 20 6f | 66 20 7b 5c 74 74 20 69 |ession o|f {\tt i|
|00002ab0| 6e 74 65 67 65 72 7d 73 | 2c 0a 20 20 20 20 61 6e |nteger}s|,. an|
|00002ac0| 64 20 61 6c 73 6f 20 66 | 6f 72 20 61 20 66 69 6e |d also f|or a fin|
|00002ad0| 69 74 65 20 7b 5c 74 74 | 20 73 65 74 7d 0a 20 20 |ite {\tt| set}. |
|00002ae0| 20 20 6f 62 74 61 69 6e | 65 64 20 66 72 6f 6d 20 | obtain|ed from |
|00002af0| 61 20 7b 5c 74 74 20 73 | 65 74 7d 20 66 6f 72 6d |a {\tt s|et} form|
|00002b00| 65 72 20 69 6e 20 73 74 | 61 6e 64 61 72 64 20 6d |er in st|andard m|
|00002b10| 61 74 68 65 6d 61 74 69 | 63 61 6c 20 6e 6f 74 61 |athemati|cal nota|
|00002b20| 74 69 6f 6e 2e 0a 0a 20 | 20 20 20 46 6f 72 20 65 |tion... | For e|
|00002b30| 78 61 6d 70 6c 65 2c 20 | 74 68 65 20 76 61 6c 75 |xample, |the valu|
|00002b40| 65 20 6f 66 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |e of the| followi|
|00002b50| 6e 67 20 65 78 70 72 65 | 73 73 69 6f 6e 0a 0a 20 |ng expre|ssion.. |
|00002b60| 20 20 20 5c 44 53 0a 20 | 20 20 20 5c 7b 20 78 20 | \DS. | \{ x |
|00002b70| 2b 20 79 20 3a 20 78 20 | 69 6e 20 5c 7b 2d 31 2c |+ y : x |in \{-1,|
|00002b80| 2d 33 2e 2e 2d 31 30 30 | 5c 7d 2c 20 79 20 69 6e |-3..-100|\}, y in|
|00002b90| 20 5c 7b 2d 31 2c 2d 33 | 2e 2e 2d 31 30 30 5c 7d | \{-1,-3|..-100\}|
|00002ba0| 20 7c 20 78 20 2f 3d 20 | 79 5c 7d 3b 0a 20 20 20 | | x /= |y\};. |
|00002bb0| 20 5c 44 45 0a 0a 20 20 | 20 20 69 73 20 74 68 65 | \DE.. | is the|
|00002bc0| 20 7b 5c 74 74 20 73 65 | 74 7d 20 6f 66 20 61 6c | {\tt se|t} of al|
|00002bd0| 6c 20 73 75 6d 73 20 6f | 66 20 74 77 6f 20 64 69 |l sums o|f two di|
|00002be0| 66 66 65 72 65 6e 74 20 | 6f 64 64 20 6e 65 67 61 |fferent |odd nega|
|00002bf0| 74 69 76 65 20 7b 5c 74 | 74 20 69 6e 74 65 67 65 |tive {\t|t intege|
|00002c00| 72 73 7d 0a 20 20 20 20 | 6c 61 72 67 65 72 20 74 |rs}. |larger t|
|00002c10| 68 61 6e 20 24 2d 31 30 | 30 24 2e 0a 20 20 20 20 |han $-10|0$.. |
|00002c20| 5c 65 6e 64 7b 65 6e 75 | 6d 65 72 61 74 65 7d 0a |\end{enu|merate}.|
|00002c30| 0a 5c 73 75 62 73 65 63 | 74 69 6f 6e 7b 54 75 70 |.\subsec|tion{Tup|
|00002c40| 6c 65 73 2e 7d 0a 0a 20 | 20 20 20 5c 62 65 67 69 |les.}.. | \begi|
|00002c50| 6e 7b 65 6e 75 6d 65 72 | 61 74 65 7d 0a 20 20 20 |n{enumer|ate}. |
|00002c60| 20 5c 69 74 65 6d 0a 20 | 20 20 20 41 20 7b 5c 74 | \item. | A {\t|
|00002c70| 74 20 74 75 70 6c 65 7d | 20 69 73 20 61 6e 20 69 |t tuple}| is an i|
|00002c80| 6e 66 69 6e 69 74 65 20 | 73 65 71 75 65 6e 63 65 |nfinite |sequence|
|00002c90| 20 6f 66 20 63 6f 6d 70 | 6f 6e 65 6e 74 73 2c 0a | of comp|onents,.|
|00002ca0| 20 20 20 20 6f 66 20 77 | 68 69 63 68 20 6f 6e 6c | of w|hich onl|
|00002cb0| 79 20 61 20 66 69 6e 69 | 74 65 20 6e 75 6d 62 65 |y a fini|te numbe|
|00002cc0| 72 20 61 72 65 20 64 65 | 66 69 6e 65 64 2e 0a 20 |r are de|fined.. |
|00002cd0| 20 20 20 54 68 65 20 63 | 6f 6d 70 6f 6e 65 6e 74 | The c|omponent|
|00002ce0| 73 20 6d 61 79 20 62 65 | 20 6f 66 20 61 6e 79 20 |s may be| of any |
|00002cf0| 74 79 70 65 2c 20 6d 69 | 78 65 64 20 68 65 74 65 |type, mi|xed hete|
|00002d00| 72 6f 67 65 6e 65 6f 75 | 73 6c 79 2e 20 54 68 65 |rogeneou|sly. The|
|00002d10| 20 76 61 6c 75 65 73 20 | 6f 66 0a 20 20 20 20 63 | values |of. c|
|00002d20| 6f 6d 70 6f 6e 65 6e 74 | 73 20 6d 61 79 20 62 65 |omponent|s may be|
|00002d30| 20 72 65 70 65 61 74 65 | 64 2e 0a 20 20 20 20 0a | repeate|d.. .|
|00002d40| 20 20 20 20 5c 69 74 65 | 6d 0a 20 20 20 20 54 68 | \ite|m. Th|
|00002d50| 65 20 6f 72 64 65 72 20 | 6f 66 20 74 68 65 20 63 |e order |of the c|
|00002d60| 6f 6d 70 6f 6e 65 6e 74 | 73 20 6f 66 20 61 20 7b |omponent|s of a {|
|00002d70| 5c 74 74 20 74 75 70 6c | 65 7d 20 69 73 20 73 69 |\tt tupl|e} is si|
|00002d80| 67 6e 69 66 69 63 61 6e | 74 2e 0a 20 20 20 20 42 |gnifican|t.. B|
|00002d90| 79 20 74 72 65 61 74 69 | 6e 67 20 74 68 65 20 7b |y treati|ng the {|
|00002da0| 5c 74 74 20 74 75 70 6c | 65 7d 20 61 73 20 61 20 |\tt tupl|e} as a |
|00002db0| 66 75 6e 63 74 69 6f 6e | 20 6f 76 65 72 20 74 68 |function| over th|
|00002dc0| 65 20 69 6e 74 65 67 65 | 72 73 2c 0a 20 20 20 20 |e intege|rs,. |
|00002dd0| 79 6f 75 20 63 61 6e 20 | 65 78 74 72 61 63 74 20 |you can |extract |
|00002de0| 69 6e 64 69 76 69 64 75 | 61 6c 20 63 6f 6d 70 6f |individu|al compo|
|00002df0| 6e 65 6e 74 73 20 61 6e | 64 20 73 6c 69 63 65 73 |nents an|d slices|
|00002e00| 20 6f 66 20 74 68 65 20 | 7b 5c 74 74 20 74 75 70 | of the |{\tt tup|
|00002e10| 6c 65 7d 2e 0a 20 20 20 | 20 0a 20 20 20 20 5c 69 |le}.. | . \i|
|00002e20| 74 65 6d 0a 20 20 20 20 | 5c 5b 4f 4d 5c 5d 20 69 |tem. |\[OM\] i|
|00002e30| 73 20 61 20 6c 65 67 61 | 6c 20 76 61 6c 75 65 20 |s a lega|l value |
|00002e40| 66 6f 72 20 61 20 63 6f | 6d 70 6f 6e 65 6e 74 2e |for a co|mponent.|
|00002e50| 0a 0a 20 20 20 20 5c 69 | 74 65 6d 0a 20 20 20 20 |.. \i|tem. |
|00002e60| 41 6e 20 65 78 70 72 65 | 73 73 69 6f 6e 2c 20 6f |An expre|ssion, o|
|00002e70| 72 20 73 65 76 65 72 61 | 6c 20 65 78 70 72 65 73 |r severa|l expres|
|00002e80| 73 69 6f 6e 73 20 73 65 | 70 61 72 61 74 65 64 0a |sions se|parated.|
|00002e90| 20 20 20 20 62 79 20 63 | 6f 6d 6d 61 73 2c 20 61 | by c|ommas, a|
|00002ea0| 6e 64 2c 20 69 6e 20 65 | 69 74 68 65 72 20 63 61 |nd, in e|ither ca|
|00002eb0| 73 65 2c 20 65 6e 63 6c | 6f 73 65 64 20 62 79 20 |se, encl|osed by |
|00002ec0| 5c 5b 5b 20 5d 5c 5d 2c | 20 65 76 61 6c 75 61 74 |\[[ ]\],| evaluat|
|00002ed0| 65 73 20 74 6f 20 61 0a | 20 20 20 20 7b 5c 74 74 |es to a.| {\tt|
|00002ee0| 20 74 75 70 6c 65 7d 20 | 77 68 6f 73 65 20 64 65 | tuple} |whose de|
|00002ef0| 66 69 6e 65 64 20 63 6f | 6d 70 6f 6e 65 6e 74 73 |fined co|mponents|
|00002f00| 20 61 72 65 20 74 68 65 | 20 0a 20 20 20 20 76 61 | are the| . va|
|00002f10| 6c 75 65 73 20 6f 66 20 | 74 68 65 20 65 6e 63 6c |lues of |the encl|
|00002f20| 6f 73 65 64 20 65 78 70 | 72 65 73 73 69 6f 6e 73 |osed exp|ressions|
|00002f30| 2e 0a 0a 20 20 20 20 5c | 69 74 65 6d 0a 20 20 20 |... \|item. |
|00002f40| 20 54 68 65 20 65 6d 70 | 74 79 20 7b 5c 74 74 20 | The emp|ty {\tt |
|00002f50| 74 75 70 6c 65 7d 20 69 | 73 20 64 65 6e 6f 74 65 |tuple} i|s denote|
|00002f60| 64 20 62 79 20 5c 5b 5b | 20 5d 5c 5d 2e 0a 0a 20 |d by \[[| ]\]... |
|00002f70| 20 20 20 5c 69 74 65 6d | 0a 20 20 20 20 54 68 65 | \item|. The|
|00002f80| 20 73 79 6e 74 61 63 74 | 69 63 20 66 6f 72 6d 73 | syntact|ic forms|
|00002f90| 20 66 6f 72 20 7b 5c 74 | 74 20 74 75 70 6c 65 7d | for {\t|t tuple}|
|00002fa0| 73 20 6f 66 20 66 69 6e | 69 74 65 20 61 72 69 74 |s of fin|ite arit|
|00002fb0| 68 6d 65 74 69 63 20 70 | 72 6f 67 72 65 73 73 69 |hmetic p|rogressi|
|00002fc0| 6f 6e 73 0a 20 20 20 20 | 61 6e 64 20 7b 5c 74 74 |ons. |and {\tt|
|00002fd0| 20 74 75 70 6c 65 7d 20 | 66 6f 72 6d 65 72 73 20 | tuple} |formers |
|00002fe0| 61 72 65 20 73 69 6d 69 | 6c 61 72 20 74 6f 20 74 |are simi|lar to t|
|00002ff0| 68 6f 73 65 20 70 72 6f | 76 69 64 65 64 20 66 6f |hose pro|vided fo|
|00003000| 72 20 7b 5c 74 74 20 73 | 65 74 73 7d 2e 0a 20 20 |r {\tt s|ets}.. |
|00003010| 20 20 54 68 65 20 6f 6e | 6c 79 20 64 69 66 66 65 | The on|ly diffe|
|00003020| 72 65 6e 63 65 20 69 73 | 20 74 68 65 20 75 73 65 |rence is| the use|
|00003030| 20 6f 66 20 73 71 75 61 | 72 65 2c 0a 20 20 20 20 | of squa|re,. |
|00003040| 72 61 74 68 65 72 20 74 | 68 61 6e 20 63 75 72 6c |rather t|han curl|
|00003050| 79 2c 20 62 72 61 63 6b | 65 74 73 2e 0a 0a 20 20 |y, brack|ets... |
|00003060| 20 20 5c 69 74 65 6d 0a | 20 20 20 20 54 68 65 20 | \item.| The |
|00003070| 6c 65 6e 67 74 68 20 6f | 66 20 61 20 7b 5c 74 74 |length o|f a {\tt|
|00003080| 20 74 75 70 6c 65 7d 20 | 69 73 20 74 68 65 20 6c | tuple} |is the l|
|00003090| 61 72 67 65 73 74 20 69 | 6e 64 65 78 20 28 63 6f |argest i|ndex (co|
|000030a0| 75 6e 74 69 6e 67 20 66 | 72 6f 6d 20 31 29 20 66 |unting f|rom 1) f|
|000030b0| 6f 72 20 77 68 69 63 68 | 0a 20 20 20 20 61 20 63 |or which|. a c|
|000030c0| 6f 6d 70 6f 6e 65 6e 74 | 20 69 73 20 64 65 66 69 |omponent| is defi|
|000030d0| 6e 65 64 20 28 74 68 61 | 74 20 69 73 2c 20 69 73 |ned (tha|t is, is|
|000030e0| 20 6e 6f 74 20 65 71 75 | 61 6c 20 74 6f 20 5c 5b | not equ|al to \[|
|000030f0| 4f 4d 5c 5d 29 2e 0a 20 | 20 20 20 49 74 20 63 61 |OM\]).. | It ca|
|00003100| 6e 20 63 68 61 6e 67 65 | 20 61 74 20 72 75 6e 2d |n change| at run-|
|00003110| 74 69 6d 65 2e 0a 20 20 | 20 20 5c 65 6e 64 7b 65 |time.. | \end{e|
|00003120| 6e 75 6d 65 72 61 74 65 | 7d 0a 0a 5c 73 75 62 73 |numerate|}..\subs|
|00003130| 65 63 74 69 6f 6e 7b 4d | 61 70 73 2e 7d 0a 0a 7b |ection{M|aps.}..{|
|00003140| 5c 74 74 20 4d 61 70 7d | 73 20 66 6f 72 6d 20 61 |\tt Map}|s form a|
|00003150| 20 73 75 62 63 6c 61 73 | 73 20 6f 66 20 7b 5c 74 | subclas|s of {\t|
|00003160| 74 20 73 65 74 73 7d 2e | 0a 0a 20 20 20 20 5c 62 |t sets}.|.. \b|
|00003170| 65 67 69 6e 7b 65 6e 75 | 6d 65 72 61 74 65 7d 0a |egin{enu|merate}.|
|00003180| 0a 20 20 20 20 5c 69 74 | 65 6d 0a 20 20 20 20 41 |. \it|em. A|
|00003190| 20 7b 5c 74 74 20 6d 61 | 70 7d 20 69 73 20 61 20 | {\tt ma|p} is a |
|000031a0| 7b 5c 74 74 20 73 65 74 | 7d 20 74 68 61 74 20 69 |{\tt set|} that i|
|000031b0| 73 20 65 69 74 68 65 72 | 20 65 6d 70 74 79 20 6f |s either| empty o|
|000031c0| 72 20 77 68 6f 73 65 20 | 65 6c 65 6d 65 6e 74 73 |r whose |elements|
|000031d0| 20 61 72 65 20 61 6c 6c | 0a 20 20 20 20 6f 72 64 | are all|. ord|
|000031e0| 65 72 65 64 20 70 61 69 | 72 73 2e 0a 20 20 20 20 |ered pai|rs.. |
|000031f0| 41 6e 20 6f 72 64 65 72 | 65 64 20 70 61 69 72 20 |An order|ed pair |
|00003200| 69 73 20 61 20 7b 5c 74 | 74 20 74 75 70 6c 65 7d |is a {\t|t tuple}|
|00003210| 20 77 68 6f 73 65 20 66 | 69 72 73 74 20 74 77 6f | whose f|irst two|
|00003220| 20 63 6f 6d 70 6f 6e 65 | 6e 74 73 20 61 6e 64 20 | compone|nts and |
|00003230| 6e 6f 20 6f 74 68 65 72 | 73 20 61 72 65 0a 20 20 |no other|s are. |
|00003240| 20 20 64 65 66 69 6e 65 | 64 2e 0a 0a 20 20 20 20 | define|d... |
|00003250| 5c 69 74 65 6d 0a 20 20 | 20 20 54 68 65 72 65 20 |\item. | There |
|00003260| 61 72 65 20 74 77 6f 20 | 73 70 65 63 69 61 6c 20 |are two |special |
|00003270| 6f 70 65 72 61 74 6f 72 | 73 20 66 6f 72 20 65 76 |operator|s for ev|
|00003280| 61 6c 75 61 74 69 6e 67 | 20 61 20 7b 5c 74 74 20 |aluating| a {\tt |
|00003290| 6d 61 70 7d 20 61 74 20 | 61 20 70 6f 69 6e 74 20 |map} at |a point |
|000032a0| 69 6e 20 69 74 73 0a 20 | 20 20 20 64 6f 6d 61 69 |in its. | domai|
|000032b0| 6e 2e 0a 20 20 20 20 53 | 75 70 70 6f 73 65 20 74 |n.. S|uppose t|
|000032c0| 68 61 74 20 5c 5b 46 5c | 5d 20 69 73 20 61 20 7b |hat \[F\|] is a {|
|000032d0| 5c 74 74 20 6d 61 70 7d | 2e 0a 0a 09 5c 62 65 67 |\tt map}|....\beg|
|000032e0| 69 6e 7b 65 6e 75 6d 65 | 72 61 74 65 7d 0a 0a 09 |in{enume|rate}...|
|000032f0| 5c 69 74 65 6d 0a 09 5c | 5b 46 28 45 58 50 52 29 |\item..\|[F(EXPR)|
|00003300| 5c 5d 20 77 69 6c 6c 20 | 65 76 61 6c 75 61 74 65 |\] will |evaluate|
|00003310| 20 74 6f 20 74 68 65 20 | 76 61 6c 75 65 20 6f 66 | to the |value of|
|00003320| 20 74 68 65 20 73 65 63 | 6f 6e 64 20 63 6f 6d 70 | the sec|ond comp|
|00003330| 6f 6e 65 6e 74 0a 09 6f | 66 20 74 68 65 20 6f 72 |onent..o|f the or|
|00003340| 64 65 72 65 64 20 70 61 | 69 72 20 77 68 6f 73 65 |dered pa|ir whose|
|00003350| 20 66 69 72 73 74 20 63 | 6f 6d 70 6f 6e 65 6e 74 | first c|omponent|
|00003360| 0a 09 69 73 20 74 68 65 | 20 76 61 6c 75 65 20 6f |..is the| value o|
|00003370| 66 20 5c 5b 45 58 50 52 | 5c 5d 2c 20 70 72 6f 76 |f \[EXPR|\], prov|
|00003380| 69 64 65 64 20 74 68 65 | 72 65 20 69 73 20 65 78 |ided the|re is ex|
|00003390| 61 63 74 6c 79 0a 09 6f | 6e 65 20 73 75 63 68 20 |actly..o|ne such |
|000033a0| 6f 72 64 65 72 65 64 20 | 70 61 69 72 20 69 6e 20 |ordered |pair in |
|000033b0| 5c 5b 46 5c 5d 3b 0a 09 | 6f 74 68 65 72 77 69 73 |\[F\];..|otherwis|
|000033c0| 65 2c 20 69 74 20 65 76 | 61 6c 75 61 74 65 73 20 |e, it ev|aluates |
|000033d0| 74 6f 20 5c 5b 4f 4d 5c | 5d 2e 0a 0a 09 5c 69 74 |to \[OM\|]....\it|
|000033e0| 65 6d 0a 09 5c 5b 46 5c | 7b 45 58 50 52 5c 7d 5c |em..\[F\|{EXPR\}\|
|000033f0| 5d 20 77 69 6c 6c 20 65 | 76 61 6c 75 61 74 65 20 |] will e|valuate |
|00003400| 74 6f 20 74 68 65 20 7b | 5c 74 74 20 73 65 74 7d |to the {|\tt set}|
|00003410| 20 6f 66 20 61 6c 6c 20 | 76 61 6c 75 65 73 0a 09 | of all |values..|
|00003420| 6f 66 20 73 65 63 6f 6e | 64 20 63 6f 6d 70 6f 6e |of secon|d compon|
|00003430| 65 6e 74 73 20 6f 66 20 | 6f 72 64 65 72 65 64 20 |ents of |ordered |
|00003440| 70 61 69 72 73 20 69 6e | 20 5c 5b 46 5c 5d 0a 09 |pairs in| \[F\]..|
|00003450| 77 68 6f 73 65 20 66 69 | 72 73 74 20 63 6f 6d 70 |whose fi|rst comp|
|00003460| 6f 6e 65 6e 74 20 69 73 | 20 74 68 65 20 76 61 6c |onent is| the val|
|00003470| 75 65 20 6f 66 20 5c 5b | 45 58 50 52 5c 5d 2e 0a |ue of \[|EXPR\]..|
|00003480| 09 49 66 20 74 68 65 72 | 65 20 61 72 65 20 6e 6f |.If ther|e are no|
|00003490| 6e 65 20 73 75 63 68 2c | 20 69 74 73 20 76 61 6c |ne such,| its val|
|000034a0| 75 65 20 69 73 20 74 68 | 65 20 65 6d 70 74 79 20 |ue is th|e empty |
|000034b0| 7b 5c 74 74 20 73 65 74 | 7d 2e 0a 09 5c 65 6e 64 |{\tt set|}...\end|
|000034c0| 7b 65 6e 75 6d 65 72 61 | 74 65 7d 0a 0a 0a 20 20 |{enumera|te}... |
|000034d0| 20 20 5c 69 74 65 6d 0a | 20 20 20 20 41 20 7b 5c | \item.| A {\|
|000034e0| 74 74 20 6d 61 70 7d 20 | 69 6e 20 77 68 69 63 68 |tt map} |in which|
|000034f0| 20 6e 6f 20 76 61 6c 75 | 65 20 61 70 70 65 61 72 | no valu|e appear|
|00003500| 73 20 6d 6f 72 65 20 0a | 20 20 20 20 74 68 61 6e |s more .| than|
|00003510| 20 6f 6e 63 65 20 61 73 | 20 74 68 65 20 66 69 72 | once as| the fir|
|00003520| 73 74 20 63 6f 6d 70 6f | 6e 65 6e 74 20 6f 66 20 |st compo|nent of |
|00003530| 61 6e 0a 20 20 20 20 6f | 72 64 65 72 65 64 20 70 |an. o|rdered p|
|00003540| 61 69 72 20 69 73 20 63 | 61 6c 6c 65 64 20 61 20 |air is c|alled a |
|00003550| 7b 5c 65 6d 20 73 69 6e | 67 6c 65 2d 76 61 6c 75 |{\em sin|gle-valu|
|00003560| 65 64 20 6d 61 70 7d 20 | 6f 72 20 7b 5c 65 6d 20 |ed map} |or {\em |
|00003570| 73 6d 61 70 7d 3b 0a 20 | 20 20 20 6f 74 68 65 72 |smap};. | other|
|00003580| 77 69 73 65 2c 20 74 68 | 65 20 7b 5c 74 74 20 6d |wise, th|e {\tt m|
|00003590| 61 70 7d 20 69 73 20 63 | 61 6c 6c 65 64 20 61 20 |ap} is c|alled a |
|000035a0| 7b 5c 65 6d 20 6d 75 6c | 74 69 2d 76 61 6c 75 65 |{\em mul|ti-value|
|000035b0| 64 20 6d 61 70 7d 20 6f | 72 20 7b 5c 65 6d 20 6d |d map} o|r {\em m|
|000035c0| 6d 61 70 7d 2e 0a 20 20 | 20 20 5c 65 6e 64 7b 65 |map}.. | \end{e|
|000035d0| 6e 75 6d 65 72 61 74 65 | 7d 0a 0a 0a 5c 73 65 63 |numerate|}...\sec|
|000035e0| 74 69 6f 6e 7b 46 75 6e | 63 73 2e 7d 0a 0a 20 20 |tion{Fun|cs.}.. |
|000035f0| 20 20 5c 62 65 67 69 6e | 7b 65 6e 75 6d 65 72 61 | \begin|{enumera|
|00003600| 74 65 7d 0a 20 20 20 20 | 5c 69 74 65 6d 0a 20 20 |te}. |\item. |
|00003610| 20 20 41 20 7b 5c 74 74 | 20 66 75 6e 63 7d 20 69 | A {\tt| func} i|
|00003620| 73 20 61 6e 20 49 53 45 | 54 4c 20 76 61 6c 75 65 |s an ISE|TL value|
|00003630| 20 74 68 61 74 20 6d 61 | 79 20 62 65 20 61 70 70 | that ma|y be app|
|00003640| 6c 69 65 64 20 74 6f 20 | 7a 65 72 6f 20 6f 72 20 |lied to |zero or |
|00003650| 6d 6f 72 65 20 76 61 6c | 75 65 73 0a 20 20 20 20 |more val|ues. |
|00003660| 70 61 73 73 65 64 20 74 | 6f 20 69 74 20 61 73 20 |passed t|o it as |
|00003670| 61 72 67 75 6d 65 6e 74 | 73 2e 0a 20 20 20 20 49 |argument|s.. I|
|00003680| 74 20 74 68 65 6e 20 72 | 65 74 75 72 6e 73 20 61 |t then r|eturns a|
|00003690| 20 76 61 6c 75 65 20 73 | 70 65 63 69 66 69 65 64 | value s|pecified|
|000036a0| 20 62 79 20 74 68 65 0a | 20 20 20 20 64 65 66 69 | by the.| defi|
|000036b0| 6e 69 74 69 6f 6e 20 6f | 66 20 74 68 65 20 7b 5c |nition o|f the {\|
|000036c0| 74 74 20 66 75 6e 63 7d | 2e 0a 20 20 20 20 42 65 |tt func}|.. Be|
|000036d0| 63 61 75 73 65 20 69 74 | 20 69 73 20 61 20 76 61 |cause it| is a va|
|000036e0| 6c 75 65 2c 20 61 6e 20 | 49 53 45 54 4c 20 7b 5c |lue, an |ISETL {\|
|000036f0| 74 74 20 66 75 6e 63 7d | 20 63 61 6e 0a 20 20 20 |tt func}| can. |
|00003700| 20 62 65 20 61 73 73 69 | 67 6e 65 64 20 74 6f 20 | be assi|gned to |
|00003710| 61 6e 20 69 64 65 6e 74 | 69 66 69 65 72 2c 20 70 |an ident|ifier, p|
|00003720| 61 73 73 65 64 20 61 73 | 20 61 6e 20 61 72 67 75 |assed as| an argu|
|00003730| 6d 65 6e 74 2c 20 65 74 | 63 2e 0a 20 20 20 20 45 |ment, et|c.. E|
|00003740| 76 61 6c 75 61 74 69 6f | 6e 20 6f 66 20 61 6e 20 |valuatio|n of an |
|00003750| 49 53 45 54 4c 20 7b 5c | 74 74 20 66 75 6e 63 7d |ISETL {\|tt func}|
|00003760| 20 63 61 6e 20 68 61 76 | 65 20 73 69 64 65 2d 65 | can hav|e side-e|
|00003770| 66 66 65 63 74 73 20 64 | 65 74 65 72 6d 69 6e 65 |ffects d|etermine|
|00003780| 64 20 62 79 20 74 68 65 | 0a 20 20 20 20 73 74 61 |d by the|. sta|
|00003790| 74 65 6d 65 6e 74 73 20 | 69 6e 20 74 68 65 20 64 |tements |in the d|
|000037a0| 65 66 69 6e 69 74 69 6f | 6e 20 6f 66 20 74 68 65 |efinitio|n of the|
|000037b0| 20 7b 5c 74 74 20 66 75 | 6e 63 7d 2e 0a 20 20 20 | {\tt fu|nc}.. |
|000037c0| 20 54 68 75 73 2c 20 69 | 74 20 61 6c 73 6f 20 73 | Thus, i|t also s|
|000037d0| 65 72 76 65 73 20 74 68 | 65 20 70 75 72 70 6f 73 |erves th|e purpos|
|000037e0| 65 20 6f 66 20 77 68 61 | 74 20 69 73 20 6f 66 74 |e of wha|t is oft|
|000037f0| 65 6e 20 63 61 6c 6c 65 | 64 20 61 20 70 72 6f 63 |en calle|d a proc|
|00003800| 65 64 75 72 65 2e 0a 0a | 20 20 20 20 5c 69 74 65 |edure...| \ite|
|00003810| 6d 0a 20 20 20 20 41 20 | 7b 5c 74 74 20 66 75 6e |m. A |{\tt fun|
|00003820| 63 7d 20 69 73 20 74 68 | 65 20 63 6f 6d 70 75 74 |c} is th|e comput|
|00003830| 61 74 69 6f 6e 61 6c 20 | 0a 20 20 20 20 72 65 70 |ational |. rep|
|00003840| 72 65 73 65 6e 74 61 74 | 69 6f 6e 20 6f 66 20 61 |resentat|ion of a|
|00003850| 20 66 75 6e 63 74 69 6f | 6e 2c 20 61 73 20 61 20 | functio|n, as a |
|00003860| 7b 5c 74 74 20 6d 61 70 | 7d 0a 20 20 20 20 69 73 |{\tt map|}. is|
|00003870| 20 74 68 65 20 6f 72 64 | 65 72 65 64 20 70 61 69 | the ord|ered pai|
|00003880| 72 20 72 65 70 72 65 73 | 65 6e 74 61 74 69 6f 6e |r repres|entation|
|00003890| 2c 20 61 6e 64 20 61 20 | 7b 5c 74 74 20 74 75 70 |, and a |{\tt tup|
|000038a0| 6c 65 7d 20 69 73 20 74 | 68 65 20 73 65 71 75 65 |le} is t|he seque|
|000038b0| 6e 63 65 0a 20 20 20 20 | 72 65 70 72 65 73 65 6e |nce. |represen|
|000038c0| 74 61 74 69 6f 6e 2e 0a | 20 20 20 20 4a 75 73 74 |tation..| Just|
|000038d0| 20 61 73 20 7b 5c 74 74 | 20 74 75 70 6c 65 7d 73 | as {\tt| tuple}s|
|000038e0| 20 61 6e 64 20 7b 5c 74 | 74 20 6d 61 70 7d 73 20 | and {\t|t map}s |
|000038f0| 6d 61 79 20 62 65 20 6d | 6f 64 69 66 69 65 64 20 |may be m|odified |
|00003900| 61 74 20 61 20 70 6f 69 | 6e 74 20 0a 20 20 20 20 |at a poi|nt . |
|00003910| 62 79 20 61 73 73 69 67 | 6e 6d 65 6e 74 2c 20 73 |by assig|nment, s|
|00003920| 6f 20 63 61 6e 20 7b 5c | 74 74 20 66 75 6e 63 7d |o can {\|tt func}|
|00003930| 73 2e 0a 20 20 20 20 48 | 6f 77 65 76 65 72 2c 20 |s.. H|owever, |
|00003940| 69 66 20 74 68 65 20 76 | 61 6c 75 65 20 61 74 20 |if the v|alue at |
|00003950| 61 20 70 6f 69 6e 74 20 | 69 73 20 73 74 72 75 63 |a point |is struc|
|00003960| 74 75 72 65 64 2c 20 79 | 6f 75 20 6d 61 79 20 6e |tured, y|ou may n|
|00003970| 6f 74 20 6d 6f 64 69 66 | 79 0a 20 20 20 20 74 68 |ot modif|y. th|
|00003980| 61 74 20 61 74 20 61 20 | 70 6f 69 6e 74 20 61 73 |at at a |point as|
|00003990| 20 77 65 6c 6c 2e 0a 0a | 20 20 20 20 20 5c 44 53 | well...| \DS|
|000039a0| 0a 20 20 20 20 20 78 20 | 3a 3d 20 66 75 6e 63 28 |. x |:= func(|
|000039b0| 69 29 3b 20 72 65 74 75 | 72 6e 20 63 68 61 72 28 |i); retu|rn char(|
|000039c0| 69 29 3b 20 65 6e 64 3b | 20 5c 5c 0a 20 20 20 20 |i); end;| \\. |
|000039d0| 20 78 28 39 37 29 7e 3a | 3d 7e 22 62 22 3b 20 5c | x(97)~:|=~"b"; \|
|000039e0| 5c 0a 20 20 20 20 20 78 | 28 39 37 29 28 31 29 7e |\. x|(97)(1)~|
|000039f0| 3a 3d 7e 22 61 62 63 22 | 3b 0a 20 20 20 20 20 5c |:=~"abc"|;. \|
|00003a00| 44 45 0a 0a 20 20 20 20 | 20 5c 5b 78 5c 5d 20 6d |DE.. | \[x\] m|
|00003a10| 61 79 20 62 65 20 6d 6f | 64 69 66 69 65 64 20 61 |ay be mo|dified a|
|00003a20| 74 20 61 20 70 6f 69 6e | 74 2e 0a 20 20 20 20 20 |t a poin|t.. |
|00003a30| 54 68 65 20 61 73 73 69 | 67 6e 6d 65 6e 74 20 74 |The assi|gnment t|
|00003a40| 6f 20 5c 5b 78 28 39 37 | 29 5c 5d 20 69 73 20 6c |o \[x(97|)\] is l|
|00003a50| 65 67 61 6c 2e 0a 20 20 | 20 20 20 48 6f 77 65 76 |egal.. | Howev|
|00003a60| 65 72 2c 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |er, the |followin|
|00003a70| 67 20 61 73 73 69 67 6e | 6d 65 6e 74 20 69 73 20 |g assign|ment is |
|00003a80| 6e 6f 74 20 73 75 70 70 | 6f 72 74 65 64 20 61 74 |not supp|orted at|
|00003a90| 20 74 68 69 73 20 74 69 | 6d 65 2c 0a 20 20 20 20 | this ti|me,. |
|00003aa0| 20 62 65 63 61 75 73 65 | 20 79 6f 75 20 61 72 65 | because| you are|
|00003ab0| 20 74 72 79 69 6e 67 20 | 74 6f 20 6d 6f 64 69 66 | trying |to modif|
|00003ac0| 79 20 74 68 65 20 73 74 | 72 75 63 74 75 72 65 20 |y the st|ructure |
|00003ad0| 6f 66 20 74 68 65 20 76 | 61 6c 75 65 0a 20 20 20 |of the v|alue. |
|00003ae0| 20 20 72 65 74 75 72 6e | 65 64 2e 0a 0a 20 20 20 | return|ed... |
|00003af0| 20 5c 69 74 65 6d 0a 20 | 20 20 20 41 20 6e 75 6d | \item. | A num|
|00003b00| 62 65 72 20 6f 66 20 66 | 75 6e 63 74 69 6f 6e 73 |ber of f|unctions|
|00003b10| 20 68 61 76 65 20 62 65 | 65 6e 20 70 72 65 2d 64 | have be|en pre-d|
|00003b20| 65 66 69 6e 65 64 20 61 | 73 20 7b 5c 74 74 20 66 |efined a|s {\tt f|
|00003b30| 75 6e 63 73 7d 20 69 6e | 20 49 53 45 54 4c 2e 0a |uncs} in| ISETL..|
|00003b40| 20 20 20 20 41 20 6c 69 | 73 74 20 6f 66 20 74 68 | A li|st of th|
|00003b50| 65 69 72 20 64 65 66 69 | 6e 69 74 69 6f 6e 73 20 |eir defi|nitions |
|00003b60| 69 73 20 67 69 76 65 6e | 20 6c 61 74 65 72 20 69 |is given| later i|
|00003b70| 6e 20 74 68 69 73 20 64 | 6f 63 75 6d 65 6e 74 2e |n this d|ocument.|
|00003b80| 0a 20 20 20 20 54 68 65 | 73 65 20 61 72 65 20 6e |. The|se are n|
|00003b90| 6f 74 20 6b 65 79 77 6f | 72 64 73 20 61 6e 64 20 |ot keywo|rds and |
|00003ba0| 6d 61 79 20 62 65 20 63 | 68 61 6e 67 65 64 20 62 |may be c|hanged b|
|00003bb0| 79 20 74 68 65 20 75 73 | 65 72 2e 0a 20 20 20 20 |y the us|er.. |
|00003bc0| 54 68 65 79 20 6d 61 79 | 20 6e 6f 74 20 62 65 20 |They may| not be |
|00003bd0| 6d 6f 64 69 66 69 65 64 | 20 61 74 20 61 20 70 6f |modified| at a po|
|00003be0| 69 6e 74 2c 20 68 6f 77 | 65 76 65 72 2e 0a 0a 20 |int, how|ever... |
|00003bf0| 20 20 20 5c 69 74 65 6d | 0a 20 20 20 20 49 74 20 | \item|. It |
|00003c00| 69 73 20 70 6f 73 73 69 | 62 6c 65 20 66 6f 72 20 |is possi|ble for |
|00003c10| 74 68 65 20 75 73 65 72 | 20 74 6f 20 64 65 66 69 |the user| to defi|
|00003c20| 6e 65 20 68 65 72 2f 68 | 69 73 20 6f 77 6e 20 7b |ne her/h|is own {|
|00003c30| 5c 74 74 20 66 75 6e 63 | 7d 2e 0a 20 20 20 20 54 |\tt func|}.. T|
|00003c40| 68 69 73 20 69 73 20 64 | 6f 6e 65 20 77 69 74 68 |his is d|one with|
|00003c50| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 73 | the fol|lowing s|
|00003c60| 79 6e 74 61 78 2c 0a 0a | 20 20 20 20 5c 44 53 0a |yntax,..| \DS.|
|00003c70| 20 20 20 20 66 75 6e 63 | 5c 3d 20 20 20 20 28 6c | func|\= (l|
|00003c80| 69 73 74 2d 6f 66 2d 70 | 61 72 61 6d 65 74 65 72 |ist-of-p|arameter|
|00003c90| 73 29 3b 5c 5c 0a 20 20 | 20 20 20 20 20 20 5c 3e |s);\\. | \>|
|00003ca0| 20 20 20 20 6c 6f 63 61 | 6c 20 6c 69 73 74 2d 6f | loca|l list-o|
|00003cb0| 66 2d 6c 6f 63 61 6c 2d | 69 64 73 3b 5c 5c 0a 20 |f-local-|ids;\\. |
|00003cc0| 20 20 20 20 20 20 20 5c | 3e 20 20 20 20 76 61 6c | \|> val|
|00003cd0| 75 65 20 6c 69 73 74 2d | 6f 66 2d 67 6c 6f 62 61 |ue list-|of-globa|
|00003ce0| 6c 2d 69 64 73 3b 5c 5c | 0a 20 20 20 20 20 20 20 |l-ids;\\|. |
|00003cf0| 20 5c 3e 20 20 20 20 73 | 74 61 74 65 6d 65 6e 74 | \> s|tatement|
|00003d00| 73 3b 5c 5c 0a 20 20 20 | 20 65 6e 64 5c 5c 0a 20 |s;\\. | end\\. |
|00003d10| 20 20 20 5c 44 45 0a 0a | 09 5c 62 65 67 69 6e 7b | \DE..|.\begin{|
|00003d20| 65 6e 75 6d 65 72 61 74 | 65 7d 0a 0a 09 5c 69 74 |enumerat|e}...\it|
|00003d30| 65 6d 0a 09 54 68 65 20 | 64 65 63 6c 61 72 61 74 |em..The |declarat|
|00003d40| 69 6f 6e 20 6f 66 20 6c | 6f 63 61 6c 2d 69 64 73 |ion of l|ocal-ids|
|00003d50| 20 6d 61 79 20 62 65 20 | 6f 6d 69 74 74 65 64 20 | may be |omitted |
|00003d60| 69 66 20 6e 6f 20 6c 6f | 63 61 6c 73 20 61 72 65 |if no lo|cals are|
|00003d70| 20 6e 65 65 64 65 64 2e | 0a 09 54 68 65 20 64 65 | needed.|..The de|
|00003d80| 63 6c 61 72 61 74 69 6f | 6e 20 6f 66 20 67 6c 6f |claratio|n of glo|
|00003d90| 62 61 6c 2d 69 64 73 20 | 72 65 70 72 65 73 65 6e |bal-ids |represen|
|00003da0| 74 73 20 67 6c 6f 62 61 | 6c 20 76 61 72 69 61 62 |ts globa|l variab|
|00003db0| 6c 65 73 0a 09 77 68 6f | 73 65 20 63 75 72 72 65 |les..who|se curre|
|00003dc0| 6e 74 20 76 61 6c 75 65 | 73 20 61 72 65 20 74 6f |nt value|s are to|
|00003dd0| 20 62 65 20 72 65 6d 65 | 6d 62 65 72 65 64 20 61 | be reme|mbered a|
|00003de0| 6e 64 20 75 73 65 64 20 | 61 74 20 74 68 65 20 74 |nd used |at the t|
|00003df0| 69 6d 65 0a 09 6f 66 20 | 66 75 6e 63 74 69 6f 6e |ime..of |function|
|00003e00| 20 69 6e 76 6f 63 61 74 | 69 6f 6e 3b 20 74 68 65 | invocat|ion; the|
|00003e10| 73 65 20 6d 61 79 20 62 | 65 20 6f 6d 69 74 74 65 |se may b|e omitte|
|00003e20| 64 20 69 66 20 6e 6f 74 | 20 6e 65 65 64 65 64 2e |d if not| needed.|
|00003e30| 0a 09 54 68 65 20 6c 69 | 73 74 2d 6f 66 2d 70 61 |..The li|st-of-pa|
|00003e40| 72 61 6d 65 74 65 72 73 | 20 6d 61 79 20 62 65 20 |rameters| may be |
|00003e50| 65 6d 70 74 79 2c 0a 09 | 62 75 74 20 74 68 65 20 |empty,..|but the |
|00003e60| 70 61 69 72 20 6f 66 20 | 70 61 72 65 6e 74 68 65 |pair of |parenthe|
|00003e70| 73 65 73 20 6d 75 73 74 | 20 62 65 20 70 72 65 73 |ses must| be pres|
|00003e80| 65 6e 74 2e 0a 0a 09 5c | 69 74 65 6d 0a 09 20 50 |ent....\|item.. P|
|00003e90| 61 72 61 6d 65 74 65 72 | 73 20 61 6e 64 20 6c 6f |arameter|s and lo|
|00003ea0| 63 61 6c 2d 69 64 73 20 | 61 72 65 20 6c 6f 63 61 |cal-ids |are loca|
|00003eb0| 6c 20 74 6f 20 74 68 65 | 20 7b 5c 74 74 20 66 75 |l to the| {\tt fu|
|00003ec0| 6e 63 7d 2e 0a 09 20 53 | 65 65 20 62 65 6c 6f 77 |nc}... S|ee below|
|00003ed0| 20 66 6f 72 20 61 20 64 | 69 73 63 75 73 73 69 6f | for a d|iscussio|
|00003ee0| 6e 20 6f 66 20 73 63 6f | 70 65 2e 0a 0a 09 5c 69 |n of sco|pe....\i|
|00003ef0| 74 65 6d 0a 09 54 68 65 | 20 73 79 6e 74 61 78 20 |tem..The| syntax |
|00003f00| 64 65 73 63 72 69 62 65 | 64 20 61 62 6f 76 65 20 |describe|d above |
|00003f10| 69 73 20 66 6f 72 20 61 | 6e 20 7b 5c 65 6d 20 65 |is for a|n {\em e|
|00003f20| 78 70 72 65 73 73 69 6f | 6e 7d 20 6f 66 20 74 79 |xpressio|n} of ty|
|00003f30| 70 65 20 7b 5c 74 74 20 | 66 75 6e 63 7d 2e 0a 09 |pe {\tt |func}...|
|00003f40| 41 73 20 77 69 74 68 20 | 61 6e 79 20 65 78 70 72 |As with |any expr|
|00003f50| 65 73 73 69 6f 6e 2c 0a | 09 69 74 20 68 61 73 20 |ession,.|.it has |
|00003f60| 61 6e 20 65 78 69 73 74 | 65 6e 63 65 20 61 73 20 |an exist|ence as |
|00003f70| 61 20 76 61 6c 75 65 2c | 20 62 75 74 20 6e 6f 20 |a value,| but no |
|00003f80| 6e 61 6d 65 2e 0a 09 54 | 68 75 73 2c 20 74 68 65 |name...T|hus, the|
|00003f90| 20 64 65 66 69 6e 69 74 | 69 6f 6e 20 77 69 6c 6c | definit|ion will|
|00003fa0| 20 74 79 70 69 63 61 6c | 6c 79 20 62 65 20 70 61 | typical|ly be pa|
|00003fb0| 72 74 20 6f 66 20 61 6e | 20 61 73 73 69 67 6e 6d |rt of an| assignm|
|00003fc0| 65 6e 74 0a 09 73 74 61 | 74 65 6d 65 6e 74 2c 20 |ent..sta|tement, |
|00003fd0| 6f 72 20 70 61 73 73 65 | 64 20 61 73 20 61 20 70 |or passe|d as a p|
|00003fe0| 61 72 61 6d 65 74 65 72 | 2e 0a 09 41 73 20 61 20 |arameter|...As a |
|00003ff0| 76 65 72 79 20 73 69 6d | 70 6c 65 20 65 78 61 6d |very sim|ple exam|
|00004000| 70 6c 65 2c 20 63 6f 6e | 73 69 64 65 72 3a 0a 0a |ple, con|sider:..|
|00004010| 09 5c 44 53 0a 09 63 75 | 62 65 5c 5f 5c 2c 70 6c |.\DS..cu|be\_\,pl|
|00004020| 75 73 20 3a 3d 20 5c 3d | 20 66 75 6e 63 5c 3d 20 |us := \=| func\= |
|00004030| 28 78 2c 79 29 3b 5c 5c | 0a 09 09 20 20 20 20 20 |(x,y);\\|... |
|00004040| 5c 3e 09 20 20 20 20 5c | 3e 20 72 65 74 75 72 6e |\>. \|> return|
|00004050| 20 78 2a 2a 33 20 2b 20 | 79 3b 5c 5c 0a 09 09 20 | x**3 + |y;\\... |
|00004060| 20 20 20 20 5c 3e 20 65 | 6e 64 3b 5c 5c 0a 09 5c | \> e|nd;\\..\|
|00004070| 44 45 0a 0a 09 41 66 74 | 65 72 20 68 61 76 69 6e |DE...Aft|er havin|
|00004080| 67 20 65 78 65 63 75 74 | 65 64 20 74 68 69 73 20 |g execut|ed this |
|00004090| 69 6e 70 75 74 2c 20 49 | 53 45 54 4c 20 77 69 6c |input, I|SETL wil|
|000040a0| 6c 20 65 76 61 6c 75 61 | 74 65 20 61 6e 0a 09 65 |l evalua|te an..e|
|000040b0| 78 70 72 65 73 73 69 6f | 6e 20 73 75 63 68 20 61 |xpressio|n such a|
|000040c0| 73 20 5c 5b 63 75 62 65 | 5c 5f 5c 2c 70 6c 75 73 |s \[cube|\_\,plus|
|000040d0| 28 32 2c 35 29 3b 5c 5d | 20 61 73 20 7b 5c 74 74 |(2,5);\]| as {\tt|
|000040e0| 20 31 33 7d 2e 0a 0a 09 | 5c 69 74 65 6d 0a 09 50 | 13}....|\item..P|
|000040f0| 61 72 61 6d 65 74 65 72 | 73 20 61 72 65 20 70 61 |arameter|s are pa|
|00004100| 73 73 65 64 20 62 79 20 | 76 61 6c 75 65 2e 0a 09 |ssed by |value...|
|00004110| 49 66 20 74 68 65 72 65 | 20 61 72 65 20 74 6f 6f |If there| are too|
|00004120| 20 6d 61 6e 79 20 61 72 | 67 75 6d 65 6e 74 73 2c | many ar|guments,|
|00004130| 20 74 68 65 20 65 78 74 | 72 61 20 61 72 67 75 6d | the ext|ra argum|
|00004140| 65 6e 74 73 20 61 72 65 | 20 69 67 6e 6f 72 65 64 |ents are| ignored|
|00004150| 2e 0a 09 49 66 20 74 68 | 65 72 65 20 61 72 65 20 |...If th|ere are |
|00004160| 74 6f 6f 20 66 65 77 20 | 61 72 67 75 6d 65 6e 74 |too few |argument|
|00004170| 73 2c 20 74 68 65 20 65 | 78 74 72 61 20 70 61 72 |s, the e|xtra par|
|00004180| 61 6d 65 74 65 72 73 0a | 09 61 72 65 20 61 73 73 |ameters.|.are ass|
|00004190| 69 67 6e 65 64 20 74 68 | 65 20 76 61 6c 75 65 20 |igned th|e value |
|000041a0| 5c 5b 4f 4d 5c 5d 2e 0a | 0a 09 5c 69 74 65 6d 0a |\[OM\]..|..\item.|
|000041b0| 09 53 63 6f 70 65 20 69 | 73 20 6c 65 78 69 63 61 |.Scope i|s lexica|
|000041c0| 6c 20 28 73 74 61 74 69 | 63 29 20 77 69 74 68 20 |l (stati|c) with |
|000041d0| 72 65 74 65 6e 74 69 6f | 6e 2e 0a 09 7b 5c 65 6d |retentio|n...{\em|
|000041e0| 20 4c 65 78 69 63 61 6c | 20 7d 20 6d 65 61 6e 73 | Lexical| } means|
|000041f0| 20 74 68 61 74 0a 09 72 | 65 66 65 72 65 6e 63 65 | that..r|eference|
|00004200| 73 20 74 6f 20 67 6c 6f | 62 61 6c 20 76 61 72 69 |s to glo|bal vari|
|00004210| 61 62 6c 65 73 20 61 72 | 65 20 64 65 74 65 72 6d |ables ar|e determ|
|00004220| 69 6e 65 64 20 62 79 0a | 09 77 68 65 72 65 20 74 |ined by.|.where t|
|00004230| 68 65 20 7b 5c 74 74 20 | 66 75 6e 63 7d 20 77 61 |he {\tt |func} wa|
|00004240| 73 20 63 72 65 61 74 65 | 64 2c 0a 09 6e 6f 74 20 |s create|d,..not |
|00004250| 62 79 20 77 68 65 72 65 | 20 69 74 20 77 69 6c 6c |by where| it will|
|00004260| 20 62 65 20 65 76 61 6c | 75 61 74 65 64 2e 0a 09 | be eval|uated...|
|00004270| 7b 5c 65 6d 20 52 65 74 | 65 6e 74 69 6f 6e 20 7d |{\em Ret|ention }|
|00004280| 20 6d 65 61 6e 73 20 74 | 68 61 74 20 65 76 65 6e | means t|hat even|
|00004290| 0a 09 69 66 20 74 68 65 | 20 73 63 6f 70 65 20 74 |..if the| scope t|
|000042a0| 68 61 74 20 63 72 65 61 | 74 65 64 20 74 68 65 20 |hat crea|ted the |
|000042b0| 7b 5c 74 74 20 66 75 6e | 63 7d 20 68 61 73 20 62 |{\tt fun|c} has b|
|000042c0| 65 65 6e 20 65 78 69 74 | 65 64 2c 0a 09 69 74 73 |een exit|ed,..its|
|000042d0| 20 76 61 72 69 61 62 6c | 65 73 20 70 65 72 73 69 | variabl|es persi|
|000042e0| 73 74 20 61 6e 64 20 63 | 61 6e 20 62 65 20 75 73 |st and c|an be us|
|000042f0| 65 64 20 62 79 20 74 68 | 65 20 7b 5c 74 74 20 66 |ed by th|e {\tt f|
|00004300| 75 6e 63 7d 2e 0a 0a 09 | 42 79 20 64 65 66 61 75 |unc}....|By defau|
|00004310| 6c 74 2c 20 72 65 66 65 | 72 65 6e 63 65 73 20 74 |lt, refe|rences t|
|00004320| 6f 20 67 6c 6f 62 61 6c | 20 76 61 72 69 61 62 6c |o global| variabl|
|00004330| 65 73 20 77 69 6c 6c 20 | 75 73 65 20 74 68 65 20 |es will |use the |
|00004340| 76 61 6c 75 65 0a 09 6f | 66 20 74 68 65 20 76 61 |value..o|f the va|
|00004350| 72 69 61 62 6c 65 20 61 | 74 20 74 68 65 20 74 69 |riable a|t the ti|
|00004360| 6d 65 20 74 68 65 20 66 | 75 6e 63 74 69 6f 6e 20 |me the f|unction |
|00004370| 69 73 20 69 6e 76 6f 6b | 65 64 2e 0a 09 54 68 65 |is invok|ed...The|
|00004380| 20 5c 5b 76 61 6c 75 65 | 5c 5d 20 64 65 63 6c 61 | \[value|\] decla|
|00004390| 72 61 74 69 6f 6e 20 63 | 61 75 73 65 73 20 74 68 |ration c|auses th|
|000043a0| 65 20 76 61 6c 75 65 20 | 6f 66 20 74 68 65 0a 09 |e value |of the..|
|000043b0| 67 6c 6f 62 61 6c 20 76 | 61 72 69 61 62 6c 65 20 |global v|ariable |
|000043c0| 7b 5c 65 6d 20 61 74 20 | 74 68 65 20 74 69 6d 65 |{\em at |the time|
|000043d0| 20 74 68 65 20 7b 5c 74 | 74 20 66 75 6e 63 7d 20 | the {\t|t func} |
|000043e0| 69 73 20 63 72 65 61 74 | 65 64 7d 20 74 6f 0a 09 |is creat|ed} to..|
|000043f0| 62 65 20 75 73 65 64 2e | 0a 0a 09 5c 69 74 65 6d |be used.|...\item|
|00004400| 0a 09 48 65 72 65 20 69 | 73 20 61 20 6d 6f 72 65 |..Here i|s a more|
|00004410| 20 63 6f 6d 70 6c 69 63 | 61 74 65 64 20 65 78 61 | complic|ated exa|
|00004420| 6d 70 6c 65 20 6f 66 20 | 74 68 65 20 75 73 65 20 |mple of |the use |
|00004430| 6f 66 20 7b 5c 74 74 20 | 66 75 6e 63 7d 2e 0a 09 |of {\tt |func}...|
|00004440| 41 73 20 64 65 66 69 6e | 65 64 20 62 65 6c 6f 77 |As defin|ed below|
|00004450| 2c 20 5c 5b 63 6f 6d 70 | 6f 73 65 5c 5d 20 74 61 |, \[comp|ose\] ta|
|00004460| 6b 65 73 20 74 77 6f 20 | 66 75 6e 63 74 69 6f 6e |kes two |function|
|00004470| 73 20 61 73 20 61 72 67 | 75 6d 65 6e 74 73 0a 09 |s as arg|uments..|
|00004480| 61 6e 64 20 63 72 65 61 | 74 65 73 20 74 68 65 69 |and crea|tes thei|
|00004490| 72 20 66 75 6e 63 74 69 | 6f 6e 61 6c 20 63 6f 6d |r functi|onal com|
|000044a0| 70 6f 73 69 74 69 6f 6e | 2e 0a 09 54 68 65 20 66 |position|...The f|
|000044b0| 75 6e 63 74 69 6f 6e 73 | 20 63 61 6e 20 62 65 20 |unctions| can be |
|000044c0| 61 6e 79 20 49 53 45 54 | 4c 20 76 61 6c 75 65 73 |any ISET|L values|
|000044d0| 20 74 68 61 74 20 6d 61 | 79 20 62 65 20 61 70 70 | that ma|y be app|
|000044e0| 6c 69 65 64 20 74 6f 20 | 61 20 73 69 6e 67 6c 65 |lied to |a single|
|000044f0| 0a 09 61 72 67 75 6d 65 | 6e 74 3b 20 65 2e 67 2e |..argume|nt; e.g.|
|00004500| 20 7b 5c 74 74 20 66 75 | 6e 63 2c 20 74 75 70 6c | {\tt fu|nc, tupl|
|00004510| 65 2c 20 73 6d 61 70 7d | 2e 0a 09 0a 09 5c 44 53 |e, smap}|.....\DS|
|00004520| 0a 09 63 6f 6d 70 6f 73 | 65 20 3a 3d 20 5c 3d 20 |..compos|e := \= |
|00004530| 66 75 6e 63 20 5c 3d 20 | 28 66 2c 67 29 3b 20 5c |func \= |(f,g); \|
|00004540| 5c 0a 09 20 20 20 20 20 | 20 20 20 20 20 20 5c 3e |\.. | \>|
|00004550| 20 20 20 20 20 20 5c 3e | 20 72 65 74 75 72 6e 20 | \>| return |
|00004560| 5c 3d 20 66 75 6e 63 20 | 5c 3d 20 28 78 29 3b 20 |\= func |\= (x); |
|00004570| 5c 5c 0a 09 20 20 20 20 | 20 20 20 20 20 20 20 5c |\\.. | \|
|00004580| 3e 20 20 20 20 20 20 5c | 3e 20 20 20 20 20 20 20 |> \|> |
|00004590| 20 5c 3e 20 20 20 20 20 | 20 5c 3e 20 72 65 74 75 | \> | \> retu|
|000045a0| 72 6e 20 66 28 67 28 78 | 29 29 3b 20 5c 5c 0a 09 |rn f(g(x|)); \\..|
|000045b0| 20 20 20 20 20 20 20 20 | 20 20 20 5c 3e 09 20 20 | | \>. |
|000045c0| 20 5c 3e 20 20 20 20 20 | 20 20 20 5c 3e 20 65 6e | \> | \> en|
|000045d0| 64 3b 20 5c 5c 0a 09 20 | 20 20 20 20 20 20 20 20 |d; \\.. | |
|000045e0| 20 20 5c 3e 20 65 6e 64 | 3b 20 5c 5c 0a 09 74 77 | \> end|; \\..tw|
|000045f0| 69 63 65 20 3a 3d 20 20 | 20 5c 3e 20 66 75 6e 63 |ice := | \> func|
|00004600| 20 5c 3e 20 28 61 29 3b | 20 5c 5c 0a 09 20 20 20 | \> (a);| \\.. |
|00004610| 20 20 20 20 20 20 20 20 | 5c 3e 20 20 20 20 20 20 | |\> |
|00004620| 5c 3e 20 72 65 74 75 72 | 6e 20 32 2a 61 3b 20 5c |\> retur|n 2*a; \|
|00004630| 5c 0a 09 20 20 20 20 20 | 20 20 20 20 20 20 5c 3e |\.. | \>|
|00004640| 20 65 6e 64 3b 20 5c 5c | 0a 09 74 69 6d 65 73 34 | end; \\|..times4|
|00004650| 20 3a 3d 20 20 5c 3e 20 | 63 6f 6d 70 6f 73 65 28 | := \> |compose(|
|00004660| 74 77 69 63 65 2c 74 77 | 69 63 65 29 3b 20 5c 5c |twice,tw|ice); \\|
|00004670| 0a 09 5c 44 45 0a 09 0a | 09 54 68 65 6e 20 74 68 |..\DE...|.Then th|
|00004680| 65 20 76 61 6c 75 65 20 | 6f 66 20 5c 5b 74 69 6d |e value |of \[tim|
|00004690| 65 73 34 28 33 29 5c 5d | 20 77 6f 75 6c 64 20 62 |es4(3)\]| would b|
|000046a0| 65 20 7b 5c 74 74 20 31 | 32 7d 2e 0a 09 54 68 65 |e {\tt 1|2}...The|
|000046b0| 20 76 61 6c 75 65 20 6f | 66 20 5c 5b 74 69 6d 65 | value o|f \[time|
|000046c0| 73 34 5c 5d 20 6e 65 65 | 64 73 20 74 6f 20 72 65 |s4\] nee|ds to re|
|000046d0| 66 65 72 20 74 6f 20 74 | 68 65 20 76 61 6c 75 65 |fer to t|he value|
|000046e0| 73 20 6f 66 20 5c 5b 66 | 5c 5d 20 61 6e 64 20 5c |s of \[f|\] and \|
|000046f0| 5b 67 5c 5d 2c 0a 09 61 | 6e 64 20 74 68 65 79 20 |[g\],..a|nd they |
|00004700| 72 65 6d 61 69 6e 20 61 | 63 63 65 73 73 69 62 6c |remain a|ccessibl|
|00004710| 65 20 74 6f 20 5c 5b 74 | 69 6d 65 73 34 5c 5d 2c |e to \[t|imes4\],|
|00004720| 0a 09 65 76 65 6e 20 74 | 68 6f 75 67 68 20 5c 5b |..even t|hough \[|
|00004730| 63 6f 6d 70 6f 73 65 5c | 5d 20 68 61 73 20 72 65 |compose\|] has re|
|00004740| 74 75 72 6e 65 64 2e 0a | 0a 09 5c 69 74 65 6d 0a |turned..|..\item.|
|00004750| 09 46 69 6e 61 6c 6c 79 | 2c 20 68 65 72 65 20 61 |.Finally|, here a|
|00004760| 72 65 20 73 6f 6d 65 20 | 65 78 61 6d 70 6c 65 73 |re some |examples|
|00004770| 20 6f 66 20 66 75 6e 63 | 74 69 6f 6e 73 20 6d 6f | of func|tions mo|
|00004780| 64 69 66 69 65 64 20 61 | 74 20 61 20 70 6f 69 6e |dified a|t a poin|
|00004790| 74 2c 20 61 6e 64 0a 09 | 66 75 6e 63 74 69 6f 6e |t, and..|function|
|000047a0| 73 20 74 68 61 74 20 63 | 61 70 74 75 72 65 20 74 |s that c|apture t|
|000047b0| 68 65 20 63 75 72 72 65 | 6e 74 20 76 61 6c 75 65 |he curre|nt value|
|000047c0| 20 6f 66 20 61 20 67 6c | 6f 62 61 6c 2e 0a 0a 09 | of a gl|obal....|
|000047d0| 5c 44 53 0a 09 66 20 3a | 3d 20 5c 3d 20 66 75 6e |\DS..f :|= \= fun|
|000047e0| 63 20 5c 3d 20 28 78 29 | 3b 5c 20 5c 20 5c 20 5c |c \= (x)|;\ \ \ \|
|000047f0| 20 5c 20 5c 20 5c 20 5c | 20 5c 3d 20 5c 5c 0a 09 | \ \ \ \| \= \\..|
|00004800| 20 20 20 20 20 5c 3e 20 | 20 20 20 20 20 5c 3e 20 | \> | \> |
|00004810| 72 65 74 75 72 6e 20 78 | 20 2b 20 34 3b 20 5c 5c |return x| + 4; \\|
|00004820| 0a 09 20 20 20 20 20 5c | 3e 20 65 6e 64 20 3b 20 |.. \|> end ; |
|00004830| 5c 5c 0a 09 67 73 20 3a | 3d 20 5b 20 66 75 6e 63 |\\..gs :|= [ func|
|00004840| 28 78 29 3b 20 76 61 6c | 75 65 20 4e 3b 20 72 65 |(x); val|ue N; re|
|00004850| 74 75 72 6e 20 78 2b 33 | 2a 4e 3b 20 65 6e 64 20 |turn x+3|*N; end |
|00004860| 3a 5c 5c 0a 5c 3e 5c 3e | 5c 3e 20 4e 20 69 6e 20 |:\\.\>\>|\> N in |
|00004870| 5b 31 2e 2e 33 5d 20 5d | 3b 20 5c 5c 0a 09 66 28 |[1..3] ]|; \\..f(|
|00004880| 33 29 20 3a 3d 20 32 31 | 3b 20 5c 5c 0a 09 5c 44 |3) := 21|; \\..\D|
|00004890| 45 0a 0a 09 41 66 74 65 | 72 20 74 68 69 73 20 69 |E...Afte|r this i|
|000048a0| 73 20 65 78 65 63 75 74 | 65 64 2c 20 5c 5b 66 28 |s execut|ed, \[f(|
|000048b0| 31 29 5c 5d 20 69 73 20 | 7b 5c 74 74 20 35 7d 2c |1)\] is |{\tt 5},|
|000048c0| 20 5c 5b 66 28 32 29 5c | 5d 20 69 73 20 7b 5c 74 | \[f(2)\|] is {\t|
|000048d0| 74 20 36 7d 2c 20 62 75 | 74 20 0a 5c 5b 66 28 33 |t 6}, bu|t .\[f(3|
|000048e0| 29 5c 5d 20 69 73 20 7b | 5c 74 74 20 32 31 7d 2e |)\] is {|\tt 21}.|
|000048f0| 0a 09 5c 5b 67 73 28 32 | 29 28 34 29 5c 5d 20 69 |..\[gs(2|)(4)\] i|
|00004900| 73 20 7b 5c 74 74 20 20 | 31 30 7d 20 28 5c 5b 34 |s {\tt |10} (\[4|
|00004910| 2b 33 2a 32 5c 5d 29 2e | 0a 25 09 54 68 65 20 66 |+3*2\]).|.%.The f|
|00004920| 75 6e 63 74 69 6f 6e 20 | 64 65 66 69 6e 65 64 20 |unction |defined |
|00004930| 62 65 6c 6f 77 20 62 79 | 20 66 75 6e 63 20 61 6e |below by| func an|
|00004940| 64 20 61 73 73 69 67 6e | 65 64 20 74 6f 0a 25 09 |d assign|ed to.%.|
|00004950| 74 68 65 20 69 64 65 6e | 74 69 66 69 65 72 20 5c |the iden|tifier \|
|00004960| 5b 63 75 72 72 79 5c 5d | 20 74 61 6b 65 73 20 61 |[curry\]| takes a|
|00004970| 73 20 69 74 73 20 73 69 | 6e 67 6c 65 0a 25 09 70 |s its si|ngle.%.p|
|00004980| 61 72 61 6d 65 74 65 72 | 20 61 6e 79 20 76 61 6c |arameter| any val|
|00004990| 75 65 20 5c 5b 46 5c 5d | 20 66 6f 72 20 77 68 69 |ue \[F\]| for whi|
|000049a0| 63 68 20 5c 5b 46 28 78 | 2c 79 29 5c 5d 20 6d 61 |ch \[F(x|,y)\] ma|
|000049b0| 6b 65 73 20 73 65 6e 73 | 65 0a 25 09 28 65 2e 67 |kes sens|e.%.(e.g|
|000049c0| 2e 2c 20 61 20 66 75 6e | 63 2c 20 61 20 6d 61 70 |., a fun|c, a map|
|000049d0| 2c 20 65 74 63 2e 29 2c | 0a 25 09 61 6e 64 20 72 |, etc.),|.%.and r|
|000049e0| 65 74 75 72 6e 73 20 61 | 20 66 75 6e 63 20 5c 5b |eturns a| func \[|
|000049f0| 47 5c 5d 20 64 65 66 69 | 6e 65 64 20 62 79 3a 20 |G\] defi|ned by: |
|00004a00| 5c 5b 47 28 78 29 5c 5d | 20 69 73 20 61 20 66 75 |\[G(x)\]| is a fu|
|00004a10| 6e 63 20 77 68 6f 73 65 | 0a 25 09 76 61 6c 75 65 |nc whose|.%.value|
|00004a20| 20 61 74 20 5c 5b 79 5c | 5d 20 69 73 20 5c 5b 46 | at \[y\|] is \[F|
|00004a30| 28 78 2c 79 29 5c 5d 2e | 0a 25 09 54 68 75 73 2c |(x,y)\].|.%.Thus,|
|00004a40| 20 61 66 74 65 72 20 65 | 78 65 63 75 74 69 6e 67 | after e|xecuting|
|00004a50| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 63 | the fol|lowing c|
|00004a60| 6f 64 65 2c 20 5c 5b 63 | 75 72 72 79 28 46 29 5c |ode, \[c|urry(F)\|
|00004a70| 5d 20 77 69 6c 6c 0a 25 | 09 62 65 20 61 20 66 75 |] will.%|.be a fu|
|00004a80| 6e 63 20 77 68 6f 73 65 | 20 76 61 6c 75 65 20 61 |nc whose| value a|
|00004a90| 74 20 5c 5b 78 5c 5d 20 | 69 73 20 61 20 66 75 6e |t \[x\] |is a fun|
|00004aa0| 63 0a 25 09 74 68 61 74 | 20 63 61 6e 20 62 65 20 |c.%.that| can be |
|00004ab0| 65 76 61 6c 75 61 74 65 | 64 20 61 74 20 5c 5b 79 |evaluate|d at \[y|
|00004ac0| 5c 5d 2c 20 20 61 6e 64 | 0a 25 09 5c 5b 63 75 72 |\], and|.%.\[cur|
|00004ad0| 72 79 28 46 29 28 78 29 | 28 79 29 5c 5d 20 69 73 |ry(F)(x)|(y)\] is|
|00004ae0| 20 5c 5b 46 28 78 2c 79 | 29 5c 5d 2e 0a 25 0a 25 | \[F(x,y|)\]..%.%|
|00004af0| 5c 44 53 0a 25 63 75 72 | 72 79 20 3a 3d 20 5c 3d |\DS.%cur|ry := \=|
|00004b00| 20 66 75 6e 63 5c 3d 20 | 28 46 29 3b 20 5c 5c 0a | func\= |(F); \\.|
|00004b10| 25 09 20 5c 3e 09 20 20 | 20 5c 3e 20 72 65 74 75 |%. \>. | \> retu|
|00004b20| 72 6e 20 5c 3d 20 66 75 | 6e 63 5c 3d 20 28 78 29 |rn \= fu|nc\= (x)|
|00004b30| 3b 20 5c 5c 0a 25 09 20 | 5c 3e 09 20 20 20 5c 3e |; \\.%. |\>. \>|
|00004b40| 20 20 20 20 20 20 20 20 | 5c 3e 20 20 20 20 20 5c | |\> \|
|00004b50| 3e 20 72 65 74 75 72 6e | 20 5c 3d 20 66 75 6e 63 |> return| \= func|
|00004b60| 5c 3d 20 28 79 29 3b 20 | 5c 5c 0a 25 09 20 5c 3e |\= (y); |\\.%. \>|
|00004b70| 09 20 20 20 5c 3e 09 20 | 20 20 20 20 5c 3e 20 20 |. \>. | \> |
|00004b80| 20 20 20 5c 3e 20 20 20 | 20 20 20 20 20 5c 3e 20 | \> | \> |
|00004b90| 20 20 20 20 5c 3e 20 72 | 65 74 75 72 6e 20 46 28 | \> r|eturn F(|
|00004ba0| 78 2c 79 29 3b 5c 5c 0a | 25 09 20 5c 3e 09 20 20 |x,y);\\.|%. \>. |
|00004bb0| 20 5c 3e 09 20 20 20 20 | 20 5c 3e 20 20 20 20 20 | \>. | \> |
|00004bc0| 5c 3e 20 20 20 20 20 20 | 20 20 5c 3e 20 65 6e 64 |\> | \> end|
|00004bd0| 3b 20 5c 5c 0a 25 09 20 | 5c 3e 09 20 20 20 5c 3e |; \\.%. |\>. \>|
|00004be0| 20 20 20 20 20 20 20 20 | 5c 3e 20 65 6e 64 3b 20 | |\> end; |
|00004bf0| 5c 5c 0a 25 09 20 5c 3e | 20 65 6e 64 3b 20 5c 5c |\\.%. \>| end; \\|
|00004c00| 0a 25 5c 44 45 0a 25 0a | 25 09 48 65 6e 63 65 2c |.%\DE.%.|%.Hence,|
|00004c10| 20 66 6f 72 20 65 78 61 | 6d 70 6c 65 2c 20 69 66 | for exa|mple, if|
|00004c20| 20 6f 6e 65 20 74 68 65 | 6e 20 65 78 65 63 75 74 | one the|n execut|
|00004c30| 65 64 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |ed the f|ollowing|
|00004c40| 20 63 6f 64 65 2c 0a 25 | 0a 25 5c 44 53 0a 25 70 | code,.%|.%\DS.%p|
|00004c50| 6c 75 73 20 3a 3d 20 5c | 3d 20 66 75 6e 63 5c 3d |lus := \|= func\=|
|00004c60| 20 28 61 2c 62 29 3b 20 | 5c 5c 0a 25 09 5c 3e 20 | (a,b); |\\.%.\> |
|00004c70| 20 20 20 20 5c 3e 72 65 | 74 75 72 6e 20 61 2b 62 | \>re|turn a+b|
|00004c80| 3b 20 5c 5c 0a 25 09 5c | 3e 20 65 6e 64 3b 20 5c |; \\.%.\|> end; \|
|00004c90| 5c 0a 25 20 5c 5c 0a 25 | 69 6e 63 20 3a 3d 20 63 |\.% \\.%|inc := c|
|00004ca0| 75 72 72 79 28 70 6c 75 | 73 29 28 31 29 3b 20 5c |urry(plu|s)(1); \|
|00004cb0| 5c 0a 25 5c 44 45 0a 25 | 09 74 68 65 20 72 65 73 |\.%\DE.%|.the res|
|00004cc0| 75 6c 74 69 6e 67 20 76 | 61 6c 75 65 20 6f 66 20 |ulting v|alue of |
|00004cd0| 5c 5b 69 6e 63 28 33 29 | 5c 5d 20 77 6f 75 6c 64 |\[inc(3)|\] would|
|00004ce0| 20 62 65 20 5c 5b 34 5c | 5d 2e 0a 09 5c 65 6e 64 | be \[4\|]...\end|
|00004cf0| 7b 65 6e 75 6d 65 72 61 | 74 65 7d 0a 5c 65 6e 64 |{enumera|te}.\end|
|00004d00| 7b 65 6e 75 6d 65 72 61 | 74 65 7d 0a 0a 0a 5c 73 |{enumera|te}...\s|
|00004d10| 65 63 74 69 6f 6e 7b 54 | 68 65 20 49 53 45 54 4c |ection{T|he ISETL|
|00004d20| 20 47 72 61 6d 6d 61 72 | 2e 7d 0a 0a 5c 73 75 62 | Grammar|.}..\sub|
|00004d30| 73 65 63 74 69 6f 6e 7b | 54 65 72 6d 69 6e 6f 6c |section{|Terminol|
|00004d40| 6f 67 79 2e 7d 0a 0a 5c | 62 65 67 69 6e 7b 65 6e |ogy.}..\|begin{en|
|00004d50| 75 6d 65 72 61 74 65 7d | 0a 0a 5c 69 74 65 6d 0a |umerate}|..\item.|
|00004d60| 49 6e 20 77 68 61 74 20 | 66 6f 6c 6c 6f 77 73 2c |In what |follows,|
|00004d70| 20 74 68 65 20 73 79 6d | 62 6f 6c 73 20 5c 5b 49 | the sym|bols \[I|
|00004d80| 44 5c 5d 2c 20 5c 5b 49 | 4e 54 45 47 45 52 5c 5d |D\], \[I|NTEGER\]|
|00004d90| 2c 20 5c 5b 46 4c 4f 41 | 54 49 4e 47 5c 5f 5c 2c |, \[FLOA|TING\_\,|
|00004da0| 50 4f 49 4e 54 5c 5d 2c | 0a 5c 5b 42 4f 4f 4c 45 |POINT\],|.\[BOOLE|
|00004db0| 41 4e 5c 5d 2c 20 61 6e | 64 20 5c 5b 53 54 52 49 |AN\], an|d \[STRI|
|00004dc0| 4e 47 5c 5d 20 72 65 66 | 65 72 20 74 6f 20 74 68 |NG\] ref|er to th|
|00004dd0| 65 20 74 65 72 6d 73 20 | 69 64 65 6e 74 69 66 69 |e terms |identifi|
|00004de0| 65 72 20 61 6e 64 0a 7b | 5c 74 74 20 69 6e 74 65 |er and.{|\tt inte|
|00004df0| 67 65 72 7d 2c 20 7b 5c | 74 74 20 66 6c 6f 61 74 |ger}, {\|tt float|
|00004e00| 69 6e 67 20 70 6f 69 6e | 74 7d 20 6e 75 6d 62 65 |ing poin|t} numbe|
|00004e10| 72 2c 20 7b 5c 74 74 20 | 42 6f 6f 6c 65 61 6e 7d |r, {\tt |Boolean}|
|00004e20| 2c 20 61 6e 64 20 0a 7b | 5c 74 74 20 73 74 72 69 |, and .{|\tt stri|
|00004e30| 6e 67 7d 20 63 6f 6e 73 | 74 61 6e 74 73 2c 0a 77 |ng} cons|tants,.w|
|00004e40| 68 69 63 68 20 68 61 76 | 65 20 62 65 65 6e 20 73 |hich hav|e been s|
|00004e50| 70 65 63 69 66 69 65 64 | 20 61 62 6f 76 65 2e 0a |pecified| above..|
|00004e60| 41 6e 79 20 6f 74 68 65 | 72 20 73 79 6d 62 6f 6c |Any othe|r symbol|
|00004e70| 20 69 6e 20 63 61 70 69 | 74 61 6c 20 6c 65 74 74 | in capi|tal lett|
|00004e80| 65 72 73 20 69 73 20 65 | 78 70 6c 61 69 6e 65 64 |ers is e|xplained|
|00004e90| 20 69 6e 20 74 68 65 20 | 67 72 61 6d 6d 61 72 2e | in the |grammar.|
|00004ea0| 0a 0a 25 5c 69 74 65 6d | 0a 25 41 20 73 79 6d 62 |..%\item|.%A symb|
|00004eb0| 6f 6c 20 77 72 69 74 74 | 65 6e 20 69 6e 20 6c 6f |ol writt|en in lo|
|00004ec0| 77 65 72 20 63 61 73 65 | 20 69 73 20 61 6e 20 49 |wer case| is an I|
|00004ed0| 53 45 54 4c 20 6b 65 79 | 77 6f 72 64 2e 0a 25 49 |SETL key|word..%I|
|00004ee0| 74 20 61 70 70 65 61 72 | 73 20 69 6e 20 74 68 65 |t appear|s in the|
|00004ef0| 20 73 79 6e 74 61 78 20 | 65 78 61 63 74 6c 79 20 | syntax |exactly |
|00004f00| 61 73 20 77 72 69 74 74 | 65 6e 20 68 65 72 65 2e |as writt|en here.|
|00004f10| 0a 0a 5c 69 74 65 6d 0a | 41 20 73 74 61 74 65 6d |..\item.|A statem|
|00004f20| 65 6e 74 20 65 6e 63 6c | 6f 73 65 64 20 69 6e 20 |ent encl|osed in |
|00004f30| 64 6f 75 62 6c 65 20 71 | 75 6f 74 65 73 20 69 73 |double q|uotes is|
|00004f40| 20 61 6e 20 65 78 74 72 | 61 2d 67 72 61 6d 6d 61 | an extr|a-gramma|
|00004f50| 74 69 63 61 6c 20 65 78 | 70 6c 61 6e 61 74 69 6f |tical ex|planatio|
|00004f60| 6e 2e 0a 0a 5c 69 74 65 | 6d 0a 53 70 61 63 65 73 |n...\ite|m.Spaces|
|00004f70| 20 61 72 65 20 6e 6f 74 | 20 61 6c 6c 6f 77 65 64 | are not| allowed|
|00004f80| 20 77 69 74 68 69 6e 20 | 61 6e 79 20 6f 66 20 74 | within |any of t|
|00004f90| 68 65 20 63 68 61 72 61 | 63 74 65 72 20 70 61 69 |he chara|cter pai|
|00004fa0| 72 73 0a 6c 69 73 74 65 | 64 20 69 6e 20 74 68 65 |rs.liste|d in the|
|00004fb0| 20 73 65 63 74 69 6f 6e | 20 6f 6e 20 43 68 61 72 | section| on Char|
|00004fc0| 61 63 74 65 72 73 20 61 | 6e 64 20 4b 65 79 77 6f |acters a|nd Keywo|
|00004fd0| 72 64 73 2c 0a 6e 6f 72 | 20 77 69 74 68 69 6e 20 |rds,.nor| within |
|00004fe0| 61 6e 20 5c 5b 49 44 5c | 5d 2c 20 5c 5b 49 4e 54 |an \[ID\|], \[INT|
|00004ff0| 45 47 45 52 5c 5d 20 63 | 6f 6e 73 74 61 6e 74 2c |EGER\] c|onstant,|
|00005000| 0a 5c 5b 46 4c 4f 41 54 | 49 4e 47 5c 5f 5c 2c 50 |.\[FLOAT|ING\_\,P|
|00005010| 4f 49 4e 54 5c 5d 20 63 | 6f 6e 73 74 61 6e 74 2c |OINT\] c|onstant,|
|00005020| 20 6f 72 20 6b 65 79 77 | 6f 72 64 2e 0a 53 70 61 | or keyw|ord..Spa|
|00005030| 63 65 73 20 61 72 65 20 | 72 65 71 75 69 72 65 64 |ces are |required|
|00005040| 20 62 65 74 77 65 65 6e | 20 6b 65 79 77 6f 72 64 | between| keyword|
|00005050| 73 2c 20 5c 5b 49 44 5c | 5d 73 2c 20 5c 5b 49 4e |s, \[ID\|]s, \[IN|
|00005060| 54 45 47 45 52 5c 5d 20 | 63 6f 6e 73 74 61 6e 74 |TEGER\] |constant|
|00005070| 73 2c 0a 61 6e 64 20 5c | 5b 46 4c 4f 41 54 49 4e |s,.and \|[FLOATIN|
|00005080| 47 5c 5f 5c 2c 50 4f 49 | 4e 54 5c 5d 20 63 6f 6e |G\_\,POI|NT\] con|
|00005090| 73 74 61 6e 74 73 2e 0a | 0a 5c 69 74 65 6d 0a 49 |stants..|.\item.I|
|000050a0| 53 45 54 4c 20 74 72 65 | 61 74 73 20 63 61 72 72 |SETL tre|ats carr|
|000050b0| 69 61 67 65 20 72 65 74 | 75 72 6e 73 20 61 6e 64 |iage ret|urns and|
|000050c0| 20 74 61 62 73 20 61 73 | 20 73 70 61 63 65 73 2e | tabs as| spaces.|
|000050d0| 0a 41 6e 79 20 69 6e 70 | 75 74 20 63 61 6e 20 62 |.Any inp|ut can b|
|000050e0| 65 20 73 70 72 65 61 64 | 20 61 63 72 6f 73 73 20 |e spread| across |
|000050f0| 6c 69 6e 65 73 20 77 69 | 74 68 6f 75 74 20 63 68 |lines wi|thout ch|
|00005100| 61 6e 67 69 6e 67 20 74 | 68 65 20 6d 65 61 6e 69 |anging t|he meani|
|00005110| 6e 67 2c 0a 61 6e 64 20 | 49 53 45 54 4c 20 77 69 |ng,.and |ISETL wi|
|00005120| 6c 6c 20 6e 6f 74 0a 63 | 6f 6e 73 69 64 65 72 20 |ll not.c|onsider |
|00005130| 69 74 20 74 6f 20 62 65 | 20 63 6f 6d 70 6c 65 74 |it to be| complet|
|00005140| 65 20 75 6e 74 69 6c 20 | 61 20 73 65 6d 69 63 6f |e until |a semico|
|00005150| 6c 6f 6e 20 60 60 5c 5b | 3b 5c 5d 27 27 20 69 73 |lon ``\[|;\]'' is|
|00005160| 20 65 6e 74 65 72 65 64 | 2e 0a 54 68 65 20 6f 6e | entered|..The on|
|00005170| 6c 79 20 65 78 63 65 70 | 74 69 6f 6e 73 20 74 6f |ly excep|tions to|
|00005180| 20 74 68 69 73 20 61 72 | 65 20 74 68 65 20 5c 5b | this ar|e the \[|
|00005190| 21 69 6e 63 6c 75 64 65 | 5c 5d 20 69 6e 70 75 74 |!include|\] input|
|000051a0| 2c 0a 77 68 69 63 68 20 | 69 73 20 65 6e 64 65 64 |,.which |is ended|
|000051b0| 20 77 69 74 68 20 61 20 | 63 61 72 72 69 61 67 65 | with a |carriage|
|000051c0| 20 72 65 74 75 72 6e 2c | 0a 61 6e 64 20 74 68 65 | return,|.and the|
|000051d0| 20 66 61 63 74 20 74 68 | 61 74 20 61 20 71 75 6f | fact th|at a quo|
|000051e0| 74 65 64 20 7b 5c 74 74 | 20 73 74 72 69 6e 67 7d |ted {\tt| string}|
|000051f0| 20 63 61 6e 6e 6f 74 20 | 62 65 20 74 79 70 65 64 | cannot |be typed|
|00005200| 20 6f 6e 20 6d 6f 72 65 | 20 74 68 61 6e 20 6f 6e | on more| than on|
|00005210| 65 20 6c 69 6e 65 2e 0a | 5c 65 6e 64 7b 65 6e 75 |e line..|\end{enu|
|00005220| 6d 65 72 61 74 65 7d 0a | 0a 5c 73 75 62 73 65 63 |merate}.|.\subsec|
|00005230| 74 69 6f 6e 7b 54 68 65 | 20 47 72 61 6d 6d 61 72 |tion{The| Grammar|
|00005240| 2e 7d 0a 0a 54 68 65 20 | 61 6e 6e 6f 74 61 74 65 |.}..The |annotate|
|00005250| 64 20 67 72 61 6d 6d 61 | 72 20 62 65 6c 6f 77 20 |d gramma|r below |
|00005260| 69 73 20 70 72 65 73 65 | 6e 74 65 64 20 69 6e 20 |is prese|nted in |
|00005270| 74 68 72 65 65 20 63 6f | 6c 75 6d 6e 73 2e 0a 54 |three co|lumns..T|
|00005280| 68 65 20 66 69 72 73 74 | 20 63 6f 6c 75 6d 6e 20 |he first| column |
|00005290| 69 73 20 74 68 65 20 73 | 79 6d 62 6f 6c 20 62 65 |is the s|ymbol be|
|000052a0| 69 6e 67 20 64 65 66 69 | 6e 65 64 2c 0a 74 68 65 |ing defi|ned,.the|
|000052b0| 20 73 65 63 6f 6e 64 20 | 63 6f 6c 75 6d 6e 20 63 | second |column c|
|000052c0| 6f 6e 74 61 69 6e 73 20 | 61 20 6c 69 73 74 20 6f |ontains |a list o|
|000052d0| 66 20 74 68 65 20 70 6f | 73 73 69 62 69 6c 69 74 |f the po|ssibilit|
|000052e0| 69 65 73 20 66 6f 72 20 | 74 68 61 74 20 73 79 6d |ies for |that sym|
|000052f0| 62 6f 6c 2c 0a 61 6e 64 | 20 74 68 65 20 74 68 69 |bol,.and| the thi|
|00005300| 72 64 20 63 6f 6c 75 6d | 6e 2c 20 77 68 65 6e 20 |rd colum|n, when |
|00005310| 70 72 65 73 65 6e 74 2c | 20 70 72 6f 76 69 64 65 |present,| provide|
|00005320| 73 20 61 64 64 69 74 69 | 6f 6e 61 6c 20 65 78 70 |s additi|onal exp|
|00005330| 6c 61 6e 61 74 69 6f 6e | 2e 0a 0a 5c 48 45 41 44 |lanation|...\HEAD|
|00005340| 7b 49 4e 50 55 54 7d 0a | 5c 43 4f 4d 4d 45 4e 54 |{INPUT}.|\COMMENT|
|00005350| 7b 43 61 6e 20 62 65 20 | 74 79 70 65 64 20 61 74 |{Can be |typed at|
|00005360| 20 74 68 65 20 74 65 72 | 6d 69 6e 61 6c 20 6f 72 | the ter|minal or|
|00005370| 20 72 65 61 64 20 66 72 | 6f 6d 20 61 20 66 69 6c | read fr|om a fil|
|00005380| 65 2e 7d 0a 0a 5c 52 55 | 4c 45 7b 50 52 4f 47 52 |e.}..\RU|LE{PROGR|
|00005390| 41 4d 7d 0a 5c 52 55 4c | 45 7b 53 54 4d 54 7d 0a |AM}.\RUL|E{STMT}.|
|000053a0| 5c 52 55 4c 45 7b 45 58 | 50 52 20 3b 7d 0a 5c 43 |\RULE{EX|PR ;}.\C|
|000053b0| 4f 4d 4d 45 4e 54 7b 54 | 68 65 20 5c 5b 45 58 50 |OMMENT{T|he \[EXP|
|000053c0| 52 5c 5d 20 69 73 20 65 | 76 61 6c 75 61 74 65 64 |R\] is e|valuated|
|000053d0| 0a 61 6e 64 20 74 68 65 | 20 72 65 73 75 6c 74 20 |.and the| result |
|000053e0| 69 73 20 73 65 6e 74 20 | 74 6f 20 73 74 61 6e 64 |is sent |to stand|
|000053f0| 61 72 64 20 6f 75 74 70 | 75 74 2e 7d 0a 0a 5c 48 |ard outp|ut.}..\H|
|00005400| 45 41 44 7b 50 52 4f 47 | 52 41 4d 7d 0a 5c 43 4f |EAD{PROG|RAM}.\CO|
|00005410| 4d 4d 45 4e 54 7b 55 73 | 75 61 6c 6c 79 20 72 65 |MMENT{Us|ually re|
|00005420| 61 64 20 66 72 6f 6d 20 | 61 20 66 69 6c 65 2e 7d |ad from |a file.}|
|00005430| 0a 5c 52 55 4c 45 7b 70 | 72 6f 67 72 61 6d 20 49 |.\RULE{p|rogram I|
|00005440| 44 20 3b 20 53 54 4d 54 | 53 20 3b 20 65 6e 64 20 |D ; STMT|S ; end |
|00005450| 3b 7d 0a 5c 43 4f 4d 4d | 45 4e 54 7b 4f 66 20 63 |;}.\COMM|ENT{Of c|
|00005460| 6f 75 72 73 65 2c 20 69 | 74 20 63 61 6e 20 61 70 |ourse, i|t can ap|
|00005470| 70 65 61 72 20 6f 6e 20 | 73 65 76 65 72 61 6c 20 |pear on |several |
|00005480| 6c 69 6e 65 73 20 77 69 | 74 68 20 74 68 65 0a 75 |lines wi|th the.u|
|00005490| 73 75 61 6c 20 69 6e 64 | 65 6e 74 65 64 20 66 6f |sual ind|ented fo|
|000054a0| 72 6d 61 74 2e 7d 0a 0a | 5c 48 45 41 44 7b 53 54 |rmat.}..|\HEAD{ST|
|000054b0| 4d 54 53 7d 0a 5c 52 55 | 4c 45 7b 5c 72 6d 20 60 |MTS}.\RU|LE{\rm `|
|000054c0| 60 4f 6e 65 20 6f 72 20 | 6d 6f 72 65 20 69 6e 73 |`One or |more ins|
|000054d0| 74 61 6e 63 65 73 20 6f | 66 20 5c 5b 53 54 4d 54 |tances o|f \[STMT|
|000054e0| 5c 5d 27 27 7d 0a 0a 5c | 48 45 41 44 7b 53 54 4d |\]''}..\|HEAD{STM|
|000054f0| 54 7d 0a 5c 52 55 4c 45 | 7b 4c 48 53 20 3a 3d 20 |T}.\RULE|{LHS := |
|00005500| 45 58 50 52 20 3b 7d 0a | 5c 43 4f 4d 4d 45 4e 54 |EXPR ;}.|\COMMENT|
|00005510| 7b 0a 54 68 65 20 6c 65 | 66 74 20 68 61 6e 64 20 |{.The le|ft hand |
|00005520| 73 69 64 65 20 69 73 20 | 65 76 61 6c 75 61 74 65 |side is |evaluate|
|00005530| 64 20 74 6f 20 64 65 74 | 65 72 6d 69 6e 65 0a 74 |d to det|ermine.t|
|00005540| 68 65 20 74 61 72 67 65 | 74 28 73 29 20 66 6f 72 |he targe|t(s) for|
|00005550| 20 74 68 65 20 61 73 73 | 69 67 6e 6d 65 6e 74 2c | the ass|ignment,|
|00005560| 0a 61 6e 64 20 74 68 65 | 20 72 69 67 68 74 20 68 |.and the| right h|
|00005570| 61 6e 64 20 73 69 64 65 | 20 69 73 20 65 76 61 6c |and side| is eval|
|00005580| 75 61 74 65 64 2e 0a 54 | 68 65 6e 20 74 68 65 20 |uated..T|hen the |
|00005590| 61 73 73 69 67 6e 6d 65 | 6e 74 20 69 73 20 6d 61 |assignme|nt is ma|
|000055a0| 64 65 2e 0a 49 66 20 74 | 68 65 72 65 20 61 72 65 |de..If t|here are|
|000055b0| 20 73 6f 6d 65 20 74 61 | 72 67 65 74 73 20 66 6f | some ta|rgets fo|
|000055c0| 72 20 77 68 69 63 68 20 | 74 68 65 72 65 0a 61 72 |r which |there.ar|
|000055d0| 65 20 6e 6f 20 76 61 6c | 75 65 73 20 74 6f 20 62 |e no val|ues to b|
|000055e0| 65 20 61 73 73 69 67 6e | 65 64 2c 20 74 68 65 6e |e assign|ed, then|
|000055f0| 20 74 68 65 79 20 72 65 | 63 65 69 76 65 20 74 68 | they re|ceive th|
|00005600| 65 0a 76 61 6c 75 65 2c | 20 5c 5b 4f 4d 5c 5d 2e |e.value,| \[OM\].|
|00005610| 20 20 49 66 20 74 68 65 | 72 65 20 61 72 65 20 76 | If the|re are v|
|00005620| 61 6c 75 65 73 20 74 6f | 20 62 65 20 61 73 73 69 |alues to| be assi|
|00005630| 67 6e 65 64 20 62 75 74 | 0a 6e 6f 20 63 6f 72 72 |gned but|.no corr|
|00005640| 65 73 70 6f 6e 64 69 6e | 67 20 74 61 72 67 65 74 |espondin|g target|
|00005650| 73 2c 20 74 68 65 6e 20 | 74 68 65 20 76 61 6c 75 |s, then |the valu|
|00005660| 65 73 20 61 72 65 20 69 | 67 6e 6f 72 65 64 2e 0a |es are i|gnored..|
|00005670| 0a 45 78 61 6d 70 6c 65 | 73 3a 0a 0a 20 20 20 20 |.Example|s:.. |
|00005680| 5c 44 53 20 61 20 3a 3d | 20 34 3b 20 20 5c 44 45 |\DS a :=| 4; \DE|
|00005690| 0a 0a 5c 5b 61 5c 5d 20 | 69 73 20 63 68 61 6e 67 |..\[a\] |is chang|
|000056a0| 65 64 20 74 6f 20 63 6f | 6e 74 61 69 6e 20 74 68 |ed to co|ntain th|
|000056b0| 65 20 76 61 6c 75 65 20 | 5c 5b 34 5c 5d 2e 0a 0a |e value |\[4\]...|
|000056c0| 20 20 20 20 5c 44 53 20 | 5b 61 2c 62 5d 20 3a 3d | \DS |[a,b] :=|
|000056d0| 20 5b 31 2c 32 5d 3b 20 | 5c 44 45 0a 0a 5c 5b 61 | [1,2]; |\DE..\[a|
|000056e0| 5c 5d 20 69 73 20 61 73 | 73 69 67 6e 65 64 20 5c |\] is as|signed \|
|000056f0| 5b 31 5c 5d 20 61 6e 64 | 20 5c 5b 62 5c 5d 20 69 |[1\] and| \[b\] i|
|00005700| 73 20 61 73 73 69 67 6e | 65 64 20 5c 5b 32 5c 5d |s assign|ed \[2\]|
|00005710| 2e 0a 0a 20 20 20 20 5c | 44 53 20 5b 78 2c 79 5d |... \|DS [x,y]|
|00005720| 20 3a 3d 20 5b 79 2c 78 | 5d 3b 20 5c 44 45 0a 0a | := [y,x|]; \DE..|
|00005730| 53 77 61 70 20 5c 5b 78 | 5c 5d 20 61 6e 64 20 5c |Swap \[x|\] and \|
|00005740| 5b 79 5c 5d 2e 0a 0a 20 | 20 20 20 5c 44 53 20 66 |[y\]... | \DS f|
|00005750| 28 33 29 20 3a 3d 20 37 | 3b 20 5c 44 45 0a 0a 49 |(3) := 7|; \DE..I|
|00005760| 66 20 5c 5b 66 5c 5d 20 | 69 73 20 61 20 7b 5c 74 |f \[f\] |is a {\t|
|00005770| 74 20 74 75 70 6c 65 7d | 2c 20 74 68 65 6e 20 74 |t tuple}|, then t|
|00005780| 68 65 20 65 66 66 65 63 | 74 20 6f 66 20 74 68 69 |he effec|t of thi|
|00005790| 73 20 73 74 61 74 65 6d | 65 6e 74 0a 69 73 20 74 |s statem|ent.is t|
|000057a0| 6f 20 61 73 73 69 67 6e | 20 5c 5b 37 5c 5d 20 61 |o assign| \[7\] a|
|000057b0| 73 20 74 68 65 20 76 61 | 6c 75 65 20 6f 66 20 74 |s the va|lue of t|
|000057c0| 68 65 20 74 68 69 72 64 | 20 63 6f 6d 70 6f 6e 65 |he third| compone|
|000057d0| 6e 74 20 6f 66 20 5c 5b | 66 5c 5d 2e 0a 49 66 20 |nt of \[|f\]..If |
|000057e0| 5c 5b 66 5c 5d 20 69 73 | 20 61 20 7b 5c 74 74 20 |\[f\] is| a {\tt |
|000057f0| 6d 61 70 7d 2c 20 74 68 | 65 6e 20 69 74 73 20 65 |map}, th|en its e|
|00005800| 66 66 65 63 74 20 69 73 | 20 74 6f 20 72 65 70 6c |ffect is| to repl|
|00005810| 61 63 65 20 61 6c 6c 20 | 70 61 69 72 73 20 62 65 |ace all |pairs be|
|00005820| 67 69 6e 6e 69 6e 67 0a | 77 69 74 68 20 5c 5b 33 |ginning.|with \[3|
|00005830| 5c 5d 20 62 79 20 74 68 | 65 20 70 61 69 72 20 5c |\] by th|e pair \|
|00005840| 5b 5b 20 33 20 2c 20 37 | 20 5d 5c 5d 20 69 6e 20 |[[ 3 , 7| ]\] in |
|00005850| 74 68 65 20 73 65 74 20 | 6f 66 20 6f 72 64 65 72 |the set |of order|
|00005860| 65 64 20 70 61 69 72 73 | 20 5c 5b 66 5c 5d 2e 0a |ed pairs| \[f\]..|
|00005870| 49 66 20 5c 5b 66 5c 5d | 20 69 73 20 61 20 7b 5c |If \[f\]| is a {\|
|00005880| 74 74 20 66 75 6e 63 7d | 2c 20 74 68 65 6e 20 5c |tt func}|, then \|
|00005890| 5b 66 28 33 29 5c 5d 20 | 77 69 6c 6c 20 62 65 20 |[f(3)\] |will be |
|000058a0| 5c 5b 37 5c 5d 2c 20 61 | 6e 64 20 61 6c 6c 20 6f |\[7\], a|nd all o|
|000058b0| 74 68 65 72 20 76 61 6c | 75 65 73 0a 6f 66 20 5c |ther val|ues.of \|
|000058c0| 5b 66 5c 5d 20 77 69 6c | 6c 20 62 65 20 61 73 20 |[f\] wil|l be as |
|000058d0| 74 68 65 79 20 77 65 72 | 65 20 62 65 66 6f 72 65 |they wer|e before|
|000058e0| 20 74 68 65 20 61 73 73 | 69 67 6e 6d 65 6e 74 2e | the ass|ignment.|
|000058f0| 7d 0a 0a 5c 52 55 4c 45 | 7b 45 58 50 52 20 3b 7d |}..\RULE|{EXPR ;}|
|00005900| 0a 5c 43 4f 4d 4d 45 4e | 54 7b 54 68 65 20 65 78 |.\COMMEN|T{The ex|
|00005910| 70 72 65 73 73 69 6f 6e | 20 69 73 20 65 76 61 6c |pression| is eval|
|00005920| 75 61 74 65 64 20 61 6e | 64 20 74 68 65 20 76 61 |uated an|d the va|
|00005930| 6c 75 65 20 69 67 6e 6f | 72 65 64 2e 7d 0a 0a 5c |lue igno|red.}..\|
|00005940| 52 55 4c 45 7b 66 6f 72 | 20 20 20 49 54 45 52 41 |RULE{for| ITERA|
|00005950| 54 4f 52 20 64 6f 20 53 | 54 4d 54 53 20 65 6e 64 |TOR do S|TMTS end|
|00005960| 20 3b 7d 0a 5c 43 4f 4d | 4d 45 4e 54 7b 54 68 65 | ;}.\COM|MENT{The|
|00005970| 20 5c 5b 53 54 4d 54 53 | 5c 5d 20 61 72 65 20 65 | \[STMTS|\] are e|
|00005980| 78 65 63 75 74 65 64 20 | 66 6f 72 20 65 61 63 68 |xecuted |for each|
|00005990| 20 69 6e 73 74 61 6e 63 | 65 20 67 65 6e 65 72 61 | instanc|e genera|
|000059a0| 74 65 64 20 62 79 20 74 | 68 65 0a 69 74 65 72 61 |ted by t|he.itera|
|000059b0| 74 6f 72 2e 0a 4f 70 74 | 69 6f 6e 61 6c 6c 79 2c |tor..Opt|ionally,|
|000059c0| 20 6f 6e 65 20 6d 61 79 | 20 63 6c 6f 73 65 20 77 | one may| close w|
|000059d0| 69 74 68 20 5c 5b 65 6e | 64 20 66 6f 72 5c 5d 2e |ith \[en|d for\].|
|000059e0| 7d 0a 0a 5c 52 55 4c 45 | 7b 77 68 69 6c 65 20 45 |}..\RULE|{while E|
|000059f0| 58 50 52 20 64 6f 20 53 | 54 4d 54 53 20 65 6e 64 |XPR do S|TMTS end|
|00005a00| 20 3b 7d 0a 5c 43 4f 4d | 4d 45 4e 54 7b 5c 5b 45 | ;}.\COM|MENT{\[E|
|00005a10| 58 50 52 5c 5d 20 6d 75 | 73 74 20 65 76 61 6c 75 |XPR\] mu|st evalu|
|00005a20| 61 74 65 20 74 6f 20 61 | 20 7b 5c 74 74 20 42 4f |ate to a| {\tt BO|
|00005a30| 4f 4c 45 41 4e 7d 20 76 | 61 6c 75 65 2e 20 20 5c |OLEAN} v|alue. \|
|00005a40| 5b 45 58 50 52 5c 5d 20 | 69 73 20 65 76 61 6c 75 |[EXPR\] |is evalu|
|00005a50| 61 74 65 64 0a 61 6e 64 | 20 74 68 65 20 5c 5b 53 |ated.and| the \[S|
|00005a60| 54 4d 54 53 5c 5d 20 61 | 72 65 20 65 78 65 63 75 |TMTS\] a|re execu|
|00005a70| 74 65 64 20 72 65 70 65 | 74 69 74 69 76 65 6c 79 |ted repe|titively|
|00005a80| 20 61 73 20 6c 6f 6e 67 | 20 61 73 20 74 68 69 73 | as long| as this|
|00005a90| 0a 76 61 6c 75 65 20 69 | 73 20 65 71 75 61 6c 20 |.value i|s equal |
|00005aa0| 74 6f 20 7b 5c 74 74 20 | 74 72 75 65 7d 2e 0a 4f |to {\tt |true}..O|
|00005ab0| 70 74 69 6f 6e 61 6c 6c | 79 2c 20 6f 6e 65 20 6d |ptionall|y, one m|
|00005ac0| 61 79 20 63 6c 6f 73 65 | 20 77 69 74 68 20 5c 5b |ay close| with \[|
|00005ad0| 65 6e 64 20 77 68 69 6c | 65 5c 5d 2e 7d 0a 0a 5c |end whil|e\].}..\|
|00005ae0| 52 55 4c 45 7b 74 61 6b | 65 20 4c 48 53 20 66 72 |RULE{tak|e LHS fr|
|00005af0| 6f 6d 65 20 4c 48 53 20 | 3b 7d 0a 5c 43 4f 4d 4d |ome LHS |;}.\COMM|
|00005b00| 45 4e 54 7b 54 68 65 20 | 73 65 63 6f 6e 64 20 5c |ENT{The |second \|
|00005b10| 5b 4c 48 53 5c 5d 20 6d | 75 73 74 20 65 76 61 6c |[LHS\] m|ust eval|
|00005b20| 75 61 74 65 20 74 6f 20 | 61 20 7b 5c 74 74 20 74 |uate to |a {\tt t|
|00005b30| 75 70 6c 65 7d 20 28 6f | 72 20 61 20 7b 5c 74 74 |uple} (o|r a {\tt|
|00005b40| 20 73 74 72 69 6e 67 7d | 29 2e 0a 54 68 65 20 76 | string}|)..The v|
|00005b50| 61 6c 75 65 20 6f 66 20 | 69 74 73 0a 6c 61 73 74 |alue of |its.last|
|00005b60| 20 64 65 66 69 6e 65 64 | 20 63 6f 6d 70 6f 6e 65 | defined| compone|
|00005b70| 6e 74 20 28 6f 72 20 6c | 61 73 74 20 63 68 61 72 |nt (or l|ast char|
|00005b80| 61 63 74 65 72 29 0a 69 | 73 20 61 73 73 69 67 6e |acter).i|s assign|
|00005b90| 65 64 20 74 6f 20 74 68 | 65 20 66 69 72 73 74 20 |ed to th|e first |
|00005ba0| 5c 5b 4c 48 53 5c 5d 20 | 61 6e 64 0a 72 65 70 6c |\[LHS\] |and.repl|
|00005bb0| 61 63 65 64 20 62 79 20 | 5c 5b 4f 4d 5c 5d 20 69 |aced by |\[OM\] i|
|00005bc0| 6e 20 74 68 65 20 7b 5c | 74 74 20 74 75 70 6c 65 |n the {\|tt tuple|
|00005bd0| 7d 20 28 64 65 6c 65 74 | 65 64 20 66 72 6f 6d 20 |} (delet|ed from |
|00005be0| 74 68 65 20 7b 5c 74 74 | 20 73 74 72 69 6e 67 7d |the {\tt| string}|
|00005bf0| 29 2e 7d 0a 0a 5c 52 55 | 4c 45 7b 74 61 6b 65 20 |).}..\RU|LE{take |
|00005c00| 4c 48 53 20 66 72 6f 6d | 62 20 4c 48 53 20 3b 7d |LHS from|b LHS ;}|
|00005c10| 0a 5c 43 4f 4d 4d 45 4e | 54 7b 54 68 65 20 73 65 |.\COMMEN|T{The se|
|00005c20| 63 6f 6e 64 20 5c 5b 4c | 48 53 5c 5d 20 6d 75 73 |cond \[L|HS\] mus|
|00005c30| 74 20 65 76 61 6c 75 61 | 74 65 20 74 6f 20 61 20 |t evalua|te to a |
|00005c40| 7b 5c 74 74 20 74 75 70 | 6c 65 7d 20 28 6f 72 20 |{\tt tup|le} (or |
|00005c50| 61 20 7b 5c 74 74 20 73 | 74 72 69 6e 67 7d 29 2e |a {\tt s|tring}).|
|00005c60| 0a 54 68 65 20 76 61 6c | 75 65 20 6f 66 20 69 74 |.The val|ue of it|
|00005c70| 73 0a 66 69 72 73 74 20 | 63 6f 6d 70 6f 6e 65 6e |s.first |componen|
|00005c80| 74 20 28 64 65 66 69 6e | 65 64 20 6f 72 20 6e 6f |t (defin|ed or no|
|00005c90| 74 29 20 28 66 69 72 73 | 74 20 63 68 61 72 61 63 |t) (firs|t charac|
|00005ca0| 74 65 72 29 20 69 73 20 | 61 73 73 69 67 6e 65 64 |ter) is |assigned|
|00005cb0| 20 74 6f 20 74 68 65 20 | 66 69 72 73 74 0a 5c 5b | to the |first.\[|
|00005cc0| 4c 48 53 5c 5d 20 61 6e | 64 20 61 6c 6c 20 63 6f |LHS\] an|d all co|
|00005cd0| 6d 70 6f 6e 65 6e 74 73 | 20 6f 66 20 74 68 65 20 |mponents| of the |
|00005ce0| 7b 5c 74 74 20 74 75 70 | 6c 65 7d 20 28 63 68 61 |{\tt tup|le} (cha|
|00005cf0| 72 61 63 74 65 72 73 20 | 6f 66 20 74 68 65 20 7b |racters |of the {|
|00005d00| 5c 74 74 20 73 74 72 69 | 6e 67 7d 29 0a 61 72 65 |\tt stri|ng}).are|
|00005d10| 20 73 68 69 66 74 65 64 | 20 6c 65 66 74 20 6f 6e | shifted| left on|
|00005d20| 65 20 70 6c 61 63 65 2e | 0a 54 68 61 74 20 69 73 |e place.|.That is|
|00005d30| 2c 20 74 68 65 20 6e 65 | 77 20 76 61 6c 75 65 20 |, the ne|w value |
|00005d40| 6f 66 20 74 68 65 20 24 | 69 5e 7b 74 68 7d 24 20 |of the $|i^{th}$ |
|00005d50| 63 6f 6d 70 6f 6e 65 6e | 74 20 69 73 20 74 68 65 |componen|t is the|
|00005d60| 0a 6f 6c 64 20 76 61 6c | 75 65 20 6f 66 20 74 68 |.old val|ue of th|
|00005d70| 65 20 24 28 69 2b 31 29 | 5e 7b 73 74 7d 24 20 63 |e $(i+1)|^{st}$ c|
|00005d80| 6f 6d 70 6f 6e 65 6e 74 | 20 28 24 69 20 3d 20 31 |omponent| ($i = 1|
|00005d90| 2c 32 2c 2e 2e 2e 24 29 | 2e 7d 0a 0a 5c 52 55 4c |,2,...$)|.}..\RUL|
|00005da0| 45 7b 74 61 6b 65 20 4c | 48 53 20 66 72 6f 6d 20 |E{take L|HS from |
|00005db0| 4c 48 53 20 3b 7d 0a 5c | 43 4f 4d 4d 45 4e 54 7b |LHS ;}.\|COMMENT{|
|00005dc0| 54 68 65 20 73 65 63 6f | 6e 64 20 5c 5b 4c 48 53 |The seco|nd \[LHS|
|00005dd0| 5c 5d 20 6d 75 73 74 20 | 65 76 61 6c 75 61 74 65 |\] must |evaluate|
|00005de0| 20 74 6f 20 61 20 7b 5c | 74 74 20 20 73 65 74 7d | to a {\|tt set}|
|00005df0| 2e 20 20 41 6e 20 61 72 | 62 69 74 72 61 72 79 0a |. An ar|bitrary.|
|00005e00| 65 6c 65 6d 65 6e 74 20 | 6f 66 20 74 68 65 20 7b |element |of the {|
|00005e10| 5c 74 74 20 73 65 74 7d | 20 69 73 20 61 73 73 69 |\tt set}| is assi|
|00005e20| 67 6e 65 64 20 74 6f 20 | 74 68 65 0a 66 69 72 73 |gned to |the.firs|
|00005e30| 74 20 5c 5b 4c 48 53 5c | 5d 20 61 6e 64 20 72 65 |t \[LHS\|] and re|
|00005e40| 6d 6f 76 65 64 20 66 72 | 6f 6d 20 74 68 65 20 7b |moved fr|om the {|
|00005e50| 5c 74 74 20 73 65 74 7d | 2e 7d 0a 0a 5c 52 55 4c |\tt set}|.}..\RUL|
|00005e60| 45 7b 72 65 61 64 20 4c | 48 53 5c 5f 5c 2c 4c 49 |E{read L|HS\_\,LI|
|00005e70| 53 54 20 3b 7d 0a 5c 43 | 4f 4d 4d 45 4e 54 7b 49 |ST ;}.\C|OMMENT{I|
|00005e80| 53 45 54 4c 20 67 69 76 | 65 73 20 61 20 71 75 65 |SETL giv|es a que|
|00005e90| 73 74 69 6f 6e 20 6d 61 | 72 6b 20 60 60 5c 5b 3f |stion ma|rk ``\[?|
|00005ea0| 5c 5d 27 27 20 70 72 6f | 6d 70 74 20 61 6e 64 20 |\]'' pro|mpt and |
|00005eb0| 77 61 69 74 73 20 75 6e | 74 69 6c 20 61 6e 0a 65 |waits un|til an.e|
|00005ec0| 78 70 72 65 73 73 69 6f | 6e 20 68 61 73 20 62 65 |xpressio|n has be|
|00005ed0| 65 6e 20 65 6e 74 65 72 | 65 64 2e 20 20 54 68 69 |en enter|ed. Thi|
|00005ee0| 73 20 5c 5b 45 58 50 52 | 5c 5d 20 69 73 20 65 76 |s \[EXPR|\] is ev|
|00005ef0| 61 6c 75 61 74 65 64 20 | 61 6e 64 0a 74 68 65 20 |aluated |and.the |
|00005f00| 72 65 73 75 6c 74 20 69 | 73 20 61 73 73 69 67 6e |result i|s assign|
|00005f10| 65 64 20 74 6f 20 74 68 | 65 20 66 69 72 73 74 20 |ed to th|e first |
|00005f20| 69 74 65 6d 20 69 6e 20 | 5c 5b 4c 48 53 5c 5f 5c |item in |\[LHS\_\|
|00005f30| 2c 4c 49 53 54 5c 5d 2e | 20 20 54 68 69 73 0a 69 |,LIST\].| This.i|
|00005f40| 73 20 72 65 70 65 61 74 | 65 64 20 66 6f 72 20 65 |s repeat|ed for e|
|00005f50| 61 63 68 20 69 74 65 6d | 20 69 6e 20 5c 5b 4c 48 |ach item| in \[LH|
|00005f60| 53 5c 5f 5c 2c 4c 49 53 | 54 5c 5d 2e 0a 7b 5c 65 |S\_\,LIS|T\]..{\e|
|00005f70| 6d 20 4e 6f 74 65 7d 3a | 20 49 66 20 61 20 5c 5b |m Note}:| If a \[|
|00005f80| 72 65 61 64 5c 5d 20 73 | 74 61 74 65 6d 65 6e 74 |read\] s|tatement|
|00005f90| 20 61 70 70 65 61 72 73 | 20 69 6e 20 61 6e 20 5c | appears| in an \|
|00005fa0| 5b 21 69 6e 63 6c 75 64 | 65 5c 5d 20 66 69 6c 65 |[!includ|e\] file|
|00005fb0| 2c 0a 74 68 65 6e 20 49 | 53 45 54 4c 20 77 69 6c |,.then I|SETL wil|
|00005fc0| 6c 20 6c 6f 6f 6b 20 61 | 74 20 74 68 65 20 6e 65 |l look a|t the ne|
|00005fd0| 78 74 20 69 6e 70 75 74 | 20 69 6e 20 74 68 61 74 |xt input| in that|
|00005fe0| 0a 66 69 6c 65 20 66 6f | 72 20 74 68 65 20 65 78 |.file fo|r the ex|
|00005ff0| 70 72 65 73 73 69 6f 6e | 28 73 29 20 74 6f 20 62 |pression|(s) to b|
|00006000| 65 20 72 65 61 64 2e 7d | 0a 0a 5c 52 55 4c 45 7b |e read.}|..\RULE{|
|00006010| 72 65 61 64 20 4c 48 53 | 5c 5f 5c 2c 4c 49 53 54 |read LHS|\_\,LIST|
|00006020| 20 66 72 6f 6d 20 45 58 | 50 52 20 3b 7d 0a 5c 43 | from EX|PR ;}.\C|
|00006030| 4f 4d 4d 45 4e 54 7b 54 | 68 69 73 20 69 73 20 74 |OMMENT{T|his is t|
|00006040| 68 65 20 73 61 6d 65 20 | 61 73 20 5c 5b 72 65 61 |he same |as \[rea|
|00006050| 64 20 4c 48 53 5c 5f 5c | 2c 4c 49 53 54 3b 5c 5d |d LHS\_\|,LIST;\]|
|00006060| 20 65 78 63 65 70 74 20 | 74 68 61 74 20 5c 5b 45 | except |that \[E|
|00006070| 58 50 52 5c 5d 0a 6d 75 | 73 74 20 68 61 76 65 20 |XPR\].mu|st have |
|00006080| 61 20 76 61 6c 75 65 20 | 6f 66 20 74 79 70 65 20 |a value |of type |
|00006090| 7b 5c 74 74 20 66 69 6c | 65 7d 2e 20 20 54 68 65 |{\tt fil|e}. The|
|000060a0| 20 76 61 6c 75 65 73 20 | 74 6f 20 62 65 20 72 65 | values |to be re|
|000060b0| 61 64 0a 61 72 65 20 74 | 68 65 6e 20 74 61 6b 65 |ad.are t|hen take|
|000060c0| 6e 20 66 72 6f 6d 20 74 | 68 65 20 65 78 74 65 72 |n from t|he exter|
|000060d0| 6e 61 6c 20 66 69 6c 65 | 20 73 70 65 63 69 66 69 |nal file| specifi|
|000060e0| 65 64 20 62 79 20 74 68 | 65 0a 76 61 6c 75 65 20 |ed by th|e.value |
|000060f0| 6f 66 20 5c 5b 45 58 50 | 52 5c 5d 2e 0a 49 66 20 |of \[EXP|R\]..If |
|00006100| 74 68 65 72 65 20 61 72 | 65 20 6d 6f 72 65 20 76 |there ar|e more v|
|00006110| 61 6c 75 65 73 20 69 6e | 20 74 68 65 20 66 69 6c |alues in| the fil|
|00006120| 65 20 74 68 61 6e 20 69 | 74 65 6d 73 20 69 6e 20 |e than i|tems in |
|00006130| 5c 5b 4c 48 53 5c 5f 5c | 2c 4c 49 53 54 5c 5d 2c |\[LHS\_\|,LIST\],|
|00006140| 0a 74 68 65 6e 20 74 68 | 65 20 65 78 74 72 61 20 |.then th|e extra |
|00006150| 76 61 6c 75 65 73 20 61 | 72 65 20 6c 65 66 74 20 |values a|re left |
|00006160| 74 6f 20 62 65 20 72 65 | 61 64 20 6c 61 74 65 72 |to be re|ad later|
|00006170| 2e 20 20 49 66 20 74 68 | 65 72 65 0a 61 72 65 20 |. If th|ere.are |
|00006180| 6d 6f 72 65 20 69 74 65 | 6d 73 20 69 6e 20 5c 5b |more ite|ms in \[|
|00006190| 4c 48 53 5c 5f 5c 2c 4c | 49 53 54 5c 5d 20 74 68 |LHS\_\,L|IST\] th|
|000061a0| 61 6e 20 76 61 6c 75 65 | 73 20 69 6e 20 74 68 65 |an value|s in the|
|000061b0| 20 66 69 6c 65 2c 20 74 | 68 65 6e 0a 74 68 65 20 | file, t|hen.the |
|000061c0| 65 78 74 72 61 20 69 74 | 65 6d 73 20 61 72 65 20 |extra it|ems are |
|000061d0| 61 73 73 69 67 6e 65 64 | 20 74 68 65 20 76 61 6c |assigned| the val|
|000061e0| 75 65 20 5c 5b 4f 4d 5c | 5d 2e 20 20 49 6e 20 74 |ue \[OM\|]. In t|
|000061f0| 68 65 20 6c 61 74 74 65 | 72 0a 63 61 73 65 2c 20 |he latte|r.case, |
|00006200| 74 68 65 20 66 75 6e 63 | 74 69 6f 6e 20 5c 5b 65 |the func|tion \[e|
|00006210| 6f 66 5c 5d 20 77 69 6c | 6c 20 72 65 74 75 72 6e |of\] wil|l return|
|00006220| 20 7b 5c 74 74 20 74 72 | 75 65 7d 2c 20 77 68 65 | {\tt tr|ue}, whe|
|00006230| 6e 20 67 69 76 65 6e 20 | 74 68 65 20 66 69 6c 65 |n given |the file|
|00006240| 20 61 73 0a 70 61 72 61 | 6d 65 74 65 72 2e 0a 42 | as.para|meter..B|
|00006250| 65 66 6f 72 65 20 74 68 | 69 73 20 73 74 61 74 65 |efore th|is state|
|00006260| 6d 65 6e 74 20 69 73 20 | 65 78 65 63 75 74 65 64 |ment is |executed|
|00006270| 2c 20 74 68 65 20 65 78 | 74 65 72 6e 61 6c 20 66 |, the ex|ternal f|
|00006280| 69 6c 65 20 69 6e 0a 71 | 75 65 73 74 69 6f 6e 20 |ile in.q|uestion |
|00006290| 6d 75 73 74 20 68 61 76 | 65 20 62 65 65 6e 20 6f |must hav|e been o|
|000062a0| 70 65 6e 65 64 20 66 6f | 72 20 72 65 61 64 69 6e |pened fo|r readin|
|000062b0| 67 20 62 79 20 74 68 65 | 0a 70 72 65 2d 64 65 66 |g by the|.pre-def|
|000062c0| 69 6e 65 64 20 66 75 6e | 63 74 69 6f 6e 20 5c 5b |ined fun|ction \[|
|000062d0| 6f 70 65 6e 72 5c 5d 20 | 28 73 65 65 20 74 68 65 |openr\] |(see the|
|000062e0| 20 73 65 63 74 69 6f 6e | 20 6f 6e 20 66 69 6c 65 | section| on file|
|000062f0| 20 66 75 6e 63 74 69 6f | 6e 73 29 2e 7d 0a 0a 5c | functio|ns).}..\|
|00006300| 52 55 4c 45 7b 70 72 69 | 6e 74 20 45 58 50 52 5c |RULE{pri|nt EXPR\|
|00006310| 5f 5c 2c 4c 49 53 54 20 | 3b 7d 0a 5c 43 4f 4d 4d |_\,LIST |;}.\COMM|
|00006320| 45 4e 54 7b 45 61 63 68 | 20 65 78 70 72 65 73 73 |ENT{Each| express|
|00006330| 69 6f 6e 20 69 6e 20 5c | 5b 45 58 50 52 5c 5f 5c |ion in \|[EXPR\_\|
|00006340| 2c 4c 49 53 54 5c 5d 20 | 69 73 20 65 76 61 6c 75 |,LIST\] |is evalu|
|00006350| 61 74 65 64 20 61 6e 64 | 20 70 72 69 6e 74 65 64 |ated and| printed|
|00006360| 20 6f 6e 0a 73 74 61 6e | 64 61 72 64 20 6f 75 74 | on.stan|dard out|
|00006370| 70 75 74 2e 20 54 68 65 | 20 6f 75 74 70 75 74 20 |put. The| output |
|00006380| 76 61 6c 75 65 73 20 61 | 72 65 20 66 6f 72 6d 61 |values a|re forma|
|00006390| 74 65 64 20 74 6f 20 73 | 68 6f 77 0a 74 68 65 69 |ted to s|how.thei|
|000063a0| 72 20 73 74 72 75 63 74 | 75 72 65 2c 20 77 69 74 |r struct|ure, wit|
|000063b0| 68 20 6c 69 6e 65 20 62 | 72 65 61 6b 73 20 61 74 |h line b|reaks at|
|000063c0| 20 72 65 61 73 6f 6e 61 | 62 6c 65 20 70 6f 73 69 | reasona|ble posi|
|000063d0| 74 69 6f 6e 73 0a 61 6e | 64 20 6d 65 61 6e 69 6e |tions.an|d meanin|
|000063e0| 67 66 75 6c 20 69 6e 64 | 65 6e 74 61 74 69 6f 6e |gful ind|entation|
|000063f0| 2e 20 20 54 68 65 20 6f | 6e 6c 79 20 70 72 6f 62 |. The o|nly prob|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.