diff options
| author | Li Jin <dragon-fly@qq.com> | 2026-02-12 12:04:03 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2026-02-12 12:04:03 +0800 |
| commit | fff01530bbbfed7e7b76566d15ade9836eeaf14f (patch) | |
| tree | fa8eb48217b982fa94eacb251c256dc5b2cc281f /README.md | |
| parent | 01a84cb83973b1dbbcc0cbbc6835ea3f3ec755e3 (diff) | |
| download | yuescript-fff01530bbbfed7e7b76566d15ade9836eeaf14f.tar.gz yuescript-fff01530bbbfed7e7b76566d15ade9836eeaf14f.tar.bz2 yuescript-fff01530bbbfed7e7b76566d15ade9836eeaf14f.zip | |
Again. [skip CI]
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 20 |
1 files changed, 11 insertions, 9 deletions
| @@ -4,7 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | [](https://ippclub.org) [](https://github.com/pigpigyyy/Yuescript/actions/workflows/ubuntu.yml) [](https://github.com/pigpigyyy/Yuescript/actions/workflows/windows.yml) [](https://github.com/pigpigyyy/Yuescript/actions/workflows/macos.yml) [](https://discord.gg/cRJ2VAm2NV) | 5 | [](https://ippclub.org) [](https://github.com/pigpigyyy/Yuescript/actions/workflows/ubuntu.yml) [](https://github.com/pigpigyyy/Yuescript/actions/workflows/windows.yml) [](https://github.com/pigpigyyy/Yuescript/actions/workflows/macos.yml) [](https://discord.gg/cRJ2VAm2NV) |
| 6 | 6 | ||
| 7 | YueScript is a MoonScript dialect. It is derived from [MoonScript language](https://github.com/leafo/moonscript) 0.5.0 and continuously adopting new features to be more up to date. | 7 | YueScript is a MoonScript dialect. It is derived from [MoonScript language](https://github.com/leafo/moonscript) 0.5.0 and continuously adopting new features to be more up to date. |
| 8 | 8 | ||
| 9 | MoonScript is a language that compiles to Lua. Since original MoonScript has been used to write web framework [lapis](https://github.com/leafo/lapis) and run a few business web sites like [itch.io](https://itch.io) and [streak.club](https://streak.club) with some large code bases. The original language is getting too hard to adopt new features for those may break the stablility for existing applications. | 9 | MoonScript is a language that compiles to Lua. Since original MoonScript has been used to write web framework [lapis](https://github.com/leafo/lapis) and run a few business web sites like [itch.io](https://itch.io) and [streak.club](https://streak.club) with some large code bases. The original language is getting too hard to adopt new features for those may break the stablility for existing applications. |
| 10 | 10 | ||
| @@ -51,7 +51,7 @@ YueScript is being developed and maintained alongside the open-source game engin | |||
| 51 | 51 | ||
| 52 |   Then require the YueScript module in Lua: | 52 |   Then require the YueScript module in Lua: |
| 53 | 53 | ||
| 54 | ```Lua | 54 | ```lua |
| 55 | require("yue")("main") -- require `main.yue` | 55 | require("yue")("main") -- require `main.yue` |
| 56 | 56 | ||
| 57 | local yue = require("yue") | 57 | local yue = require("yue") |
| @@ -130,13 +130,15 @@ Options: | |||
| 130 | Execute without options to enter REPL, type symbol '$' | 130 | Execute without options to enter REPL, type symbol '$' |
| 131 | in a single line to start/stop multi-line mode | 131 | in a single line to start/stop multi-line mode |
| 132 | ``` | 132 | ``` |
| 133 |   Use cases: | 133 | |
| 134 |   Recursively compile every YueScript file with extension `.yue` under current path: `yue .` | 134 | Use cases: |
| 135 |   Compile and save results to a target path: `yue -t /target/path/ .` | 135 | |
| 136 |   Compile and reserve debug info: `yue -l .` | 136 | * Recursively compile every YueScript file with extension `.yue` under current path: `yue .` |
| 137 |   Compile and generate minified codes: `yue -m .` | 137 | * Compile and save results to a target path: `yue -t /target/path/ .` |
| 138 |   Execute raw codes: `yue -e 'print 123'` | 138 | * Compile and reserve debug info: `yue -l .` |
| 139 |   Execute a YueScript file: `yue -e main.yue` | 139 | * Compile and generate minified codes: `yue -m .` |
| 140 | * Execute raw codes: `yue -e 'print 123'` | ||
| 141 | * Execute a YueScript file: `yue -e main.yue` | ||
| 140 | 142 | ||
| 141 | 143 | ||
| 142 | 144 | ||
