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