Skip to content

Commit

Permalink
Updated readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
pigpigyyy committed Jan 6, 2025
1 parent ba511ab commit df5ffc2
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

[![Ubuntu](https://github.com/pigpigyyy/Yuescript/actions/workflows/ubuntu.yml/badge.svg)](https://github.com/pigpigyyy/Yuescript/actions/workflows/ubuntu.yml) [![Windows](https://github.com/pigpigyyy/Yuescript/actions/workflows/windows.yml/badge.svg)](https://github.com/pigpigyyy/Yuescript/actions/workflows/windows.yml) [![macOS](https://github.com/pigpigyyy/Yuescript/actions/workflows/macos.yml/badge.svg)](https://github.com/pigpigyyy/Yuescript/actions/workflows/macos.yml) [![Discord Badge](https://img.shields.io/discord/844031511208001577?color=5865F2&label=Discord&logo=discord&logoColor=white&style=flat-square)](https://discord.gg/cRJ2VAm2NV)

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.
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.

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.
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.

So Yuescript is a new code base for pushing the language to go forward and being a playground to try introducing new language syntax or programing paradigms to make Moonscript language more expressive and productive.
So YueScript is a new code base for pushing the language to go forward and being a playground to try introducing new language syntax or programing paradigms to make MoonScript language more expressive and productive.

Yue (月) is the name of moon in Chinese and it's pronounced as [jyɛ].

Expand All @@ -18,7 +18,7 @@ Yue (月) is the name of moon in Chinese and it's pronounced as [jyɛ].

* No other dependencies needed except modified [parserlib](https://github.com/axilmar/parserlib) library from Achilleas Margaritis with some performance enhancement. **lpeg** library is no longer needed.
* Written in C++17.
* Support most of the features from Moonscript language. Generate Lua codes in the same way like the original compiler.
* Support most of the features from MoonScript language. Generate Lua codes in the same way like the original compiler.
* Reserve line numbers from source file in the compiled Lua codes to help debugging.
* More features like macro, existential operator, pipe operator, Javascript-like export syntax and etc.
* See other details in the [changelog](./CHANGELOG.md). Find document [here](http://yuescript.org).
Expand All @@ -43,7 +43,7 @@ Yue (月) is the name of moon in Chinese and it's pronounced as [jyɛ].
> luarocks install yuescript
```

  Then require the Yuescript module in Lua:
  Then require the YueScript module in Lua:

```Lua
require("yue")("main") -- require `main.yue`
Expand All @@ -69,17 +69,17 @@ f!
> make install
```

  Build Yuescript tool without macro feature:
  Build YueScript tool without macro feature:
```sh
> make install NO_MACRO=true
```

  Build Yuescript tool without built-in Lua binary:
  Build YueScript tool without built-in Lua binary:
```sh
> make install NO_LUA=true
```

  Use Yuescript tool with:
  Use YueScript tool with:

```sh
> yue -h
Expand Down Expand Up @@ -110,18 +110,18 @@ Usage: yue [options|files|directories] ...
in a single line to start/stop multi-line mode
```
  Use cases:
  Recursively compile every Yuescript file with extension `.yue` under current path: `yue .`
  Recursively compile every YueScript file with extension `.yue` under current path: `yue .`
  Compile and save results to a target path: `yue -t /target/path/ .`
  Compile and reserve debug info: `yue -l .`
  Compile and generate minified codes: `yue -m .`
  Execute raw codes: `yue -e 'print 123'`
  Execute a Yuescript file: `yue -e main.yue`
  Execute a YueScript file: `yue -e main.yue`
## Editor Support
* [Vim](https://github.com/pigpigyyy/Yuescript-vim)
* [Vim](https://github.com/pigpigyyy/YueScript-vim)
* [ZeroBraneStudio](https://github.com/pkulchenko/ZeroBraneStudio/issues/1134) (Syntax highlighting)
* [Visual Studio Code](https://github.com/pigpigyyy/yuescript-vscode)
Expand Down

0 comments on commit df5ffc2

Please sign in to comment.