blob: 9b272771c8c02493b5d193ef7b580e1a5f0c2791 [file] [log] [blame]
Fred Drake295da241998-08-10 19:42:37 +00001\section{\module{symbol} ---
Fred Drakebbac4321999-02-20 00:14:17 +00002 Constants used with Python parse trees}
Fred Drakeb91e9341998-07-23 17:59:49 +00003
Fred Drakebbac4321999-02-20 00:14:17 +00004\declaremodule{standard}{symbol}
Fred Drakeb91e9341998-07-23 17:59:49 +00005\modulesynopsis{Constants representing internal nodes of the parse tree.}
Fred Drakebbac4321999-02-20 00:14:17 +00006\sectionauthor{Fred L. Drake, Jr.}{fdrake@acm.org}
Fred Drakeb91e9341998-07-23 17:59:49 +00007
Fred Drakeb0df5671998-02-18 15:59:13 +00008
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 defintions 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
Fred Drakeb0df5671998-02-18 15:59:13 +000018
19
20\begin{datadesc}{sym_name}
21Dictionary mapping the numeric values of the constants defined in this
22module back to name strings, allowing more human-readable
23representation of parse trees to be generated.
24\end{datadesc}
25
26\begin{seealso}
27\seemodule{parser}{second example uses this module}
28\end{seealso}