Learn Rey
Everything you need to go from zero to productive with the Rey programming language. Start with the Quick Start guide and work through the topics in order.
Quick Start
Install Rey and write your first program in under 5 minutes. Hello world, variables, and your first function.
Variables & Types
Learn how type inference works, when to annotate, and how Rey enforces types at compile time.
Functions
Named functions, return types, lambdas, and higher-order functions. How Rey handles first-class functions.
Structs & Enums
Define custom data types with structs and enums. Pattern matching with match expressions.
Collections
Vec and HashMap — Rey's built-in collection types. Iterating, mapping, filtering, and folding.
Modules & Imports
How to split code across files. The import system, export visibility, and circular dependency handling.
The Compiler
How the Rey compiler works internally. Lexer → Parser → LLVM IR → native binary. Self-hosting explained.
Ready to dive in?
The Quick Start guide will have you running Rey code in minutes.
Start the Quick Start →