Mercurial > cpython-lru_cache-weakref
annotate Demo/parser/README @ 58925:eecf1bef052d 2.6
Merged revisions 78207 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r78207 | ezio.melotti | 2010-02-17 01:26:09 +0200 (Wed, 17 Feb 2010) | 1 line
#7930: fix stripid
........
| author | Ezio Melotti <ezio.melotti@gmail.com> |
|---|---|
| date | Tue, 16 Feb 2010 23:29:44 +0000 |
| parents | dfab22ae48e3 |
| children | 9dcc93fe7528 |
| rev | line source |
|---|---|
|
4088
f81d78547f28
Demos for Fred's parser module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
1 These files are from the large example of using the `parser' module. Refer |
|
f81d78547f28
Demos for Fred's parser module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
2 to the Python Library Reference for more information. |
|
f81d78547f28
Demos for Fred's parser module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
3 |
|
36694
dfab22ae48e3
Start of a source code unparser.
Martin v. Löwis <martin@v.loewis.de>
parents:
35440
diff
changeset
|
4 It also contains examples for the AST parser. |
|
dfab22ae48e3
Start of a source code unparser.
Martin v. Löwis <martin@v.loewis.de>
parents:
35440
diff
changeset
|
5 |
|
4088
f81d78547f28
Demos for Fred's parser module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
6 Files: |
|
f81d78547f28
Demos for Fred's parser module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
7 ------ |
|
f81d78547f28
Demos for Fred's parser module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
8 |
|
4132
c18d52e06238
Final set of changes by Fred before 1.4beta3
Guido van Rossum <guido@python.org>
parents:
4088
diff
changeset
|
9 FILES -- list of files associated with the parser module. |
|
c18d52e06238
Final set of changes by Fred before 1.4beta3
Guido van Rossum <guido@python.org>
parents:
4088
diff
changeset
|
10 |
|
c18d52e06238
Final set of changes by Fred before 1.4beta3
Guido van Rossum <guido@python.org>
parents:
4088
diff
changeset
|
11 README -- this file. |
|
c18d52e06238
Final set of changes by Fred before 1.4beta3
Guido van Rossum <guido@python.org>
parents:
4088
diff
changeset
|
12 |
|
4088
f81d78547f28
Demos for Fred's parser module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
13 example.py -- module that uses the `parser' module to extract |
|
f81d78547f28
Demos for Fred's parser module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
14 information from the parse tree of Python source |
|
f81d78547f28
Demos for Fred's parser module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
15 code. |
|
f81d78547f28
Demos for Fred's parser module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
16 |
|
4132
c18d52e06238
Final set of changes by Fred before 1.4beta3
Guido van Rossum <guido@python.org>
parents:
4088
diff
changeset
|
17 docstring.py -- sample source file containing only a module docstring. |
|
c18d52e06238
Final set of changes by Fred before 1.4beta3
Guido van Rossum <guido@python.org>
parents:
4088
diff
changeset
|
18 |
|
c18d52e06238
Final set of changes by Fred before 1.4beta3
Guido van Rossum <guido@python.org>
parents:
4088
diff
changeset
|
19 simple.py -- sample source containing a "short form" definition. |
|
c18d52e06238
Final set of changes by Fred before 1.4beta3
Guido van Rossum <guido@python.org>
parents:
4088
diff
changeset
|
20 |
|
4088
f81d78547f28
Demos for Fred's parser module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
21 source.py -- sample source code used to demonstrate ability to |
|
f81d78547f28
Demos for Fred's parser module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
22 handle nested constructs easily using the functions |
|
f81d78547f28
Demos for Fred's parser module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
23 and classes in example.py. |
|
f81d78547f28
Demos for Fred's parser module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
24 |
| 35440 | 25 test_parser.py program to put the parser module through its paces. |
|
4132
c18d52e06238
Final set of changes by Fred before 1.4beta3
Guido van Rossum <guido@python.org>
parents:
4088
diff
changeset
|
26 |
|
36694
dfab22ae48e3
Start of a source code unparser.
Martin v. Löwis <martin@v.loewis.de>
parents:
35440
diff
changeset
|
27 unparse.py AST (2.5) based example to recreate source code |
|
dfab22ae48e3
Start of a source code unparser.
Martin v. Löwis <martin@v.loewis.de>
parents:
35440
diff
changeset
|
28 from an AST. This is incomplete; contributions |
|
dfab22ae48e3
Start of a source code unparser.
Martin v. Löwis <martin@v.loewis.de>
parents:
35440
diff
changeset
|
29 are welcome. |
|
dfab22ae48e3
Start of a source code unparser.
Martin v. Löwis <martin@v.loewis.de>
parents:
35440
diff
changeset
|
30 |
|
4088
f81d78547f28
Demos for Fred's parser module
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
31 Enjoy! |
