1. 1. Overview
  2. 2. Philosophy
    1. 2.1. Design Decisions
    2. 2.2. Why WebAssembly?
    3. 2.3. Why use Onyx?
    4. 2.4. Memory Management
    5. 2.5. Literals
    6. 2.6. Declarations
    7. 2.7. Blocks
    8. 2.8. Bindings
  3. 3. Program Structure
    1. 3.1. Loading Files
    2. 3.2. Packages
    3. 3.3. Use declarations
  4. 4. Operators
    1. 4.1. Math operators
    2. 4.2. Comparison operators
    3. 4.3. Boolean operators
    4. 4.4. Pointer operators
    5. 4.5. Bitwise operators
    6. 4.6. Try/Coalesce operators
    7. 4.7. Cast operators
    8. 4.8. Procedure calls
    9. 4.9. If/else operator
    10. 4.10. Range operator
    11. 4.11. Pipe operator
    12. 4.12. Method call operator
    13. 4.13. Precedence
  5. 5. Control Flow
    1. 5.1. If
    2. 5.2. While loops
    3. 5.3. Switch
    4. 5.4. Defer
    5. 5.5. For loops
    6. 5.6. Branching
    7. 5.7. Do Blocks
    8. 5.8. Used Locals
  6. 6. Procedures
    1. 6.1. Parameters
    2. 6.2. Return values
    3. 6.3. Automatic-return type
    4. 6.4. Calling procedures
    5. 6.5. Variadic procedures
    6. 6.6. Polymorphic procedures
    7. 6.7. Quick procedures
    8. 6.8. Closures
    9. 6.9. Overloaded procedures
    10. 6.10. Interfaces and where
    11. 6.11. Operator overloading
    12. 6.12. Macros
  7. 7. Types
    1. 7.1. Primitives
    2. 7.2. Pointers
    3. 7.3. Fixed-size Arrays
    4. 7.4. Slices
    5. 7.5. Dynamic Arrays
    6. 7.6. Structures
    7. 7.7. Enumerations
    8. 7.8. Tagged Unions
    9. 7.9. Distinct
    10. 7.10. Procedure types
    11. 7.11. Optional
  8. 8. Directives
    1. 8.1. #inject
    2. 8.2. #if
    3. 8.3. #tag
    4. 8.4. #export
    5. 8.5. #foreign
    6. 8.6. #file_contents
    7. 8.7. #defined
    8. 8.8. #persist
    9. 8.9. #thread_local
    10. 8.10. #doc
    11. 8.11. #deprecated
    12. 8.12. #init
    13. 8.13. #error
    14. 8.14. #this_package
    15. 8.15. #wasm_section
  9. 9. Miscellaneous
    1. 9.1. Format Strings
    2. 9.2. Reflection
    3. 9.3. JS Interop

Onyx Documentation

Miscellaneous