clojurejs icon indicating copy to clipboard operation
clojurejs copied to clipboard

A naive Clojure to javascript translator

ClojureJS

ClojureJS is a naive implementation of a Clojure subset language to Javascript translator. ClojureJS is an attempt to implement the predictable semantics in the generated Javascript. Some of its features are:

  • Consistent scoping in let and loop/recur forms
  • Macros with defmacro
  • Implicit return from all forms
  • loop/recur translates to Javascript for loops
  • Translates Clojure vectors, strings, keywords, symbols and maps to Javascript equivalents

ClojureJS is available under the Eclipse Public License - v 1.0.

For more information see the ClojureJS wiki.