Skip to content
NormikChelPublic

About

YL is an esoteric programming language on PHP with a unique Unicode syntax (¤ § λ ⟦ ⟧ ‡ ⋔ ⇢). OOP, closures, Fibers generators, async/await, REPL, compiler, playground, stdlib (JSON, HTTP, datetime), package manager, VSCode ext, i18n docs in 13 languages. MIT licensed.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

YL - Yankee Language

Esoteric programming language on PHP with unicode syntax.

Example

‡ Point ⟦
    ⋔ init(x, y) ⟦ this.x = x; this.y = y ⟧
    ⋔ length() ⟦ ^ sqrt(this.x * this.x + this.y * this.y) ⟧
⟧

¤ p = ⇢ Point(3, 4)
» "Length:", p.length()

Features

  • Unique unicode syntax (¤ § λ ⟦ ⟧ ‡ ⋔ ⇢)
  • Gradual typing: ¤ x :int = 5
  • OOP with † inheritance: ‡ Child † Parent
  • Closures: λ (x) ⟦ ^ x * 2 ⟧
  • Generators on PHP Fibers: ↤ + ⇶
  • Async: ⚡ §, ⏸
  • Stdlib: prelude, math, list, string, json, datetime, http
  • REPL v4 with :vars, :load, multiline
  • Compiler YL->PHP (ylc.php)
  • Package manager (ylpkg.php)
  • Browser playground (playground/)

Quick start

php yl.php examples/main.yl

Docs (i18n)

  • Russian: /
  • English: /en/
  • Simplified Chinese: /zh-Hans/
  • Traditional Chinese (Taiwan style): /zh-Hant/

License

MIT

About

YL is an esoteric programming language on PHP with a unique Unicode syntax (¤ § λ ⟦ ⟧ ‡ ⋔ ⇢). OOP, closures, Fibers generators, async/await, REPL, compiler, playground, stdlib (JSON, HTTP, datetime), package manager, VSCode ext, i18n docs in 13 languages. MIT licensed.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages