此站点上有人提到可以使用 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/