![]() |
A delightful language that compiles to Lua Dynamic, expressive, and concise syntax for Lua development. Docs · Try Online · Discord |
Xiaoyu (小玉) · Official YueScript Mascot
Anything and everything related to YueScript.
YueScript started as a Moonscript compiler and has turned into a much better alternative to Lua than Moonscript.
Sample from the website:
-- import syntax
import p, to_lua from "yue"
-- object literals
inventory =
equipment:
- "sword"
- "shield"
items:
- name: "potion"
count: 10
- name: "bread"
count: 3
-- list comprehension
map = (arr, action) -> [action item for item in *arr]
filter = (arr, cond) -> [item for item in *arr when cond item]
reduce = (arr, init, action): init -> init = action init, item for item in *arr
-- pipe operator
[1, 2, 3]
|> map (x) -> x * 2
|> filter (x) -> x > 4
|> reduce 0, (a, b) -> a + b
|> print
-- metatable manipulation
apple =
size: 15
<index>:
color: 0x00ffff
with apple
p .size, .color, .<index> if .<>?
-- js-like export syntax
export 🌛 = "Script of Moon"- Editor Tools
- WASM
- Tools
- Libraries
- Game Engines
- Love2D
- Configs - software configs written in YueScript (->lua)
- Projects - projects that use YueScript
- Miscellaneous - miscellaneous things written in YueScript
- yuescript-vim - support for vim
- yuecheck-vim - ALE integration
- yuescript-vscode - support for VSCode
- YueRunner - provides YueScript compilation support
- yuescript-micro-syntax - support for micro
- yuescript.org's wasm copied to GH by @leodev-xyz
- yuepack - tool for packing YueScript projects into a single file
- yuecheck - linter and formatter for YueScript
- leadoc - write documentation for anything in YueScript
- moonclass - function wrapper for class system
- pretty - pretty printer
- yuescript-tokenizer - simple tokenizer/lexer for YueScript
- ? libsunshine - general purpose/standard library
- fractional-lua - bignum/fraction math library
- lj4lj - luajit ffi for luajit
- @kaleidosium's fp utilities - gist of some functional utilities
- (archived) Yuema - raylib + luajit + YueScript
- YueCat - software development framework, focused on games
- YASDK - "Yet Another Stupid Development Kit"
Libraries or projects using Yue and Love2D.
- weave - wrapper around Love2D's threading
- behave - behavior tree written for Love2D (doesn't seem love specific)
- Playdate - YueScript template for Playdate
- Tsuki - project template for Love2D
- yuelove2d - barebones starter template
Configurations for things that use Lua, but in YueScript
- @ekickx's neovim config
- @LooserName404's neovim config
- @dharmx's awesome config
- @thyvini's neovim config
- @SkyyySi's awesomewm config
- @chrsm's neovim config
Projects that use Yue.
- Dorothy SSR - platformer and game engine by by YueScript's creator
- Yuescript-GTKTests - GTK test snippets in Yue
- yuescript-src-rs mLua+YueScript (rust)
- yuescript-mlua - mLua+YueScript (rust)
- fir - language-agnostic documentation generator
- gm_moonloader - integration of YueScript + MoonScript into Garry's Mod
- YueLovePlatformer
- luapack - tool for packing multiple Lua files into one
- @bartek-bartlomiej's advent-of-code
- 100-languages-speedrun - examples of yue
- impulse.nvim - Neovim notion.so plugin built in yue
- YuescriptMemo - Japanese notes on YueScript
- net-transfer - send/receive large data/files (Garry's Mod?)

