blob: f963b5363ba6023d23fdd3d7ce4a1109bc30348f [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
Thomas Woutersf8316632000-07-16 19:01:10 +000012Python distribution for the definitions of the names in the context of
Fred Drakeb0df5671998-02-18 15:59:13 +000013the 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}