fez-lisp 1.1.25 → 1.1.26
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/package.json +1 -1
- package/src/interpreter.js +29 -27
package/package.json
CHANGED
package/src/interpreter.js
CHANGED
@@ -944,33 +944,35 @@ export const deSuggar = (ast) => {
|
|
944
944
|
case APPLY:
|
945
945
|
{
|
946
946
|
switch (first[VALUE]) {
|
947
|
-
case KEYWORDS.BLOCK:
|
948
|
-
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
|
969
|
-
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
|
947
|
+
// case KEYWORDS.BLOCK:
|
948
|
+
// {
|
949
|
+
// if (
|
950
|
+
// prev == undefined ||
|
951
|
+
// (prev &&
|
952
|
+
// prev[TYPE] === APPLY &&
|
953
|
+
// prev[VALUE] !== KEYWORDS.ANONYMOUS_FUNCTION)
|
954
|
+
// )
|
955
|
+
// throw new SyntaxError(
|
956
|
+
// `Can only use (${KEYWORDS.BLOCK}) as a body of a (${
|
957
|
+
// KEYWORDS.ANONYMOUS_FUNCTION
|
958
|
+
// }) (${stringifyArgs(exp)})`
|
959
|
+
// )
|
960
|
+
// }
|
961
|
+
// break
|
962
|
+
// case KEYWORDS.DEFINE_VARIABLE:
|
963
|
+
// {
|
964
|
+
// if (
|
965
|
+
// rest[1] &&
|
966
|
+
// rest[1][0] &&
|
967
|
+
// rest[1][0][TYPE] === APPLY &&
|
968
|
+
// rest[1][0][VALUE] === KEYWORDS.BLOCK
|
969
|
+
// ) {
|
970
|
+
// throw new SyntaxError(
|
971
|
+
// `Can't use (${KEYWORDS.BLOCK}) in (${KEYWORDS.DEFINE_VARIABLE})`
|
972
|
+
// )
|
973
|
+
// }
|
974
|
+
// }
|
975
|
+
// break
|
974
976
|
case KEYWORDS.PIPE:
|
975
977
|
{
|
976
978
|
if (rest.length < 1)
|