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