Kyser

VERSION 0.1.0 | EXECUTION ARENA

A lightweight, dynamically typed, and interpreted programming language built entirely in TypeScript. Designed from scratch, Kyser is fully Turing-complete and capable of handling complex logic, mathematics, and recursive algorithms directly in your browser.

Install globally via Node.js:

$npm install -g kyser-lang

*macOS/Linux users may need elevated permissions (sudo npm install -g kyser-lang)

Core Capabilities

Dynamic variables, nested control flow (if/else, while), recursive custom functions, and strict block-scoped memory management.

Under the Hood

Executes via a traditional pipeline: a custom Lexical Analyzer generates tokens, an AST Parser builds the syntax tree, and a custom Interpreter evaluates it.

Roadmap (v0.2+)

Upcoming expansion to include native Data Structures (Arrays/Lists), File Modularity (Imports), and Object-Oriented Programming architectures.

CANVAS.ky
OUTPUT_TERMINAL
>> SYSTEM READY...

Language Tour

Explore the core syntax and commands of Kyser.

Variables, Math & Reassignment

let base = 10,
let multiplier = 5,
let result = base * multiplier + 2,

say("Initial result:"),
say(result),

result = result + 100,

say("Updated result:"),
say(result)

Control Flow (If / Else)

let power = 9000,

if (power > 9000) {
    say("It's over 9000!")
} else {
    say("Power level is normal.")
}

Loops (While)

let i = 1,

while (i < 4) {
    say("Loop iteration:"),
    say(i),
    i = i + 1
}

Custom Functions & Recursion

say("Generating Fibonacci Sequence..."),

function fib(n) {
    if (n < 2) {
        return n
    },
    return fib(n - 1) + fib(n - 2)
},

let count = 0,

while (count < 10) {
    say(fib(count)),
    count = count + 1
}

Reusable Libraries

function calculateArea(length, width) {
    return length * width
},

function calculateVolume(length, width, height) {
    let area = calculateArea(length, width),
    return area * height
},

let myVolume = calculateVolume(10, 5, 2),

say("The calculated volume is:"),
say(myVolume)