@dallaylaen/ski-interpreter 2.6.0 → 2.6.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/CHANGELOG.md +20 -0
- package/README.md +6 -6
- package/lib/ski-interpreter.cjs.js.map +2 -2
- package/lib/ski-interpreter.min.js.map +2 -2
- package/lib/{ski-interpreter.esm.js → ski-interpreter.mjs} +1 -1
- package/lib/{ski-interpreter.esm.js.map → ski-interpreter.mjs.map} +2 -2
- package/lib/ski-quest.min.js.map +2 -2
- package/lib/types/expr.d.ts +1 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,26 @@ 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.6.2] - 2026-03-29
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- (Re-)added { arity: number } to Alias constructor
|
|
13
|
+
(worked anyway but now it's official).
|
|
14
|
+
- More Alias tests.
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- Typos.
|
|
19
|
+
|
|
20
|
+
## [2.6.1] - 2026-03-29
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
|
|
24
|
+
- renames `ski-interpreter.esm.js` -> `ski-interpreter.mjs`
|
|
25
|
+
and fixed types location in package.json
|
|
26
|
+
because ESM was not recognizing the package correctly.
|
|
27
|
+
|
|
8
28
|
## [2.6.0] - 2026-03-28
|
|
9
29
|
|
|
10
30
|
### BREAKING CHANGES
|
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ and can be used in Node.js or in the browser.
|
|
|
12
12
|
|
|
13
13
|
A [playground](https://dallaylaen.github.io/ski-interpreter/)
|
|
14
14
|
and a [quest page](https://dallaylaen.github.io/ski-interpreter/quest.html)
|
|
15
|
-
containing interactive combinatory logic exercises of increasing difficulty are
|
|
15
|
+
containing interactive combinatory logic exercises of increasing difficulty are included.
|
|
16
16
|
|
|
17
17
|
# Features:
|
|
18
18
|
|
|
@@ -74,7 +74,7 @@ This is consistent with combinator behavior under LO order.
|
|
|
74
74
|
|
|
75
75
|
* [Quests](https://dallaylaen.github.io/ski-interpreter/quest.html)
|
|
76
76
|
|
|
77
|
-
This page contains small combinatory logic exercises of increasing (hopefully)
|
|
77
|
+
This page contains small combinatory logic exercises of increasing (hopefully) difficulty.
|
|
78
78
|
Each task requires the user to build a combinator with specific properties.
|
|
79
79
|
New combinators are unlocked as the user progresses.
|
|
80
80
|
|
|
@@ -158,7 +158,7 @@ const iterator = expr.walk();
|
|
|
158
158
|
|
|
159
159
|
// applying expressions
|
|
160
160
|
const result = expr.run({max: 1000}, arg1, arg2, ...);
|
|
161
|
-
// same
|
|
161
|
+
// same as
|
|
162
162
|
expr.apply(arg1).apply(arg2).run();
|
|
163
163
|
// or simply
|
|
164
164
|
expr.apply(arg1, arg2).run();
|
|
@@ -281,7 +281,7 @@ const q = new Quest({
|
|
|
281
281
|
q.check('CI'); // pass
|
|
282
282
|
q.check('a->b->b a'); // ditto
|
|
283
283
|
q.check('K'); // fail
|
|
284
|
-
q.check('K(K(y x))') // nope!
|
|
284
|
+
q.check('K(K(y x))') // nope! The variable scopes won't match
|
|
285
285
|
```
|
|
286
286
|
|
|
287
287
|
See also [the quest guide](quest-intro.md) for more details on building your own quests or even interactive quest pages.
|
|
@@ -306,10 +306,10 @@ for building interactive quest pages from JSON-encoded quest data;
|
|
|
306
306
|
|
|
307
307
|
# Prior art and inspiration
|
|
308
308
|
|
|
309
|
-
* "To Mock The Mockingbird" by Raymond
|
|
309
|
+
* "To Mock The Mockingbird" by Raymond Smullyan.
|
|
310
310
|
* [combinator birds](https://www.angelfire.com/tx4/cus/combinator/birds.html) by [Chris Rathman](https://www.angelfire.com/tx4/cus/index.html)
|
|
311
311
|
* [Fun with combinators](https://doisinkidney.com/posts/2020-10-17-ski.html) by [@oisdk](https://github.com/oisdk)
|
|
312
|
-
* [
|
|
312
|
+
* [Combinatris](https://dirk.rave.org/combinatris/) by Dirk van Deun
|
|
313
313
|
|
|
314
314
|
# License and copyright
|
|
315
315
|
|