Skip to content

Latest commit

 

History

History
100 lines (73 loc) · 3.16 KB

README.md

File metadata and controls

100 lines (73 loc) · 3.16 KB

KtNL

Kotlin Native for Lisp

CI status
Travis CI Build Status
CodeShip Codeship Status for zxj5470/ktnl-gradle

GitHub language count

GitHub language count GitHub language count GitHub language count

Platform

Run in OS X or Linux.
(Actually Windows can also build and run it. But you can't build by CLion in Windows.Just try Idea or VS Code ~ )

Windows(CLion) has not been supported presently.
(JetBrains: “What?”)

But you can build and run in Intellij idea.

Build and Run

git clone https://github.com/ktnl-lang/ktnl

cd ktnl-gradle/ktnl

./build.sh

./ktnl.kexe ../kt.ktnl

Build

  • git clone the repositry and open with Intellij Idea or Visual Studio Code at root ktnl dir.

    • Idea (building recommand) : run gradle task or run commandLine ./gradlew buildInLinux
    • VSCode (coding recommand. For CLion and Idea haven't got source code, even though CLion has .knm file in which you can see function declares.Just git clone kotlin-native and open into a same workspace in latest VS Code)
    • CLion (EAP 2017.3 or latest. Just open at ktnl submodule dir, using CMake to build)

Dependencies

  • konanc (Of course)
  • kotlin-stdlib

Progress

There are so many things to do, while I have just finished these as follows.

(define a 2333)
(define ice-1000 "Zython")

outputs:

{a: Int = 23333, ice1000: String = "Zython"}

CI build scripts

Travis CI

.travis.yml

Codeship CI

  • build
jdk_switcher home oraclejdk8
jdk_switcher use oraclejdk8
wget https://github.com/JetBrains/kotlin-native/releases/download/v0.4/kotlin-native-linux-0.4.tar.gz -O /tmp/kotlin-native-linux-0.4.tar.gz
tar -xvf /tmp/kotlin-native-linux-0.4.tar.gz
export PATH=$PATH:$PWD/kotlin-native-linux-0.4/bin/
cd ~/src/github.com/zxj5470/ktnl-gradle
chmod u+x ./gradlew
./gradlew buildInLinux
  • test
cd ~/src/github.com/zxj5470/ktnl-gradle/ktnl
./build/bin/ktnl.kexe kt.ktnl