A small stack- and register-based esolang implemented in TypeScript.
Language Reference • CLI Guide • REPL Guide • Examples
Nyxium is a compact symbolic esoteric programming language built around a simple execution model:
- six built-in registers (
x y z a b c) - a shared stack
- integer arithmetic
- structured loops and conditions
- character and numeric input/output
The goal of Nyxium is to stay minimal while still being expressive enough to write complete programs.
x+++++
x{
x.
x-
}
Output:
5 4 3 2 1
Clone the repository and install dependencies:
git clone https://github.com/Pomid0rkaaa/nyxium.git
cd nyxium
npm installBuild the project:
npm run buildLink the CLI globally:
npm linkVerify the installation:
nyx --helpNote: Nyxium is not published to npm. You can also run the interpreter directly with
node dist/nyxium.min.mjs.
Run a source file:
nyx examples/alphabet.nyxExecute inline code:
nyx -c "x++++ x."Start the interactive REPL:
nyx --replFor all command-line options, see the CLI Guide.
- Language Reference - complete language syntax and semantics.
- CLI Guide - command-line usage, options, and input handling.
- REPL Guide - interactive interpreter and REPL commands.
- Examples - complete example programs.
Install dependencies:
npm installUseful commands:
npm run dev # Watch mode
npm run build # Build the project
npm run test # Run tests
npm run typecheck # Type-check the project
npm run clean # Remove the dist/ directoryAdditional build targets:
npm run build:single # Standalone single-file interpreter
npm run build:dev # Compile TypeScript output
npm run build:web # Browser playgroundNyxium is released under the MIT License.
