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

标签 javascript dart

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

相关文章:

javascript - 如何从 getUserMedia 返回流对象

javascript - Google Chrome webkit 通知撤销权限?切换开/关?

javascript - 同一路线重新加载时的 Angular 解析重新加载

android - 找不到 com.google.firebase-core :17. 0.1:

flutter - 我如何摆脱这种抖动覆盖错误?

javascript - angularjs 的 Bootstrap datepicker 指令

javascript - 如何计算特定字符在字符串中出现的次数

firebase - PlatformException(error, Given String is empty or null, null) 错误 flutter

android - 无法识别Future函数中的setState

Flutter:AppBar 形状(工具栏和应用栏背景不同的圆顶角)