fez-lisp 1.6.48 → 1.6.50
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-T.js +1 -1
- package/lib/baked/std.js +1 -1
- package/package.json +2 -2
- package/src/check.js +2 -2
- package/src/enhance.js +1 -1
- package/src/types.js +2 -2
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.6.
|
5
|
+
"version": "1.6.50",
|
6
6
|
"type": "module",
|
7
7
|
"main": "index.js",
|
8
8
|
"keywords": [
|
@@ -25,7 +25,7 @@
|
|
25
25
|
"build": "node ./lib/builder.js",
|
26
26
|
"fez": "node main.js",
|
27
27
|
"test": "mocha",
|
28
|
-
"examples": "node ./examples/leetcode/test.spec.js && node ./examples/2015/test.spec.js && node ./examples/2019/test.spec.js && node ./examples/2020/test.spec.js && node ./examples/2021/test.spec.js && node ./examples/2023/test.spec.js && node ./examples/2024/test.spec.js"
|
28
|
+
"examples": "node ./examples/leetcode/test.spec.js && node ./examples/2015/test.spec.js && node ./examples/2018/test.spec.js && node ./examples/2019/test.spec.js && node ./examples/2020/test.spec.js && node ./examples/2021/test.spec.js && node ./examples/2023/test.spec.js && node ./examples/2024/test.spec.js"
|
29
29
|
},
|
30
30
|
"license": "MIT",
|
31
31
|
"devDependencies": {
|
package/src/check.js
CHANGED
@@ -1220,7 +1220,7 @@ export const typeCheck = (
|
|
1220
1220
|
// Types.set(withScope(name, env), () => formatType(name, env))
|
1221
1221
|
// If current scope is root then these are user defined types
|
1222
1222
|
if (isLambda && !isUnknownReturn(env[name][STATS])) {
|
1223
|
-
const lambdaName = `${PLACEHOLDER}${name}
|
1223
|
+
const lambdaName = `${PLACEHOLDER}${name}`
|
1224
1224
|
check(
|
1225
1225
|
[
|
1226
1226
|
[APPLY, KEYWORDS.DEFINE_VARIABLE],
|
@@ -1274,7 +1274,7 @@ export const typeCheck = (
|
|
1274
1274
|
}
|
1275
1275
|
checkReturns()
|
1276
1276
|
checkArgs()
|
1277
|
-
Types.delete(`; ${rootScopeIndex} ${lambdaName}`)
|
1277
|
+
// Types.delete(`; ${rootScopeIndex} ${lambdaName}`)
|
1278
1278
|
}
|
1279
1279
|
typeSet(Types, name, env, exp)
|
1280
1280
|
if (env[SCOPE_NAME] === rootScopeIndex) break
|
package/src/enhance.js
CHANGED
package/src/types.js
CHANGED
@@ -30,8 +30,8 @@ export const NUMBER = 6
|
|
30
30
|
export const ANY = 4
|
31
31
|
export const GENERIC = 7
|
32
32
|
export const ANONYMOUS_FUNCTION_TYPE_PREFIX = 'lambda::annonymous::'
|
33
|
-
export const MAX_ARGUMENT_RETRY =
|
34
|
-
export const MAX_RETRY_DEFINITION =
|
33
|
+
export const MAX_ARGUMENT_RETRY = 1
|
34
|
+
export const MAX_RETRY_DEFINITION = 30
|
35
35
|
export const IS_ARGUMENT = 'is_arg'
|
36
36
|
export const NIL = 'nil'
|
37
37
|
export const TRUE_WORD = 'true'
|