diff options
| author | Li Jin <dragon-fly@qq.com> | 2020-10-23 17:49:53 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2020-10-23 17:49:53 +0800 |
| commit | 37159975626ddd51689dd11b8517af0d1f4d2380 (patch) | |
| tree | 1dc23131eca9c674d6ce398cb80d6ea4dc37142b | |
| parent | 1c6a9651beffd9cbbb3641179f3a738d5555d3c9 (diff) | |
| download | yuescript-37159975626ddd51689dd11b8517af0d1f4d2380.tar.gz yuescript-37159975626ddd51689dd11b8517af0d1f4d2380.tar.bz2 yuescript-37159975626ddd51689dd11b8517af0d1f4d2380.zip | |
fix changelog.
| -rw-r--r-- | CHANGELOG.md | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 85b5d06..cdc35c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md | |||
| @@ -129,17 +129,46 @@ The implementation for original Moonscript language 0.5.0 can be found in the `0 | |||
| 129 | 129 | ||
| 130 | ### Added Features | 130 | ### Added Features |
| 131 | 131 | ||
| 132 | * Change operator precedence to (1) ^ (2) unary operators (not, #, -, ~) (3) |> (4) *, /, //, %, ... | 132 | * Change operator precedence to |
| 133 | * Make back call operator use highest priority for operator precedence. | 133 | * [1] ^ |
| 134 | * [2] unary operators (not, #, -, ~) | ||
| 135 | * [3] |> | ||
| 136 | * [4] *, /, //, %, ... | ||
| 137 | |||
| 134 | * Add existential operator support for `with` statement. | 138 | * Add existential operator support for `with` statement. |
| 139 | |||
| 140 | ```Moonscript | ||
| 141 | with? io.open "test.txt", "w" | ||
| 142 | \write "hello" | ||
| 143 | \close! | ||
| 144 | ``` | ||
| 145 | |||
| 146 | Compiles to: | ||
| 147 | |||
| 148 | ```Lua | ||
| 149 | local _with_0 = io.open("test.txt", "w") | ||
| 150 | if _with_0 ~= nil then | ||
| 151 | _with_0:write("hello") | ||
| 152 | _with_0:close() | ||
| 153 | end | ||
| 154 | ``` | ||
| 155 | |||
| 135 | * Add repeat until statement support. | 156 | * Add repeat until statement support. |
| 157 | |||
| 136 | * Allow implicitly returning block macro. | 158 | * Allow implicitly returning block macro. |
| 159 | |||
| 137 | * Add support for macro system expanding to Lua codes directly. | 160 | * Add support for macro system expanding to Lua codes directly. |
| 161 | |||
| 138 | * Add goto statement support. | 162 | * Add goto statement support. |
| 163 | |||
| 139 | * Add variadic arguments declaration check. | 164 | * Add variadic arguments declaration check. |
| 165 | |||
| 140 | * `moonp` now supports recursively traversing any directory and compiling any moon file in the path. | 166 | * `moonp` now supports recursively traversing any directory and compiling any moon file in the path. |
| 167 | |||
| 141 | * `moonp` now supports REPL functions for Moonscript. | 168 | * `moonp` now supports REPL functions for Moonscript. |
| 169 | |||
| 142 | * Add `useSpaceOverTab` function to `moonp`. | 170 | * Add `useSpaceOverTab` function to `moonp`. |
| 171 | |||
| 143 | * Add Lua codes minify function to `moonp`. | 172 | * Add Lua codes minify function to `moonp`. |
| 144 | 173 | ||
| 145 | 174 | ||
