Possible Duplicate:
Running V8 Javascript Engine Standalone
I want to try a standalone JavaScript interpreter, rather than executing in Firefox 开发者_StackOverflow社区all the time. I did find spidermonkey by googling, which could be installed on ubuntu, but is there a way to use Google's v8 as a standalone interpreter?
Yup yup yup! You can download the V8 shell from Google and run it on its own:
http://code.google.com/apis/v8/build.html
edit: misread your question. Sorry xD, take a look at this post instead: Running V8 Javascript Engine Standalone
There you'll find instructions on how to build the interpreter.
Yes, v8 can run standalone. http://code.google.com/p/v8/
Detailed instructions for building v8 on Windows: http://code.google.com/p/v8/wiki/BuildingOnWindows
Not only can you run V8 standalone, there is a great project called node.js that adds some very useful libraries.
If you install node.js it gives you command line access to V8 (sans DOM)
Edit: Node ppa
精彩评论