Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Not a very helpful readme, but hopefully slightly so.

  • Loading branch information...
commit 046651a28b0f2e196714bed61392044ddf2dead6 1 parent f22fa0b
Donovan Preston authored

Showing 1 changed file with 20 additions and 0 deletions. Show diff stats Hide diff stats

  1. 20  README
20  README
... ...
@@ -0,0 +1,20 @@
  1
+rust-spidermonkey provides rust bindings to libmozjs, also known as the SpiderMonkey JavaScript interpreter. To build the library for use in rust programs, type "make".
  2
+
  3
+To build the test program, which takes command line arguments and either executes them as scripts (each in it's own rust task) or loads them into dom.js if they are html files, type "make test".
  4
+
  5
+./test
  6
+
  7
+  Runs the test.js script, which happens to load the foo.html file as well.
  8
+
  9
+./test foo.html
  10
+
  11
+  Just load and parse an html file with dom.js.
  12
+
  13
+./test foo.js
  14
+
  15
+  Just run a script with a context which includes a 'print' function as well as a "document" and "window" implementation provided by dom.js.
  16
+
  17
+./test foo.html foo.js [...]
  18
+
  19
+  Start up a number of independent JavaScript environments, each of which have their own Rust task, and parse or execute them, as appropriate.
  20
+

0 notes on commit 046651a

Please sign in to comment.
Something went wrong with that request. Please try again.