qrk

module
v0.0.0-...-b77bb83 Latest Latest
Warning

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

Go to latest
Published: May 25, 2024 License: MIT

README ΒΆ

🌌 qrk programming language interpreter

Parser implements Pratt parsing algorithm

πŸ“ƒ Code snippets

print("Goodbye universe!");
let fibanacci = fn(n) {
    if n < 2 {
        return n;
    }
    return fibanacci(n-2) + fibanacci(n-1);
}
fibanacci(42);
let isAnswerOnTheLifeQuestion = fn(answer) { 
    let expectedAnswer = 42;
    return answer == expectedAnswer;
};
isAnswerOnTheLifeQuestion(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

Directories ΒΆ

Path Synopsis
cmd
src
ast

Jump to

Keyboard shortcuts

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