From 66104b5357d3648876b867abb6a4caa069627816 Mon Sep 17 00:00:00 2001 From: apologetik <105040379+apologetiks@users.noreply.github.com> Date: Fri, 6 May 2022 18:13:46 -0700 Subject: changelog: update from 0.10.15 to 0.10.17 (#94) --- CHANGELOG.md | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c80a4d..34f435c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,49 @@ 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. +## v0.10.17 + +### Added Features + +* Yuescript to AST function (`yue.to_ast`) + ```moonscript + yue.p yue.to_ast "print 123" + ``` + Prints: + ``` + { + [1] = "file" + [2] = { + [1] = "callable" + [2] = "print" + } + [3] = { + [1] = "invoke_args" + [2] = "123" + } + } + ``` + +## v0.10.16 + +### Fixed Issues + +* Prevent text mode macros from inserting line numbers into generated code. + ```moonscript + macro text = (code) -> { + :code + type: "text" + } + + $text[["hi"]] + nil + ``` + Compiles to: + ``` + print "hi" + return nil -- 8 + ``` + ## v0.10.15 ### Fixed Issues -- cgit v1.2.3-55-g6feb