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