fez-lisp 1.5.28 → 1.5.29
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/macros.js +0 -6
- package/src/parser.js +1 -1
package/package.json
CHANGED
package/src/macros.js
CHANGED
@@ -851,12 +851,6 @@ export const replaceQuotes = (source) =>
|
|
851
851
|
.replaceAll(/\{/g, `(${SUGGAR.CREATE_LIST} `)
|
852
852
|
.replaceAll(/\}/g, ')')
|
853
853
|
|
854
|
-
export const replaceParens = (source) =>
|
855
|
-
source
|
856
|
-
.replaceAll(/\[/g, '(')
|
857
|
-
.replaceAll(/\]/g, ')')
|
858
|
-
.replaceAll(/\{/g, '(')
|
859
|
-
.replaceAll(/\}/g, ')')
|
860
854
|
export const deSuggarSource = (source) => replaceQuotes(replaceStrings(source))
|
861
855
|
export const handleUnbalancedQuotes = (source) => {
|
862
856
|
const diff = (source.match(/\"/g) ?? []).length % 2
|
package/src/parser.js
CHANGED
@@ -48,7 +48,7 @@ export const LISP = {
|
|
48
48
|
const dfs = (exp) => {
|
49
49
|
let out = ''
|
50
50
|
const [head, ...tail] = isLeaf(exp) ? [exp] : exp
|
51
|
-
if (head == undefined) return (out += '()')
|
51
|
+
if (head == undefined) return (out += '(array)')
|
52
52
|
switch (head[TYPE]) {
|
53
53
|
case WORD:
|
54
54
|
out += head[VALUE]
|