locrian

Crates.iolocrian
lib.rslocrian
version0.2.2
created_at2025-10-13 19:18:53.300455+00
updated_at2026-01-15 19:31:04.720052+00
descriptionA simple embeddable functional programming language.
homepage
repositoryhttps://git.sr.ht/~aleksrutins/locrian
max_upload_size
id1881013
size50,062
Aleks Rūtiņš (aleksrutins)

documentation

README

locrian

Locrian is a simple embeddable functional scripting language with a tiny, optional standard library. It includes:

  • JSON-like syntax for values (objects, arrays, etc.)
  • Lisp-like quoting for first-class functions
  • Pure functional behavior
  • Extremely simple syntax

A few examples:

use(["num", "bool"], '[
    let(
    {
        "myFn": 'add($0, $1)
    },
    'myFn(2, 2)
    ), // 4
    // Logic
    if(eq(1, 1), 'add(6, 4), 'add(2, 2)) // 10
])
let(
  {
    "myFn": 'add($0, $1)
  },
  'myFn(2, 2)
) // 4
Commit count: 0

cargo fmt