diff options
author | Li Jin <dragon-fly@qq.com> | 2023-10-23 11:42:29 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2023-10-23 11:42:29 +0800 |
commit | bafe9b44212316a51ee00f7af15e881c81d96fe6 (patch) | |
tree | 04a8dcf1d5903562d7d7254925918837ceaa6b20 /CHANGELOG.md | |
parent | 147eb556316c673859fd7da7b479c3f3f8f4bdaa (diff) | |
download | yuescript-bafe9b44212316a51ee00f7af15e881c81d96fe6.tar.gz yuescript-bafe9b44212316a51ee00f7af15e881c81d96fe6.tar.bz2 yuescript-bafe9b44212316a51ee00f7af15e881c81d96fe6.zip |
update change log.
Diffstat (limited to '')
-rw-r--r-- | CHANGELOG.md | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index e9f703d..d22e644 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md | |||
@@ -2,6 +2,55 @@ | |||
2 | 2 | ||
3 | The 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. | 3 | The 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 | ## v0.20.2 | ||
6 | |||
7 | ### Added Features | ||
8 | |||
9 | * Added chaining comparisons and list syntax [] with disallowing key value pairs in it. | ||
10 | |||
11 | ```moonscript | ||
12 | x = 2 | ||
13 | res = 1 < x < 3 -- true in Yuescript, like Python. | ||
14 | print res | ||
15 | |||
16 | list_with_only_one_element = [1,] | ||
17 | list = [ | ||
18 | 1 | ||
19 | 2 | ||
20 | 3 | ||
21 | abc: 123 -- will report error here | ||
22 | ] | ||
23 | [a = 1, b = 2] = tab_to_be_destructured | ||
24 | ``` | ||
25 | |||
26 | * Added `from "module" import ...` syntax. | ||
27 | |||
28 | ```moonscript | ||
29 | from "CS" import | ||
30 | System | ||
31 | UnityEngine | ||
32 | |||
33 | from UnityEngine import | ||
34 | Object | ||
35 | GameObject | ||
36 | Transform | ||
37 | MonoBehaviour | ||
38 | Vector3 | ||
39 | Quaternion | ||
40 | ``` | ||
41 | |||
42 | * Added `import ... from "module"` syntax. | ||
43 | |||
44 | ```moonscript | ||
45 | import a, b, c from "module" | ||
46 | ``` | ||
47 | |||
48 | ### Fixed Issues | ||
49 | |||
50 | * Fixed issue #150. Cannot use pipes on new line with const declarations. | ||
51 | * Fixed issue #148. No output when running code in online compiler. | ||
52 | * Fixed inline variable renaming rule to prevent naming conflicts. | ||
53 | |||
5 | ## v0.19.1 | 54 | ## v0.19.1 |
6 | 55 | ||
7 | ### Added Features | 56 | ### Added Features |