source: vendor/python/2.5/Doc/lib/libsymbol.tex

Last change on this file was 3225, checked in by bird, 18 years ago

Python 2.5

File size: 1.1 KB
Line 
1\section{\module{symbol} ---
2 Constants used with Python parse trees}
3
4\declaremodule{standard}{symbol}
5\modulesynopsis{Constants representing internal nodes of the parse tree.}
6\sectionauthor{Fred L. Drake, Jr.}{fdrake@acm.org}
7
8
9This module provides constants which represent the numeric values of
10internal nodes of the parse tree. Unlike most Python constants, these
11use lower-case names. Refer to the file \file{Grammar/Grammar} in the
12Python distribution for the definitions of the names in the context of
13the language grammar. The specific numeric values which the names map
14to may change between Python versions.
15
16This module also provides one additional data object:
17
18
19\begin{datadesc}{sym_name}
20 Dictionary mapping the numeric values of the constants defined in
21 this module back to name strings, allowing more human-readable
22 representation of parse trees to be generated.
23\end{datadesc}
24
25
26\begin{seealso}
27 \seemodule{parser}{The second example for the \refmodule{parser}
28 module shows how to use the \module{symbol}
29 module.}
30\end{seealso}
Note: See TracBrowser for help on using the repository browser.