fez-lisp 1.6.8 → 1.6.9
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 +6 -6
package/package.json
CHANGED
package/src/macros.js
CHANGED
@@ -31,11 +31,11 @@ export const SUGGAR = {
|
|
31
31
|
POWER: '**',
|
32
32
|
INTEGER_DEVISION: '//',
|
33
33
|
CONDITION: 'cond',
|
34
|
-
BIG_INT: '
|
35
|
-
BIG_INT_ADDITION: '
|
36
|
-
BIG_INT_SUBTRACTION: '
|
37
|
-
BIG_INT_DIVISION: '
|
38
|
-
BIG_INT_MULTIPLICATION: '
|
34
|
+
BIG_INT: 'Int',
|
35
|
+
BIG_INT_ADDITION: 'Iadd',
|
36
|
+
BIG_INT_SUBTRACTION: 'Isub',
|
37
|
+
BIG_INT_DIVISION: 'Idiv',
|
38
|
+
BIG_INT_MULTIPLICATION: 'Imul',
|
39
39
|
NEW_BIG_INTEGER: 'new:big-integer',
|
40
40
|
PROMISES: '*DATA*'
|
41
41
|
}
|
@@ -756,7 +756,7 @@ export const replaceQuotes = (source) =>
|
|
756
756
|
.replaceAll(/\{/g, `(${SUGGAR.CREATE_LIST} `)
|
757
757
|
.replaceAll(/\}/g, ')')
|
758
758
|
export const replaceBigInteger = (source) =>
|
759
|
-
source.replaceAll(/\(
|
759
|
+
source.replaceAll(/\(I\s+([0-9]+)\)/g, (_, num) => `(Int "${num}")`)
|
760
760
|
export const deSuggarSource = (source) =>
|
761
761
|
replaceQuotes(
|
762
762
|
replaceStrings(replaceTemplateLiteralStrings(replaceBigInteger(source)))
|