alanshaw / cljs-compiler

Clojurescript compiler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cljs-compiler Build Status Dependency Status

A ClojureScript compiler written in JavaScript.

Demo page

Can compile hello world:

(ns hello.core)

; Hello World in clojurescript
(defn -main []
  (println "Hello World"))

(set! *main-cli-fn* -main)

Into:

goog.provide('hello.core');
goog.require('cljs.core');
hello.core._main = function _main () {return cljs.core.println.call(null, "Hello World")};
cljs.core._STAR_main_cli_fn_STAR_ = hello.core._main;

About

Clojurescript compiler

License:MIT License


Languages

Language:JavaScript 100.0%