有 PHP 到 Haxe 的翻译器吗?
所以我想将WordPress移植到Haxe。我需要 HP 到 Haxe 转换器。我在哪里可以买到它?
So I want to port WordPress to Haxe. I need HP to Haxe translators. Where can I get tham?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以查看HaqTeam 的 Php 到 Haxe 转换器。
You can look to Php to Haxe translator from HaqTeam.
将 WordPress 移植到 Haxe 可能很棒,但我非常怀疑转换器能否正确完成这项工作; PHP 和 Haxe 之间有太多差异:
......而这些是只是从我的脑海中浮现出来。
如果您认真对待移植,我建议您在开始之前制定准确的计划;)
It could be awesome to have WordPress ported to Haxe but I highly doubt that a converter could do the job correctly; there are too many differences between PHP and Haxe:
... and those are just from the top of my mind.
If you are serious about the porting I suggest making an accurate plan before starting ;)
目前没有 php 到 haxe 的翻译器。您可以尝试编写一个,但我想您不会很成功,因为 PHP 不使用类型,并且生成的 haxe 代码将只是一大堆 Dynamics。 Haxe 还使用包装器来处理许多事情(例如数组),因此您需要在各处切换 haxe 数据和 php 数据。
如果你真的想这样做,最好的方法就是用手移植它(尽管要编写大量代码行)。
There are no php to haxe translators currently. You can try to write one but I suppose you will not be very successful, since PHP uses no types and resulting haxe code will be just a big bunch of Dynamics. Haxe also uses wrapers for many things(like arrays), so you will need to switch between haxe data and php data everywhere.
If you really want to do it the best way is just to port it by your hands(which is writing plenty of code lines though).