Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 src
Octocat-spinner-32 tests
Octocat-spinner-32 MANIFEST.MF
Octocat-spinner-32 README.txt
Octocat-spinner-32 hashtopology.js
Octocat-spinner-32 support-for-clojurescript.patch
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

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:

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