Rux Language Reference
This reference describes the Rux language exactly as rux 0.4.0 implements it: every type, expression, statement and declaration, the rules the compiler enforces and the messages it prints when a rule is broken. Every example on these pages compiles with rux 0.4.0.
It is written for looking things up. To learn the language from the beginning, follow Learn Rux — a course of short, runnable lessons — and come back here for the full rules. The Introduction explains how the chapters are organised and the grammar notation they use.
The basics
Functions and data
Absence and failure
Memory and ownership
Abstraction
Compile time and platform
Appendix
- Primitive types — every primitive type and alias in one table.
- Tokens — every token the lexer produces.
- Rux Compiled Unit — the compiler's native object format.
Package manifests, dependencies and publishing are covered in Packaging, and the standard packages in the API Reference.