← Back to list

lea
by mcclowes
A pipe-oriented functional programming language with a tree-walk interpreter written in TypeScript.
⭐ 3🍴 0📅 Jan 12, 2026
SKILL.md
name: lea
prettier-ignore
description: Use when writing or modifying Lea code - pipe-oriented functional language with tree-walk interpreter
Lea Language
Quick Start
let numbers = [1, 2, 3, 4, 5]
let result = numbers
/> filter((x) -> x > 2)
/> map((x) -> x * x)
/> reduce(0, (acc, x) -> acc + x)
result /> print
Core Principles
- Pipes:
value /> fnpasses value as first arg; useinputplaceholder to control position - Functions:
let double = (x) -> x * 2(no fn keyword) - Multi-statement bodies: Indentation-based or brace-delimited
{ } - Decorators: Trailing
#log #memo #time #retry(3)etc. after function body - Bindings:
let x = 10immutable,maybe x = 0mutable - Records:
{ name: "Max", age: 99 }with member accessrecord.field - Contexts:
context Name = default+provide Name value+@Nameattachments
Builtins
- Math:
sqrt,abs,floor,ceil,round,min,max - Lists:
length,head,tail,push,concat,map,filter,reduce,range - IO:
print(returns first arg for chaining) - Async:
delay(ms)— promise that resolves after ms
Running
npm run repl # Interactive REPL
npm run lea file.lea # Run a file
Reference Files
- references/syntax.md - Full syntax reference
- references/architecture.md - Interpreter internals
Score
Total Score
65/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
✓最近の活動
1ヶ月以内に更新
+10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
Reviews
💬
Reviews coming soon

