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