Last change
on this file was 391, checked in by dmik, 11 years ago |
python: Merge vendor 2.7.6 to trunk.
|
-
Property svn:eol-style
set to
native
|
File size:
975 bytes
|
Rev | Line | |
---|
[2] | 1 | :mod:`symbol` --- Constants used with Python parse trees
|
---|
| 2 | ========================================================
|
---|
| 3 |
|
---|
| 4 | .. module:: symbol
|
---|
| 5 | :synopsis: Constants representing internal nodes of the parse tree.
|
---|
| 6 | .. sectionauthor:: Fred L. Drake, Jr. <fdrake@acm.org>
|
---|
| 7 |
|
---|
[391] | 8 | **Source code:** :source:`Lib/symbol.py`
|
---|
[2] | 9 |
|
---|
[391] | 10 | --------------
|
---|
| 11 |
|
---|
[2] | 12 | This module provides constants which represent the numeric values of internal
|
---|
| 13 | nodes of the parse tree. Unlike most Python constants, these use lower-case
|
---|
| 14 | names. Refer to the file :file:`Grammar/Grammar` in the Python distribution for
|
---|
| 15 | the definitions of the names in the context of the language grammar. The
|
---|
| 16 | specific numeric values which the names map to may change between Python
|
---|
| 17 | versions.
|
---|
| 18 |
|
---|
| 19 | This module also provides one additional data object:
|
---|
| 20 |
|
---|
| 21 |
|
---|
| 22 | .. data:: sym_name
|
---|
| 23 |
|
---|
| 24 | Dictionary mapping the numeric values of the constants defined in this module
|
---|
| 25 | back to name strings, allowing more human-readable representation of parse trees
|
---|
| 26 | to be generated.
|
---|
| 27 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.