Documentation
Welcome to the official Reox documentation. Build native, AI-first applications for NeolyxOS with system-level performance.
Quick Start
Get the Reox compiler installed and run your first "Hello World".
Language Guide
Master the syntax: structs, pattern matching, async/await, error handling, and more.
UI Components
Build declarative interfaces with the dedicated `window` and `view` syntax.
AI Integration
Learn to use the `ai assistant` keyword to integrate LLM features natively.
Standard Library
Built-in types and functions
Events & Actions
Handle user interactions
Layout System
Flexbox and grid layouts
What is Reox?
Reox is a statically-typed, compiled language designed specifically for NeolyxOS. It aims to be simpler than C++ but safer than C, offering modern features like type inference, pattern matching, and memory safety without the overhead of a virtual machine.
Unlike other languages, Reox treats User Interface and AI as first-class citizens. You define windows and views directly in the language syntax, and integrate AI models with native keywords, all compiling to optimized native code via C transpilation.
Reox vs Swift
Reox is heavily inspired by Swift, adapting its best ideas for the NeolyxOS ecosystem.
| Feature | Reox | Swift |
|---|---|---|
| Target OS | NeolyxOS | macOS / iOS |
| UI Framework | Native Syntax (ReoxUI) | SwiftUI (Library) |
| AI Integration | Native Keywords (`ai`) | CoreML Libraries |
| Compilation | C Transpile → Native | LLVM Native |
| Async/Await | Native (`async fn`) | Native (`async`) |
| Memory Safety | Yes (Ownership) | Yes (ARC) |