| Crates.io | locrian |
| lib.rs | locrian |
| version | 0.2.2 |
| created_at | 2025-10-13 19:18:53.300455+00 |
| updated_at | 2026-01-15 19:31:04.720052+00 |
| description | A simple embeddable functional programming language. |
| homepage | |
| repository | https://git.sr.ht/~aleksrutins/locrian |
| max_upload_size | |
| id | 1881013 |
| size | 50,062 |
Locrian is a simple embeddable functional scripting language with a tiny, optional standard library. It includes:
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