Reputation: 16615
Is there a parser
that:
Python
2.6+
code, andPython
2.5
(python-only, no C
extensions allowed)?NOTE: This is somewhat related to my previous quostion about class decorators.
Upvotes: 2
Views: 113
Reputation: 9774
Yes, lib2to3 can, all you need to do is to provide it with the right Grammar file (get the source code for the Python you want and copy Grammar/Grammar).
Upvotes: 2