@dallaylaen/ski-interpreter 2.9.0 → 2.9.1
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/CHANGELOG.md +6 -0
- package/lib/ski-interpreter.cjs.js +3 -3
- package/lib/ski-interpreter.cjs.js.map +2 -2
- package/lib/ski-interpreter.min.js +5 -5
- package/lib/ski-interpreter.min.js.map +3 -3
- package/lib/ski-interpreter.mjs +3 -3
- package/lib/ski-interpreter.mjs.map +2 -2
- package/lib/ski-quest.min.js +5 -5
- package/lib/ski-quest.min.js.map +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [2.9.1] - 2026-06-28
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
* Empty terms allowed in expressions and lambdas, leading to '' passing the I quest (#30).
|
|
13
|
+
|
|
8
14
|
## [2.9.0] - 2026-06-27
|
|
9
15
|
|
|
10
16
|
### BREAKING CHANGES
|
|
@@ -1308,7 +1308,7 @@ var PartialLambda = class _PartialLambda extends Empty {
|
|
|
1308
1308
|
return this;
|
|
1309
1309
|
}
|
|
1310
1310
|
postParse() {
|
|
1311
|
-
let expr = this.impl;
|
|
1311
|
+
let expr = postParse(this.impl);
|
|
1312
1312
|
for (let i = this.terms.length; i-- > 0; )
|
|
1313
1313
|
expr = new Lambda(this.terms[i], expr);
|
|
1314
1314
|
return expr;
|
|
@@ -1319,7 +1319,7 @@ var PartialLambda = class _PartialLambda extends Empty {
|
|
|
1319
1319
|
} */
|
|
1320
1320
|
};
|
|
1321
1321
|
function postParse(expr) {
|
|
1322
|
-
return expr
|
|
1322
|
+
return expr instanceof Empty ? expr.postParse() : expr;
|
|
1323
1323
|
}
|
|
1324
1324
|
var combChars = new Tokenizer(
|
|
1325
1325
|
"[()]",
|
|
@@ -1591,7 +1591,7 @@ var Parser = class {
|
|
|
1591
1591
|
parser: this
|
|
1592
1592
|
};
|
|
1593
1593
|
}
|
|
1594
|
-
return expr;
|
|
1594
|
+
return postParse(expr);
|
|
1595
1595
|
}
|
|
1596
1596
|
/**
|
|
1597
1597
|
* Parse a single line of source code, without splitting it into declarations.
|