OxL Reference

Examples

Every example is a complete project: a directory with oxl.toml, sources and tests. Download the archive, unpack it and run oxl run and oxl test. The tests and output of the examples are checked on every build of the repository (ctest examples_projects, shop_*), the fragments in the text of the pages on every build of the site (Д6).

ExampleWhat it showsLevel
hellopackage, modules, arguments, a testbeginner
wordcount@error, ?, Map, queries, a filebeginner
streamsstream, yield, std.stream operators, |>intermediate
ffi-democalling C (import c), export c fnintermediate
notes-orm@table, from … select queries, SQLiteintermediate
bank-sagaa service, a sharded actor, a saga with compensationadvanced
testing-demofixtures, mock, calls, simulationintermediate
counter-clusterroles, oxl dev --nodes 4, shardsadvanced
shopthe distributed shop of Standard V.5full service

All sources are also listed in Programs of the repository: every file has its own page and a "Download" button. Single-file examples that run right on the page are in the tour of the language.

How to run#

sh
unzip hello.zip && cd hello
oxl test
oxl run -- Ann
OxL 1.0.0-beta · Documentation version 1.0.0-beta© OxwaldLink · generated from the Standard, the std sources and the guides