ClojureScript has plenty of sharp edges, and this project is a bit rougher 
than even ClojureScript at the moment so you'll have to pardon the mess.

The magic happens in the cljs.compiler namespace. Load up a clojure repl 
and do something along the lines of:

(do (require 'cljs.compiler) (require 'cljs.core) (in-ns 'cljs.compiler) )

after that, you'll be able to compile .cljs files to .scm files via 
(compile-file "/Users/nathansorenson/src/c-clojure/src/cljs/cljs/core.cljs")

Note how I'm having to be real obvious about the filename right now. You 
should get an .scm file in the same directory. At that point you can 
compile it to an .o file with gambit, or just load it in the interpreter to 
play with

$ gsc
gsc-repl> (load "core.scm" ;interpreted

$ gsc core.scm   ;outputs core.o
gsc-repl> (load "core") ; loads the compiled .o

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to