开发者

Open source JavaScript interpreter written in Scala

Is there 开发者_开发技巧any JavaScript interpreter written in Scala?


For parsing the actual code, the best thing to start with would probably be parser combinators: http://www.codecommit.com/blog/scala/the-magic-behind-parser-combinators

Beyond that you'd need to then build the actual library along with the runtime code to take the parsed elements and execute them, which I'm afraid are out of my realm of knowledge.


Have you looked at parboiled, a PEG parser in scala.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜