PHP到Ruby编译器 [英] PHP to Ruby compiler

查看:94
本文介绍了PHP到Ruby编译器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道一个(最好是开源)PHP到ruby编译器?即解析PHP代码并产生语义上等效的ruby代码的程序?

Does anyone know of a (preferably open source) PHP to ruby compiler? i.e. a program which parses PHP code and produces semantically equivalent ruby code?

推荐答案

我没有自己使用它,但你可能想看看 Phuby 。它允许你在ruby中运行PHP代码。然后,我尝试单元测试代码的生命(使用ruby单元测试),然后重写ruby中的代码。

I haven't used it myself, but you may want to look at Phuby. It allows you to run PHP code within ruby. Then I'd try to unit test the life out of the code (using ruby unit tests), and then re-write the code in ruby.

但是,我怀疑Phuby甚至不能远程生产就绪。

However, I suspect Phuby isn't even remotely production-ready.

这篇关于PHP到Ruby编译器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆