command line script launcher

% ./bin/kotlin -script hello.ktscript
hello world

% cat hello.ktscript
fun hello(what: String) = println("hello $what")
hello("world")

Note it currently takes 8 seconds to evaluate hello world script.
This commit is contained in:
Stepan Koltsov
2012-05-23 02:52:30 +04:00
parent f4051f45ab
commit 6063c01a1c
8 changed files with 38 additions and 12 deletions
@@ -0,0 +1 @@
println("hello world")