Function that returns a value

As said on the Hello world! page, functions can return value that can be used or stored in a variable.

main.kop

fn sum(x, y)
{
	return x + y;
}

fn main()
{
	var x = 5;
	var y = 8;
	var z = sum(x, y);

	print(z);
	print(sum(z, x));
}

To learn how to compile the file, check this out!

> ./GLaDOS -r executable
13
18