Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
src/clojure/contrib
tests
MANIFEST.MF
README.txt
hashtopology.js
support-for-clojurescript.patch

README.txt

This directory contains work in progress on what may eventually become
ClojureScript.  It currently allows code written in a very small
subset of Clojure to be automatically translated to JavaScript.

tojs.clj is Clojure code to translate Clojure forms to Javascript.  It
was used to generate core.js from clojure's own core.clj and
core_print.clj.

To run any of the tests from the command line, do something like:

java -cp ~/build/clojure/clojure.jar:/home/chouser/proj/clojure-contrib/src:src \
  clojure.main src/clojure/contrib/clojurescript/cli.clj -- \
  tests/t03.cljs > t03.js

Now that you've got the .js file, you can test using Rhino:

/usr/bin/java -jar /usr/share/java/js.jar \
  -f src/clojure/contrib/clojurescript/rt.js \
  -f src/clojure/contrib/clojurescript/core.js \
  -f t03.js

To build the applet from the compiled .class files, don't forget to:

- Extract clojure code into the classes dir
  (cd classes; jar -x < ~/build/clojure/clojure.jar)
- Produce the jar:
  jar cmf MANIFEST.MF clojurescript-applet.jar -C classes .

There's plenty more to do.  If you'd like to help, contact the Clojure
Google group: clojure@googlegroups.com

--Chouser
12 Jan 2009
Something went wrong with that request. Please try again.