Website | Source | Manual

Examples:

# hello.sl
println("Hello world");
# cp.sl [original file] [new file]

$in = openf(@ARGV[0]);
$data = readb($in, -1);

$out = openf(">" . @ARGV[1]);          
writeb($out, $data);

closef($in);
closef($out);

Run:

$ java -jar sleep.jar cp.sl hello.sl hello.bak
$ cat hello.bak
println("Hello World");


Tags: language   jvm   scripting  

Last modified 07 October 2024