blob: fd5eb2517bd4f51cb5d8de409eca51940312004c [file] [log] [blame]
Guido van Rossum16d27e31996-08-21 16:28:53 +00001These files are from the large example of using the `parser' module. Refer
2to the Python Library Reference for more information.
3
Martin v. Löwis5fec9042006-02-27 21:41:03 +00004It also contains examples for the AST parser.
5
Guido van Rossum16d27e31996-08-21 16:28:53 +00006Files:
7------
8
Mark Dickinson20379132010-06-30 14:19:56 +00009 FILES -- list of files associated with the parser module.
Guido van Rossum8206fb91996-08-26 00:33:29 +000010
Mark Dickinson20379132010-06-30 14:19:56 +000011 README -- this file.
Guido van Rossum8206fb91996-08-26 00:33:29 +000012
Mark Dickinson20379132010-06-30 14:19:56 +000013 docstring.py -- sample source file containing only a module docstring.
Guido van Rossum16d27e31996-08-21 16:28:53 +000014
Mark Dickinson20379132010-06-30 14:19:56 +000015 example.py -- module that uses the `parser' module to extract
16 information from the parse tree of Python source
17 code.
Guido van Rossum8206fb91996-08-26 00:33:29 +000018
Mark Dickinson20379132010-06-30 14:19:56 +000019 simple.py -- sample source containing a "short form" definition.
Guido van Rossum8206fb91996-08-26 00:33:29 +000020
Mark Dickinson20379132010-06-30 14:19:56 +000021 source.py -- sample source code used to demonstrate ability to
22 handle nested constructs easily using the functions
23 and classes in example.py.
Guido van Rossum16d27e31996-08-21 16:28:53 +000024
Mark Dickinson20379132010-06-30 14:19:56 +000025 test_parser.py program to put the parser module through its paces.
Guido van Rossum8206fb91996-08-26 00:33:29 +000026
Mark Dickinson20379132010-06-30 14:19:56 +000027 test_unparse.py tests for the unparse module
28
29 unparse.py AST (2.7) based example to recreate source code
30 from an AST.
Martin v. Löwis5fec9042006-02-27 21:41:03 +000031
Guido van Rossum16d27e31996-08-21 16:28:53 +000032Enjoy!