Skip to content

chrsm/awesome-yue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Awesome YueScript!

YueScript logo
A delightful language that compiles to Lua
Dynamic, expressive, and concise syntax for Lua development.
Docs · Try Online · Discord

Xiaoyu, the YueScript mascot

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"

ToC

Editor Tools

vim/neovim

VSCode

micro

emacs

WASM

Tools

  • yuepack - tool for packing YueScript projects into a single file
  • yuecheck - linter and formatter for YueScript

Libraries

Game Engines

  • (archived) Yuema - raylib + luajit + YueScript
  • YueCat - software development framework, focused on games
  • YASDK - "Yet Another Stupid Development Kit"

Love2D

Libraries or projects using Yue and Love2D.

  • weave - wrapper around Love2D's threading
  • behave - behavior tree written for Love2D (doesn't seem love specific)

Project Templates

  • Playdate - YueScript template for Playdate
  • Tsuki - project template for Love2D
  • yuelove2d - barebones starter template

Configs

Configurations for things that use Lua, but in YueScript

Projects

Projects that use Yue.

Miscellaneous

About

List of YueScript tools, libraries, projects and other stuff!

Topics

Resources

Stars

Watchers

Forks

Contributors