Created
September 29, 2016 02:17
-
-
Save ajchemist/d37464c934d95318f942a041914ff1b7 to your computer and use it in GitHub Desktop.
java shim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package shim; | |
import clojure.lang.RT; | |
import clojure.lang.Symbol; | |
import clojure.lang.Var; | |
public class Main { | |
public static void main(String[] args) { | |
Var REQUIRE = RT.var("clojure.core", "require"); | |
Var APPLY = RT.var("clojure.core", "apply"); | |
REQUIRE.invoke(Symbol.intern("user")); | |
APPLY.invoke(RT.var("user", "-main"), args); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment