gpt4 book ai didi

javascript - 如何使用 frog 将 javascript 转换为 dart?

转载 作者:搜寻专家 更新时间:2023-11-01 05:14:34 26 4
gpt4 key购买 nike

此站点上有人提到可以使用 frog 将 javascript 转换为 dart。我尝试了一下,但没有成功。

用frog将javascript转dart的详细过程是怎样的?

谢谢

最佳答案

Florian Loitsch(来自 Google Dart 团队)在最近的伦敦 Dart 黑客松上创建了一个 JavaScript 到 Dart 解析器。

代码: http://code.google.com/p/jsparser/

公告(引自下文): https://groups.google.com/a/dartlang.org/group/misc/browse_frm/thread/4d7af7aec81f2ac4#

I spend a little bit of time during this weekend to make it more complete and usable, but don't expect a polished product. For example there are no tests, yet.

That said: I do think that the library is in a usable state. I also tried to keep the code simple (even if that sometimes meant sacrificing some speed), and I hope that this alone makes the library valuable.

My motivation for the parser was to help in (semi) automatic translations from JavaScript to Dart. Currently I don't have the time to continue on this path, but maybe somebody else wants to give it a try?

-Florian Loitsch

关于javascript - 如何使用 frog 将 javascript 转换为 dart?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10592458/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com