Mateusz
Mateusz

Reputation: 498

Open source JavaScript interpreter written in Scala

Is there any JavaScript interpreter written in Scala?

Upvotes: 2

Views: 801

Answers (2)

canadadry
canadadry

Reputation: 8443

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

Upvotes: 0

Sean Parsons
Sean Parsons

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

Related Questions