Install Krill from the Installation page.
You can create a hello world program by creating a file on disk with the following contents.
print "Hello, World!"Run the file with krill file.kr. You should see the text output to the
console.
You can start a Krill repl by running the krill command with no arguments.
$ krill
| ._ o | |
|< | | | |
Krill 0.1.0In the repl you can type single line expressions which are evaluated immediately. Try it out with hello world.
λ print "Hello, World!"
Hello, World!Repl commands are prefixed with the dot .. For example, some of the commands are:
| Command | Description |
|---|---|
.quit | Quit the repl |
.help | Show the repl help. |
.load [file] | Load a [file] into repl. |
.clear [name] | Clear variable [name] from the environment |
Head to the examples page to learn more!