fez-lisp 1.4.20 → 1.5.0

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 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.4.20",
5
+ "version": "1.5.0",
6
6
  "type": "module",
7
7
  "main": "index.js",
8
8
  "keywords": [
package/src/compiler.js CHANGED
@@ -115,7 +115,7 @@ const Helpers = {
115
115
  atom_predicate: `atom_predicate=(number)=>+(typeof number==='number')`,
116
116
  lambda_predicate: `lambda_predicate=(fn)=>+(typeof fn==='function')`,
117
117
  __error: `__error=(error)=>{throw new Error(error.map((x)=>String.fromCharCode(x)).join(''))}`,
118
- set_effect: `set_effect=function(array,index,value){if(arguments.length===1){array.pop()}else{array[index] = value};return array}`
118
+ alter_effect: `alter_effect=function(array,index,value){if(arguments.length===1){array.pop()}else{array[index] = value};return array}`
119
119
  }
120
120
  const semiColumnEdgeCases = new Set([
121
121
  ';)',
package/src/keywords.js CHANGED
@@ -40,7 +40,7 @@ export const KEYWORDS = {
40
40
  CALL_FUNCTION: 'apply',
41
41
  DEFINE_VARIABLE: 'let',
42
42
 
43
- SET_ARRAY: 'set!',
43
+ SET_ARRAY: 'alter!',
44
44
  ERROR: 'throw'
45
45
  }
46
46