diff --git a/HISTORY.md b/HISTORY.md index 0e71528e..31bf0bf2 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -10,7 +10,7 @@ ### 2022-01-05 * new dev version - +* blocks: added syntax tree representation for translated input options and constants ## 7.0.3: * **New Features:** diff --git a/snap.html b/snap.html index 023e3c17..8c1ef712 100755 --- a/snap.html +++ b/snap.html @@ -16,7 +16,7 @@ - + diff --git a/src/blocks.js b/src/blocks.js index 6e22792a..87da90da 100644 --- a/src/blocks.js +++ b/src/blocks.js @@ -160,7 +160,7 @@ CustomCommandBlockMorph, ToggleButtonMorph, DialMorph, SnapExtensions*/ // Global stuff //////////////////////////////////////////////////////// -modules.blocks = '2022-January-04'; +modules.blocks = '2022-January-05'; var SyntaxElementMorph; var BlockMorph; @@ -3797,6 +3797,9 @@ BlockMorph.prototype.syntaxTree = function (parameterNames) { expr.revertToEmptyInput(inp).collapseAll(); } else { val = inp.evaluate(); + if (val instanceof Array) { + val = '[' + val + ']'; + } if (inp instanceof ColorSlotMorph) { val = val.toString(); }