blob: 6dbc76eaf5d5b347f8223d2328de7da4f7217460 [file] [log] [blame]
Fred Drake3a0351c1998-04-04 07:23:21 +00001\section{Standard Module \module{symbol}}
Fred Drakeb91e9341998-07-23 17:59:49 +00002\declaremodule{standard}{symbol}
3
4\modulesynopsis{Constants representing internal nodes of the parse tree.}
5
Fred Drakeb0df5671998-02-18 15:59:13 +00006
7This module provides constants which represent the numeric values of
8internal nodes of the parse tree. Unlike most Python constants, these
9use lower-case names. Refer to the file \file{Grammar/Grammar} in the
10Python distribution for the defintions of the names in the context of
11the language grammar. The specific numeric values which the names map
12to may change between Python versions.
13
14This module also provides one additional data object:
15
Fred Drakeb0df5671998-02-18 15:59:13 +000016
17
18\begin{datadesc}{sym_name}
19Dictionary mapping the numeric values of the constants defined in this
20module back to name strings, allowing more human-readable
21representation of parse trees to be generated.
22\end{datadesc}
23
24\begin{seealso}
25\seemodule{parser}{second example uses this module}
26\end{seealso}