home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / OPENSTEP / Languages / Python / python-14-src / Doc / libparser.tex / node2_ct.html < prev    next >
LaTeX Document  |  1997-01-17  |  2.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: LaTeX Document (document/latex).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
90% dexvert Hypertext Markup Language File (text/html) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file HTML document text default (weak)
99% file LaTeX document text default
98% file exported SGML document text default
97% file exported SGML document, ASCII text default
80% TrID HyperText Markup Language with DOCTYPE default
19% TrID HyperText Markup Language default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% gt2 HTML (Hyper Text Markup Language) Datei default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime text/html default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3c 21 44 4f 43 54 59 50 | 45 20 48 54 4d 4c 20 50 |<!DOCTYP|E HTML P|
|00000010| 55 42 4c 49 43 20 22 2d | 2f 2f 57 33 43 2f 2f 44 |UBLIC "-|//W3C//D|
|00000020| 54 44 20 48 54 4d 4c 20 | 33 2e 32 20 46 69 6e 61 |TD HTML |3.2 Fina|
|00000030| 6c 2f 2f 65 6e 22 3e 0a | 0a 3c 21 2d 2d 43 6f 6e |l//en">.|.<!--Con|
|00000040| 76 65 72 74 65 64 20 77 | 69 74 68 20 4c 61 54 65 |verted w|ith LaTe|
|00000050| 58 32 48 54 4d 4c 20 32 | 30 32 32 20 28 52 65 6c |X2HTML 2|022 (Rel|
|00000060| 65 61 73 65 64 20 4a 61 | 6e 75 61 72 79 20 31 2c |eased Ja|nuary 1,|
|00000070| 20 32 30 32 32 29 20 2d | 2d 3e 0a 3c 48 54 4d 4c | 2022) -|->.<HTML|
|00000080| 20 6c 61 6e 67 3d 22 65 | 6e 22 3e 0a 3c 48 45 41 | lang="e|n">.<HEA|
|00000090| 44 3e 0a 3c 54 49 54 4c | 45 3e 43 6f 6e 74 65 6e |D>.<TITL|E>Conten|
|000000a0| 74 73 20 6f 66 20 43 72 | 65 61 74 69 6e 67 20 41 |ts of Cr|eating A|
|000000b0| 53 54 20 4f 62 6a 65 63 | 74 73 3c 2f 54 49 54 4c |ST Objec|ts</TITL|
|000000c0| 45 3e 0a 0a 3c 4d 45 54 | 41 20 48 54 54 50 2d 45 |E>..<MET|A HTTP-E|
|000000d0| 51 55 49 56 3d 22 43 6f | 6e 74 65 6e 74 2d 54 79 |QUIV="Co|ntent-Ty|
|000000e0| 70 65 22 20 43 4f 4e 54 | 45 4e 54 3d 22 74 65 78 |pe" CONT|ENT="tex|
|000000f0| 74 2f 68 74 6d 6c 3b 20 | 63 68 61 72 73 65 74 3d |t/html; |charset=|
|00000100| 75 74 66 2d 38 22 3e 0a | 3c 4d 45 54 41 20 4e 41 |utf-8">.|<META NA|
|00000110| 4d 45 3d 22 76 69 65 77 | 70 6f 72 74 22 20 43 4f |ME="view|port" CO|
|00000120| 4e 54 45 4e 54 3d 22 77 | 69 64 74 68 3d 64 65 76 |NTENT="w|idth=dev|
|00000130| 69 63 65 2d 77 69 64 74 | 68 2c 20 69 6e 69 74 69 |ice-widt|h, initi|
|00000140| 61 6c 2d 73 63 61 6c 65 | 3d 31 2e 30 22 3e 0a 3c |al-scale|=1.0">.<|
|00000150| 4d 45 54 41 20 4e 41 4d | 45 3d 22 47 65 6e 65 72 |META NAM|E="Gener|
|00000160| 61 74 6f 72 22 20 43 4f | 4e 54 45 4e 54 3d 22 4c |ator" CO|NTENT="L|
|00000170| 61 54 65 58 32 48 54 4d | 4c 20 76 32 30 32 32 22 |aTeX2HTM|L v2022"|
|00000180| 3e 0a 0a 3c 4c 49 4e 4b | 20 52 45 4c 3d 22 53 54 |>..<LINK| REL="ST|
|00000190| 59 4c 45 53 48 45 45 54 | 22 20 48 52 45 46 3d 22 |YLESHEET|" HREF="|
|000001a0| 6c 69 62 70 61 72 73 65 | 72 2e 63 73 73 22 3e 0a |libparse|r.css">.|
|000001b0| 0a 3c 4c 49 4e 4b 20 52 | 45 4c 3d 22 6e 65 78 74 |.<LINK R|EL="next|
|000001c0| 22 20 48 52 45 46 3d 22 | 6e 6f 64 65 33 5f 6d 6e |" HREF="|node3_mn|
|000001d0| 2e 68 74 6d 6c 22 3e 0a | 3c 4c 49 4e 4b 20 52 45 |.html">.|<LINK RE|
|000001e0| 4c 3d 22 70 72 65 76 69 | 6f 75 73 22 20 48 52 45 |L="previ|ous" HRE|
|000001f0| 46 3d 22 6e 6f 64 65 31 | 5f 6d 6e 2e 68 74 6d 6c |F="node1|_mn.html|
|00000200| 22 3e 0a 3c 4c 49 4e 4b | 20 52 45 4c 3d 22 75 70 |">.<LINK| REL="up|
|00000210| 22 20 48 52 45 46 3d 22 | 6e 6f 64 65 31 5f 6d 6e |" HREF="|node1_mn|
|00000220| 2e 68 74 6d 6c 22 3e 0a | 3c 4c 49 4e 4b 20 52 45 |.html">.|<LINK RE|
|00000230| 4c 3d 22 6e 65 78 74 22 | 20 48 52 45 46 3d 22 6e |L="next"| HREF="n|
|00000240| 6f 64 65 33 5f 6d 6e 2e | 68 74 6d 6c 22 3e 0a 3c |ode3_mn.|html">.<|
|00000250| 2f 48 45 41 44 3e 0a 20 | 0a 3c 42 4f 44 59 20 62 |/HEAD>. |.<BODY b|
|00000260| 67 63 6f 6c 6f 72 3d 22 | 23 66 66 66 66 66 66 22 |gcolor="|#ffffff"|
|00000270| 20 74 65 78 74 3d 22 23 | 30 30 30 30 30 30 22 20 | text="#|000000" |
|00000280| 6c 69 6e 6b 3d 22 23 39 | 39 34 34 45 45 22 20 76 |link="#9|944EE" v|
|00000290| 6c 69 6e 6b 3d 22 23 30 | 30 30 30 66 66 22 20 61 |link="#0|000ff" a|
|000002a0| 6c 69 6e 6b 3d 22 23 30 | 30 66 66 30 30 22 3e 0a |link="#0|0ff00">.|
|000002b0| 0a 3c 48 32 3e 3c 41 20 | 49 44 3d 22 53 45 43 54 |.<H2><A |ID="SECT|
|000002c0| 49 4f 4e 30 30 30 31 31 | 30 30 30 30 30 30 30 30 |ION00011|00000000|
|000002d0| 30 30 30 30 30 30 30 22 | 3e 0a 43 72 65 61 74 69 |0000000"|>.Creati|
|000002e0| 6e 67 20 41 53 54 20 4f | 62 6a 65 63 74 73 3c 2f |ng AST O|bjects</|
|000002f0| 41 3e 0a 3c 2f 48 32 3e | 0a 0a 3c 50 3e 0a 41 53 |A>.</H2>|..<P>.AS|
|00000300| 54 20 6f 62 6a 65 63 74 | 73 20 6d 61 79 20 62 65 |T object|s may be|
|00000310| 20 63 72 65 61 74 65 64 | 20 66 72 6f 6d 20 73 6f | created| from so|
|00000320| 75 72 63 65 20 63 6f 64 | 65 20 6f 72 20 66 72 6f |urce cod|e or fro|
|00000330| 6d 20 61 20 70 61 72 73 | 65 20 74 72 65 65 2e 0a |m a pars|e tree..|
|00000340| 57 68 65 6e 20 63 72 65 | 61 74 69 6e 67 20 61 6e |When cre|ating an|
|00000350| 20 41 53 54 20 6f 62 6a | 65 63 74 20 66 72 6f 6d | AST obj|ect from|
|00000360| 20 73 6f 75 72 63 65 2c | 20 64 69 66 66 65 72 65 | source,| differe|
|00000370| 6e 74 20 66 75 6e 63 74 | 69 6f 6e 73 20 61 72 65 |nt funct|ions are|
|00000380| 20 75 73 65 64 0a 74 6f | 20 63 72 65 61 74 65 20 | used.to| create |
|00000390| 74 68 65 20 27 65 76 61 | 6c 27 20 61 6e 64 20 27 |the 'eva|l' and '|
|000003a0| 65 78 65 63 27 20 66 6f | 72 6d 73 2e 0a 0a 3c 50 |exec' fo|rms...<P|
|000003b0| 3e 0a 3c 42 52 3e 0a 3c | 49 4d 47 0a 20 20 53 54 |>.<BR>.<|IMG. ST|
|000003c0| 59 4c 45 3d 22 68 65 69 | 67 68 74 3a 20 31 39 36 |YLE="hei|ght: 196|
|000003d0| 2e 32 35 65 78 3b 20 76 | 65 72 74 69 63 61 6c 2d |.25ex; v|ertical-|
|000003e0| 61 6c 69 67 6e 3a 20 2d | 30 2e 37 30 65 78 3b 20 |align: -|0.70ex; |
|000003f0| 22 20 53 52 43 3d 22 69 | 6d 67 31 2e 70 6e 67 22 |" SRC="i|mg1.png"|
|00000400| 0a 20 41 4c 54 3d 22 5c | 62 65 67 69 6e 7b 66 75 |. ALT="\|begin{fu|
|00000410| 6e 63 64 65 73 63 7d 7b | 65 78 70 72 7d 7b 73 74 |ncdesc}{|expr}{st|
|00000420| 72 69 6e 67 7d 0a 54 68 | 65 20 5c 63 6f 64 65 7b |ring}.Th|e \code{|
|00000430| 65 78 70 72 28 29 7d 20 | 66 75 6e 63 74 69 6f 6e |expr()} |function|
|00000440| 20 70 61 72 73 65 73 20 | 74 68 65 20 70 61 72 61 | parses |the para|
|00000450| 6d 65 74 65 72 20 5c 2e | 2e 2e 0a 2e 2e 2e 72 65 |meter \.|......re|
|00000460| 65 20 72 65 70 72 65 73 | 65 6e 74 61 74 69 6f 6e |e repres|entation|
|00000470| 2c 20 6f 74 68 65 72 77 | 69 73 65 20 61 6e 20 61 |, otherw|ise an a|
|00000480| 70 70 72 6f 70 72 69 61 | 74 65 20 65 78 63 65 70 |ppropria|te excep|
|00000490| 74 69 6f 6e 20 69 73 0a | 74 68 72 6f 77 6e 2e 0a |tion is.|thrown..|
|000004a0| 5c 65 6e 64 7b 66 75 6e | 63 64 65 73 63 7d 22 3e |\end{fun|cdesc}">|
|000004b0| 0a 3c 42 52 3e 0a 0a 3c | 50 3e 0a 3c 42 52 3e 0a |.<BR>..<|P>.<BR>.|
|000004c0| 3c 49 4d 47 0a 20 20 53 | 54 59 4c 45 3d 22 68 65 |<IMG. S|TYLE="he|
|000004d0| 69 67 68 74 3a 20 32 2e | 33 38 65 78 3b 20 76 65 |ight: 2.|38ex; ve|
|000004e0| 72 74 69 63 61 6c 2d 61 | 6c 69 67 6e 3a 20 31 37 |rtical-a|lign: 17|
|000004f0| 36 2e 32 37 65 78 3b 20 | 22 20 53 52 43 3d 22 69 |6.27ex; |" SRC="i|
|00000500| 6d 67 32 2e 70 6e 67 22 | 0a 20 41 4c 54 3d 22 5c |mg2.png"|. ALT="\|
|00000510| 62 65 67 69 6e 7b 66 75 | 6e 63 64 65 73 63 7d 7b |begin{fu|ncdesc}{|
|00000520| 73 75 69 74 65 7d 7b 73 | 74 72 69 6e 67 7d 0a 54 |suite}{s|tring}.T|
|00000530| 68 65 20 5c 63 6f 64 65 | 7b 73 75 69 74 65 28 29 |he \code|{suite()|
|00000540| 7d 20 66 75 6e 63 74 69 | 6f 6e 20 70 61 72 73 65 |} functi|on parse|
|00000550| 73 20 74 68 65 20 70 61 | 72 61 6d 65 74 65 72 2e |s the pa|rameter.|
|00000560| 2e 2e 0a 2e 2e 2e 72 65 | 65 20 72 65 70 72 65 73 |......re|e repres|
|00000570| 65 6e 74 61 74 69 6f 6e | 2c 20 6f 74 68 65 72 77 |entation|, otherw|
|00000580| 69 73 65 20 61 6e 20 61 | 70 70 72 6f 70 72 69 61 |ise an a|ppropria|
|00000590| 74 65 20 65 78 63 65 70 | 74 69 6f 6e 20 69 73 0a |te excep|tion is.|
|000005a0| 74 68 72 6f 77 6e 2e 0a | 5c 65 6e 64 7b 66 75 6e |thrown..|\end{fun|
|000005b0| 63 64 65 73 63 7d 22 3e | 0a 3c 42 52 3e 0a 0a 3c |cdesc}">|.<BR>..<|
|000005c0| 50 3e 0a 3c 42 52 3e 0a | 3c 49 4d 47 0a 20 20 53 |P>.<BR>.|<IMG. S|
|000005d0| 54 59 4c 45 3d 22 68 65 | 69 67 68 74 3a 20 32 2e |TYLE="he|ight: 2.|
|000005e0| 33 38 65 78 3b 20 76 65 | 72 74 69 63 61 6c 2d 61 |38ex; ve|rtical-a|
|000005f0| 6c 69 67 6e 3a 20 31 37 | 36 2e 32 37 65 78 3b 20 |lign: 17|6.27ex; |
|00000600| 22 20 53 52 43 3d 22 69 | 6d 67 33 2e 70 6e 67 22 |" SRC="i|mg3.png"|
|00000610| 0a 20 41 4c 54 3d 22 5c | 62 65 67 69 6e 7b 66 75 |. ALT="\|begin{fu|
|00000620| 6e 63 64 65 73 63 7d 7b | 73 65 71 75 65 6e 63 65 |ncdesc}{|sequence|
|00000630| 32 61 73 74 7d 7b 73 65 | 71 75 65 6e 63 65 7d 0a |2ast}{se|quence}.|
|00000640| 54 68 69 73 20 66 75 6e | 63 74 69 6f 6e 20 61 63 |This fun|ction ac|
|00000650| 63 65 70 74 73 20 61 20 | 70 61 72 73 65 20 74 72 |cepts a |parse tr|
|00000660| 65 65 20 72 65 70 72 2e | 2e 2e 0a 2e 2e 2e 65 63 |ee repr.|......ec|
|00000670| 69 66 69 65 64 20 66 6f | 72 20 61 6e 79 20 73 75 |ified fo|r any su|
|00000680| 62 73 65 74 20 6f 66 20 | 74 68 65 20 74 65 72 6d |bset of |the term|
|00000690| 69 6e 61 6c 20 73 79 6d | 62 6f 6c 73 20 69 6e 20 |inal sym|bols in |
|000006a0| 74 68 65 20 69 6e 70 75 | 74 0a 74 72 65 65 2e 0a |the inpu|t.tree..|
|000006b0| 5c 65 6e 64 7b 66 75 6e | 63 64 65 73 63 7d 22 3e |\end{fun|cdesc}">|
|000006c0| 0a 3c 42 52 3e 0a 0a 3c | 50 3e 0a 3c 42 52 3e 0a |.<BR>..<|P>.<BR>.|
|000006d0| 3c 49 4d 47 0a 20 20 53 | 54 59 4c 45 3d 22 68 65 |<IMG. S|TYLE="he|
|000006e0| 69 67 68 74 3a 20 32 2e | 31 37 65 78 3b 20 76 65 |ight: 2.|17ex; ve|
|000006f0| 72 74 69 63 61 6c 2d 61 | 6c 69 67 6e 3a 20 31 37 |rtical-a|lign: 17|
|00000700| 36 2e 34 31 65 78 3b 20 | 22 20 53 52 43 3d 22 69 |6.41ex; |" SRC="i|
|00000710| 6d 67 34 2e 70 6e 67 22 | 0a 20 41 4c 54 3d 22 5c |mg4.png"|. ALT="\|
|00000720| 62 65 67 69 6e 7b 66 75 | 6e 63 64 65 73 63 7d 7b |begin{fu|ncdesc}{|
|00000730| 74 75 70 6c 65 32 61 73 | 74 7d 7b 73 65 71 75 65 |tuple2as|t}{seque|
|00000740| 6e 63 65 7d 0a 54 68 69 | 73 20 69 73 20 74 68 65 |nce}.Thi|s is the|
|00000750| 20 73 61 6d 65 20 66 75 | 6e 63 74 69 6f 6e 20 61 | same fu|nction a|
|00000760| 73 20 5c 63 6f 64 65 7b | 73 65 71 75 65 6e 63 65 |s \code{|sequence|
|00000770| 32 61 73 74 28 29 7d 2e | 20 54 68 69 73 20 65 6e |2ast()}.| This en|
|00000780| 74 72 79 20 70 6f 69 6e | 74 0a 69 73 20 6d 61 69 |try poin|t.is mai|
|00000790| 6e 74 61 69 6e 65 64 20 | 66 6f 72 20 62 61 63 6b |ntained |for back|
|000007a0| 77 61 72 64 20 63 6f 6d | 70 61 74 69 62 69 6c 69 |ward com|patibili|
|000007b0| 74 79 2e 0a 5c 65 6e 64 | 7b 66 75 6e 63 64 65 73 |ty..\end|{funcdes|
|000007c0| 63 7d 22 3e 0a 3c 42 52 | 3e 0a 0a 3c 50 3e 0a 0a |c}">.<BR|>..<P>..|
|000007d0| 3c 48 52 3e 0a 0a 3c 2f | 42 4f 44 59 3e 0a 3c 2f |<HR>..</|BODY>.</|
|000007e0| 48 54 4d 4c 3e 0a | |HTML>. | |
+--------+-------------------------+-------------------------+--------+--------+