damonkohler / sl4a

SL4A brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device.
Apache License 2.0
2.43k stars 800 forks source link

Add Clojure support #112

Open damonkohler opened 9 years ago

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:30

Clojure users would like to have it !

LotREPLs works with other languages that SL4A supports now.

http://lotrepls.appspot.com/

http://clojure.org/

Original issue reported on code.google.com by tomcatalbino on 12 Feb 2012 at 4:15

Copied from original issue: damonkohler/android-scripting#598

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:30

This information would help a little.
The JVM jar REPL command in "clojure 1.3.0" was like this.
>java -cp clojure-1.3.0-slim.jar clojure.main hello.clj

I tried to convert the jar to the dalvik(dx) jar but I didn't success.
I think It has to be recompiled or needs more changes.

Original comment by tomcatalbino on 12 Feb 2012 at 4:26

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:30

The hello.clj would be like this.

(println "Hello, Clojure!")

Original comment by tomcatalbino on 12 Feb 2012 at 4:31

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:30

This information might be a hint.

To Install Clojure for Android.

~$ cd ~/opt

~$ git clone git://github.com/remvee/clojure.git clojure-android

~$ cd clojure-android

~$ ant

Original comment by tomcatalbino on 14 Feb 2012 at 4:32