Xenon language
Documentation
Language concepts, syntax and behavior—organized around the features available in the compiler today.
Language foundation
Core
Foundations
Language
Primitive types
Integers, floating-point values, booleans and void.
Read chapter → ValuesLiterals and variables
Create values and store them in typed local variables.
Read chapter → Mutabilityconst and readonly
Separate compile-time constants from runtime read-only access.
Read chapter → DeclarationsFunctions
Free functions, parameters, calls, return values and the entry point.
Read chapter → VisibilityAccess modifiers
Control which functions and struct members are visible to other code.
Read chapter → ExpressionsOperators
Arithmetic, comparison, boolean, bitwise and assignment operators.
Read chapter → StatementsBranching
Select which path executes using boolean conditions.
Read chapter → IterationLoops
Repeat work with while and for, then control iteration explicitly.
Read chapter →Type system
Structs
Define structured types, choose stack or heap storage and add behavior.
Read chapter → RelationshipsInheritance
Extend one struct, initialize its base and preserve layout compatibility.
Read chapter → ContractsInterfaces
Describe behavior and dispatch through interface references.
Read chapter → PolymorphismAbstraction and virtual dispatch
Define virtual behavior, abstract requirements and concrete overrides.
Read chapter → Type membersStatic members
Store shared state and call behavior through a struct type.
Read chapter → AccessorsProperties and indexers
Expose controlled member and indexed access through getters and setters.
Read chapter → AliasingReferences
Alias existing values with mutable or readonly typed access.
Read chapter →Low-level programming
Arrays
Allocate contiguous indexed storage on the stack or heap.
Read chapter → MemoryRaw pointers
Take addresses, dereference memory and access pointed-to values.
Read chapter → ConversionsCasts
Express numeric conversions explicitly.
Read chapter → LifetimeManual memory
Allocate native storage and release it explicitly.
Read chapter → Target ABIType layout
Query size, alignment and field offsets.
Read chapter → InteropC ABI
Import and export native C-compatible functions.
Read chapter →