fez-lisp 1.5.44 → 1.5.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/baked/std.js +1 -1
- package/package.json +1 -1
- package/src/check.js +236 -250
- package/src/macros.js +4 -5
package/src/macros.js
CHANGED
@@ -92,17 +92,15 @@ export const deSuggarAst = (ast, scope) => {
|
|
92
92
|
case KEYWORDS.BLOCK:
|
93
93
|
{
|
94
94
|
if (
|
95
|
-
prev
|
96
|
-
|
97
|
-
|
98
|
-
prev[VALUE] !== KEYWORDS.ANONYMOUS_FUNCTION)
|
95
|
+
prev &&
|
96
|
+
prev[TYPE] === APPLY &&
|
97
|
+
prev[VALUE] !== KEYWORDS.ANONYMOUS_FUNCTION
|
99
98
|
) {
|
100
99
|
exp[0][VALUE] = KEYWORDS.CALL_FUNCTION
|
101
100
|
exp[0][TYPE] = APPLY
|
102
101
|
exp.length = 1
|
103
102
|
scope = [[APPLY, KEYWORDS.BLOCK], ...rest]
|
104
103
|
exp[1] = [[APPLY, KEYWORDS.ANONYMOUS_FUNCTION], scope]
|
105
|
-
|
106
104
|
deSuggarAst(exp, scope)
|
107
105
|
} else {
|
108
106
|
scope = exp
|
@@ -851,6 +849,7 @@ const iron = (scope) => {
|
|
851
849
|
copy.push(scope[i])
|
852
850
|
}
|
853
851
|
}
|
852
|
+
|
854
853
|
for (let i = 0; i < copy.length; ++i) scope[i] = copy[i]
|
855
854
|
}
|
856
855
|
}
|