parse kotlin scripts
http://confluence.jetbrains.net/display/~stepan.koltsov/REPL
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
fun die(message: String) {
|
||||
System.err.println(message)
|
||||
System.exit(1)
|
||||
}
|
||||
|
||||
if (args.length == 0) {
|
||||
die("Need arguments")
|
||||
}
|
||||
|
||||
for (arg in args) {
|
||||
println(arg)
|
||||
}
|
||||
Reference in New Issue
Block a user