Appendix: Token Reference
The following table lists every token kind recognized by the Rux lexer.
Literals
| Token | Example |
|---|---|
IntLiteral | 42, 0xFF, 0b1010, 0o77 |
FloatLiteral | 3.14, 1.0e-9 |
StringLiteral | "hello" |
CharLiteral | 'A', '\n' |
BoolLiteral | true, false |
Identifiers
| Token | Description |
|---|---|
Identifier | Any non-keyword name |
Keywords
| Token | Spelling |
|---|---|
IfKeyword | if |
ElseKeyword | else |
WhileKeyword | while |
LoopKeyword | loop |
ForKeyword | for |
InKeyword | in |
BreakKeyword | break |
ContinueKeyword | continue |
ReturnKeyword | return |
MatchKeyword | match |
FuncKeyword | func |
AsmKeyword | asm |
VarKeyword | var |
LetKeyword | let |
ConstKeyword | const |
TypeKeyword | type |
StructKeyword | struct |
EnumKeyword | enum |
UnionKeyword | union |
InterfaceKeyword | interface |
ExtendKeyword | extend |
ModuleKeyword | module |
ImportKeyword | import |
PubKeyword | pub |
ExternKeyword | extern |
AsKeyword | as |
IsKeyword | is |
NullKeyword | null |
SelfKeyword | self |
Punctuation
| Token | Symbol |
|---|---|
LeftParen | ( |
RightParen | ) |
LeftBrace | { |
RightBrace | } |
LeftBracket | [ |
RightBracket | ] |
Comma | , |
Semicolon | ; |
Colon | : |
ColonColon | :: |
Dot | . |
DotDot | .. |
DotDotDot | ... |
Arrow | -> |
FatArrow | => |
At | @ |
Hash | # |
Question | ? |
Tilde | ~ |
Operators
| Token | Symbol |
|---|---|
Plus | + |
Minus | - |
Star | * |
Slash | / |
Percent | % |
StarStar | ** |
Amp | & |
Pipe | | |
Caret | ^ |
LessLess | << |
GreaterGreater | >> |
GreaterGreaterGreater | >>> |
AmpAmp | && |
PipePipe | || |
Bang | ! |
Equal | == |
BangEqual | != |
Less | < |
LessEqual | <= |
Greater | > |
GreaterEqual | >= |
Assign | = |
PlusAssign | += |
MinusAssign | -= |
StarAssign | *= |
SlashAssign | /= |
PercentAssign | %= |
AmpAssign | &= |
PipeAssign | |= |
CaretAssign | ^= |
LessLessAssign | <<= |
GreaterGreaterAssign | >>= |
GreaterGreaterGreaterAssign | >>>= |
Special
| Token | Description |
|---|---|
NewLine | Significant newline (grammar-dependent) |
EndOfFile | Marks the end of the source file |
Unknown | Unrecognized character; preserved for error recovery |
Primitive Types
A consolidated summary of every built-in primitive type in Rux, grouped by family. These names are predefined identifiers — some are compiler-provided aliases — not keywords; they live in the type namespace. Each entry links to its full page.
Rux Compiled Unit
Binary specification for the .rcu object files emitted by the Rux compiler. The same format is used on every supported operating system — FreeBSD, Linux, macOS, and Windows.