Attila O.
Attila O.

Reputation: 16615

Python2.6+ code parser

Is there a parser that:

NOTE: This is somewhat related to my previous quostion about class decorators.

Upvotes: 2

Views: 113

Answers (1)

Michał Kwiatkowski
Michał Kwiatkowski

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

Related Questions