开发者

Open source JavaScript interpreter written in Scala

开发者 https://www.devze.com 2023-04-09 17:09 出处:网络
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

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

精彩评论

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