fez-lisp 1.1.25 → 1.1.26

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/interpreter.js +29 -27
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "fez-lisp",
3
3
  "description": "Lisp interpreted & compiled to JavaScript",
4
4
  "author": "AT290690",
5
- "version": "1.1.25",
5
+ "version": "1.1.26",
6
6
  "type": "module",
7
7
  "main": "index.js",
8
8
  "keywords": [
@@ -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
- 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 (${KEYWORDS.ANONYMOUS_FUNCTION})`
957
- )
958
- }
959
- break
960
- // case KEYWORDS.DEFINE_VARIABLE:
961
- // {
962
- // if (
963
- // rest[1] &&
964
- // rest[1][0] &&
965
- // rest[1][0][TYPE] === APPLY &&
966
- // rest[1][0][VALUE] === KEYWORDS.BLOCK
967
- // ) {
968
- // throw new SyntaxError(
969
- // `Can't use (${KEYWORDS.BLOCK}) in (${KEYWORDS.DEFINE_VARIABLE})`
970
- // )
971
- // }
972
- // }
973
- break
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)