Hello World

When learning a new programming language it is mandatory to write a Hello World program. For Arena it looks as follows:

Filename: hello_world.arena

fn main() = print("Hello World!\n")

To compile the program you need to call the Arena compiler and pass it the correct filename. Afterwards you can execute the binary. The default binary name is out.

$ arena hello_word.arena
$ ./out

If you want to specify another name you can do so with the -o flag.

$ arena hello_word.arena -o hello
$ ./hello

If you want to learn about all the other existing compiler flags you can list them with:

$ arena --help