Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
FILES | D | 03-May-2024 | 97 | 7 | 6 | |
README | D | 03-May-2024 | 1 KiB | 33 | 20 | |
docstring.py | D | 03-May-2024 | 29 | 3 | 2 | |
example.py | D | 03-May-2024 | 5.8 KiB | 191 | 142 | |
simple.py | D | 03-May-2024 | 30 | 2 | 1 | |
source.py | D | 03-May-2024 | 768 | 28 | 21 | |
test_parser.py | D | 03-May-2024 | 1.2 KiB | 49 | 36 | |
test_unparse.py | D | 03-May-2024 | 5.6 KiB | 214 | 170 | |
unparse.py | D | 03-May-2024 | 17.4 KiB | 607 | 497 |
README
1These files are from the large example of using the `parser' module. Refer 2to the Python Library Reference for more information. 3 4It also contains examples for the AST parser. 5 6Files: 7------ 8 9 FILES -- list of files associated with the parser module. 10 11 README -- this file. 12 13 docstring.py -- sample source file containing only a module docstring. 14 15 example.py -- module that uses the `parser' module to extract 16 information from the parse tree of Python source 17 code. 18 19 simple.py -- sample source containing a "short form" definition. 20 21 source.py -- sample source code used to demonstrate ability to 22 handle nested constructs easily using the functions 23 and classes in example.py. 24 25 test_parser.py program to put the parser module through its paces. 26 27 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. 31 32Enjoy! 33