home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / Languages / Python 1.1 / Doc / ref8.tex < prev    next >
LaTeX Document  |  1994-08-01  |  3.2 KB  |  [TEXT/R*ch]

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: ref8.tex

ConfidenceProgramDetectionMatch TypeSupport
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
keyvalue
macFileType[TEXT]
macFileCreator[R*ch]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 63 68 61 70 74 65 72 | 7b 54 6f 70 2d 6c 65 76 |\chapter|{Top-lev|
|00000010| 65 6c 20 63 6f 6d 70 6f | 6e 65 6e 74 73 7d 0d 0d |el compo|nents}..|
|00000020| 54 68 65 20 50 79 74 68 | 6f 6e 20 69 6e 74 65 72 |The Pyth|on inter|
|00000030| 70 72 65 74 65 72 20 63 | 61 6e 20 67 65 74 20 69 |preter c|an get i|
|00000040| 74 73 20 69 6e 70 75 74 | 20 66 72 6f 6d 20 61 20 |ts input| from a |
|00000050| 6e 75 6d 62 65 72 20 6f | 66 20 73 6f 75 72 63 65 |number o|f source|
|00000060| 73 3a 0d 66 72 6f 6d 20 | 61 20 73 63 72 69 70 74 |s:.from |a script|
|00000070| 20 70 61 73 73 65 64 20 | 74 6f 20 69 74 20 61 73 | passed |to it as|
|00000080| 20 73 74 61 6e 64 61 72 | 64 20 69 6e 70 75 74 20 | standar|d input |
|00000090| 6f 72 20 61 73 20 70 72 | 6f 67 72 61 6d 20 61 72 |or as pr|ogram ar|
|000000a0| 67 75 6d 65 6e 74 2c 0d | 74 79 70 65 64 20 69 6e |gument,.|typed in|
|000000b0| 20 69 6e 74 65 72 61 63 | 74 69 76 65 6c 79 2c 20 | interac|tively, |
|000000c0| 66 72 6f 6d 20 61 20 6d | 6f 64 75 6c 65 20 73 6f |from a m|odule so|
|000000d0| 75 72 63 65 20 66 69 6c | 65 2c 20 65 74 63 2e 20 |urce fil|e, etc. |
|000000e0| 20 54 68 69 73 20 63 68 | 61 70 74 65 72 0d 67 69 | This ch|apter.gi|
|000000f0| 76 65 73 20 74 68 65 20 | 73 79 6e 74 61 78 20 75 |ves the |syntax u|
|00000100| 73 65 64 20 69 6e 20 74 | 68 65 73 65 20 63 61 73 |sed in t|hese cas|
|00000110| 65 73 2e 0d 5c 69 6e 64 | 65 78 7b 69 6e 74 65 72 |es..\ind|ex{inter|
|00000120| 70 72 65 74 65 72 7d 0d | 0d 5c 73 65 63 74 69 6f |preter}.|.\sectio|
|00000130| 6e 7b 43 6f 6d 70 6c 65 | 74 65 20 50 79 74 68 6f |n{Comple|te Pytho|
|00000140| 6e 20 70 72 6f 67 72 61 | 6d 73 7d 0d 5c 69 6e 64 |n progra|ms}.\ind|
|00000150| 65 78 7b 70 72 6f 67 72 | 61 6d 7d 0d 0d 57 68 69 |ex{progr|am}..Whi|
|00000160| 6c 65 20 61 20 6c 61 6e | 67 75 61 67 65 20 73 70 |le a lan|guage sp|
|00000170| 65 63 69 66 69 63 61 74 | 69 6f 6e 20 6e 65 65 64 |ecificat|ion need|
|00000180| 20 6e 6f 74 20 70 72 65 | 73 63 72 69 62 65 20 68 | not pre|scribe h|
|00000190| 6f 77 20 74 68 65 20 6c | 61 6e 67 75 61 67 65 0d |ow the l|anguage.|
|000001a0| 69 6e 74 65 72 70 72 65 | 74 65 72 20 69 73 20 69 |interpre|ter is i|
|000001b0| 6e 76 6f 6b 65 64 2c 20 | 69 74 20 69 73 20 75 73 |nvoked, |it is us|
|000001c0| 65 66 75 6c 20 74 6f 20 | 68 61 76 65 20 61 20 6e |eful to |have a n|
|000001d0| 6f 74 69 6f 6e 20 6f 66 | 20 61 20 63 6f 6d 70 6c |otion of| a compl|
|000001e0| 65 74 65 0d 50 79 74 68 | 6f 6e 20 70 72 6f 67 72 |ete.Pyth|on progr|
|000001f0| 61 6d 2e 20 20 41 20 63 | 6f 6d 70 6c 65 74 65 20 |am. A c|omplete |
|00000200| 50 79 74 68 6f 6e 20 70 | 72 6f 67 72 61 6d 20 69 |Python p|rogram i|
|00000210| 73 20 65 78 65 63 75 74 | 65 64 20 69 6e 20 61 20 |s execut|ed in a |
|00000220| 6d 69 6e 69 6d 61 6c 6c | 79 0d 69 6e 69 74 69 61 |minimall|y.initia|
|00000230| 6c 69 7a 65 64 20 65 6e | 76 69 72 6f 6e 6d 65 6e |lized en|vironmen|
|00000240| 74 3a 20 61 6c 6c 20 62 | 75 69 6c 74 2d 69 6e 20 |t: all b|uilt-in |
|00000250| 61 6e 64 20 73 74 61 6e | 64 61 72 64 20 6d 6f 64 |and stan|dard mod|
|00000260| 75 6c 65 73 20 61 72 65 | 0d 61 76 61 69 6c 61 62 |ules are|.availab|
|00000270| 6c 65 2c 20 62 75 74 20 | 6e 6f 6e 65 20 68 61 76 |le, but |none hav|
|00000280| 65 20 62 65 65 6e 20 69 | 6e 69 74 69 61 6c 69 7a |e been i|nitializ|
|00000290| 65 64 2c 20 65 78 63 65 | 70 74 20 66 6f 72 20 5c |ed, exce|pt for \|
|000002a0| 76 65 72 62 40 73 79 73 | 40 0d 28 76 61 72 69 6f |verb@sys|@.(vario|
|000002b0| 75 73 20 73 79 73 74 65 | 6d 20 73 65 72 76 69 63 |us syste|m servic|
|000002c0| 65 73 29 2c 20 5c 76 65 | 72 62 40 5f 5f 62 75 69 |es), \ve|rb@__bui|
|000002d0| 6c 74 69 6e 5f 5f 40 20 | 28 62 75 69 6c 74 2d 69 |ltin__@ |(built-i|
|000002e0| 6e 20 66 75 6e 63 74 69 | 6f 6e 73 2c 0d 65 78 63 |n functi|ons,.exc|
|000002f0| 65 70 74 69 6f 6e 73 20 | 61 6e 64 20 5c 76 65 72 |eptions |and \ver|
|00000300| 62 40 4e 6f 6e 65 40 29 | 20 61 6e 64 20 5c 76 65 |b@None@)| and \ve|
|00000310| 72 62 40 5f 5f 6d 61 69 | 6e 5f 5f 40 2e 20 20 54 |rb@__mai|n__@. T|
|00000320| 68 65 20 6c 61 74 74 65 | 72 20 69 73 20 75 73 65 |he latte|r is use|
|00000330| 64 0d 74 6f 20 70 72 6f | 76 69 64 65 20 74 68 65 |d.to pro|vide the|
|00000340| 20 6c 6f 63 61 6c 20 61 | 6e 64 20 67 6c 6f 62 61 | local a|nd globa|
|00000350| 6c 20 6e 61 6d 65 20 73 | 70 61 63 65 20 66 6f 72 |l name s|pace for|
|00000360| 20 65 78 65 63 75 74 69 | 6f 6e 20 6f 66 20 74 68 | executi|on of th|
|00000370| 65 0d 63 6f 6d 70 6c 65 | 74 65 20 70 72 6f 67 72 |e.comple|te progr|
|00000380| 61 6d 2e 0d 5c 62 69 6d | 6f 64 69 6e 64 65 78 7b |am..\bim|odindex{|
|00000390| 73 79 73 7d 0d 5c 62 69 | 6d 6f 64 69 6e 64 65 78 |sys}.\bi|modindex|
|000003a0| 7b 5f 5f 6d 61 69 6e 5f | 5f 7d 0d 5c 62 69 6d 6f |{__main_|_}.\bimo|
|000003b0| 64 69 6e 64 65 78 7b 5f | 5f 62 75 69 6c 74 69 6e |dindex{_|_builtin|
|000003c0| 5f 5f 7d 0d 0d 54 68 65 | 20 73 79 6e 74 61 78 20 |__}..The| syntax |
|000003d0| 66 6f 72 20 61 20 63 6f | 6d 70 6c 65 74 65 20 50 |for a co|mplete P|
|000003e0| 79 74 68 6f 6e 20 70 72 | 6f 67 72 61 6d 20 69 73 |ython pr|ogram is|
|000003f0| 20 74 68 61 74 20 66 6f | 72 20 66 69 6c 65 20 69 | that fo|r file i|
|00000400| 6e 70 75 74 2c 0d 64 65 | 73 63 72 69 62 65 64 20 |nput,.de|scribed |
|00000410| 69 6e 20 74 68 65 20 6e | 65 78 74 20 73 65 63 74 |in the n|ext sect|
|00000420| 69 6f 6e 2e 0d 0d 54 68 | 65 20 69 6e 74 65 72 70 |ion...Th|e interp|
|00000430| 72 65 74 65 72 20 6d 61 | 79 20 61 6c 73 6f 20 62 |reter ma|y also b|
|00000440| 65 20 69 6e 76 6f 6b 65 | 64 20 69 6e 20 69 6e 74 |e invoke|d in int|
|00000450| 65 72 61 63 74 69 76 65 | 20 6d 6f 64 65 3b 20 69 |eractive| mode; i|
|00000460| 6e 20 74 68 69 73 20 63 | 61 73 65 2c 0d 69 74 20 |n this c|ase,.it |
|00000470| 64 6f 65 73 20 6e 6f 74 | 20 72 65 61 64 20 61 6e |does not| read an|
|00000480| 64 20 65 78 65 63 75 74 | 65 20 61 20 63 6f 6d 70 |d execut|e a comp|
|00000490| 6c 65 74 65 20 70 72 6f | 67 72 61 6d 20 62 75 74 |lete pro|gram but|
|000004a0| 20 72 65 61 64 73 20 61 | 6e 64 20 65 78 65 63 75 | reads a|nd execu|
|000004b0| 74 65 73 0d 6f 6e 65 20 | 73 74 61 74 65 6d 65 6e |tes.one |statemen|
|000004c0| 74 20 28 70 6f 73 73 69 | 62 6c 79 20 63 6f 6d 70 |t (possi|bly comp|
|000004d0| 6f 75 6e 64 29 20 61 74 | 20 61 20 74 69 6d 65 2e |ound) at| a time.|
|000004e0| 20 20 54 68 65 20 69 6e | 69 74 69 61 6c 20 65 6e | The in|itial en|
|000004f0| 76 69 72 6f 6e 6d 65 6e | 74 0d 69 73 20 69 64 65 |vironmen|t.is ide|
|00000500| 6e 74 69 63 61 6c 20 74 | 6f 20 74 68 61 74 20 6f |ntical t|o that o|
|00000510| 66 20 61 20 63 6f 6d 70 | 6c 65 74 65 20 70 72 6f |f a comp|lete pro|
|00000520| 67 72 61 6d 3b 20 65 61 | 63 68 20 73 74 61 74 65 |gram; ea|ch state|
|00000530| 6d 65 6e 74 20 69 73 20 | 65 78 65 63 75 74 65 64 |ment is |executed|
|00000540| 0d 69 6e 20 74 68 65 20 | 6e 61 6d 65 20 73 70 61 |.in the |name spa|
|00000550| 63 65 20 6f 66 20 5c 76 | 65 72 62 40 5f 5f 6d 61 |ce of \v|erb@__ma|
|00000560| 69 6e 5f 5f 40 2e 0d 5c | 69 6e 64 65 78 7b 69 6e |in__@..\|index{in|
|00000570| 74 65 72 61 63 74 69 76 | 65 20 6d 6f 64 65 7d 0d |teractiv|e mode}.|
|00000580| 0d 55 6e 64 65 72 20 7b | 5c 55 4e 49 58 7d 2c 20 |.Under {|\UNIX}, |
|00000590| 61 20 63 6f 6d 70 6c 65 | 74 65 20 70 72 6f 67 72 |a comple|te progr|
|000005a0| 61 6d 20 63 61 6e 20 62 | 65 20 70 61 73 73 65 64 |am can b|e passed|
|000005b0| 20 74 6f 20 74 68 65 20 | 69 6e 74 65 72 70 72 65 | to the |interpre|
|000005c0| 74 65 72 20 69 6e 0d 74 | 68 72 65 65 20 66 6f 72 |ter in.t|hree for|
|000005d0| 6d 73 3a 20 77 69 74 68 | 20 74 68 65 20 7b 5c 62 |ms: with| the {\b|
|000005e0| 66 20 2d 63 7d 20 7b 5c | 69 74 20 73 74 72 69 6e |f -c} {\|it strin|
|000005f0| 67 7d 20 63 6f 6d 6d 61 | 6e 64 20 6c 69 6e 65 20 |g} comma|nd line |
|00000600| 6f 70 74 69 6f 6e 2c 20 | 61 73 20 61 0d 66 69 6c |option, |as a.fil|
|00000610| 65 20 70 61 73 73 65 64 | 20 61 73 20 74 68 65 20 |e passed| as the |
|00000620| 66 69 72 73 74 20 63 6f | 6d 6d 61 6e 64 20 6c 69 |first co|mmand li|
|00000630| 6e 65 20 61 72 67 75 6d | 65 6e 74 2c 20 6f 72 20 |ne argum|ent, or |
|00000640| 61 73 20 73 74 61 6e 64 | 61 72 64 20 69 6e 70 75 |as stand|ard inpu|
|00000650| 74 2e 0d 49 66 20 74 68 | 65 20 66 69 6c 65 20 6f |t..If th|e file o|
|00000660| 72 20 73 74 61 6e 64 61 | 72 64 20 69 6e 70 75 74 |r standa|rd input|
|00000670| 20 69 73 20 61 20 74 74 | 79 20 64 65 76 69 63 65 | is a tt|y device|
|00000680| 2c 20 74 68 65 20 69 6e | 74 65 72 70 72 65 74 65 |, the in|terprete|
|00000690| 72 20 65 6e 74 65 72 73 | 0d 69 6e 74 65 72 61 63 |r enters|.interac|
|000006a0| 74 69 76 65 20 6d 6f 64 | 65 3b 20 6f 74 68 65 72 |tive mod|e; other|
|000006b0| 77 69 73 65 2c 20 69 74 | 20 65 78 65 63 75 74 65 |wise, it| execute|
|000006c0| 73 20 74 68 65 20 66 69 | 6c 65 20 61 73 20 61 20 |s the fi|le as a |
|000006d0| 63 6f 6d 70 6c 65 74 65 | 0d 70 72 6f 67 72 61 6d |complete|.program|
|000006e0| 2e 0d 5c 69 6e 64 65 78 | 7b 55 4e 49 58 7d 0d 5c |..\index|{UNIX}.\|
|000006f0| 69 6e 64 65 78 7b 63 6f | 6d 6d 61 6e 64 20 6c 69 |index{co|mmand li|
|00000700| 6e 65 7d 0d 5c 69 6e 64 | 65 78 7b 73 74 61 6e 64 |ne}.\ind|ex{stand|
|00000710| 61 72 64 20 69 6e 70 75 | 74 7d 0d 0d 5c 73 65 63 |ard inpu|t}..\sec|
|00000720| 74 69 6f 6e 7b 46 69 6c | 65 20 69 6e 70 75 74 7d |tion{Fil|e input}|
|00000730| 0d 0d 41 6c 6c 20 69 6e | 70 75 74 20 72 65 61 64 |..All in|put read|
|00000740| 20 66 72 6f 6d 20 6e 6f | 6e 2d 69 6e 74 65 72 61 | from no|n-intera|
|00000750| 63 74 69 76 65 20 66 69 | 6c 65 73 20 68 61 73 20 |ctive fi|les has |
|00000760| 74 68 65 20 73 61 6d 65 | 20 66 6f 72 6d 3a 0d 0d |the same| form:..|
|00000770| 5c 62 65 67 69 6e 7b 76 | 65 72 62 61 74 69 6d 7d |\begin{v|erbatim}|
|00000780| 0d 66 69 6c 65 5f 69 6e | 70 75 74 3a 20 20 20 20 |.file_in|put: |
|00000790| 20 28 4e 45 57 4c 49 4e | 45 20 7c 20 73 74 61 74 | (NEWLIN|E | stat|
|000007a0| 65 6d 65 6e 74 29 2a 0d | 5c 65 6e 64 7b 76 65 72 |ement)*.|\end{ver|
|000007b0| 62 61 74 69 6d 7d 0d 0d | 54 68 69 73 20 73 79 6e |batim}..|This syn|
|000007c0| 74 61 78 20 69 73 20 75 | 73 65 64 20 69 6e 20 74 |tax is u|sed in t|
|000007d0| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 73 69 74 |he follo|wing sit|
|000007e0| 75 61 74 69 6f 6e 73 3a | 0d 0d 5c 62 65 67 69 6e |uations:|..\begin|
|000007f0| 7b 69 74 65 6d 69 7a 65 | 7d 0d 0d 5c 69 74 65 6d |{itemize|}..\item|
|00000800| 20 77 68 65 6e 20 70 61 | 72 73 69 6e 67 20 61 20 | when pa|rsing a |
|00000810| 63 6f 6d 70 6c 65 74 65 | 20 50 79 74 68 6f 6e 20 |complete| Python |
|00000820| 70 72 6f 67 72 61 6d 20 | 28 66 72 6f 6d 20 61 20 |program |(from a |
|00000830| 66 69 6c 65 20 6f 72 20 | 66 72 6f 6d 20 61 20 73 |file or |from a s|
|00000840| 74 72 69 6e 67 29 3b 0d | 0d 5c 69 74 65 6d 20 77 |tring);.|.\item w|
|00000850| 68 65 6e 20 70 61 72 73 | 69 6e 67 20 61 20 6d 6f |hen pars|ing a mo|
|00000860| 64 75 6c 65 3b 0d 0d 5c | 69 74 65 6d 20 77 68 65 |dule;..\|item whe|
|00000870| 6e 20 70 61 72 73 69 6e | 67 20 61 20 73 74 72 69 |n parsin|g a stri|
|00000880| 6e 67 20 70 61 73 73 65 | 64 20 74 6f 20 74 68 65 |ng passe|d to the|
|00000890| 20 5c 76 65 72 62 40 65 | 78 65 63 40 20 73 74 61 | \verb@e|xec@ sta|
|000008a0| 74 65 6d 65 6e 74 3b 0d | 0d 5c 65 6e 64 7b 69 74 |tement;.|.\end{it|
|000008b0| 65 6d 69 7a 65 7d 0d 0d | 5c 73 65 63 74 69 6f 6e |emize}..|\section|
|000008c0| 7b 49 6e 74 65 72 61 63 | 74 69 76 65 20 69 6e 70 |{Interac|tive inp|
|000008d0| 75 74 7d 0d 0d 49 6e 70 | 75 74 20 69 6e 20 69 6e |ut}..Inp|ut in in|
|000008e0| 74 65 72 61 63 74 69 76 | 65 20 6d 6f 64 65 20 69 |teractiv|e mode i|
|000008f0| 73 20 70 61 72 73 65 64 | 20 75 73 69 6e 67 20 74 |s parsed| using t|
|00000900| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 67 72 61 |he follo|wing gra|
|00000910| 6d 6d 61 72 3a 0d 0d 5c | 62 65 67 69 6e 7b 76 65 |mmar:..\|begin{ve|
|00000920| 72 62 61 74 69 6d 7d 0d | 69 6e 74 65 72 61 63 74 |rbatim}.|interact|
|00000930| 69 76 65 5f 69 6e 70 75 | 74 3a 20 5b 73 74 6d 74 |ive_inpu|t: [stmt|
|00000940| 5f 6c 69 73 74 5d 20 4e | 45 57 4c 49 4e 45 20 7c |_list] N|EWLINE ||
|00000950| 20 63 6f 6d 70 6f 75 6e | 64 5f 73 74 6d 74 20 4e | compoun|d_stmt N|
|00000960| 45 57 4c 49 4e 45 0d 5c | 65 6e 64 7b 76 65 72 62 |EWLINE.\|end{verb|
|00000970| 61 74 69 6d 7d 0d 0d 4e | 6f 74 65 20 74 68 61 74 |atim}..N|ote that|
|00000980| 20 61 20 28 74 6f 70 2d | 6c 65 76 65 6c 29 20 63 | a (top-|level) c|
|00000990| 6f 6d 70 6f 75 6e 64 20 | 73 74 61 74 65 6d 65 6e |ompound |statemen|
|000009a0| 74 20 6d 75 73 74 20 62 | 65 20 66 6f 6c 6c 6f 77 |t must b|e follow|
|000009b0| 65 64 20 62 79 20 61 20 | 62 6c 61 6e 6b 0d 6c 69 |ed by a |blank.li|
|000009c0| 6e 65 20 69 6e 20 69 6e | 74 65 72 61 63 74 69 76 |ne in in|teractiv|
|000009d0| 65 20 6d 6f 64 65 3b 20 | 74 68 69 73 20 69 73 20 |e mode; |this is |
|000009e0| 6e 65 65 64 65 64 20 74 | 6f 20 68 65 6c 70 20 74 |needed t|o help t|
|000009f0| 68 65 20 70 61 72 73 65 | 72 20 64 65 74 65 63 74 |he parse|r detect|
|00000a00| 20 74 68 65 0d 65 6e 64 | 20 6f 66 20 74 68 65 20 | the.end| of the |
|00000a10| 69 6e 70 75 74 2e 0d 0d | 5c 73 65 63 74 69 6f 6e |input...|\section|
|00000a20| 7b 45 78 70 72 65 73 73 | 69 6f 6e 20 69 6e 70 75 |{Express|ion inpu|
|00000a30| 74 7d 0d 5c 69 6e 64 65 | 78 7b 69 6e 70 75 74 7d |t}.\inde|x{input}|
|00000a40| 0d 0d 54 68 65 72 65 20 | 61 72 65 20 74 77 6f 20 |..There |are two |
|00000a50| 66 6f 72 6d 73 20 6f 66 | 20 65 78 70 72 65 73 73 |forms of| express|
|00000a60| 69 6f 6e 20 69 6e 70 75 | 74 2e 20 20 42 6f 74 68 |ion inpu|t. Both|
|00000a70| 20 69 67 6e 6f 72 65 20 | 6c 65 61 64 69 6e 67 0d | ignore |leading.|
|00000a80| 77 68 69 74 65 73 70 61 | 63 65 2e 0d 20 0d 54 68 |whitespa|ce.. .Th|
|00000a90| 65 20 73 74 72 69 6e 67 | 20 61 72 67 75 6d 65 6e |e string| argumen|
|00000aa0| 74 20 74 6f 20 5c 76 65 | 72 62 40 65 76 61 6c 28 |t to \ve|rb@eval(|
|00000ab0| 29 40 20 6d 75 73 74 20 | 68 61 76 65 20 74 68 65 |)@ must |have the|
|00000ac0| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 66 6f 72 6d 3a | followi|ng form:|
|00000ad0| 0d 5c 62 69 66 75 6e 63 | 69 6e 64 65 78 7b 65 76 |.\bifunc|index{ev|
|00000ae0| 61 6c 7d 0d 0d 5c 62 65 | 67 69 6e 7b 76 65 72 62 |al}..\be|gin{verb|
|00000af0| 61 74 69 6d 7d 0d 65 76 | 61 6c 5f 69 6e 70 75 74 |atim}.ev|al_input|
|00000b00| 3a 20 20 20 20 20 63 6f | 6e 64 69 74 69 6f 6e 5f |: co|ndition_|
|00000b10| 6c 69 73 74 20 4e 45 57 | 4c 49 4e 45 2a 0d 5c 65 |list NEW|LINE*.\e|
|00000b20| 6e 64 7b 76 65 72 62 61 | 74 69 6d 7d 0d 0d 54 68 |nd{verba|tim}..Th|
|00000b30| 65 20 69 6e 70 75 74 20 | 6c 69 6e 65 20 72 65 61 |e input |line rea|
|00000b40| 64 20 62 79 20 5c 76 65 | 72 62 40 69 6e 70 75 74 |d by \ve|rb@input|
|00000b50| 28 29 40 20 6d 75 73 74 | 20 68 61 76 65 20 74 68 |()@ must| have th|
|00000b60| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 66 6f 72 6d |e follow|ing form|
|00000b70| 3a 0d 5c 62 69 66 75 6e | 63 69 6e 64 65 78 7b 69 |:.\bifun|cindex{i|
|00000b80| 6e 70 75 74 7d 0d 0d 5c | 62 65 67 69 6e 7b 76 65 |nput}..\|begin{ve|
|00000b90| 72 62 61 74 69 6d 7d 0d | 69 6e 70 75 74 5f 69 6e |rbatim}.|input_in|
|00000ba0| 70 75 74 3a 20 20 20 20 | 63 6f 6e 64 69 74 69 6f |put: |conditio|
|00000bb0| 6e 5f 6c 69 73 74 20 4e | 45 57 4c 49 4e 45 0d 5c |n_list N|EWLINE.\|
|00000bc0| 65 6e 64 7b 76 65 72 62 | 61 74 69 6d 7d 0d 0d 4e |end{verb|atim}..N|
|00000bd0| 6f 74 65 3a 20 74 6f 20 | 72 65 61 64 20 60 72 61 |ote: to |read `ra|
|00000be0| 77 27 20 69 6e 70 75 74 | 20 6c 69 6e 65 20 77 69 |w' input| line wi|
|00000bf0| 74 68 6f 75 74 20 69 6e | 74 65 72 70 72 65 74 61 |thout in|terpreta|
|00000c00| 74 69 6f 6e 2c 20 79 6f | 75 20 63 61 6e 20 75 73 |tion, yo|u can us|
|00000c10| 65 20 74 68 65 0d 62 75 | 69 6c 74 2d 69 6e 20 66 |e the.bu|ilt-in f|
|00000c20| 75 6e 63 74 69 6f 6e 20 | 5c 76 65 72 62 40 72 61 |unction |\verb@ra|
|00000c30| 77 5f 69 6e 70 75 74 28 | 29 40 20 20 6f 72 20 74 |w_input(|)@ or t|
|00000c40| 68 65 20 5c 76 65 72 62 | 40 72 65 61 64 6c 69 6e |he \verb|@readlin|
|00000c50| 65 28 29 40 20 6d 65 74 | 68 6f 64 0d 6f 66 20 66 |e()@ met|hod.of f|
|00000c60| 69 6c 65 20 6f 62 6a 65 | 63 74 73 2e 0d 5c 6f 62 |ile obje|cts..\ob|
|00000c70| 69 6e 64 65 78 7b 66 69 | 6c 65 7d 0d 5c 69 6e 64 |index{fi|le}.\ind|
|00000c80| 65 78 7b 69 6e 70 75 74 | 21 72 61 77 7d 0d 5c 69 |ex{input|!raw}.\i|
|00000c90| 6e 64 65 78 7b 72 61 77 | 20 69 6e 70 75 74 7d 0d |ndex{raw| input}.|
|00000ca0| 5c 62 69 66 75 6e 63 69 | 6e 64 65 78 7b 72 61 77 |\bifunci|ndex{raw|
|00000cb0| 5f 69 6e 64 65 78 7d 0d | 5c 74 74 69 6e 64 65 78 |_index}.|\ttindex|
|00000cc0| 7b 72 65 61 64 6c 69 6e | 65 7d 0d |{readlin|e}. |
+--------+-------------------------+-------------------------+--------+--------+