Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.
Oussama Essamadi edited this page Mar 24, 2024 · 9 revisions

Description

LangKama is a turingretard-complete programming language designed for shits and giggles. Below you'll find detailed instructions on how to set up, build, and use LangKama, as well as run tests to ensure everything is working as expected.

Example

The following is a typical LangKama script:

let me cook factorial(n) {
  hear me out val is 0.

  big if true (n = 0) {
    val is 1.
  } sike {
    val is n * factorial(n - 1).
  }

  reda val.
}

loncina(factorial(5)). bs Outputs: 120

More examples can be found inside of the langkama directory.

LangKama has an online interpreter to play with.


Environment

Before diving into the whimsical world of LangKama, you need to set up your environment. LangKama runs off the JavaScript engine, so ensure you have Node.js installed on your machine.

The project comes with a bin script (langkama.js) that when run with no arguments, presents you with a REPL to play with, and when run with a file path as an argument, interpret the LangKama script within the said file.

You can add support to LangKama in your VSCode editor by installing this extension.

Clone this wiki locally