OxL Reference

hello

A package of two modules: the root (src/main.oxl) and src/greet/ (a module is a directory, §2.1). main reads the first argument through std.os.args(); greeting is a pure function, so it is tested without any output.

sh
oxl run examples/hello -- Ann     # Hello, Ann!
oxl test examples/hello

What to look at: use self.greet { greeting } and pub on the function (§2.2, §2.3); the effect io of main and pure of greeting (§6.2); the test in tests/greet_test.oxl with use super.greet.

Project files · Download (zip)