home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
You can browse this item here: ref2.tex
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| LaTeX document text
| default
| |
99%
| file
| LaTeX document, ASCII text, with CR line terminators
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/281 LaTeX (Subdocument)
| default
| |
100%
| detectItEasy
| Format: plain text[CR]
| default (weak)
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [R*ch] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 63 68 61 70 74 65 72 | 7b 4c 65 78 69 63 61 6c |\chapter|{Lexical|
|00000010| 20 61 6e 61 6c 79 73 69 | 73 7d 0d 0d 41 20 50 79 | analysi|s}..A Py|
|00000020| 74 68 6f 6e 20 70 72 6f | 67 72 61 6d 20 69 73 20 |thon pro|gram is |
|00000030| 72 65 61 64 20 62 79 20 | 61 20 7b 5c 65 6d 20 70 |read by |a {\em p|
|00000040| 61 72 73 65 72 7d 2e 20 | 20 49 6e 70 75 74 20 74 |arser}. | Input t|
|00000050| 6f 20 74 68 65 20 70 61 | 72 73 65 72 20 69 73 20 |o the pa|rser is |
|00000060| 61 0d 73 74 72 65 61 6d | 20 6f 66 20 7b 5c 65 6d |a.stream| of {\em|
|00000070| 20 74 6f 6b 65 6e 73 7d | 2c 20 67 65 6e 65 72 61 | tokens}|, genera|
|00000080| 74 65 64 20 62 79 20 74 | 68 65 20 7b 5c 65 6d 20 |ted by t|he {\em |
|00000090| 6c 65 78 69 63 61 6c 20 | 61 6e 61 6c 79 7a 65 72 |lexical |analyzer|
|000000a0| 7d 2e 20 20 54 68 69 73 | 0d 63 68 61 70 74 65 72 |}. This|.chapter|
|000000b0| 20 64 65 73 63 72 69 62 | 65 73 20 68 6f 77 20 74 | describ|es how t|
|000000c0| 68 65 20 6c 65 78 69 63 | 61 6c 20 61 6e 61 6c 79 |he lexic|al analy|
|000000d0| 7a 65 72 20 62 72 65 61 | 6b 73 20 61 20 66 69 6c |zer brea|ks a fil|
|000000e0| 65 20 69 6e 74 6f 20 74 | 6f 6b 65 6e 73 2e 0d 5c |e into t|okens..\|
|000000f0| 69 6e 64 65 78 7b 6c 65 | 78 69 63 61 6c 20 61 6e |index{le|xical an|
|00000100| 61 6c 79 73 69 73 7d 0d | 5c 69 6e 64 65 78 7b 70 |alysis}.|\index{p|
|00000110| 61 72 73 65 72 7d 0d 5c | 69 6e 64 65 78 7b 74 6f |arser}.\|index{to|
|00000120| 6b 65 6e 7d 0d 0d 5c 73 | 65 63 74 69 6f 6e 7b 4c |ken}..\s|ection{L|
|00000130| 69 6e 65 20 73 74 72 75 | 63 74 75 72 65 7d 0d 0d |ine stru|cture}..|
|00000140| 41 20 50 79 74 68 6f 6e | 20 70 72 6f 67 72 61 6d |A Python| program|
|00000150| 20 69 73 20 64 69 76 69 | 64 65 64 20 69 6e 20 61 | is divi|ded in a|
|00000160| 20 6e 75 6d 62 65 72 20 | 6f 66 20 6c 6f 67 69 63 | number |of logic|
|00000170| 61 6c 20 6c 69 6e 65 73 | 2e 20 20 54 68 65 20 65 |al lines|. The e|
|00000180| 6e 64 20 6f 66 0d 61 20 | 6c 6f 67 69 63 61 6c 20 |nd of.a |logical |
|00000190| 6c 69 6e 65 20 69 73 20 | 72 65 70 72 65 73 65 6e |line is |represen|
|000001a0| 74 65 64 20 62 79 20 74 | 68 65 20 74 6f 6b 65 6e |ted by t|he token|
|000001b0| 20 4e 45 57 4c 49 4e 45 | 2e 20 20 53 74 61 74 65 | NEWLINE|. State|
|000001c0| 6d 65 6e 74 73 20 63 61 | 6e 6e 6f 74 0d 63 72 6f |ments ca|nnot.cro|
|000001d0| 73 73 20 6c 6f 67 69 63 | 61 6c 20 6c 69 6e 65 20 |ss logic|al line |
|000001e0| 62 6f 75 6e 64 61 72 69 | 65 73 20 65 78 63 65 70 |boundari|es excep|
|000001f0| 74 20 77 68 65 72 65 20 | 4e 45 57 4c 49 4e 45 20 |t where |NEWLINE |
|00000200| 69 73 20 61 6c 6c 6f 77 | 65 64 20 62 79 20 74 68 |is allow|ed by th|
|00000210| 65 0d 73 79 6e 74 61 78 | 20 28 65 2e 67 2e 20 62 |e.syntax| (e.g. b|
|00000220| 65 74 77 65 65 6e 20 73 | 74 61 74 65 6d 65 6e 74 |etween s|tatement|
|00000230| 73 20 69 6e 20 63 6f 6d | 70 6f 75 6e 64 20 73 74 |s in com|pound st|
|00000240| 61 74 65 6d 65 6e 74 73 | 29 2e 0d 5c 69 6e 64 65 |atements|)..\inde|
|00000250| 78 7b 6c 69 6e 65 20 73 | 74 72 75 63 74 75 72 65 |x{line s|tructure|
|00000260| 7d 0d 5c 69 6e 64 65 78 | 7b 6c 6f 67 69 63 61 6c |}.\index|{logical|
|00000270| 20 6c 69 6e 65 7d 0d 5c | 69 6e 64 65 78 7b 4e 45 | line}.\|index{NE|
|00000280| 57 4c 49 4e 45 20 74 6f | 6b 65 6e 7d 0d 0d 5c 73 |WLINE to|ken}..\s|
|00000290| 75 62 73 65 63 74 69 6f | 6e 7b 43 6f 6d 6d 65 6e |ubsectio|n{Commen|
|000002a0| 74 73 7d 0d 0d 41 20 63 | 6f 6d 6d 65 6e 74 20 73 |ts}..A c|omment s|
|000002b0| 74 61 72 74 73 20 77 69 | 74 68 20 61 20 68 61 73 |tarts wi|th a has|
|000002c0| 68 20 63 68 61 72 61 63 | 74 65 72 20 28 5c 76 65 |h charac|ter (\ve|
|000002d0| 72 62 40 23 40 29 20 74 | 68 61 74 20 69 73 20 6e |rb@#@) t|hat is n|
|000002e0| 6f 74 20 70 61 72 74 20 | 6f 66 0d 61 20 73 74 72 |ot part |of.a str|
|000002f0| 69 6e 67 20 6c 69 74 65 | 72 61 6c 2c 20 61 6e 64 |ing lite|ral, and|
|00000300| 20 65 6e 64 73 20 61 74 | 20 74 68 65 20 65 6e 64 | ends at| the end|
|00000310| 20 6f 66 20 74 68 65 20 | 70 68 79 73 69 63 61 6c | of the |physical|
|00000320| 20 6c 69 6e 65 2e 20 20 | 41 20 63 6f 6d 6d 65 6e | line. |A commen|
|00000330| 74 0d 61 6c 77 61 79 73 | 20 73 69 67 6e 69 66 69 |t.always| signifi|
|00000340| 65 73 20 74 68 65 20 65 | 6e 64 20 6f 66 20 74 68 |es the e|nd of th|
|00000350| 65 20 6c 6f 67 69 63 61 | 6c 20 6c 69 6e 65 2e 20 |e logica|l line. |
|00000360| 20 43 6f 6d 6d 65 6e 74 | 73 20 61 72 65 20 69 67 | Comment|s are ig|
|00000370| 6e 6f 72 65 64 20 62 79 | 0d 74 68 65 20 73 79 6e |nored by|.the syn|
|00000380| 74 61 78 2e 0d 5c 69 6e | 64 65 78 7b 63 6f 6d 6d |tax..\in|dex{comm|
|00000390| 65 6e 74 7d 0d 5c 69 6e | 64 65 78 7b 6c 6f 67 69 |ent}.\in|dex{logi|
|000003a0| 63 61 6c 20 6c 69 6e 65 | 7d 0d 5c 69 6e 64 65 78 |cal line|}.\index|
|000003b0| 7b 70 68 79 73 69 63 61 | 6c 20 6c 69 6e 65 7d 0d |{physica|l line}.|
|000003c0| 5c 69 6e 64 65 78 7b 68 | 61 73 68 20 63 68 61 72 |\index{h|ash char|
|000003d0| 61 63 74 65 72 7d 0d 0d | 5c 73 75 62 73 65 63 74 |acter}..|\subsect|
|000003e0| 69 6f 6e 7b 45 78 70 6c | 69 63 69 74 20 6c 69 6e |ion{Expl|icit lin|
|000003f0| 65 20 6a 6f 69 6e 69 6e | 67 7d 0d 0d 54 77 6f 20 |e joinin|g}..Two |
|00000400| 6f 72 20 6d 6f 72 65 20 | 70 68 79 73 69 63 61 6c |or more |physical|
|00000410| 20 6c 69 6e 65 73 20 6d | 61 79 20 62 65 20 6a 6f | lines m|ay be jo|
|00000420| 69 6e 65 64 20 69 6e 74 | 6f 20 6c 6f 67 69 63 61 |ined int|o logica|
|00000430| 6c 20 6c 69 6e 65 73 20 | 75 73 69 6e 67 0d 62 61 |l lines |using.ba|
|00000440| 63 6b 73 6c 61 73 68 20 | 63 68 61 72 61 63 74 65 |ckslash |characte|
|00000450| 72 73 20 28 5c 76 65 72 | 62 2f 5c 2f 29 2c 20 61 |rs (\ver|b/\/), a|
|00000460| 73 20 66 6f 6c 6c 6f 77 | 73 3a 20 77 68 65 6e 20 |s follow|s: when |
|00000470| 61 20 70 68 79 73 69 63 | 61 6c 20 6c 69 6e 65 20 |a physic|al line |
|00000480| 65 6e 64 73 0d 69 6e 20 | 61 20 62 61 63 6b 73 6c |ends.in |a backsl|
|00000490| 61 73 68 20 74 68 61 74 | 20 69 73 20 6e 6f 74 20 |ash that| is not |
|000004a0| 70 61 72 74 20 6f 66 20 | 61 20 73 74 72 69 6e 67 |part of |a string|
|000004b0| 20 6c 69 74 65 72 61 6c | 20 6f 72 20 63 6f 6d 6d | literal| or comm|
|000004c0| 65 6e 74 2c 20 69 74 20 | 69 73 0d 6a 6f 69 6e 65 |ent, it |is.joine|
|000004d0| 64 20 77 69 74 68 20 74 | 68 65 20 66 6f 6c 6c 6f |d with t|he follo|
|000004e0| 77 69 6e 67 20 66 6f 72 | 6d 69 6e 67 20 61 20 73 |wing for|ming a s|
|000004f0| 69 6e 67 6c 65 20 6c 6f | 67 69 63 61 6c 20 6c 69 |ingle lo|gical li|
|00000500| 6e 65 2c 20 64 65 6c 65 | 74 69 6e 67 20 74 68 65 |ne, dele|ting the|
|00000510| 0d 62 61 63 6b 73 6c 61 | 73 68 20 61 6e 64 20 74 |.backsla|sh and t|
|00000520| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 65 6e 64 |he follo|wing end|
|00000530| 2d 6f 66 2d 6c 69 6e 65 | 20 63 68 61 72 61 63 74 |-of-line| charact|
|00000540| 65 72 2e 20 20 46 6f 72 | 20 65 78 61 6d 70 6c 65 |er. For| example|
|00000550| 3a 0d 5c 69 6e 64 65 78 | 7b 70 68 79 73 69 63 61 |:.\index|{physica|
|00000560| 6c 20 6c 69 6e 65 7d 0d | 5c 69 6e 64 65 78 7b 6c |l line}.|\index{l|
|00000570| 69 6e 65 20 6a 6f 69 6e | 69 6e 67 7d 0d 5c 69 6e |ine join|ing}.\in|
|00000580| 64 65 78 7b 6c 69 6e 65 | 20 63 6f 6e 74 69 6e 75 |dex{line| continu|
|00000590| 61 74 69 6f 6e 7d 0d 5c | 69 6e 64 65 78 7b 62 61 |ation}.\|index{ba|
|000005a0| 63 6b 73 6c 61 73 68 20 | 63 68 61 72 61 63 74 65 |ckslash |characte|
|000005b0| 72 7d 0d 25 0d 5c 62 65 | 67 69 6e 7b 76 65 72 62 |r}.%.\be|gin{verb|
|000005c0| 61 74 69 6d 7d 0d 69 66 | 20 31 39 30 30 20 3c 20 |atim}.if| 1900 < |
|000005d0| 79 65 61 72 20 3c 20 32 | 31 30 30 20 61 6e 64 20 |year < 2|100 and |
|000005e0| 31 20 3c 3d 20 6d 6f 6e | 74 68 20 3c 3d 20 31 32 |1 <= mon|th <= 12|
|000005f0| 20 5c 0d 20 20 20 61 6e | 64 20 31 20 3c 3d 20 64 | \. an|d 1 <= d|
|00000600| 61 79 20 3c 3d 20 33 31 | 20 61 6e 64 20 30 20 3c |ay <= 31| and 0 <|
|00000610| 3d 20 68 6f 75 72 20 3c | 20 32 34 20 5c 0d 20 20 |= hour <| 24 \. |
|00000620| 20 61 6e 64 20 30 20 3c | 3d 20 6d 69 6e 75 74 65 | and 0 <|= minute|
|00000630| 20 3c 20 36 30 20 61 6e | 64 20 30 20 3c 3d 20 73 | < 60 an|d 0 <= s|
|00000640| 65 63 6f 6e 64 20 3c 20 | 36 30 3a 20 20 20 23 20 |econd < |60: # |
|00000650| 4c 6f 6f 6b 73 20 6c 69 | 6b 65 20 61 20 76 61 6c |Looks li|ke a val|
|00000660| 69 64 20 64 61 74 65 0d | 20 20 20 20 20 20 20 20 |id date.| |
|00000670| 72 65 74 75 72 6e 20 31 | 0d 5c 65 6e 64 7b 76 65 |return 1|.\end{ve|
|00000680| 72 62 61 74 69 6d 7d 0d | 0d 41 20 6c 69 6e 65 20 |rbatim}.|.A line |
|00000690| 65 6e 64 69 6e 67 20 69 | 6e 20 61 20 62 61 63 6b |ending i|n a back|
|000006a0| 73 6c 61 73 68 20 63 61 | 6e 6e 6f 74 20 63 61 72 |slash ca|nnot car|
|000006b0| 72 79 20 61 20 63 6f 6d | 6d 65 6e 74 3b 20 61 20 |ry a com|ment; a |
|000006c0| 62 61 63 6b 73 6c 61 73 | 68 20 64 6f 65 73 0d 6e |backslas|h does.n|
|000006d0| 6f 74 20 63 6f 6e 74 69 | 6e 75 65 20 61 20 63 6f |ot conti|nue a co|
|000006e0| 6d 6d 65 6e 74 20 28 62 | 75 74 20 69 74 20 64 6f |mment (b|ut it do|
|000006f0| 65 73 20 63 6f 6e 74 69 | 6e 75 65 20 61 20 73 74 |es conti|nue a st|
|00000700| 72 69 6e 67 20 6c 69 74 | 65 72 61 6c 2c 20 73 65 |ring lit|eral, se|
|00000710| 65 0d 62 65 6c 6f 77 29 | 2e 0d 0d 5c 73 75 62 73 |e.below)|...\subs|
|00000720| 65 63 74 69 6f 6e 7b 49 | 6d 70 6c 69 63 69 74 20 |ection{I|mplicit |
|00000730| 6c 69 6e 65 20 6a 6f 69 | 6e 69 6e 67 7d 0d 0d 45 |line joi|ning}..E|
|00000740| 78 70 72 65 73 73 69 6f | 6e 73 20 69 6e 20 70 61 |xpressio|ns in pa|
|00000750| 72 65 6e 74 68 65 73 65 | 73 2c 20 73 71 75 61 72 |renthese|s, squar|
|00000760| 65 20 62 72 61 63 6b 65 | 74 73 20 6f 72 20 63 75 |e bracke|ts or cu|
|00000770| 72 6c 79 20 62 72 61 63 | 65 73 20 63 61 6e 20 62 |rly brac|es can b|
|00000780| 65 0d 73 70 6c 69 74 20 | 6f 76 65 72 20 6d 6f 72 |e.split |over mor|
|00000790| 65 20 74 68 61 6e 20 6f | 6e 65 20 70 68 79 73 69 |e than o|ne physi|
|000007a0| 63 61 6c 20 6c 69 6e 65 | 20 77 69 74 68 6f 75 74 |cal line| without|
|000007b0| 20 75 73 69 6e 67 20 62 | 61 63 6b 73 6c 61 73 68 | using b|ackslash|
|000007c0| 65 73 2e 0d 46 6f 72 20 | 65 78 61 6d 70 6c 65 3a |es..For |example:|
|000007d0| 0d 0d 5c 62 65 67 69 6e | 7b 76 65 72 62 61 74 69 |..\begin|{verbati|
|000007e0| 6d 7d 0d 6d 6f 6e 74 68 | 5f 6e 61 6d 65 73 20 3d |m}.month|_names =|
|000007f0| 20 5b 27 4a 61 6e 75 61 | 72 69 27 2c 20 27 46 65 | ['Janua|ri', 'Fe|
|00000800| 62 72 75 61 72 69 27 2c | 20 27 4d 61 61 72 74 27 |bruari',| 'Maart'|
|00000810| 2c 20 20 20 20 20 20 23 | 20 54 68 65 73 65 20 61 |, #| These a|
|00000820| 72 65 20 74 68 65 0d 20 | 20 20 20 20 20 20 20 20 |re the. | |
|00000830| 20 20 20 20 20 20 27 41 | 70 72 69 6c 27 2c 20 20 | 'A|pril', |
|00000840| 20 27 4d 65 69 27 2c 20 | 20 20 20 20 20 27 4a 75 | 'Mei', | 'Ju|
|00000850| 6e 69 27 2c 20 20 20 20 | 20 20 20 23 20 44 75 74 |ni', | # Dut|
|00000860| 63 68 20 6e 61 6d 65 73 | 0d 20 20 20 20 20 20 20 |ch names|. |
|00000870| 20 20 20 20 20 20 20 20 | 27 4a 75 6c 69 27 2c 20 | |'Juli', |
|00000880| 20 20 20 27 41 75 67 75 | 73 74 75 73 27 2c 20 27 | 'Augu|stus', '|
|00000890| 53 65 70 74 65 6d 62 65 | 72 27 2c 20 20 23 20 66 |Septembe|r', # f|
|000008a0| 6f 72 20 74 68 65 20 6d | 6f 6e 74 68 73 0d 20 20 |or the m|onths. |
|000008b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 27 4f 6b | | 'Ok|
|000008c0| 74 6f 62 65 72 27 2c 20 | 27 4e 6f 76 65 6d 62 65 |tober', |'Novembe|
|000008d0| 72 27 2c 20 27 44 65 63 | 65 6d 62 65 72 27 5d 20 |r', 'Dec|ember'] |
|000008e0| 20 20 23 20 6f 66 20 74 | 68 65 20 79 65 61 72 0d | # of t|he year.|
|000008f0| 5c 65 6e 64 7b 76 65 72 | 62 61 74 69 6d 7d 0d 0d |\end{ver|batim}..|
|00000900| 49 6d 70 6c 69 63 69 74 | 6c 79 20 63 6f 6e 74 69 |Implicit|ly conti|
|00000910| 6e 75 65 64 20 6c 69 6e | 65 73 20 63 61 6e 20 63 |nued lin|es can c|
|00000920| 61 72 72 79 20 63 6f 6d | 6d 65 6e 74 73 2e 20 20 |arry com|ments. |
|00000930| 54 68 65 20 69 6e 64 65 | 6e 74 61 74 69 6f 6e 20 |The inde|ntation |
|00000940| 6f 66 20 74 68 65 0d 63 | 6f 6e 74 69 6e 75 61 74 |of the.c|ontinuat|
|00000950| 69 6f 6e 20 6c 69 6e 65 | 73 20 69 73 20 6e 6f 74 |ion line|s is not|
|00000960| 20 69 6d 70 6f 72 74 61 | 6e 74 2e 20 20 42 6c 61 | importa|nt. Bla|
|00000970| 6e 6b 20 63 6f 6e 74 69 | 6e 75 61 74 69 6f 6e 20 |nk conti|nuation |
|00000980| 6c 69 6e 65 73 20 61 72 | 65 0d 61 6c 6c 6f 77 65 |lines ar|e.allowe|
|00000990| 64 2e 0d 0d 5c 73 75 62 | 73 65 63 74 69 6f 6e 7b |d...\sub|section{|
|000009a0| 42 6c 61 6e 6b 20 6c 69 | 6e 65 73 7d 0d 0d 41 20 |Blank li|nes}..A |
|000009b0| 6c 6f 67 69 63 61 6c 20 | 6c 69 6e 65 20 74 68 61 |logical |line tha|
|000009c0| 74 20 63 6f 6e 74 61 69 | 6e 73 20 6f 6e 6c 79 20 |t contai|ns only |
|000009d0| 73 70 61 63 65 73 2c 20 | 74 61 62 73 2c 20 61 6e |spaces, |tabs, an|
|000009e0| 64 20 70 6f 73 73 69 62 | 6c 79 20 61 0d 63 6f 6d |d possib|ly a.com|
|000009f0| 6d 65 6e 74 2c 20 69 73 | 20 69 67 6e 6f 72 65 64 |ment, is| ignored|
|00000a00| 20 28 69 2e 65 2e 2c 20 | 6e 6f 20 4e 45 57 4c 49 | (i.e., |no NEWLI|
|00000a10| 4e 45 20 74 6f 6b 65 6e | 20 69 73 20 67 65 6e 65 |NE token| is gene|
|00000a20| 72 61 74 65 64 29 2c 20 | 65 78 63 65 70 74 20 74 |rated), |except t|
|00000a30| 68 61 74 0d 64 75 72 69 | 6e 67 20 69 6e 74 65 72 |hat.duri|ng inter|
|00000a40| 61 63 74 69 76 65 20 69 | 6e 70 75 74 20 6f 66 20 |active i|nput of |
|00000a50| 73 74 61 74 65 6d 65 6e | 74 73 2c 20 61 6e 20 65 |statemen|ts, an e|
|00000a60| 6e 74 69 72 65 6c 79 20 | 62 6c 61 6e 6b 20 6c 6f |ntirely |blank lo|
|00000a70| 67 69 63 61 6c 20 6c 69 | 6e 65 0d 74 65 72 6d 69 |gical li|ne.termi|
|00000a80| 6e 61 74 65 73 20 61 20 | 6d 75 6c 74 69 2d 6c 69 |nates a |multi-li|
|00000a90| 6e 65 20 73 74 61 74 65 | 6d 65 6e 74 2e 0d 5c 69 |ne state|ment..\i|
|00000aa0| 6e 64 65 78 7b 62 6c 61 | 6e 6b 20 6c 69 6e 65 7d |ndex{bla|nk line}|
|00000ab0| 0d 0d 5c 73 75 62 73 65 | 63 74 69 6f 6e 7b 49 6e |..\subse|ction{In|
|00000ac0| 64 65 6e 74 61 74 69 6f | 6e 7d 0d 0d 4c 65 61 64 |dentatio|n}..Lead|
|00000ad0| 69 6e 67 20 77 68 69 74 | 65 73 70 61 63 65 20 28 |ing whit|espace (|
|00000ae0| 73 70 61 63 65 73 20 61 | 6e 64 20 74 61 62 73 29 |spaces a|nd tabs)|
|00000af0| 20 61 74 20 74 68 65 20 | 62 65 67 69 6e 6e 69 6e | at the |beginnin|
|00000b00| 67 20 6f 66 20 61 20 6c | 6f 67 69 63 61 6c 0d 6c |g of a l|ogical.l|
|00000b10| 69 6e 65 20 69 73 20 75 | 73 65 64 20 74 6f 20 63 |ine is u|sed to c|
|00000b20| 6f 6d 70 75 74 65 20 74 | 68 65 20 69 6e 64 65 6e |ompute t|he inden|
|00000b30| 74 61 74 69 6f 6e 20 6c | 65 76 65 6c 20 6f 66 20 |tation l|evel of |
|00000b40| 74 68 65 20 6c 69 6e 65 | 2c 20 77 68 69 63 68 20 |the line|, which |
|00000b50| 69 6e 0d 74 75 72 6e 20 | 69 73 20 75 73 65 64 20 |in.turn |is used |
|00000b60| 74 6f 20 64 65 74 65 72 | 6d 69 6e 65 20 74 68 65 |to deter|mine the|
|00000b70| 20 67 72 6f 75 70 69 6e | 67 20 6f 66 20 73 74 61 | groupin|g of sta|
|00000b80| 74 65 6d 65 6e 74 73 2e | 0d 5c 69 6e 64 65 78 7b |tements.|.\index{|
|00000b90| 69 6e 64 65 6e 74 61 74 | 69 6f 6e 7d 0d 5c 69 6e |indentat|ion}.\in|
|00000ba0| 64 65 78 7b 77 68 69 74 | 65 73 70 61 63 65 7d 0d |dex{whit|espace}.|
|00000bb0| 5c 69 6e 64 65 78 7b 6c | 65 61 64 69 6e 67 20 77 |\index{l|eading w|
|00000bc0| 68 69 74 65 73 70 61 63 | 65 7d 0d 5c 69 6e 64 65 |hitespac|e}.\inde|
|00000bd0| 78 7b 73 70 61 63 65 7d | 0d 5c 69 6e 64 65 78 7b |x{space}|.\index{|
|00000be0| 74 61 62 7d 0d 5c 69 6e | 64 65 78 7b 67 72 6f 75 |tab}.\in|dex{grou|
|00000bf0| 70 69 6e 67 7d 0d 5c 69 | 6e 64 65 78 7b 73 74 61 |ping}.\i|ndex{sta|
|00000c00| 74 65 6d 65 6e 74 20 67 | 72 6f 75 70 69 6e 67 7d |tement g|rouping}|
|00000c10| 0d 0d 46 69 72 73 74 2c | 20 74 61 62 73 20 61 72 |..First,| tabs ar|
|00000c20| 65 20 72 65 70 6c 61 63 | 65 64 20 28 66 72 6f 6d |e replac|ed (from|
|00000c30| 20 6c 65 66 74 20 74 6f | 20 72 69 67 68 74 29 20 | left to| right) |
|00000c40| 62 79 20 6f 6e 65 20 74 | 6f 20 65 69 67 68 74 20 |by one t|o eight |
|00000c50| 73 70 61 63 65 73 0d 73 | 75 63 68 20 74 68 61 74 |spaces.s|uch that|
|00000c60| 20 74 68 65 20 74 6f 74 | 61 6c 20 6e 75 6d 62 65 | the tot|al numbe|
|00000c70| 72 20 6f 66 20 63 68 61 | 72 61 63 74 65 72 73 20 |r of cha|racters |
|00000c80| 75 70 20 74 6f 20 74 68 | 65 72 65 20 69 73 20 61 |up to th|ere is a|
|00000c90| 20 6d 75 6c 74 69 70 6c | 65 20 6f 66 0d 65 69 67 | multipl|e of.eig|
|00000ca0| 68 74 20 28 74 68 69 73 | 20 69 73 20 69 6e 74 65 |ht (this| is inte|
|00000cb0| 6e 64 65 64 20 74 6f 20 | 62 65 20 74 68 65 20 73 |nded to |be the s|
|00000cc0| 61 6d 65 20 72 75 6c 65 | 20 61 73 20 75 73 65 64 |ame rule| as used|
|00000cd0| 20 62 79 20 7b 5c 55 4e | 49 58 7d 29 2e 20 20 54 | by {\UN|IX}). T|
|00000ce0| 68 65 0d 74 6f 74 61 6c | 20 6e 75 6d 62 65 72 20 |he.total| number |
|00000cf0| 6f 66 20 73 70 61 63 65 | 73 20 70 72 65 63 65 64 |of space|s preced|
|00000d00| 69 6e 67 20 74 68 65 20 | 66 69 72 73 74 20 6e 6f |ing the |first no|
|00000d10| 6e 2d 62 6c 61 6e 6b 20 | 63 68 61 72 61 63 74 65 |n-blank |characte|
|00000d20| 72 20 74 68 65 6e 0d 64 | 65 74 65 72 6d 69 6e 65 |r then.d|etermine|
|00000d30| 73 20 74 68 65 20 6c 69 | 6e 65 27 73 20 69 6e 64 |s the li|ne's ind|
|00000d40| 65 6e 74 61 74 69 6f 6e | 2e 20 20 49 6e 64 65 6e |entation|. Inden|
|00000d50| 74 61 74 69 6f 6e 20 63 | 61 6e 6e 6f 74 20 62 65 |tation c|annot be|
|00000d60| 20 73 70 6c 69 74 20 6f | 76 65 72 0d 6d 75 6c 74 | split o|ver.mult|
|00000d70| 69 70 6c 65 20 70 68 79 | 73 69 63 61 6c 20 6c 69 |iple phy|sical li|
|00000d80| 6e 65 73 20 75 73 69 6e | 67 20 62 61 63 6b 73 6c |nes usin|g backsl|
|00000d90| 61 73 68 65 73 2e 0d 0d | 54 68 65 20 69 6e 64 65 |ashes...|The inde|
|00000da0| 6e 74 61 74 69 6f 6e 20 | 6c 65 76 65 6c 73 20 6f |ntation |levels o|
|00000db0| 66 20 63 6f 6e 73 65 63 | 75 74 69 76 65 20 6c 69 |f consec|utive li|
|00000dc0| 6e 65 73 20 61 72 65 20 | 75 73 65 64 20 74 6f 20 |nes are |used to |
|00000dd0| 67 65 6e 65 72 61 74 65 | 0d 49 4e 44 45 4e 54 20 |generate|.INDENT |
|00000de0| 61 6e 64 20 44 45 44 45 | 4e 54 20 74 6f 6b 65 6e |and DEDE|NT token|
|00000df0| 73 2c 20 75 73 69 6e 67 | 20 61 20 73 74 61 63 6b |s, using| a stack|
|00000e00| 2c 20 61 73 20 66 6f 6c | 6c 6f 77 73 2e 0d 5c 69 |, as fol|lows..\i|
|00000e10| 6e 64 65 78 7b 49 4e 44 | 45 4e 54 20 74 6f 6b 65 |ndex{IND|ENT toke|
|00000e20| 6e 7d 0d 5c 69 6e 64 65 | 78 7b 44 45 44 45 4e 54 |n}.\inde|x{DEDENT|
|00000e30| 20 74 6f 6b 65 6e 7d 0d | 0d 42 65 66 6f 72 65 20 | token}.|.Before |
|00000e40| 74 68 65 20 66 69 72 73 | 74 20 6c 69 6e 65 20 6f |the firs|t line o|
|00000e50| 66 20 74 68 65 20 66 69 | 6c 65 20 69 73 20 72 65 |f the fi|le is re|
|00000e60| 61 64 2c 20 61 20 73 69 | 6e 67 6c 65 20 7a 65 72 |ad, a si|ngle zer|
|00000e70| 6f 20 69 73 20 70 75 73 | 68 65 64 20 6f 6e 0d 74 |o is pus|hed on.t|
|00000e80| 68 65 20 73 74 61 63 6b | 3b 20 74 68 69 73 20 77 |he stack|; this w|
|00000e90| 69 6c 6c 20 6e 65 76 65 | 72 20 62 65 20 70 6f 70 |ill neve|r be pop|
|00000ea0| 70 65 64 20 6f 66 66 20 | 61 67 61 69 6e 2e 20 20 |ped off |again. |
|00000eb0| 54 68 65 20 6e 75 6d 62 | 65 72 73 20 70 75 73 68 |The numb|ers push|
|00000ec0| 65 64 20 6f 6e 0d 74 68 | 65 20 73 74 61 63 6b 20 |ed on.th|e stack |
|00000ed0| 77 69 6c 6c 20 61 6c 77 | 61 79 73 20 62 65 20 73 |will alw|ays be s|
|00000ee0| 74 72 69 63 74 6c 79 20 | 69 6e 63 72 65 61 73 69 |trictly |increasi|
|00000ef0| 6e 67 20 66 72 6f 6d 20 | 62 6f 74 74 6f 6d 20 74 |ng from |bottom t|
|00000f00| 6f 20 74 6f 70 2e 20 20 | 41 74 0d 74 68 65 20 62 |o top. |At.the b|
|00000f10| 65 67 69 6e 6e 69 6e 67 | 20 6f 66 20 65 61 63 68 |eginning| of each|
|00000f20| 20 6c 6f 67 69 63 61 6c | 20 6c 69 6e 65 2c 20 74 | logical| line, t|
|00000f30| 68 65 20 6c 69 6e 65 27 | 73 20 69 6e 64 65 6e 74 |he line'|s indent|
|00000f40| 61 74 69 6f 6e 20 6c 65 | 76 65 6c 20 69 73 0d 63 |ation le|vel is.c|
|00000f50| 6f 6d 70 61 72 65 64 20 | 74 6f 20 74 68 65 20 74 |ompared |to the t|
|00000f60| 6f 70 20 6f 66 20 74 68 | 65 20 73 74 61 63 6b 2e |op of th|e stack.|
|00000f70| 20 20 49 66 20 69 74 20 | 69 73 20 65 71 75 61 6c | If it |is equal|
|00000f80| 2c 20 6e 6f 74 68 69 6e | 67 20 68 61 70 70 65 6e |, nothin|g happen|
|00000f90| 73 2e 0d 49 66 20 69 74 | 20 69 73 20 6c 61 72 67 |s..If it| is larg|
|00000fa0| 65 72 2c 20 69 74 20 69 | 73 20 70 75 73 68 65 64 |er, it i|s pushed|
|00000fb0| 20 6f 6e 20 74 68 65 20 | 73 74 61 63 6b 2c 20 61 | on the |stack, a|
|00000fc0| 6e 64 20 6f 6e 65 20 49 | 4e 44 45 4e 54 20 74 6f |nd one I|NDENT to|
|00000fd0| 6b 65 6e 20 69 73 0d 67 | 65 6e 65 72 61 74 65 64 |ken is.g|enerated|
|00000fe0| 2e 20 20 49 66 20 69 74 | 20 69 73 20 73 6d 61 6c |. If it| is smal|
|00000ff0| 6c 65 72 2c 20 69 74 20 | 7b 5c 65 6d 20 6d 75 73 |ler, it |{\em mus|
|00001000| 74 7d 20 62 65 20 6f 6e | 65 20 6f 66 20 74 68 65 |t} be on|e of the|
|00001010| 20 6e 75 6d 62 65 72 73 | 0d 6f 63 63 75 72 72 69 | numbers|.occurri|
|00001020| 6e 67 20 6f 6e 20 74 68 | 65 20 73 74 61 63 6b 3b |ng on th|e stack;|
|00001030| 20 61 6c 6c 20 6e 75 6d | 62 65 72 73 20 6f 6e 20 | all num|bers on |
|00001040| 74 68 65 20 73 74 61 63 | 6b 20 74 68 61 74 20 61 |the stac|k that a|
|00001050| 72 65 20 6c 61 72 67 65 | 72 20 61 72 65 0d 70 6f |re large|r are.po|
|00001060| 70 70 65 64 20 6f 66 66 | 2c 20 61 6e 64 20 66 6f |pped off|, and fo|
|00001070| 72 20 65 61 63 68 20 6e | 75 6d 62 65 72 20 70 6f |r each n|umber po|
|00001080| 70 70 65 64 20 6f 66 66 | 20 61 20 44 45 44 45 4e |pped off| a DEDEN|
|00001090| 54 20 74 6f 6b 65 6e 20 | 69 73 0d 67 65 6e 65 72 |T token |is.gener|
|000010a0| 61 74 65 64 2e 20 20 41 | 74 20 74 68 65 20 65 6e |ated. A|t the en|
|000010b0| 64 20 6f 66 20 74 68 65 | 20 66 69 6c 65 2c 20 61 |d of the| file, a|
|000010c0| 20 44 45 44 45 4e 54 20 | 74 6f 6b 65 6e 20 69 73 | DEDENT |token is|
|000010d0| 20 67 65 6e 65 72 61 74 | 65 64 20 66 6f 72 0d 65 | generat|ed for.e|
|000010e0| 61 63 68 20 6e 75 6d 62 | 65 72 20 72 65 6d 61 69 |ach numb|er remai|
|000010f0| 6e 69 6e 67 20 6f 6e 20 | 74 68 65 20 73 74 61 63 |ning on |the stac|
|00001100| 6b 20 74 68 61 74 20 69 | 73 20 6c 61 72 67 65 72 |k that i|s larger|
|00001110| 20 74 68 61 6e 20 7a 65 | 72 6f 2e 0d 0d 48 65 72 | than ze|ro...Her|
|00001120| 65 20 69 73 20 61 6e 20 | 65 78 61 6d 70 6c 65 20 |e is an |example |
|00001130| 6f 66 20 61 20 63 6f 72 | 72 65 63 74 6c 79 20 28 |of a cor|rectly (|
|00001140| 74 68 6f 75 67 68 20 63 | 6f 6e 66 75 73 69 6e 67 |though c|onfusing|
|00001150| 6c 79 29 20 69 6e 64 65 | 6e 74 65 64 20 70 69 65 |ly) inde|nted pie|
|00001160| 63 65 0d 6f 66 20 50 79 | 74 68 6f 6e 20 63 6f 64 |ce.of Py|thon cod|
|00001170| 65 3a 0d 0d 5c 62 65 67 | 69 6e 7b 76 65 72 62 61 |e:..\beg|in{verba|
|00001180| 74 69 6d 7d 0d 64 65 66 | 20 70 65 72 6d 28 6c 29 |tim}.def| perm(l)|
|00001190| 3a 0d 20 20 20 20 20 20 | 20 20 23 20 43 6f 6d 70 |:. | # Comp|
|000011a0| 75 74 65 20 74 68 65 20 | 6c 69 73 74 20 6f 66 20 |ute the |list of |
|000011b0| 61 6c 6c 20 70 65 72 6d | 75 74 61 74 69 6f 6e 73 |all perm|utations|
|000011c0| 20 6f 66 20 6c 0d 0d 20 | 20 20 20 69 66 20 6c 65 | of l.. | if le|
|000011d0| 6e 28 6c 29 20 3c 3d 20 | 31 3a 0d 20 20 20 20 20 |n(l) <= |1:. |
|000011e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 72 65 74 | | ret|
|000011f0| 75 72 6e 20 5b 6c 5d 0d | 20 20 20 20 72 20 3d 20 |urn [l].| r = |
|00001200| 5b 5d 0d 20 20 20 20 66 | 6f 72 20 69 20 69 6e 20 |[]. f|or i in |
|00001210| 72 61 6e 67 65 28 6c 65 | 6e 28 6c 29 29 3a 0d 20 |range(le|n(l)):. |
|00001220| 20 20 20 20 20 20 20 20 | 20 20 20 20 73 20 3d 20 | | s = |
|00001230| 6c 5b 3a 69 5d 20 2b 20 | 6c 5b 69 2b 31 3a 5d 0d |l[:i] + |l[i+1:].|
|00001240| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 70 20 3d | | p =|
|00001250| 20 70 65 72 6d 28 73 29 | 0d 20 20 20 20 20 20 20 | perm(s)|. |
|00001260| 20 20 20 20 20 20 66 6f | 72 20 78 20 69 6e 20 70 | fo|r x in p|
|00001270| 3a 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |:. | |
|00001280| 72 2e 61 70 70 65 6e 64 | 28 6c 5b 69 3a 69 2b 31 |r.append|(l[i:i+1|
|00001290| 5d 20 2b 20 78 29 0d 20 | 20 20 20 72 65 74 75 72 |] + x). | retur|
|000012a0| 6e 20 72 0d 5c 65 6e 64 | 7b 76 65 72 62 61 74 69 |n r.\end|{verbati|
|000012b0| 6d 7d 0d 0d 54 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |m}..The |followin|
|000012c0| 67 20 65 78 61 6d 70 6c | 65 20 73 68 6f 77 73 20 |g exampl|e shows |
|000012d0| 76 61 72 69 6f 75 73 20 | 69 6e 64 65 6e 74 61 74 |various |indentat|
|000012e0| 69 6f 6e 20 65 72 72 6f | 72 73 3a 0d 0d 5c 62 65 |ion erro|rs:..\be|
|000012f0| 67 69 6e 7b 76 65 72 62 | 61 74 69 6d 7d 0d 20 20 |gin{verb|atim}. |
|00001300| 20 20 64 65 66 20 70 65 | 72 6d 28 6c 29 3a 20 20 | def pe|rm(l): |
|00001310| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001320| 20 20 20 20 20 20 23 20 | 65 72 72 6f 72 3a 20 66 | # |error: f|
|00001330| 69 72 73 74 20 6c 69 6e | 65 20 69 6e 64 65 6e 74 |irst lin|e indent|
|00001340| 65 64 0d 20 20 20 20 66 | 6f 72 20 69 20 69 6e 20 |ed. f|or i in |
|00001350| 72 61 6e 67 65 28 6c 65 | 6e 28 6c 29 29 3a 20 20 |range(le|n(l)): |
|00001360| 20 20 20 20 20 20 20 20 | 20 20 20 23 20 65 72 72 | | # err|
|00001370| 6f 72 3a 20 6e 6f 74 20 | 69 6e 64 65 6e 74 65 64 |or: not |indented|
|00001380| 0d 20 20 20 20 20 20 20 | 20 73 20 3d 20 6c 5b 3a |. | s = l[:|
|00001390| 69 5d 20 2b 20 6c 5b 69 | 2b 31 3a 5d 0d 20 20 20 |i] + l[i|+1:]. |
|000013a0| 20 20 20 20 20 20 20 20 | 20 70 20 3d 20 70 65 72 | | p = per|
|000013b0| 6d 28 6c 5b 3a 69 5d 20 | 2b 20 6c 5b 69 2b 31 3a |m(l[:i] |+ l[i+1:|
|000013c0| 5d 29 20 20 20 23 20 65 | 72 72 6f 72 3a 20 75 6e |]) # e|rror: un|
|000013d0| 65 78 70 65 63 74 65 64 | 20 69 6e 64 65 6e 74 0d |expected| indent.|
|000013e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 66 6f 72 20 | | for |
|000013f0| 78 20 69 6e 20 70 3a 0d | 20 20 20 20 20 20 20 20 |x in p:.| |
|00001400| 20 20 20 20 20 20 20 20 | 20 20 20 20 72 2e 61 70 | | r.ap|
|00001410| 70 65 6e 64 28 6c 5b 69 | 3a 69 2b 31 5d 20 2b 20 |pend(l[i|:i+1] + |
|00001420| 78 29 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |x). | |
|00001430| 20 20 20 72 65 74 75 72 | 6e 20 72 20 20 20 20 20 | retur|n r |
|00001440| 20 20 20 20 20 20 20 20 | 20 20 20 23 20 65 72 72 | | # err|
|00001450| 6f 72 3a 20 69 6e 63 6f | 6e 73 69 73 74 65 6e 74 |or: inco|nsistent|
|00001460| 20 64 65 64 65 6e 74 0d | 5c 65 6e 64 7b 76 65 72 | dedent.|\end{ver|
|00001470| 62 61 74 69 6d 7d 0d 0d | 28 41 63 74 75 61 6c 6c |batim}..|(Actuall|
|00001480| 79 2c 20 74 68 65 20 66 | 69 72 73 74 20 74 68 72 |y, the f|irst thr|
|00001490| 65 65 20 65 72 72 6f 72 | 73 20 61 72 65 20 64 65 |ee error|s are de|
|000014a0| 74 65 63 74 65 64 20 62 | 79 20 74 68 65 20 70 61 |tected b|y the pa|
|000014b0| 72 73 65 72 3b 20 6f 6e | 6c 79 20 74 68 65 0d 6c |rser; on|ly the.l|
|000014c0| 61 73 74 20 65 72 72 6f | 72 20 69 73 20 66 6f 75 |ast erro|r is fou|
|000014d0| 6e 64 20 62 79 20 74 68 | 65 20 6c 65 78 69 63 61 |nd by th|e lexica|
|000014e0| 6c 20 61 6e 61 6c 79 7a | 65 72 20 2d 2d 2d 20 74 |l analyz|er --- t|
|000014f0| 68 65 20 69 6e 64 65 6e | 74 61 74 69 6f 6e 20 6f |he inden|tation o|
|00001500| 66 0d 5c 76 65 72 62 40 | 72 65 74 75 72 6e 20 72 |f.\verb@|return r|
|00001510| 40 20 64 6f 65 73 20 6e | 6f 74 20 6d 61 74 63 68 |@ does n|ot match|
|00001520| 20 61 20 6c 65 76 65 6c | 20 70 6f 70 70 65 64 20 | a level| popped |
|00001530| 6f 66 66 20 74 68 65 20 | 73 74 61 63 6b 2e 29 0d |off the |stack.).|
|00001540| 0d 5c 73 65 63 74 69 6f | 6e 7b 4f 74 68 65 72 20 |.\sectio|n{Other |
|00001550| 74 6f 6b 65 6e 73 7d 0d | 0d 42 65 73 69 64 65 73 |tokens}.|.Besides|
|00001560| 20 4e 45 57 4c 49 4e 45 | 2c 20 49 4e 44 45 4e 54 | NEWLINE|, INDENT|
|00001570| 20 61 6e 64 20 44 45 44 | 45 4e 54 2c 20 74 68 65 | and DED|ENT, the|
|00001580| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 63 61 74 65 67 | followi|ng categ|
|00001590| 6f 72 69 65 73 20 6f 66 | 20 74 6f 6b 65 6e 73 0d |ories of| tokens.|
|000015a0| 65 78 69 73 74 3a 20 69 | 64 65 6e 74 69 66 69 65 |exist: i|dentifie|
|000015b0| 72 73 2c 20 6b 65 79 77 | 6f 72 64 73 2c 20 6c 69 |rs, keyw|ords, li|
|000015c0| 74 65 72 61 6c 73 2c 20 | 6f 70 65 72 61 74 6f 72 |terals, |operator|
|000015d0| 73 2c 20 61 6e 64 20 64 | 65 6c 69 6d 69 74 65 72 |s, and d|elimiter|
|000015e0| 73 2e 0d 53 70 61 63 65 | 73 20 61 6e 64 20 74 61 |s..Space|s and ta|
|000015f0| 62 73 20 61 72 65 20 6e | 6f 74 20 74 6f 6b 65 6e |bs are n|ot token|
|00001600| 73 2c 20 62 75 74 20 73 | 65 72 76 65 20 74 6f 20 |s, but s|erve to |
|00001610| 64 65 6c 69 6d 69 74 20 | 74 6f 6b 65 6e 73 2e 20 |delimit |tokens. |
|00001620| 20 57 68 65 72 65 0d 61 | 6d 62 69 67 75 69 74 79 | Where.a|mbiguity|
|00001630| 20 65 78 69 73 74 73 2c | 20 61 20 74 6f 6b 65 6e | exists,| a token|
|00001640| 20 63 6f 6d 70 72 69 73 | 65 73 20 74 68 65 20 6c | compris|es the l|
|00001650| 6f 6e 67 65 73 74 20 70 | 6f 73 73 69 62 6c 65 20 |ongest p|ossible |
|00001660| 73 74 72 69 6e 67 20 74 | 68 61 74 0d 66 6f 72 6d |string t|hat.form|
|00001670| 73 20 61 20 6c 65 67 61 | 6c 20 74 6f 6b 65 6e 2c |s a lega|l token,|
|00001680| 20 77 68 65 6e 20 72 65 | 61 64 20 66 72 6f 6d 20 | when re|ad from |
|00001690| 6c 65 66 74 20 74 6f 20 | 72 69 67 68 74 2e 0d 0d |left to |right...|
|000016a0| 5c 73 65 63 74 69 6f 6e | 7b 49 64 65 6e 74 69 66 |\section|{Identif|
|000016b0| 69 65 72 73 7d 0d 0d 49 | 64 65 6e 74 69 66 69 65 |iers}..I|dentifie|
|000016c0| 72 73 20 28 61 6c 73 6f | 20 72 65 66 65 72 72 65 |rs (also| referre|
|000016d0| 64 20 74 6f 20 61 73 20 | 6e 61 6d 65 73 29 20 61 |d to as |names) a|
|000016e0| 72 65 20 64 65 73 63 72 | 69 62 65 64 20 62 79 20 |re descr|ibed by |
|000016f0| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 0d 6c 65 |the foll|owing.le|
|00001700| 78 69 63 61 6c 20 64 65 | 66 69 6e 69 74 69 6f 6e |xical de|finition|
|00001710| 73 3a 0d 5c 69 6e 64 65 | 78 7b 69 64 65 6e 74 69 |s:.\inde|x{identi|
|00001720| 66 69 65 72 7d 0d 5c 69 | 6e 64 65 78 7b 6e 61 6d |fier}.\i|ndex{nam|
|00001730| 65 7d 0d 0d 5c 62 65 67 | 69 6e 7b 76 65 72 62 61 |e}..\beg|in{verba|
|00001740| 74 69 6d 7d 0d 69 64 65 | 6e 74 69 66 69 65 72 3a |tim}.ide|ntifier:|
|00001750| 20 20 20 20 20 28 6c 65 | 74 74 65 72 7c 22 5f 22 | (le|tter|"_"|
|00001760| 29 20 28 6c 65 74 74 65 | 72 7c 64 69 67 69 74 7c |) (lette|r|digit||
|00001770| 22 5f 22 29 2a 0d 6c 65 | 74 74 65 72 3a 20 20 20 |"_")*.le|tter: |
|00001780| 20 20 20 20 20 20 6c 6f | 77 65 72 63 61 73 65 20 | lo|wercase |
|00001790| 7c 20 75 70 70 65 72 63 | 61 73 65 0d 6c 6f 77 65 || upperc|ase.lowe|
|000017a0| 72 63 61 73 65 3a 20 20 | 20 20 20 20 22 61 22 2e |rcase: | "a".|
|000017b0| 2e 2e 22 7a 22 0d 75 70 | 70 65 72 63 61 73 65 3a |.."z".up|percase:|
|000017c0| 20 20 20 20 20 20 22 41 | 22 2e 2e 2e 22 5a 22 0d | "A|"..."Z".|
|000017d0| 64 69 67 69 74 3a 20 20 | 20 20 20 20 20 20 20 20 |digit: | |
|000017e0| 22 30 22 2e 2e 2e 22 39 | 22 0d 5c 65 6e 64 7b 76 |"0"..."9|".\end{v|
|000017f0| 65 72 62 61 74 69 6d 7d | 0d 0d 49 64 65 6e 74 69 |erbatim}|..Identi|
|00001800| 66 69 65 72 73 20 61 72 | 65 20 75 6e 6c 69 6d 69 |fiers ar|e unlimi|
|00001810| 74 65 64 20 69 6e 20 6c | 65 6e 67 74 68 2e 20 20 |ted in l|ength. |
|00001820| 43 61 73 65 20 69 73 20 | 73 69 67 6e 69 66 69 63 |Case is |signific|
|00001830| 61 6e 74 2e 0d 0d 5c 73 | 75 62 73 65 63 74 69 6f |ant...\s|ubsectio|
|00001840| 6e 7b 4b 65 79 77 6f 72 | 64 73 7d 0d 0d 54 68 65 |n{Keywor|ds}..The|
|00001850| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 69 64 65 6e 74 | followi|ng ident|
|00001860| 69 66 69 65 72 73 20 61 | 72 65 20 75 73 65 64 20 |ifiers a|re used |
|00001870| 61 73 20 72 65 73 65 72 | 76 65 64 20 77 6f 72 64 |as reser|ved word|
|00001880| 73 2c 20 6f 72 20 7b 5c | 65 6d 0d 6b 65 79 77 6f |s, or {\|em.keywo|
|00001890| 72 64 73 7d 20 6f 66 20 | 74 68 65 20 6c 61 6e 67 |rds} of |the lang|
|000018a0| 75 61 67 65 2c 20 61 6e | 64 20 63 61 6e 6e 6f 74 |uage, an|d cannot|
|000018b0| 20 62 65 20 75 73 65 64 | 20 61 73 20 6f 72 64 69 | be used| as ordi|
|000018c0| 6e 61 72 79 0d 69 64 65 | 6e 74 69 66 69 65 72 73 |nary.ide|ntifiers|
|000018d0| 2e 20 20 54 68 65 79 20 | 6d 75 73 74 20 62 65 20 |. They |must be |
|000018e0| 73 70 65 6c 6c 65 64 20 | 65 78 61 63 74 6c 79 20 |spelled |exactly |
|000018f0| 61 73 20 77 72 69 74 74 | 65 6e 20 68 65 72 65 3a |as writt|en here:|
|00001900| 0d 5c 69 6e 64 65 78 7b | 6b 65 79 77 6f 72 64 7d |.\index{|keyword}|
|00001910| 0d 5c 69 6e 64 65 78 7b | 72 65 73 65 72 76 65 64 |.\index{|reserved|
|00001920| 20 77 6f 72 64 7d 0d 0d | 5c 62 65 67 69 6e 7b 76 | word}..|\begin{v|
|00001930| 65 72 62 61 74 69 6d 7d | 0d 61 63 63 65 73 73 20 |erbatim}|.access |
|00001940| 20 20 20 20 64 65 6c 20 | 20 20 20 20 20 20 20 66 | del | f|
|00001950| 72 6f 6d 20 20 20 20 20 | 20 20 6c 61 6d 62 64 61 |rom | lambda|
|00001960| 20 20 20 20 20 72 65 74 | 75 72 6e 20 20 20 20 0d | ret|urn .|
|00001970| 61 6e 64 20 20 20 20 20 | 20 20 20 65 6c 69 66 20 |and | elif |
|00001980| 20 20 20 20 20 20 67 6c | 6f 62 61 6c 20 20 20 20 | gl|obal |
|00001990| 20 6e 6f 74 20 20 20 20 | 20 20 20 20 74 72 79 20 | not | try |
|000019a0| 20 20 20 20 20 20 0d 62 | 72 65 61 6b 20 20 20 20 | .b|reak |
|000019b0| 20 20 65 6c 73 65 20 20 | 20 20 20 20 20 69 66 20 | else | if |
|000019c0| 20 20 20 20 20 20 20 20 | 6f 72 20 20 20 20 20 20 | |or |
|000019d0| 20 20 20 77 68 69 6c 65 | 20 20 20 20 20 0d 63 6c | while| .cl|
|000019e0| 61 73 73 20 20 20 20 20 | 20 65 78 63 65 70 74 20 |ass | except |
|000019f0| 20 20 20 20 69 6d 70 6f | 72 74 20 20 20 20 20 70 | impo|rt p|
|00001a00| 61 73 73 20 20 20 20 20 | 20 0d 63 6f 6e 74 69 6e |ass | .contin|
|00001a10| 75 65 20 20 20 66 69 6e | 61 6c 6c 79 20 20 20 20 |ue fin|ally |
|00001a20| 69 6e 20 20 20 20 20 20 | 20 20 20 70 72 69 6e 74 |in | print|
|00001a30| 20 20 20 20 20 0d 64 65 | 66 20 20 20 20 20 20 20 | .de|f |
|00001a40| 20 66 6f 72 20 20 20 20 | 20 20 20 20 69 73 20 20 | for | is |
|00001a50| 20 20 20 20 20 20 20 72 | 61 69 73 65 20 20 20 20 | r|aise |
|00001a60| 20 0d 5c 65 6e 64 7b 76 | 65 72 62 61 74 69 6d 7d | .\end{v|erbatim}|
|00001a70| 0d 0d 25 20 57 68 65 6e | 20 61 64 64 69 6e 67 20 |..% When| adding |
|00001a80| 6b 65 79 77 6f 72 64 73 | 2c 20 70 69 70 65 20 69 |keywords|, pipe i|
|00001a90| 74 20 74 68 72 6f 75 67 | 68 20 6b 65 79 77 6f 72 |t throug|h keywor|
|00001aa0| 64 73 2e 70 79 20 66 6f | 72 20 72 65 66 6f 72 6d |ds.py fo|r reform|
|00001ab0| 61 74 74 69 6e 67 0d 0d | 5c 73 65 63 74 69 6f 6e |atting..|\section|
|00001ac0| 7b 4c 69 74 65 72 61 6c | 73 7d 20 5c 6c 61 62 65 |{Literal|s} \labe|
|00001ad0| 6c 7b 6c 69 74 65 72 61 | 6c 73 7d 0d 0d 4c 69 74 |l{litera|ls}..Lit|
|00001ae0| 65 72 61 6c 73 20 61 72 | 65 20 6e 6f 74 61 74 69 |erals ar|e notati|
|00001af0| 6f 6e 73 20 66 6f 72 20 | 63 6f 6e 73 74 61 6e 74 |ons for |constant|
|00001b00| 20 76 61 6c 75 65 73 20 | 6f 66 20 73 6f 6d 65 20 | values |of some |
|00001b10| 62 75 69 6c 74 2d 69 6e | 20 74 79 70 65 73 2e 0d |built-in| types..|
|00001b20| 5c 69 6e 64 65 78 7b 6c | 69 74 65 72 61 6c 7d 0d |\index{l|iteral}.|
|00001b30| 5c 69 6e 64 65 78 7b 63 | 6f 6e 73 74 61 6e 74 7d |\index{c|onstant}|
|00001b40| 0d 0d 5c 73 75 62 73 65 | 63 74 69 6f 6e 7b 53 74 |..\subse|ction{St|
|00001b50| 72 69 6e 67 20 6c 69 74 | 65 72 61 6c 73 7d 0d 0d |ring lit|erals}..|
|00001b60| 53 74 72 69 6e 67 20 6c | 69 74 65 72 61 6c 73 20 |String l|iterals |
|00001b70| 61 72 65 20 64 65 73 63 | 72 69 62 65 64 20 62 79 |are desc|ribed by|
|00001b80| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 6c | the fol|lowing l|
|00001b90| 65 78 69 63 61 6c 20 64 | 65 66 69 6e 69 74 69 6f |exical d|efinitio|
|00001ba0| 6e 73 3a 0d 5c 69 6e 64 | 65 78 7b 73 74 72 69 6e |ns:.\ind|ex{strin|
|00001bb0| 67 20 6c 69 74 65 72 61 | 6c 7d 0d 0d 5c 62 65 67 |g litera|l}..\beg|
|00001bc0| 69 6e 7b 76 65 72 62 61 | 74 69 6d 7d 0d 73 74 72 |in{verba|tim}.str|
|00001bd0| 69 6e 67 6c 69 74 65 72 | 61 6c 3a 20 20 20 73 68 |ingliter|al: sh|
|00001be0| 6f 72 74 73 74 72 69 6e | 67 20 7c 20 6c 6f 6e 67 |ortstrin|g | long|
|00001bf0| 73 74 72 69 6e 67 0d 73 | 68 6f 72 74 73 74 72 69 |string.s|hortstri|
|00001c00| 6e 67 3a 20 20 20 20 20 | 22 27 22 20 73 68 6f 72 |ng: |"'" shor|
|00001c10| 74 73 74 72 69 6e 67 69 | 74 65 6d 2a 20 22 27 22 |tstringi|tem* "'"|
|00001c20| 20 7c 20 27 22 27 20 73 | 68 6f 72 74 73 74 72 69 | | '"' s|hortstri|
|00001c30| 6e 67 69 74 65 6d 2a 20 | 27 22 27 0d 6c 6f 6e 67 |ngitem* |'"'.long|
|00001c40| 73 74 72 69 6e 67 3a 20 | 20 20 20 20 20 22 27 27 |string: | "''|
|00001c50| 27 22 20 6c 6f 6e 67 73 | 74 72 69 6e 67 69 74 65 |'" longs|tringite|
|00001c60| 6d 2a 20 22 27 27 27 22 | 20 7c 20 27 22 22 22 27 |m* "'''"| | '"""'|
|00001c70| 20 6c 6f 6e 67 73 74 72 | 69 6e 67 69 74 65 6d 2a | longstr|ingitem*|
|00001c80| 20 27 22 22 22 27 0d 73 | 68 6f 72 74 73 74 72 69 | '"""'.s|hortstri|
|00001c90| 6e 67 69 74 65 6d 3a 20 | 73 68 6f 72 74 73 74 72 |ngitem: |shortstr|
|00001ca0| 69 6e 67 63 68 61 72 20 | 7c 20 65 73 63 61 70 65 |ingchar || escape|
|00001cb0| 73 65 71 0d 73 68 6f 72 | 74 73 74 72 69 6e 67 63 |seq.shor|tstringc|
|00001cc0| 68 61 72 3a 20 3c 61 6e | 79 20 41 53 43 49 49 20 |har: <an|y ASCII |
|00001cd0| 63 68 61 72 61 63 74 65 | 72 20 65 78 63 65 70 74 |characte|r except|
|00001ce0| 20 22 5c 22 20 6f 72 20 | 6e 65 77 6c 69 6e 65 20 | "\" or |newline |
|00001cf0| 6f 72 20 74 68 65 20 71 | 75 6f 74 65 3e 0d 6c 6f |or the q|uote>.lo|
|00001d00| 6e 67 73 74 72 69 6e 67 | 63 68 61 72 3a 20 20 3c |ngstring|char: <|
|00001d10| 61 6e 79 20 41 53 43 49 | 49 20 63 68 61 72 61 63 |any ASCI|I charac|
|00001d20| 74 65 72 20 65 78 63 65 | 70 74 20 22 5c 22 3e 0d |ter exce|pt "\">.|
|00001d30| 65 73 63 61 70 65 73 65 | 71 3a 20 20 20 20 20 20 |escapese|q: |
|00001d40| 20 22 5c 22 20 3c 61 6e | 79 20 41 53 43 49 49 20 | "\" <an|y ASCII |
|00001d50| 63 68 61 72 61 63 74 65 | 72 3e 0d 5c 65 6e 64 7b |characte|r>.\end{|
|00001d60| 76 65 72 62 61 74 69 6d | 7d 0d 5c 69 6e 64 65 78 |verbatim|}.\index|
|00001d70| 7b 41 53 43 49 49 7d 0d | 0d 49 6e 20 60 60 6c 6f |{ASCII}.|.In ``lo|
|00001d80| 6e 67 20 73 74 72 69 6e | 67 73 27 27 20 28 73 74 |ng strin|gs'' (st|
|00001d90| 72 69 6e 67 73 20 73 75 | 72 72 6f 75 6e 64 65 64 |rings su|rrounded|
|00001da0| 20 62 79 20 73 65 74 73 | 20 6f 66 20 74 68 72 65 | by sets| of thre|
|00001db0| 65 20 71 75 6f 74 65 73 | 29 2c 0d 75 6e 65 73 63 |e quotes|),.unesc|
|00001dc0| 61 70 65 64 20 6e 65 77 | 6c 69 6e 65 73 20 61 6e |aped new|lines an|
|00001dd0| 64 20 71 75 6f 74 65 73 | 20 61 72 65 20 61 6c 6c |d quotes| are all|
|00001de0| 6f 77 65 64 20 28 61 6e | 64 20 61 72 65 20 72 65 |owed (an|d are re|
|00001df0| 74 61 69 6e 65 64 29 2c | 20 65 78 63 65 70 74 0d |tained),| except.|
|00001e00| 74 68 61 74 20 74 68 72 | 65 65 20 75 6e 65 73 63 |that thr|ee unesc|
|00001e10| 61 70 65 64 20 71 75 6f | 74 65 73 20 69 6e 20 61 |aped quo|tes in a|
|00001e20| 20 72 6f 77 20 74 65 72 | 6d 69 6e 61 74 65 20 74 | row ter|minate t|
|00001e30| 68 65 20 73 74 72 69 6e | 67 2e 20 20 28 41 0d 60 |he strin|g. (A.`|
|00001e40| 60 71 75 6f 74 65 27 27 | 20 69 73 20 74 68 65 20 |`quote''| is the |
|00001e50| 63 68 61 72 61 63 74 65 | 72 20 75 73 65 64 20 74 |characte|r used t|
|00001e60| 6f 20 6f 70 65 6e 20 74 | 68 65 20 73 74 72 69 6e |o open t|he strin|
|00001e70| 67 2c 20 69 2e 65 2e 20 | 65 69 74 68 65 72 0d 5c |g, i.e. |either.\|
|00001e80| 76 65 72 62 2f 27 2f 20 | 6f 72 20 5c 76 65 72 62 |verb/'/ |or \verb|
|00001e90| 2f 22 2f 2e 29 0d 0d 45 | 73 63 61 70 65 20 73 65 |/"/.)..E|scape se|
|00001ea0| 71 75 65 6e 63 65 73 20 | 69 6e 20 73 74 72 69 6e |quences |in strin|
|00001eb0| 67 73 20 61 72 65 20 69 | 6e 74 65 72 70 72 65 74 |gs are i|nterpret|
|00001ec0| 65 64 20 61 63 63 6f 72 | 64 69 6e 67 20 74 6f 20 |ed accor|ding to |
|00001ed0| 72 75 6c 65 73 20 73 69 | 6d 69 6c 61 72 0d 74 6f |rules si|milar.to|
|00001ee0| 20 74 68 6f 73 65 20 75 | 73 65 64 20 62 79 20 53 | those u|sed by S|
|00001ef0| 74 61 6e 64 61 72 64 20 | 43 2e 20 20 54 68 65 20 |tandard |C. The |
|00001f00| 72 65 63 6f 67 6e 69 7a | 65 64 20 65 73 63 61 70 |recogniz|ed escap|
|00001f10| 65 20 73 65 71 75 65 6e | 63 65 73 20 61 72 65 3a |e sequen|ces are:|
|00001f20| 0d 5c 69 6e 64 65 78 7b | 70 68 79 73 69 63 61 6c |.\index{|physical|
|00001f30| 20 6c 69 6e 65 7d 0d 5c | 69 6e 64 65 78 7b 65 73 | line}.\|index{es|
|00001f40| 63 61 70 65 20 73 65 71 | 75 65 6e 63 65 7d 0d 5c |cape seq|uence}.\|
|00001f50| 69 6e 64 65 78 7b 53 74 | 61 6e 64 61 72 64 20 43 |index{St|andard C|
|00001f60| 7d 0d 5c 69 6e 64 65 78 | 7b 43 7d 0d 0d 5c 62 65 |}.\index|{C}..\be|
|00001f70| 67 69 6e 7b 63 65 6e 74 | 65 72 7d 0d 5c 62 65 67 |gin{cent|er}.\beg|
|00001f80| 69 6e 7b 74 61 62 75 6c | 61 72 7d 7b 7c 6c 7c 6c |in{tabul|ar}{|l|l|
|00001f90| 7c 7d 0d 5c 68 6c 69 6e | 65 0d 5c 76 65 72 62 2f ||}.\hlin|e.\verb/|
|00001fa0| 5c 2f 7b 5c 65 6d 20 6e | 65 77 6c 69 6e 65 7d 09 |\/{\em n|ewline}.|
|00001fb0| 26 20 49 67 6e 6f 72 65 | 64 20 5c 5c 0d 5c 76 65 |& Ignore|d \\.\ve|
|00001fc0| 72 62 2f 5c 5c 2f 09 26 | 20 42 61 63 6b 73 6c 61 |rb/\\/.&| Backsla|
|00001fd0| 73 68 20 28 5c 76 65 72 | 62 2f 5c 2f 29 20 5c 5c |sh (\ver|b/\/) \\|
|00001fe0| 0d 5c 76 65 72 62 2f 5c | 27 2f 09 26 20 53 69 6e |.\verb/\|'/.& Sin|
|00001ff0| 67 6c 65 20 71 75 6f 74 | 65 20 28 5c 76 65 72 62 |gle quot|e (\verb|
|00002000| 2f 27 2f 29 20 5c 5c 0d | 5c 76 65 72 62 2f 5c 22 |/'/) \\.|\verb/\"|
|00002010| 2f 09 26 20 44 6f 75 62 | 6c 65 20 71 75 6f 74 65 |/.& Doub|le quote|
|00002020| 20 28 5c 76 65 72 62 2f | 22 2f 29 20 5c 5c 0d 5c | (\verb/|"/) \\.\|
|00002030| 76 65 72 62 2f 5c 61 2f | 09 26 20 41 53 43 49 49 |verb/\a/|.& ASCII|
|00002040| 20 42 65 6c 6c 20 28 42 | 45 4c 29 20 5c 5c 0d 5c | Bell (B|EL) \\.\|
|00002050| 76 65 72 62 2f 5c 62 2f | 09 26 20 41 53 43 49 49 |verb/\b/|.& ASCII|
|00002060| 20 42 61 63 6b 73 70 61 | 63 65 20 28 42 53 29 20 | Backspa|ce (BS) |
|00002070| 5c 5c 0d 25 5c 76 65 72 | 62 2f 5c 45 2f 09 26 20 |\\.%\ver|b/\E/.& |
|00002080| 41 53 43 49 49 20 45 73 | 63 61 70 65 20 28 45 53 |ASCII Es|cape (ES|
|00002090| 43 29 20 5c 5c 0d 5c 76 | 65 72 62 2f 5c 66 2f 09 |C) \\.\v|erb/\f/.|
|000020a0| 26 20 41 53 43 49 49 20 | 46 6f 72 6d 66 65 65 64 |& ASCII |Formfeed|
|000020b0| 20 28 46 46 29 20 5c 5c | 0d 5c 76 65 72 62 2f 5c | (FF) \\|.\verb/\|
|000020c0| 6e 2f 09 26 20 41 53 43 | 49 49 20 4c 69 6e 65 66 |n/.& ASC|II Linef|
|000020d0| 65 65 64 20 28 4c 46 29 | 20 5c 5c 0d 5c 76 65 72 |eed (LF)| \\.\ver|
|000020e0| 62 2f 5c 72 2f 09 26 20 | 41 53 43 49 49 20 43 61 |b/\r/.& |ASCII Ca|
|000020f0| 72 72 69 61 67 65 20 52 | 65 74 75 72 6e 20 28 43 |rriage R|eturn (C|
|00002100| 52 29 20 5c 5c 0d 5c 76 | 65 72 62 2f 5c 74 2f 09 |R) \\.\v|erb/\t/.|
|00002110| 26 20 41 53 43 49 49 20 | 48 6f 72 69 7a 6f 6e 74 |& ASCII |Horizont|
|00002120| 61 6c 20 54 61 62 20 28 | 54 41 42 29 20 5c 5c 0d |al Tab (|TAB) \\.|
|00002130| 5c 76 65 72 62 2f 5c 76 | 2f 09 26 20 41 53 43 49 |\verb/\v|/.& ASCI|
|00002140| 49 20 56 65 72 74 69 63 | 61 6c 20 54 61 62 20 28 |I Vertic|al Tab (|
|00002150| 56 54 29 20 5c 5c 0d 5c | 76 65 72 62 2f 5c 2f 7b |VT) \\.\|verb/\/{|
|00002160| 5c 65 6d 20 6f 6f 6f 7d | 09 26 20 41 53 43 49 49 |\em ooo}|.& ASCII|
|00002170| 20 63 68 61 72 61 63 74 | 65 72 20 77 69 74 68 20 | charact|er with |
|00002180| 6f 63 74 61 6c 20 76 61 | 6c 75 65 20 7b 5c 65 6d |octal va|lue {\em|
|00002190| 20 6f 6f 6f 7d 20 5c 5c | 0d 5c 76 65 72 62 2f 5c | ooo} \\|.\verb/\|
|000021a0| 78 2f 7b 5c 65 6d 20 78 | 78 2e 2e 2e 7d 09 26 20 |x/{\em x|x...}.& |
|000021b0| 41 53 43 49 49 20 63 68 | 61 72 61 63 74 65 72 20 |ASCII ch|aracter |
|000021c0| 77 69 74 68 20 68 65 78 | 20 76 61 6c 75 65 20 7b |with hex| value {|
|000021d0| 5c 65 6d 20 78 78 2e 2e | 2e 7d 20 5c 5c 0d 5c 68 |\em xx..|.} \\.\h|
|000021e0| 6c 69 6e 65 0d 5c 65 6e | 64 7b 74 61 62 75 6c 61 |line.\en|d{tabula|
|000021f0| 72 7d 0d 5c 65 6e 64 7b | 63 65 6e 74 65 72 7d 0d |r}.\end{|center}.|
|00002200| 5c 69 6e 64 65 78 7b 41 | 53 43 49 49 7d 0d 0d 49 |\index{A|SCII}..I|
|00002210| 6e 20 73 74 72 69 63 74 | 20 63 6f 6d 70 61 74 69 |n strict| compati|
|00002220| 62 69 6c 69 74 79 20 77 | 69 74 68 20 53 74 61 6e |bility w|ith Stan|
|00002230| 64 61 72 64 20 43 2c 20 | 75 70 20 74 6f 20 74 68 |dard C, |up to th|
|00002240| 72 65 65 20 6f 63 74 61 | 6c 20 64 69 67 69 74 73 |ree octa|l digits|
|00002250| 20 61 72 65 0d 61 63 63 | 65 70 74 65 64 2c 20 62 | are.acc|epted, b|
|00002260| 75 74 20 61 6e 20 75 6e | 6c 69 6d 69 74 65 64 20 |ut an un|limited |
|00002270| 6e 75 6d 62 65 72 20 6f | 66 20 68 65 78 20 64 69 |number o|f hex di|
|00002280| 67 69 74 73 20 69 73 20 | 74 61 6b 65 6e 20 74 6f |gits is |taken to|
|00002290| 20 62 65 20 70 61 72 74 | 20 6f 66 0d 74 68 65 20 | be part| of.the |
|000022a0| 68 65 78 20 65 73 63 61 | 70 65 20 28 61 6e 64 20 |hex esca|pe (and |
|000022b0| 74 68 65 6e 20 74 68 65 | 20 6c 6f 77 65 72 20 38 |then the| lower 8|
|000022c0| 20 62 69 74 73 20 6f 66 | 20 74 68 65 20 72 65 73 | bits of| the res|
|000022d0| 75 6c 74 69 6e 67 20 68 | 65 78 20 6e 75 6d 62 65 |ulting h|ex numbe|
|000022e0| 72 0d 61 72 65 20 75 73 | 65 64 20 69 6e 20 61 6c |r.are us|ed in al|
|000022f0| 6c 20 63 75 72 72 65 6e | 74 20 69 6d 70 6c 65 6d |l curren|t implem|
|00002300| 65 6e 74 61 74 69 6f 6e | 73 2e 2e 2e 29 2e 0d 0d |entation|s...)...|
|00002310| 41 6c 6c 20 75 6e 72 65 | 63 6f 67 6e 69 7a 65 64 |All unre|cognized|
|00002320| 20 65 73 63 61 70 65 20 | 73 65 71 75 65 6e 63 65 | escape |sequence|
|00002330| 73 20 61 72 65 20 6c 65 | 66 74 20 69 6e 20 74 68 |s are le|ft in th|
|00002340| 65 20 73 74 72 69 6e 67 | 20 75 6e 63 68 61 6e 67 |e string| unchang|
|00002350| 65 64 2c 0d 69 2e 65 2e | 2c 20 7b 5c 65 6d 20 74 |ed,.i.e.|, {\em t|
|00002360| 68 65 20 62 61 63 6b 73 | 6c 61 73 68 20 69 73 20 |he backs|lash is |
|00002370| 6c 65 66 74 20 69 6e 20 | 74 68 65 20 73 74 72 69 |left in |the stri|
|00002380| 6e 67 2e 7d 20 20 28 54 | 68 69 73 20 62 65 68 61 |ng.} (T|his beha|
|00002390| 76 69 6f 72 20 69 73 0d | 75 73 65 66 75 6c 20 77 |vior is.|useful w|
|000023a0| 68 65 6e 20 64 65 62 75 | 67 67 69 6e 67 3a 20 69 |hen debu|gging: i|
|000023b0| 66 20 61 6e 20 65 73 63 | 61 70 65 20 73 65 71 75 |f an esc|ape sequ|
|000023c0| 65 6e 63 65 20 69 73 20 | 6d 69 73 74 79 70 65 64 |ence is |mistyped|
|000023d0| 2c 20 74 68 65 0d 72 65 | 73 75 6c 74 69 6e 67 20 |, the.re|sulting |
|000023e0| 6f 75 74 70 75 74 20 69 | 73 20 6d 6f 72 65 20 65 |output i|s more e|
|000023f0| 61 73 69 6c 79 20 72 65 | 63 6f 67 6e 69 7a 65 64 |asily re|cognized|
|00002400| 20 61 73 20 62 72 6f 6b | 65 6e 2e 20 20 49 74 20 | as brok|en. It |
|00002410| 61 6c 73 6f 20 68 65 6c | 70 73 20 61 0d 67 72 65 |also hel|ps a.gre|
|00002420| 61 74 20 64 65 61 6c 20 | 66 6f 72 20 73 74 72 69 |at deal |for stri|
|00002430| 6e 67 20 6c 69 74 65 72 | 61 6c 73 20 75 73 65 64 |ng liter|als used|
|00002440| 20 61 73 20 72 65 67 75 | 6c 61 72 20 65 78 70 72 | as regu|lar expr|
|00002450| 65 73 73 69 6f 6e 73 20 | 6f 72 0d 6f 74 68 65 72 |essions |or.other|
|00002460| 77 69 73 65 20 70 61 73 | 73 65 64 20 74 6f 20 6f |wise pas|sed to o|
|00002470| 74 68 65 72 20 6d 6f 64 | 75 6c 65 73 20 74 68 61 |ther mod|ules tha|
|00002480| 74 20 64 6f 20 74 68 65 | 69 72 20 6f 77 6e 20 65 |t do the|ir own e|
|00002490| 73 63 61 70 65 20 68 61 | 6e 64 6c 69 6e 67 2e 29 |scape ha|ndling.)|
|000024a0| 0d 5c 69 6e 64 65 78 7b | 75 6e 72 65 63 6f 67 6e |.\index{|unrecogn|
|000024b0| 69 7a 65 64 20 65 73 63 | 61 70 65 20 73 65 71 75 |ized esc|ape sequ|
|000024c0| 65 6e 63 65 7d 0d 0d 5c | 73 75 62 73 65 63 74 69 |ence}..\|subsecti|
|000024d0| 6f 6e 7b 4e 75 6d 65 72 | 69 63 20 6c 69 74 65 72 |on{Numer|ic liter|
|000024e0| 61 6c 73 7d 0d 0d 54 68 | 65 72 65 20 61 72 65 20 |als}..Th|ere are |
|000024f0| 74 68 72 65 65 20 74 79 | 70 65 73 20 6f 66 20 6e |three ty|pes of n|
|00002500| 75 6d 65 72 69 63 20 6c | 69 74 65 72 61 6c 73 3a |umeric l|iterals:|
|00002510| 20 70 6c 61 69 6e 20 69 | 6e 74 65 67 65 72 73 2c | plain i|ntegers,|
|00002520| 20 6c 6f 6e 67 0d 69 6e | 74 65 67 65 72 73 2c 20 | long.in|tegers, |
|00002530| 61 6e 64 20 66 6c 6f 61 | 74 69 6e 67 20 70 6f 69 |and floa|ting poi|
|00002540| 6e 74 20 6e 75 6d 62 65 | 72 73 2e 0d 5c 69 6e 64 |nt numbe|rs..\ind|
|00002550| 65 78 7b 6e 75 6d 62 65 | 72 7d 0d 5c 69 6e 64 65 |ex{numbe|r}.\inde|
|00002560| 78 7b 6e 75 6d 65 72 69 | 63 20 6c 69 74 65 72 61 |x{numeri|c litera|
|00002570| 6c 7d 0d 5c 69 6e 64 65 | 78 7b 69 6e 74 65 67 65 |l}.\inde|x{intege|
|00002580| 72 20 6c 69 74 65 72 61 | 6c 7d 0d 5c 69 6e 64 65 |r litera|l}.\inde|
|00002590| 78 7b 70 6c 61 69 6e 20 | 69 6e 74 65 67 65 72 20 |x{plain |integer |
|000025a0| 6c 69 74 65 72 61 6c 7d | 0d 5c 69 6e 64 65 78 7b |literal}|.\index{|
|000025b0| 6c 6f 6e 67 20 69 6e 74 | 65 67 65 72 20 6c 69 74 |long int|eger lit|
|000025c0| 65 72 61 6c 7d 0d 5c 69 | 6e 64 65 78 7b 66 6c 6f |eral}.\i|ndex{flo|
|000025d0| 61 74 69 6e 67 20 70 6f | 69 6e 74 20 6c 69 74 65 |ating po|int lite|
|000025e0| 72 61 6c 7d 0d 5c 69 6e | 64 65 78 7b 68 65 78 61 |ral}.\in|dex{hexa|
|000025f0| 64 65 63 69 6d 61 6c 20 | 6c 69 74 65 72 61 6c 7d |decimal |literal}|
|00002600| 0d 5c 69 6e 64 65 78 7b | 6f 63 74 61 6c 20 6c 69 |.\index{|octal li|
|00002610| 74 65 72 61 6c 7d 0d 5c | 69 6e 64 65 78 7b 64 65 |teral}.\|index{de|
|00002620| 63 69 6d 61 6c 20 6c 69 | 74 65 72 61 6c 7d 0d 0d |cimal li|teral}..|
|00002630| 49 6e 74 65 67 65 72 20 | 61 6e 64 20 6c 6f 6e 67 |Integer |and long|
|00002640| 20 69 6e 74 65 67 65 72 | 20 6c 69 74 65 72 61 6c | integer| literal|
|00002650| 73 20 61 72 65 20 64 65 | 73 63 72 69 62 65 64 20 |s are de|scribed |
|00002660| 62 79 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |by the f|ollowing|
|00002670| 0d 6c 65 78 69 63 61 6c | 20 64 65 66 69 6e 69 74 |.lexical| definit|
|00002680| 69 6f 6e 73 3a 0d 0d 5c | 62 65 67 69 6e 7b 76 65 |ions:..\|begin{ve|
|00002690| 72 62 61 74 69 6d 7d 0d | 6c 6f 6e 67 69 6e 74 65 |rbatim}.|longinte|
|000026a0| 67 65 72 3a 20 20 20 20 | 69 6e 74 65 67 65 72 20 |ger: |integer |
|000026b0| 28 22 6c 22 7c 22 4c 22 | 29 0d 69 6e 74 65 67 65 |("l"|"L"|).intege|
|000026c0| 72 3a 20 20 20 20 20 20 | 20 20 64 65 63 69 6d 61 |r: | decima|
|000026d0| 6c 69 6e 74 65 67 65 72 | 20 7c 20 6f 63 74 69 6e |linteger| | octin|
|000026e0| 74 65 67 65 72 20 7c 20 | 68 65 78 69 6e 74 65 67 |teger | |hexinteg|
|000026f0| 65 72 0d 64 65 63 69 6d | 61 6c 69 6e 74 65 67 65 |er.decim|alintege|
|00002700| 72 3a 20 6e 6f 6e 7a 65 | 72 6f 64 69 67 69 74 20 |r: nonze|rodigit |
|00002710| 64 69 67 69 74 2a 20 7c | 20 22 30 22 0d 6f 63 74 |digit* || "0".oct|
|00002720| 69 6e 74 65 67 65 72 3a | 20 20 20 20 20 22 30 22 |integer:| "0"|
|00002730| 20 6f 63 74 64 69 67 69 | 74 2b 0d 68 65 78 69 6e | octdigi|t+.hexin|
|00002740| 74 65 67 65 72 3a 20 20 | 20 20 20 22 30 22 20 28 |teger: | "0" (|
|00002750| 22 78 22 7c 22 58 22 29 | 20 68 65 78 64 69 67 69 |"x"|"X")| hexdigi|
|00002760| 74 2b 0d 0d 6e 6f 6e 7a | 65 72 6f 64 69 67 69 74 |t+..nonz|erodigit|
|00002770| 3a 20 20 20 22 31 22 2e | 2e 2e 22 39 22 0d 6f 63 |: "1".|.."9".oc|
|00002780| 74 64 69 67 69 74 3a 20 | 20 20 20 20 20 20 22 30 |tdigit: | "0|
|00002790| 22 2e 2e 2e 22 37 22 0d | 68 65 78 64 69 67 69 74 |"..."7".|hexdigit|
|000027a0| 3a 20 20 20 20 20 20 20 | 20 64 69 67 69 74 7c 22 |: | digit|"|
|000027b0| 61 22 2e 2e 2e 22 66 22 | 7c 22 41 22 2e 2e 2e 22 |a"..."f"||"A"..."|
|000027c0| 46 22 0d 5c 65 6e 64 7b | 76 65 72 62 61 74 69 6d |F".\end{|verbatim|
|000027d0| 7d 0d 0d 41 6c 74 68 6f | 75 67 68 20 62 6f 74 68 |}..Altho|ugh both|
|000027e0| 20 6c 6f 77 65 72 20 63 | 61 73 65 20 60 6c 27 20 | lower c|ase `l' |
|000027f0| 61 6e 64 20 75 70 70 65 | 72 20 63 61 73 65 20 60 |and uppe|r case `|
|00002800| 4c 27 20 61 72 65 20 61 | 6c 6c 6f 77 65 64 20 61 |L' are a|llowed a|
|00002810| 73 20 73 75 66 66 69 78 | 0d 66 6f 72 20 6c 6f 6e |s suffix|.for lon|
|00002820| 67 20 69 6e 74 65 67 65 | 72 73 2c 20 69 74 20 69 |g intege|rs, it i|
|00002830| 73 20 73 74 72 6f 6e 67 | 6c 79 20 72 65 63 6f 6d |s strong|ly recom|
|00002840| 6d 65 6e 64 65 64 20 74 | 6f 20 61 6c 77 61 79 73 |mended t|o always|
|00002850| 20 75 73 65 20 60 4c 27 | 2c 20 73 69 6e 63 65 0d | use `L'|, since.|
|00002860| 74 68 65 20 6c 65 74 74 | 65 72 20 60 6c 27 20 6c |the lett|er `l' l|
|00002870| 6f 6f 6b 73 20 74 6f 6f | 20 6d 75 63 68 20 6c 69 |ooks too| much li|
|00002880| 6b 65 20 74 68 65 20 64 | 69 67 69 74 20 60 31 27 |ke the d|igit `1'|
|00002890| 2e 0d 0d 50 6c 61 69 6e | 20 69 6e 74 65 67 65 72 |...Plain| integer|
|000028a0| 20 64 65 63 69 6d 61 6c | 20 6c 69 74 65 72 61 6c | decimal| literal|
|000028b0| 73 20 6d 75 73 74 20 62 | 65 20 61 74 20 6d 6f 73 |s must b|e at mos|
|000028c0| 74 20 24 32 5e 7b 33 31 | 7d 20 2d 20 31 24 20 28 |t $2^{31|} - 1$ (|
|000028d0| 69 2e 65 2e 2c 20 74 68 | 65 0d 6c 61 72 67 65 73 |i.e., th|e.larges|
|000028e0| 74 20 70 6f 73 69 74 69 | 76 65 20 69 6e 74 65 67 |t positi|ve integ|
|000028f0| 65 72 2c 20 61 73 73 75 | 6d 69 6e 67 20 33 32 2d |er, assu|ming 32-|
|00002900| 62 69 74 20 61 72 69 74 | 68 6d 65 74 69 63 29 2e |bit arit|hmetic).|
|00002910| 20 20 50 6c 61 69 6e 20 | 6f 63 74 61 6c 20 61 6e | Plain |octal an|
|00002920| 64 0d 68 65 78 61 64 65 | 63 69 6d 61 6c 20 6c 69 |d.hexade|cimal li|
|00002930| 74 65 72 61 6c 73 20 6d | 61 79 20 62 65 20 61 73 |terals m|ay be as|
|00002940| 20 6c 61 72 67 65 20 61 | 73 20 24 32 5e 7b 33 32 | large a|s $2^{32|
|00002950| 7d 20 2d 20 31 24 2c 20 | 62 75 74 20 76 61 6c 75 |} - 1$, |but valu|
|00002960| 65 73 0d 6c 61 72 67 65 | 72 20 74 68 61 6e 20 24 |es.large|r than $|
|00002970| 32 5e 7b 33 31 7d 20 2d | 20 31 24 20 61 72 65 20 |2^{31} -| 1$ are |
|00002980| 63 6f 6e 76 65 72 74 65 | 64 20 74 6f 20 61 20 6e |converte|d to a n|
|00002990| 65 67 61 74 69 76 65 20 | 76 61 6c 75 65 20 62 79 |egative |value by|
|000029a0| 0d 73 75 62 74 72 61 63 | 74 69 6e 67 20 24 32 5e |.subtrac|ting $2^|
|000029b0| 7b 33 32 7d 24 2e 20 20 | 54 68 65 72 65 20 69 73 |{32}$. |There is|
|000029c0| 20 6e 6f 20 6c 69 6d 69 | 74 20 66 6f 72 20 6c 6f | no limi|t for lo|
|000029d0| 6e 67 20 69 6e 74 65 67 | 65 72 20 6c 69 74 65 72 |ng integ|er liter|
|000029e0| 61 6c 73 2e 0d 0d 53 6f | 6d 65 20 65 78 61 6d 70 |als...So|me examp|
|000029f0| 6c 65 73 20 6f 66 20 70 | 6c 61 69 6e 20 61 6e 64 |les of p|lain and|
|00002a00| 20 6c 6f 6e 67 20 69 6e | 74 65 67 65 72 20 6c 69 | long in|teger li|
|00002a10| 74 65 72 61 6c 73 3a 0d | 0d 5c 62 65 67 69 6e 7b |terals:.|.\begin{|
|00002a20| 76 65 72 62 61 74 69 6d | 7d 0d 37 20 20 20 20 20 |verbatim|}.7 |
|00002a30| 32 31 34 37 34 38 33 36 | 34 37 20 20 20 20 20 20 |21474836|47 |
|00002a40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002a50| 20 20 30 31 37 37 20 20 | 20 20 30 78 38 30 30 30 | 0177 | 0x8000|
|00002a60| 30 30 30 30 0d 33 4c 20 | 20 20 20 37 39 32 32 38 |0000.3L | 79228|
|00002a70| 31 36 32 35 31 34 32 36 | 34 33 33 37 35 39 33 35 |16251426|43375935|
|00002a80| 34 33 39 35 30 33 33 36 | 4c 20 20 20 20 30 33 37 |43950336|L 037|
|00002a90| 37 4c 20 20 20 30 78 31 | 30 30 30 30 30 30 30 30 |7L 0x1|00000000|
|00002aa0| 4c 0d 5c 65 6e 64 7b 76 | 65 72 62 61 74 69 6d 7d |L.\end{v|erbatim}|
|00002ab0| 0d 0d 46 6c 6f 61 74 69 | 6e 67 20 70 6f 69 6e 74 |..Floati|ng point|
|00002ac0| 20 6c 69 74 65 72 61 6c | 73 20 61 72 65 20 64 65 | literal|s are de|
|00002ad0| 73 63 72 69 62 65 64 20 | 62 79 20 74 68 65 20 66 |scribed |by the f|
|00002ae0| 6f 6c 6c 6f 77 69 6e 67 | 20 6c 65 78 69 63 61 6c |ollowing| lexical|
|00002af0| 0d 64 65 66 69 6e 69 74 | 69 6f 6e 73 3a 0d 0d 5c |.definit|ions:..\|
|00002b00| 62 65 67 69 6e 7b 76 65 | 72 62 61 74 69 6d 7d 0d |begin{ve|rbatim}.|
|00002b10| 66 6c 6f 61 74 6e 75 6d | 62 65 72 3a 20 20 20 20 |floatnum|ber: |
|00002b20| 70 6f 69 6e 74 66 6c 6f | 61 74 20 7c 20 65 78 70 |pointflo|at | exp|
|00002b30| 6f 6e 65 6e 74 66 6c 6f | 61 74 0d 70 6f 69 6e 74 |onentflo|at.point|
|00002b40| 66 6c 6f 61 74 3a 20 20 | 20 20 20 5b 69 6e 74 70 |float: | [intp|
|00002b50| 61 72 74 5d 20 66 72 61 | 63 74 69 6f 6e 20 7c 20 |art] fra|ction | |
|00002b60| 69 6e 74 70 61 72 74 20 | 22 2e 22 0d 65 78 70 6f |intpart |".".expo|
|00002b70| 6e 65 6e 74 66 6c 6f 61 | 74 3a 20 20 28 69 6e 74 |nentfloa|t: (int|
|00002b80| 70 61 72 74 20 7c 20 70 | 6f 69 6e 74 66 6c 6f 61 |part | p|ointfloa|
|00002b90| 74 29 20 65 78 70 6f 6e | 65 6e 74 0d 69 6e 74 70 |t) expon|ent.intp|
|00002ba0| 61 72 74 3a 20 20 20 20 | 20 20 20 20 64 69 67 69 |art: | digi|
|00002bb0| 74 2b 0d 66 72 61 63 74 | 69 6f 6e 3a 20 20 20 20 |t+.fract|ion: |
|00002bc0| 20 20 20 22 2e 22 20 64 | 69 67 69 74 2b 0d 65 78 | "." d|igit+.ex|
|00002bd0| 70 6f 6e 65 6e 74 3a 20 | 20 20 20 20 20 20 28 22 |ponent: | ("|
|00002be0| 65 22 7c 22 45 22 29 20 | 5b 22 2b 22 7c 22 2d 22 |e"|"E") |["+"|"-"|
|00002bf0| 5d 20 64 69 67 69 74 2b | 0d 5c 65 6e 64 7b 76 65 |] digit+|.\end{ve|
|00002c00| 72 62 61 74 69 6d 7d 0d | 0d 54 68 65 20 61 6c 6c |rbatim}.|.The all|
|00002c10| 6f 77 65 64 20 72 61 6e | 67 65 20 6f 66 20 66 6c |owed ran|ge of fl|
|00002c20| 6f 61 74 69 6e 67 20 70 | 6f 69 6e 74 20 6c 69 74 |oating p|oint lit|
|00002c30| 65 72 61 6c 73 20 69 73 | 0d 69 6d 70 6c 65 6d 65 |erals is|.impleme|
|00002c40| 6e 74 61 74 69 6f 6e 2d | 64 65 70 65 6e 64 65 6e |ntation-|dependen|
|00002c50| 74 2e 0d 0d 53 6f 6d 65 | 20 65 78 61 6d 70 6c 65 |t...Some| example|
|00002c60| 73 20 6f 66 20 66 6c 6f | 61 74 69 6e 67 20 70 6f |s of flo|ating po|
|00002c70| 69 6e 74 20 6c 69 74 65 | 72 61 6c 73 3a 0d 0d 5c |int lite|rals:..\|
|00002c80| 62 65 67 69 6e 7b 76 65 | 72 62 61 74 69 6d 7d 0d |begin{ve|rbatim}.|
|00002c90| 33 2e 31 34 20 20 20 20 | 31 30 2e 20 20 20 20 2e |3.14 |10. .|
|00002ca0| 30 30 31 20 20 20 20 31 | 65 31 30 30 20 20 20 20 |001 1|e100 |
|00002cb0| 33 2e 31 34 65 2d 31 30 | 0d 5c 65 6e 64 7b 76 65 |3.14e-10|.\end{ve|
|00002cc0| 72 62 61 74 69 6d 7d 0d | 0d 4e 6f 74 65 20 74 68 |rbatim}.|.Note th|
|00002cd0| 61 74 20 6e 75 6d 65 72 | 69 63 20 6c 69 74 65 72 |at numer|ic liter|
|00002ce0| 61 6c 73 20 64 6f 20 6e | 6f 74 20 69 6e 63 6c 75 |als do n|ot inclu|
|00002cf0| 64 65 20 61 20 73 69 67 | 6e 3b 20 61 20 70 68 72 |de a sig|n; a phr|
|00002d00| 61 73 65 20 6c 69 6b 65 | 0d 5c 76 65 72 62 40 2d |ase like|.\verb@-|
|00002d10| 31 40 20 69 73 20 61 63 | 74 75 61 6c 6c 79 20 61 |1@ is ac|tually a|
|00002d20| 6e 20 65 78 70 72 65 73 | 73 69 6f 6e 20 63 6f 6d |n expres|sion com|
|00002d30| 70 6f 73 65 64 20 6f 66 | 20 74 68 65 20 6f 70 65 |posed of| the ope|
|00002d40| 72 61 74 6f 72 0d 5c 76 | 65 72 62 40 2d 40 20 61 |rator.\v|erb@-@ a|
|00002d50| 6e 64 20 74 68 65 20 6c | 69 74 65 72 61 6c 20 5c |nd the l|iteral \|
|00002d60| 76 65 72 62 40 31 40 2e | 0d 0d 5c 73 65 63 74 69 |verb@1@.|..\secti|
|00002d70| 6f 6e 7b 4f 70 65 72 61 | 74 6f 72 73 7d 0d 0d 54 |on{Opera|tors}..T|
|00002d80| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 74 6f 6b |he follo|wing tok|
|00002d90| 65 6e 73 20 61 72 65 20 | 6f 70 65 72 61 74 6f 72 |ens are |operator|
|00002da0| 73 3a 0d 5c 69 6e 64 65 | 78 7b 6f 70 65 72 61 74 |s:.\inde|x{operat|
|00002db0| 6f 72 73 7d 0d 0d 5c 62 | 65 67 69 6e 7b 76 65 72 |ors}..\b|egin{ver|
|00002dc0| 62 61 74 69 6d 7d 0d 2b | 20 20 20 20 20 20 20 2d |batim}.+| -|
|00002dd0| 20 20 20 20 20 20 20 2a | 20 20 20 20 20 20 20 2f | *| /|
|00002de0| 20 20 20 20 20 20 20 25 | 0d 3c 3c 20 20 20 20 20 | %|.<< |
|00002df0| 20 3e 3e 20 20 20 20 20 | 20 26 20 20 20 20 20 20 | >> | & |
|00002e00| 20 7c 20 20 20 20 20 20 | 20 5e 20 20 20 20 20 20 | | | ^ |
|00002e10| 20 7e 0d 3c 20 20 20 20 | 20 20 20 3d 3d 20 20 20 | ~.< | == |
|00002e20| 20 20 20 3e 20 20 20 20 | 20 20 20 3c 3d 20 20 20 | > | <= |
|00002e30| 20 20 20 3c 3e 20 20 20 | 20 20 20 21 3d 20 20 20 | <> | != |
|00002e40| 20 20 20 3e 3d 0d 5c 65 | 6e 64 7b 76 65 72 62 61 | >=.\e|nd{verba|
|00002e50| 74 69 6d 7d 0d 0d 54 68 | 65 20 63 6f 6d 70 61 72 |tim}..Th|e compar|
|00002e60| 69 73 6f 6e 20 6f 70 65 | 72 61 74 6f 72 73 20 5c |ison ope|rators \|
|00002e70| 76 65 72 62 40 3c 3e 40 | 20 61 6e 64 20 5c 76 65 |verb@<>@| and \ve|
|00002e80| 72 62 40 21 3d 40 20 61 | 72 65 20 61 6c 74 65 72 |rb@!=@ a|re alter|
|00002e90| 6e 61 74 65 0d 73 70 65 | 6c 6c 69 6e 67 73 20 6f |nate.spe|llings o|
|00002ea0| 66 20 74 68 65 20 73 61 | 6d 65 20 6f 70 65 72 61 |f the sa|me opera|
|00002eb0| 74 6f 72 2e 0d 0d 5c 73 | 65 63 74 69 6f 6e 7b 44 |tor...\s|ection{D|
|00002ec0| 65 6c 69 6d 69 74 65 72 | 73 7d 0d 0d 54 68 65 20 |elimiter|s}..The |
|00002ed0| 66 6f 6c 6c 6f 77 69 6e | 67 20 74 6f 6b 65 6e 73 |followin|g tokens|
|00002ee0| 20 73 65 72 76 65 20 61 | 73 20 64 65 6c 69 6d 69 | serve a|s delimi|
|00002ef0| 74 65 72 73 20 6f 72 20 | 6f 74 68 65 72 77 69 73 |ters or |otherwis|
|00002f00| 65 20 68 61 76 65 20 61 | 20 73 70 65 63 69 61 6c |e have a| special|
|00002f10| 0d 6d 65 61 6e 69 6e 67 | 3a 0d 5c 69 6e 64 65 78 |.meaning|:.\index|
|00002f20| 7b 64 65 6c 69 6d 69 74 | 65 72 73 7d 0d 0d 5c 62 |{delimit|ers}..\b|
|00002f30| 65 67 69 6e 7b 76 65 72 | 62 61 74 69 6d 7d 0d 28 |egin{ver|batim}.(|
|00002f40| 20 20 20 20 20 20 20 29 | 20 20 20 20 20 20 20 5b | )| [|
|00002f50| 20 20 20 20 20 20 20 5d | 20 20 20 20 20 20 20 7b | ]| {|
|00002f60| 20 20 20 20 20 20 20 7d | 0d 2c 20 20 20 20 20 20 | }|., |
|00002f70| 20 3a 20 20 20 20 20 20 | 20 2e 20 20 20 20 20 20 | : | . |
|00002f80| 20 22 20 20 20 20 20 20 | 20 60 20 20 20 20 20 20 | " | ` |
|00002f90| 20 27 0d 3d 09 3b 0d 5c | 65 6e 64 7b 76 65 72 62 | '.=.;.\|end{verb|
|00002fa0| 61 74 69 6d 7d 0d 0d 54 | 68 65 20 66 6f 6c 6c 6f |atim}..T|he follo|
|00002fb0| 77 69 6e 67 20 70 72 69 | 6e 74 69 6e 67 20 41 53 |wing pri|nting AS|
|00002fc0| 43 49 49 20 63 68 61 72 | 61 63 74 65 72 73 20 61 |CII char|acters a|
|00002fd0| 72 65 20 6e 6f 74 20 75 | 73 65 64 20 69 6e 20 50 |re not u|sed in P|
|00002fe0| 79 74 68 6f 6e 2e 20 20 | 54 68 65 69 72 0d 6f 63 |ython. |Their.oc|
|00002ff0| 63 75 72 72 65 6e 63 65 | 20 6f 75 74 73 69 64 65 |currence| outside|
|00003000| 20 73 74 72 69 6e 67 20 | 6c 69 74 65 72 61 6c 73 | string |literals|
|00003010| 20 61 6e 64 20 63 6f 6d | 6d 65 6e 74 73 20 69 73 | and com|ments is|
|00003020| 20 61 6e 20 75 6e 63 6f | 6e 64 69 74 69 6f 6e 61 | an unco|nditiona|
|00003030| 6c 0d 65 72 72 6f 72 3a | 0d 5c 69 6e 64 65 78 7b |l.error:|.\index{|
|00003040| 41 53 43 49 49 7d 0d 0d | 5c 62 65 67 69 6e 7b 76 |ASCII}..|\begin{v|
|00003050| 65 72 62 61 74 69 6d 7d | 0d 40 20 20 20 20 20 20 |erbatim}|.@ |
|00003060| 20 24 20 20 20 20 20 20 | 20 3f 0d 5c 65 6e 64 7b | $ | ?.\end{|
|00003070| 76 65 72 62 61 74 69 6d | 7d 0d 0d 54 68 65 79 20 |verbatim|}..They |
|00003080| 6d 61 79 20 62 65 20 75 | 73 65 64 20 62 79 20 66 |may be u|sed by f|
|00003090| 75 74 75 72 65 20 76 65 | 72 73 69 6f 6e 73 20 6f |uture ve|rsions o|
|000030a0| 66 20 74 68 65 20 6c 61 | 6e 67 75 61 67 65 20 74 |f the la|nguage t|
|000030b0| 68 6f 75 67 68 21 0d | |hough!. | |
+--------+-------------------------+-------------------------+--------+--------+