Perl to python converter
Any thoughts?
Re: Perl to python converter
On Fri, 23 Dec 2011 13:44:50 +0530 a b wrote: > Any thoughts? Writing a Perl to python converter would not be very trivial, and I'm not sure it will be guaranteed to work 100% well. See: * http://stackoverflow.com/questions/1062026/are-there-programmatic-tools-for-perl-to-python-conversion * http://www.google.com/search?q=perl%20to%20python%20converter One option for you would be to embed the perl interpreter inside Python's: http://search.cpan.org/dist/pyperl/ Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ Stop Using MSIE - http://www.shlomifish.org/no-ie/ Give me ASCII or give me deaþ! Please reply to list if it's a mailing list post - http://shlom.in/reply . -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
Re: Perl to python converter
On Dec 23, 2011 3:47 AM, "Shlomi Fish" wrote: > > On Fri, 23 Dec 2011 13:44:50 +0530 > a b wrote: > > > Any thoughts? > > Writing a Perl to python converter would not be very trivial, and I'm not sure > it will be guaranteed to work 100% well. See: > I think the bigger issue might be that it would produce such butt ugly code that no one would use it (and I'm not cracking on python here). I think you'd end up using Deparse for getting you 90% there but then you'd run into edge cases that would force you to look at the walking the pad and stack trace. Also maybe perldoc perlguts That said, I wouldn't mind helping with such a project. It would be a great way to get really intimate with both languages and interpreters (and the p5p group). It would also get me closer to figuring out static analysis of interpreted languages.
Re: Perl to python converter
On Fri, Dec 23, 2011 at 5:14 AM, a b wrote: > Any thoughts? > Sure. It's called a "college student". You hire one to do the job for you.
Re: Perl to python converter
On 23/12/11 14:34, "Brian Fraser" wrote: > On Fri, Dec 23, 2011 at 5:14 AM, a b wrote: > >> Any thoughts? >> > > Sure. It's called a "college student". You hire one to do the job for you. Now why didn't I think of that? ;-) Cheers, Phil... -- Nothing to see here... move along, move along -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
FW: Perl to python converter
Guys, all posts in this thread are now being sent to me & not the list. Please adjust your reply-to's accordingly. Thanks, Phil... -- Nothing to see here... move along, move along -- Forwarded Message From: fudmer rieley Date: Fri, 23 Dec 2011 09:33:02 -0800 (PST) To: Phil Dobbin Subject: Re: Perl to python converter Maybe a better project would be to work toward the development of a standard xsl style sheet able to parse source code or binary of each software language into a tree such that xslt could parse the intermediate tree and transform its structure into a multitude of other language source codes or binaries. I do not know if it would be easier to work at the binary level than the source code level. But I believe much of the technology to transform source code and binaries from one language set to another language set already exist. xsl, xslt tools I believe have a perfect fit in perl. XSL [code lang1], [XSLT :: XSLT ], XSL [code lang2[ Parse the code, build the tree"::parse the tree, output the new code. Merely writing xsl parsing and tree layouts for each language [source or complied binary] and conforming the xsl style sheet to the xslt transform standards, the machine genetics and super protected kernels that talk to them, might resolve to trivial. Moreover there are lots of persons with transforming experience around who might help. Is it not possible to develop the transforms between languages in xslt style sheet fashion? Would such a transform impose on the copyright or patent rights of one or more languages or language parts? I would love to work on this type of project, but I am a beginning perl programmer. --- On Fri, 12/23/11, Phil Dobbin wrote: From: Phil Dobbin Subject: Re: Perl to python converter To: "perl" Date: Friday, December 23, 2011, 9:57 AM On 23/12/11 14:34, "Brian Fraser" wrote: > On Fri, Dec 23, 2011 at 5:14 AM, a b wrote: > >> Any thoughts? >> > > Sure. It's called a "college student". You hire one to do the job for you. Now why didn't I think of that? ;-) Cheers, Phil... -- Nothing to see here... move along, move along -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/ -- End of Forwarded Message -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
Re: FW: Perl to python converter
On Fri, 23 Dec 2011 17:38:35 +, fudmer rieley wrote: > I would love to work on this type of project, but I am a beginning perl > programmer. You'll find more assistance outside of a beginning Perl group. If you want to pursue this, your best bet is to pair up with an experienced Perl programmer that you find on somewhere like Perlmonks, and advertise that you have XML/XSLT experience to bring to the party. On this list, your options are more or less limited to asking how you can become a better Perl programmer. -- Peter Scott http://www.perlmedic.com/ http://www.perldebugged.com/ http://www.informit.com/store/product.aspx?isbn=0137001274 http://www.oreillyschool.com/certificates/perl-programming.php -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/