Reputation: 498
Is there any JavaScript interpreter written in Scala?
Upvotes: 2
Views: 801
Reputation: 2832
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.
Upvotes: 1