Example projects and programming tutorials for the Rux language.
- Hello — print "Hello, World!", the minimal Rux application
- Greeting — iterate over a string array and print greetings in multiple languages
- Primitive — declare and print all primitive types: integers, floats, booleans, and characters
- Factorial — calculate and print factorial values with a loop
- Array — use a dynamic array with manual memory management (
Alloc,Zero,Free) - File — write text to a file with WinAPI (Windows only)
- Circle — read input from stdin, parse a string to a number, and match on the result
- Version — select code at compile time with
whenand the compiler version
Each example is a standalone Rux package with its own Rux.toml, and requires Rux 0.4.0 or newer.
cd Hello
rux runIf necessary, install the dependencies first:
cd Hello
rux install
rux runTo build and type-check an example without running it:
cd Hello
rux checkLicensed under the MIT License.