├── .gitattributes ├── .gitignore ├── .travis.yml ├── AUTHORS ├── ChangeLog ├── LICENSE ├── MANIFEST.in ├── Makefile ├── NOTES ├── README.md ├── __init__.py ├── cdmpyparser.py ├── cdmpyparserversion.py ├── debian ├── changelog ├── compat ├── control ├── copyright ├── rules └── source │ ├── format │ └── options ├── pkg ├── build_deb.sh ├── build_rpm.sh ├── cdm-pythonparser.spec ├── debian │ ├── changelog │ ├── compat │ ├── control │ ├── copyright │ ├── rules │ └── source │ │ ├── format │ │ └── include-binaries └── travis.sh ├── setup.py ├── src ├── Makefile ├── README ├── cdmpyparser.c └── tree.cpp ├── tests ├── annot.ok ├── annot.py ├── class_defs.ok ├── class_defs.py ├── class_members.ok ├── class_members.py ├── coding1.ok ├── coding1.py ├── coding2.ok ├── coding2.py ├── coding3.ok ├── coding3.py ├── commentsonly.ok ├── commentsonly.py ├── decorators.ok ├── decorators.py ├── docstring.ok ├── docstring.py ├── docstring2.ok ├── docstring2.py ├── docstring3.ok ├── docstring3.py ├── empty.ok ├── empty.py ├── empty_brackets.ok ├── empty_brackets.py ├── errors.ok ├── errors.py ├── func_defs.ok ├── func_defs.py ├── globals.ok ├── globals.py ├── import.ok ├── import.py ├── lexererror.py ├── loneimport.py ├── nested_classes.ok ├── nested_classes.py ├── nested_funcs.ok ├── nested_funcs.py ├── noendofline.ok ├── noendofline.py ├── one_comment.ok ├── one_comment.py ├── print.py ├── print2.py ├── static_members.ok ├── static_members.py ├── ut.py ├── wrong_indent.ok ├── wrong_indent.py ├── wrong_stop.ok └── wrong_stop.py └── utils ├── run.py └── speed_test.py /.gitattributes: -------------------------------------------------------------------------------- 1 | legacy export-ignore 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/.travis.yml -------------------------------------------------------------------------------- /AUTHORS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/AUTHORS -------------------------------------------------------------------------------- /ChangeLog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/ChangeLog -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/LICENSE -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/MANIFEST.in -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/Makefile -------------------------------------------------------------------------------- /NOTES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/NOTES -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/README.md -------------------------------------------------------------------------------- /__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cdmpyparser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/cdmpyparser.py -------------------------------------------------------------------------------- /cdmpyparserversion.py: -------------------------------------------------------------------------------- 1 | version = '3.3.2' 2 | -------------------------------------------------------------------------------- /debian/changelog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/debian/changelog -------------------------------------------------------------------------------- /debian/compat: -------------------------------------------------------------------------------- 1 | 7 2 | -------------------------------------------------------------------------------- /debian/control: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/debian/control -------------------------------------------------------------------------------- /debian/copyright: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/debian/copyright -------------------------------------------------------------------------------- /debian/rules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/debian/rules -------------------------------------------------------------------------------- /debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /debian/source/options: -------------------------------------------------------------------------------- 1 | extend-diff-ignore="\.egg-info$" -------------------------------------------------------------------------------- /pkg/build_deb.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/pkg/build_deb.sh -------------------------------------------------------------------------------- /pkg/build_rpm.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/pkg/build_rpm.sh -------------------------------------------------------------------------------- /pkg/cdm-pythonparser.spec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/pkg/cdm-pythonparser.spec -------------------------------------------------------------------------------- /pkg/debian/changelog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/pkg/debian/changelog -------------------------------------------------------------------------------- /pkg/debian/compat: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /pkg/debian/control: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/pkg/debian/control -------------------------------------------------------------------------------- /pkg/debian/copyright: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/pkg/debian/copyright -------------------------------------------------------------------------------- /pkg/debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | %: 3 | dh $@ 4 | 5 | -------------------------------------------------------------------------------- /pkg/debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /pkg/debian/source/include-binaries: -------------------------------------------------------------------------------- 1 | cdm-pythonparser_2.0.0.orig.tar.bz2 2 | -------------------------------------------------------------------------------- /pkg/travis.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/pkg/travis.sh -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/setup.py -------------------------------------------------------------------------------- /src/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/src/Makefile -------------------------------------------------------------------------------- /src/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/src/README -------------------------------------------------------------------------------- /src/cdmpyparser.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/src/cdmpyparser.c -------------------------------------------------------------------------------- /src/tree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/src/tree.cpp -------------------------------------------------------------------------------- /tests/annot.ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/tests/annot.ok -------------------------------------------------------------------------------- /tests/annot.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/tests/annot.py -------------------------------------------------------------------------------- /tests/class_defs.ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/tests/class_defs.ok -------------------------------------------------------------------------------- /tests/class_defs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/tests/class_defs.py -------------------------------------------------------------------------------- /tests/class_members.ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/tests/class_members.ok -------------------------------------------------------------------------------- /tests/class_members.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/tests/class_members.py -------------------------------------------------------------------------------- /tests/coding1.ok: -------------------------------------------------------------------------------- 1 | Encoding[1:15:14]: 'utf-8' 2 | -------------------------------------------------------------------------------- /tests/coding1.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | # 3 | 4 | -------------------------------------------------------------------------------- /tests/coding2.ok: -------------------------------------------------------------------------------- 1 | Encoding[2:21:22]: 'ascii' -------------------------------------------------------------------------------- /tests/coding2.py: -------------------------------------------------------------------------------- 1 | # 2 | # vim:fileencoding= ascii 3 | -------------------------------------------------------------------------------- /tests/coding3.ok: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/coding3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/tests/coding3.py -------------------------------------------------------------------------------- /tests/commentsonly.ok: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/commentsonly.py: -------------------------------------------------------------------------------- 1 | # 2 | # The file has comments only and no empty lines 3 | # 4 | -------------------------------------------------------------------------------- /tests/decorators.ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/tests/decorators.ok -------------------------------------------------------------------------------- /tests/decorators.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/tests/decorators.py -------------------------------------------------------------------------------- /tests/docstring.ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/tests/docstring.ok -------------------------------------------------------------------------------- /tests/docstring.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/tests/docstring.py -------------------------------------------------------------------------------- /tests/docstring2.ok: -------------------------------------------------------------------------------- 1 | Docstring[1:1]: 'The only file content' -------------------------------------------------------------------------------- /tests/docstring2.py: -------------------------------------------------------------------------------- 1 | " The only file content " 2 | -------------------------------------------------------------------------------- /tests/docstring3.ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/tests/docstring3.ok -------------------------------------------------------------------------------- /tests/docstring3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/tests/docstring3.py -------------------------------------------------------------------------------- /tests/empty.ok: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/empty.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/empty_brackets.ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/tests/empty_brackets.ok -------------------------------------------------------------------------------- /tests/empty_brackets.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/tests/empty_brackets.py -------------------------------------------------------------------------------- /tests/errors.ok: -------------------------------------------------------------------------------- 1 | 2 | 2:8 invalid syntax 3 | def f() 4 | -------------------------------------------------------------------------------- /tests/errors.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/tests/errors.py -------------------------------------------------------------------------------- /tests/func_defs.ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/tests/func_defs.ok -------------------------------------------------------------------------------- /tests/func_defs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/tests/func_defs.py -------------------------------------------------------------------------------- /tests/globals.ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/tests/globals.ok -------------------------------------------------------------------------------- /tests/globals.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/tests/globals.py -------------------------------------------------------------------------------- /tests/import.ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/tests/import.ok -------------------------------------------------------------------------------- /tests/import.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/tests/import.py -------------------------------------------------------------------------------- /tests/lexererror.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/tests/lexererror.py -------------------------------------------------------------------------------- /tests/loneimport.py: -------------------------------------------------------------------------------- 1 | import 2 | -------------------------------------------------------------------------------- /tests/nested_classes.ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/tests/nested_classes.ok -------------------------------------------------------------------------------- /tests/nested_classes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/tests/nested_classes.py -------------------------------------------------------------------------------- /tests/nested_funcs.ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/tests/nested_funcs.ok -------------------------------------------------------------------------------- /tests/nested_funcs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/tests/nested_funcs.py -------------------------------------------------------------------------------- /tests/noendofline.ok: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/noendofline.py: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # -------------------------------------------------------------------------------- /tests/one_comment.ok: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/one_comment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/tests/one_comment.py -------------------------------------------------------------------------------- /tests/print.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/tests/print.py -------------------------------------------------------------------------------- /tests/print2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/tests/print2.py -------------------------------------------------------------------------------- /tests/static_members.ok: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/tests/static_members.ok -------------------------------------------------------------------------------- /tests/static_members.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/tests/static_members.py -------------------------------------------------------------------------------- /tests/ut.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/tests/ut.py -------------------------------------------------------------------------------- /tests/wrong_indent.ok: -------------------------------------------------------------------------------- 1 | 2 | 2:4 unexpected indent 3 | if 1 > 2: 4 | -------------------------------------------------------------------------------- /tests/wrong_indent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/tests/wrong_indent.py -------------------------------------------------------------------------------- /tests/wrong_stop.ok: -------------------------------------------------------------------------------- 1 | 2 | 8:4 unexpected indent 3 | def g(): 4 | -------------------------------------------------------------------------------- /tests/wrong_stop.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/tests/wrong_stop.py -------------------------------------------------------------------------------- /utils/run.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/utils/run.py -------------------------------------------------------------------------------- /utils/speed_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SergeySatskiy/cdm-pythonparser/HEAD/utils/speed_test.py --------------------------------------------------------------------------------