Javascript Compiler / Lexer

蹲街弑〆低调 提交于 2019-12-11 23:16:23

问题


I'm looking for a free open-source Javascript/ECMAScript compiler or lexical analyzer, in order to compile javascript code to an executable that can run on Linux.

I understand that I will probably need to add some objects/APIs for the javascript code to be able to perform operations within the O/S. I was hoping that some of this work has already been done somewhere.

Any pointers anyone? Thanks!


回答1:


You can try Rhino, a free Javascript implementation written in Java. If you need an implementation without requiring a full Java installation, you might try the Firefox project's Spidermonkey



来源:https://stackoverflow.com/questions/3617606/javascript-compiler-lexer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!