fez-lisp 1.3.1 → 1.3.2
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/macros.js +29 -4
- package/lib/baked/std.js +1 -1
- package/package.json +2 -3
- package/src/compiler.js +25 -6
- package/src/interpreter.js +8 -22
- package/src/keywords.js +0 -13
- package/src/macros.js +408 -0
- package/src/utils.js +13 -371
package/lib/baked/macros.js
CHANGED
@@ -132,13 +132,38 @@ export const EXPONENTIATION = [
|
|
132
132
|
]
|
133
133
|
]
|
134
134
|
export const FLOOR = [
|
135
|
+
[0, 'lambda'],
|
136
|
+
[1, 'n'],
|
135
137
|
[
|
136
|
-
[0, '
|
138
|
+
[0, '|'],
|
137
139
|
[1, 'n'],
|
140
|
+
[2, 0]
|
141
|
+
]
|
142
|
+
]
|
143
|
+
export const INTEGER_DIVISION = [
|
144
|
+
[0, 'lambda'],
|
145
|
+
[1, 'a'],
|
146
|
+
[1, 'b'],
|
147
|
+
[
|
148
|
+
[0, '|'],
|
149
|
+
[
|
150
|
+
[0, '/'],
|
151
|
+
[1, 'a'],
|
152
|
+
[1, 'b']
|
153
|
+
],
|
154
|
+
[2, 0]
|
155
|
+
]
|
156
|
+
]
|
157
|
+
export const NOT_EQUAL = [
|
158
|
+
[0, 'lambda'],
|
159
|
+
[1, 'a'],
|
160
|
+
[1, 'b'],
|
161
|
+
[
|
162
|
+
[0, 'not'],
|
138
163
|
[
|
139
|
-
[0, '
|
140
|
-
[1, '
|
141
|
-
[
|
164
|
+
[0, '='],
|
165
|
+
[1, 'a'],
|
166
|
+
[1, 'b']
|
142
167
|
]
|
143
168
|
]
|
144
169
|
]
|