>> SYSTEM READY...
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:
*macOS/Linux users may need elevated permissions (sudo npm install -g kyser-lang)
Dynamic variables, nested control flow (if/else, while), recursive custom functions, and strict block-scoped memory management.
Executes via a traditional pipeline: a custom Lexical Analyzer generates tokens, an AST Parser builds the syntax tree, and a custom Interpreter evaluates it.
Upcoming expansion to include native Data Structures (Arrays/Lists), File Modularity (Imports), and Object-Oriented Programming architectures.
>> SYSTEM READY...
Explore the core syntax and commands of Kyser.
let base = 10,
let multiplier = 5,
let result = base * multiplier + 2,
say("Initial result:"),
say(result),
result = result + 100,
say("Updated result:"),
say(result)
let power = 9000,
if (power > 9000) {
say("It's over 9000!")
} else {
say("Power level is normal.")
}
let i = 1,
while (i < 4) {
say("Loop iteration:"),
say(i),
i = i + 1
}
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
}
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)