|
From: | Kevin Rodgers |
Subject: | Re: how to use ejacs to eval a file as with command line driven interpreters |
Date: | Fri, 09 Jan 2009 20:09:05 -0700 |
User-agent: | Thunderbird 2.0.0.19 (Macintosh/20081209) |
Xah Lee wrote:
there's Stevey Yegge's javascript interpreter written in elisp. http://code.google.com/p/ejacs/ by default it runs in emacs as a command line console. my question is, is it possible to run ejacs with a file? e.g. i have a file x.js, which i can run in shell with spidermonkey like this: js x.js i wish to be able to use ejacs to eval a file. Otherwise it wouldn't be useful to me.
http://code.google.com/p/ejacs/wiki/READMEThere is also a console load() function that takes as an argument the path to a JavaScript source file to load and evaluate. It cannot have any dependencies on browser DOM or other non-Ecma-262 host objects.
-- Kevin Rodgers Denver, Colorado, USA
[Prev in Thread] | Current Thread | [Next in Thread] |