qrk

module
v0.0.0-...-161ba2d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2025 License: MIT

README ΒΆ

🌌 qrk programming language

Parser implements Pratt parsing algorithm

Virtual machine is stack-based

πŸ“ƒ Code snippets

print("Goodbye universe!");
fn fibonacci(n) {
    if n < 2 {
        return n;
    }
    return fibonacci(n-2) + fibonacci(n-1);
}

fibonacci(42);
fn is_life_question_answer(answer) { 
    let expected_answer = 42;
    return answer == expected_answer;
};

is_life_question_answer(69);
let person = {
    "age": 10,
    "live": fn() { print("living..."); },
};

person["live"]();

πŸš€ How to run locally

  • have go installed locally

  • install dependecies

go mod download
  • launch REPL
make run
  • or run code from a file with .qrk extension
make run FILE="example.qrk"

Directories ΒΆ

Path Synopsis
cmd
src
ast
fs
vm

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL