Rux Language Reference
- Introduction
- Lexical Structure
- 2.1. Source Files
- 2.2. Comments
- 2.3. Keywords
- 2.4. Identifiers
- 2.5. Literals
- 2.6. Operators and Punctuation
- Signed Integers
- Unsigned Integers
- Floating-Point
- Booleans
- Characters
- Variables
- 8.1. Overview
- 8.2. Immutable
- 8.3. Mutable
- 8.4. Mutability of Structs
- Constants
- 9.1. Overview
- 9.2. Intrinsic Constants
- Operations
- 10.1. Overview
- 10.2. Arithmetic Operations
- 10.3. Comparison Operations
- 10.4. Logical Operations
- 10.5. Bitwise Operations
- 10.6. Shift Operations
- 10.7. Type Casts
- 10.8. Type Tests
- Statements
- Functions
- 12.1. Overview
- 12.2. Declaration
- 12.3. Variadic Functions
- 12.4. Generic Functions
- 12.5. Assembler Functions
- 12.6. Main Entry Point
- Structures
- Unions
- 14.1 Overview
- Enumerations
- 15.1. Overview
- 15.2. Backing Type and Values
- 15.3. Variants with Data
- Tuples
- 16.1. Overview
- 16.2. Destructuring
- 16.3. Tuples vs. Structs
- Slices
- 17.1. Overview
- 17.2. Dynamic and Fixed-Size
- 17.3. Literals
- 17.4. Indexing and Iteration
- 17.5. Slices and Pointers
- Pointers
- 18.1. Overview
- 18.2. Pointer Types
- 18.3. The
nullPointer - 18.4. Fields and Members
- 18.5. Pointer Arithmetic
- 18.6. Pointers and
extern
- Type Aliases
- 19.1. Overview
- 19.2. Usage
- 19.3. Function Type Aliases
- 19.4. Built-in Aliases
- Interfaces
- 20.1. Overview
- 20.2. Interface Declaration
- 20.3. Interface Implementation
- Modules
- 21.1. Overview
- 21.2. Module Declaration
- 21.3. Items Visibility
- 21.4. Import
- Error Handling
- 22.1. Overview
- 22.2. The
ResultType - 22.3. Fatal Errors
- Foreign Function Interface
- 23.1. Overview
- 23.2.
externDeclarations - 23.3. Import Attribute
- Attributes
- Package System
- 25.1. Package Types
- 25.2. Directory Layout
- 25.3. Package Manifest
- 25.4. Dependencies
- Appendix
- 26.1. Primitive Type Reference
- 26.2. Token Reference
- 26.3. Rux Compiled Unit