Perl Monk, Perl Meditation | |
PerlMonks |
Re: How to use Perl to decompose Python functions into a CSV?by LanX (Saint) |
on Jul 01, 2019 at 21:28 UTC ( [id://11102276]=note: print w/replies, xml ) | Need Help?? |
> better way to get ALL of these. "When in Rome, do as the Roman's do." I wouldn't try to hack a Python parser with regexes. When confronted with a similar task for Perl I'd try to hack B::Deparse or PPI to do the heavy lifting for me. I'm no expert for Python and dunno the most similar tool to B::Deparse, but a short search showed me they have
... so plenty of possibilities for code analysis. Maybe you should ask at a Python board for assistance? HTH! :)
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|