Selenium Compiler
ewan
April 6, 2026
Selenium is an esoteric language with a lunar/poetic surface and a strict, C-like core. Strongly typed, semicolon-terminated, compiles to C.
Features
- Strongly typed with explicit wax (mutable) and seal (immutable) variables
- Functions with typed parameters and return values
- eclipse / shadow for if / else
- tide for while loops
- orbit for for loops
- switch / case / default statements
- break and continue for loops
- Prefix ++ and -- operators
- Ternary conditional ?:
- Bitwise operators << >> & | ^
- whisper for printing
- read_int, read_float, read_bool, read_char for input
- Explicit cast(type, expr) conversions
Syntax example
Installation
Usage
Keywords
| Keyword | Meaning |
|---|---|
| wax | Mutable variable declaration |
| seal | Immutable constant declaration |
| ritual | Function definition |
| eclipse | If statement |
| shadow | Else clause |
| tide | While loop |
| orbit | For loop |
| whisper | Print statement |
| cast | Type conversion |
Types
- int — 64-bit signed integer
- float — 64-bit IEEE 754 double
- bool — boolean (true / false)
- char — ASCII character
- string — string literal
Known limitations
- No forward declarations — mutual recursion requires careful function ordering
- No arrays or slices
Project layout
Licence
AGPL 3.0
Discussion in the ATmosphere