Quick Start Guide
Install Rey and write, compile, and run your first native machine binary in under five minutes using Capybara.
Install Capybara and Rey
Install Capybara (which bundles the latest Rey v0.3.1 compiler) via our official GitHub raw script:
Verify your toolchain and environment:
Create and Run a Project
Use Capybara to initialize a new Rey application:
Open src/main.rey. Notice the clean syntax with mandatory semicolons and type declarations:
Variables, Inferred Types & Null Safety
Use var for mutable bindings and const for constants. Types can be explicitly typed or inferred. Nullable types use T?:
Functions & Higher-Order Lambdas
Functions are declared with func. First-class closures capture their environment smoothly:
Structs, Enums & Pattern Matching
Model domain logic with structs and algebraic enums. Match arms are checked for exhaustiveness:
Ready to explore more?
Try code live directly in your browser or explore the complete syntax specification.