diff options
author | apologetik <105040379+apologetiks@users.noreply.github.com> | 2022-05-06 18:13:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-07 09:13:46 +0800 |
commit | 66104b5357d3648876b867abb6a4caa069627816 (patch) | |
tree | 1c00159eb48acc3c58d11e0a5dead20cc612dab0 | |
parent | d20be11da9fef9309faf7f83078ed963a3b1e627 (diff) | |
download | yuescript-66104b5357d3648876b867abb6a4caa069627816.tar.gz yuescript-66104b5357d3648876b867abb6a4caa069627816.tar.bz2 yuescript-66104b5357d3648876b867abb6a4caa069627816.zip |
changelog: update from 0.10.15 to 0.10.17 (#94)
-rw-r--r-- | CHANGELOG.md | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c80a4d..34f435c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md | |||
@@ -2,6 +2,49 @@ | |||
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.10.17 | ||
6 | |||
7 | ### Added Features | ||
8 | |||
9 | * Yuescript to AST function (`yue.to_ast`) | ||
10 | ```moonscript | ||
11 | yue.p yue.to_ast "print 123" | ||
12 | ``` | ||
13 | Prints: | ||
14 | ``` | ||
15 | { | ||
16 | [1] = "file" | ||
17 | [2] = { | ||
18 | [1] = "callable" | ||
19 | [2] = "print" | ||
20 | } | ||
21 | [3] = { | ||
22 | [1] = "invoke_args" | ||
23 | [2] = "123" | ||
24 | } | ||
25 | } | ||
26 | ``` | ||
27 | |||
28 | ## v0.10.16 | ||
29 | |||
30 | ### Fixed Issues | ||
31 | |||
32 | * Prevent text mode macros from inserting line numbers into generated code. | ||
33 | ```moonscript | ||
34 | macro text = (code) -> { | ||
35 | :code | ||
36 | type: "text" | ||
37 | } | ||
38 | |||
39 | $text[["hi"]] | ||
40 | nil | ||
41 | ``` | ||
42 | Compiles to: | ||
43 | ``` | ||
44 | print "hi" | ||
45 | return nil -- 8 | ||
46 | ``` | ||
47 | |||
5 | ## v0.10.15 | 48 | ## v0.10.15 |
6 | 49 | ||
7 | ### Fixed Issues | 50 | ### Fixed Issues |