aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShalokShalom <shalokshalom@protonmail.ch>2021-04-04 03:50:19 +0200
committerGitHub <noreply@github.com>2021-04-04 09:50:19 +0800
commitcecaec71883691f49a3e4d5fa8c0ff6fb1a38a4f (patch)
tree9e0f5ce17f8624f6d6a0e26f1ec1d24b31f6d3f1
parent1ed40360d664d397e1178eb60cf8d3fbe0881edc (diff)
downloadyuescript-cecaec71883691f49a3e4d5fa8c0ff6fb1a38a4f.tar.gz
yuescript-cecaec71883691f49a3e4d5fa8c0ff6fb1a38a4f.tar.bz2
yuescript-cecaec71883691f49a3e4d5fa8c0ff6fb1a38a4f.zip
Corrected small typos (#46)
Corrected spelling thanks to Grammarly.com
-rw-r--r--CHANGELOG.md46
1 files changed, 23 insertions, 23 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 347f6e2..d67dd81 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,13 +1,13 @@
1# Changelog 1# Changelog
2 2
3The implementation for original Moonscript language 0.5.0 can be found in the `0.5.0` branch of Yuescript. The Moonscript with fixes and new features is in the main branch of Yuescript. Here are the changelogs for each Yuescript version. 3The implementation for the original Moonscript language 0.5.0 can be found in the `0.5.0` branch of Yuescript. The Moonscript with fixes and new features is in the main branch of Yuescript. Here are the changelogs for each Yuescript version.
4 4
5 5
6## v0.6.7 6## v0.6.7
7 7
8### Fixed Issues 8### Fixed Issues
9 9
10* Simplify macro syntax. Macro function can either return a Yuescript string or a config table containing Lua codes. 10* Simplify macro syntax. A macro function can either return a Yuescript string or a config table containing Lua codes.
11 11
12```moonscript 12```moonscript
13macro localFunc = (var)-> "local #{var} = ->" 13macro localFunc = (var)-> "local #{var} = ->"
@@ -38,9 +38,9 @@ f2 = function()
38end 38end
39``` 39```
40 40
41* Change Yuescript file extension to '.yue' because some of the Moonscript syntax are no longer supported and some codes written in Yuescript syntax won't be accepted by Moonscript compiler. 41* Change the Yuescript file extension to '.yue' because some of the Moonscript syntax is no longer supported and some codes written in Yuescript syntax won't be accepted by the Moonscript compiler.
42* Disable the use of local and global statement with wildcard operators. 42* Disable the use of local and global statements with wildcard operators.
43* Change backcall operator syntax, extra parentheses for multiline chains are no longer needed. 43* Change the backcall operator syntax, extra parentheses for multiline chains are no longer needed.
44```moonscript 44```moonscript
45readFile "example.txt" 45readFile "example.txt"
46 |> extract language, {} 46 |> extract language, {}
@@ -100,18 +100,18 @@ end):Destroy()
100 100
101### Fixed Issues 101### Fixed Issues
102 102
103* Remove support for escape new line symbol, binary operator expressions can now be written multiline without escape new line symbol. 103* Remove support for escape newline symbol, binary operator expressions can now be written multiline without escape newline symbol.
104 104
105* Fix an issue when extending class without name. 105* Fix an issue when extending class without a name.
106 106
107* Fix an issue when using return with export statement. 107* Fix an issue when using return with an export statement.
108 108
109* Fix issues when declaring table key with Lua multiline string and indexing expressions with Lua multiline string. 109* Fix issues when declaring table key with Lua multiline string and indexing expressions with Lua multiline string.
110 110
111* Make simple table and table block appear in the end of function arguments merged into one table. 111* Make simple table and table block appear at the end of function arguments merged into one table.
112 112
113 ```Moonscript 113 ```Moonscript
114 -- function arguments end with simple table followed by table block 114 -- function arguments end with a simple table followed by table block
115 another hello, one, 115 another hello, one,
116 two, three, four, yeah: man 116 two, three, four, yeah: man
117 okay: yeah 117 okay: yeah
@@ -207,14 +207,14 @@ end):Destroy()
207 207
208### Fixed Issues 208### Fixed Issues
209 209
210* Fix issues of unary and binary operator "~". 210* Fix issues of the unary and binary operator "~".
211* Fix Moonscript issue 416: ambiguous Lua output in some cases. 211* Fix Moonscript issue 416: ambiguous Lua output in some cases.
212* Fix errors when explicitly declaring global or local variable initialized with table block. 212* Fix errors when explicitly declaring global or local variable initialized with table block.
213* Fix macro type mismatch issue. 213* Fix macro type mismatch issue.
214* Fix line break issue in macro, disable macro declaration outside the root scope. 214* Fix line break issue in macro, disable macro declaration outside the root scope.
215* Fix existential operator issue when used in operator-value list. 215* Fix existential operator issue when used in an operator-valued list.
216* Fix assignment with backcall expr not well handled issue. 216* Fix assignment with backcall expressions in not well-handled cases.
217* Fix destructure case assigning one table variable to an operator-value expression. 217* Fix destructure case assigning one table variable to an operator-valued expression.
218* Fix simple chain value with Lua keyword colon chain item. 218* Fix simple chain value with Lua keyword colon chain item.
219 219
220### Added Features 220### Added Features
@@ -263,7 +263,7 @@ end):Destroy()
263 263
264 264
265 265
266### Changed Hehaviors 266### Changed Behaviors
267 267
268* Remove else clause support from if-else line decorator syntax which makes users confused. 268* Remove else clause support from if-else line decorator syntax which makes users confused.
269 269
@@ -320,11 +320,11 @@ end
320 320
321### Fixed Issues 321### Fixed Issues
322 322
323* Fix some cases when using backcall with assignment. 323* Fix some cases when using backcall with an assignment.
324* Fix a case that complier crashes with empty code body. 324* Fix a case that complier crashes with an empty code body.
325* Force forward declaration of variable for assigning local function. 325* Force forward declaration of a variable for assigning local function.
326 326
327From original Moonscript compiler: 327From the original Moonscript compiler:
328 328
329* [#390](https://github.com/leafo/moonscript/issues/390) Many lists are not allowed to be multiline 329* [#390](https://github.com/leafo/moonscript/issues/390) Many lists are not allowed to be multiline
330 330
@@ -339,7 +339,7 @@ From original Moonscript compiler:
339* Add fat arrow support for backcall statement. 339* Add fat arrow support for backcall statement.
340* Add option to compile Yuescript as a Lua C lib. Got Yuescript released to `Luarocks`. 340* Add option to compile Yuescript as a Lua C lib. Got Yuescript released to `Luarocks`.
341* Move old `export` statement functions to `global` statement to match the `local` statement. 341* Move old `export` statement functions to `global` statement to match the `local` statement.
342* Change `export` statement behavier to support module management. Moon codes with `export` statement can not explicit return values in root scope. And codes with `export default` can export only one value as the module content. Use cases: 342* Change `export` statement behavior to support module management. Moon codes with `export` statements can not explicitly return values in the root scope. And codes with `export default` can export only one value as the module content. Use cases:
343```Moonscript 343```Moonscript
344-- file 'Config.mp' 344-- file 'Config.mp'
345export default {flag:1, value:"x"} 345export default {flag:1, value:"x"}
@@ -532,10 +532,10 @@ _call_4["else"](_call_4, res)
532 532
533 533
534 534
535### Changed Hehaviors 535### Changed Behaviors
536 536
537* Left part of update statement will now accept only one assignable expression. 537* Left part of update statement will now accept only one assignable expression.
538* Expression list appears in the middle of code block is not allowed. For codes like: 538* Expression list appears in the middle of the code block is not allowed. For codes like:
539 539
540```Moonscript 540```Moonscript
541-- Moonscript 0.5.0 541-- Moonscript 0.5.0
@@ -595,7 +595,7 @@ do
595end 595end
596``` 596```
597 597
598* Reusing variables which helps generate reduced Lua codes. 598* Reusing variables which help generate reduced Lua codes.
599 For example, Yuescript will generate codes from: 599 For example, Yuescript will generate codes from:
600 600
601```Moonscript 601```Moonscript