From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
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 [thread overview]
Message-ID: <gk93fe$7ed$1@ger.gmane.org> (raw)
In-Reply-To: <28fc357b-e4b0-410d-8cc8-3b65cbaf9fc3@z27g2000prd.googlegroups.com>
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/README
There 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
next prev parent reply other threads:[~2009-01-10 3:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-08 15:12 how to use ejacs to eval a file as with command line driven interpreters Xah Lee
2009-01-10 3:09 ` Kevin Rodgers [this message]
[not found] ` <mailman.4473.1231557011.26697.help-gnu-emacs@gnu.org>
2009-01-11 16:20 ` Xah Lee
2009-01-13 2:18 ` Kevin Rodgers
[not found] ` <mailman.4694.1231813093.26697.help-gnu-emacs@gnu.org>
2009-01-13 17:00 ` Xah Lee
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='gk93fe$7ed$1@ger.gmane.org' \
--to=kevin.d.rodgers@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.