richhickey / clojure-contrib
- Source
- Commits
- Network (37)
- Downloads (3)
- Wiki (2)
- Graphs
-
Tree:
10373d4
Chouser (author)
Tue Nov 10 09:05:41 -0800 2009
commit 10373d40ffee109d168fa3e90f03d9f381ac8eb0
tree 8e9b16011da706068f38cfdec3d9ea4690065a21
parent 37dad8c37622669271357cfceec03e391cc10e17
tree 8e9b16011da706068f38cfdec3d9ea4690065a21
parent 37dad8c37622669271357cfceec03e391cc10e17
clojure-contrib / clojurescript
| name | age | message | |
|---|---|---|---|
| .. | |||
| |
MANIFEST.MF | Tue Jan 20 20:31:47 -0800 2009 | |
| |
README.txt | Tue Jan 20 20:31:47 -0800 2009 | |
| |
hashtopology.js | Sat Sep 27 09:04:16 -0700 2008 | |
| |
src/ | Sun Feb 01 09:42:53 -0800 2009 | |
| |
support-for-clojurescript.patch | Sat Jan 24 21:04:31 -0800 2009 | |
| |
tests/ | Sun Jan 11 23:54:16 -0800 2009 |
clojurescript/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
