@cella-lang/python 0.1.202611022331 → 0.1.202611030114
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/CHANGES.md +1 -0
- package/README.md +1 -1
- package/index.json +10 -10
- package/package.json +4 -4
- package/python.lowering.cell +0 -0
package/CHANGES.md
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
`termination`(未接住的例外)、`incomplete`(程式有洞)、`invalid`(程式的 JSON 不合法)。
|
|
7
7
|
### ⚠️ 不相容
|
|
8
8
|
|
|
9
|
+
- 判決每個問題的 `class` 改名為 `category`(值與意思不變,和 C 家族相同)。0.1.202611021902 起帶 `class` 的宿主要改讀 `category`。
|
|
9
10
|
- 判決的 `assumes` 每一項改成物件 `{"implementation": "CPython", "choice": "object.address"}`,和 C 家族同一個形狀(之前是字串 `"object.address"`)。
|
|
10
11
|
|
|
11
12
|
- `input(prompt)` 先把提示寫到輸出、再讀一行,兩個分開的步驟(CPython 的順序):除錯的工作階段停在等輸入時,提示已經在輸出裡;之前停下時輸出是空的。
|
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ Depends on `@cella-lang/machine`.
|
|
|
13
13
|
`{verdict, basis, exit, out, problems, assumes}` (the same shape as the C family's verdicts). An uncaught exception
|
|
14
14
|
is defined behavior (`accept`, exit 1, the exception as a problem). Running out of steps, a construct the model does
|
|
15
15
|
not take (`unsupported`, naming it) and an empty slot of the editor (`hole`, at its label) are `unknown`, never a
|
|
16
|
-
guess. Each problem has a `
|
|
16
|
+
guess. Each problem has a `category` as the C family's do (`termination` for an uncaught exception, `unsupported`,
|
|
17
17
|
`incomplete` for an empty slot, `indeterminate` for the step limit or waiting for input, `invalid` for JSON that is
|
|
18
18
|
not a program). `assumes` (always there) lists the implementation's choices the run relied on, each
|
|
19
19
|
`{"implementation": "CPython", "choice": …}`: `random.seed` (an unseeded `random` starts as
|
package/index.json
CHANGED
|
@@ -2995,7 +2995,7 @@
|
|
|
2995
2995
|
"own": "518da0b8b1cda8371454abc65a481fe9b6d20bbaf5eb3ddea18c792abb3d2523"
|
|
2996
2996
|
},
|
|
2997
2997
|
"python.Lowering.outcome": {
|
|
2998
|
-
"merkle": "
|
|
2998
|
+
"merkle": "d24a4a64af3cf0c2dd637f4688e115d128dc8b346ce376d86a495d52c36ff9f7",
|
|
2999
2999
|
"own": "30dacf9129248b947049114ed7f07fbf0842b54df94daa4f4c7b9ef2ebc4596c"
|
|
3000
3000
|
},
|
|
3001
3001
|
"python.Lowering.ownName": {
|
|
@@ -3027,8 +3027,8 @@
|
|
|
3027
3027
|
"own": "42d575475e07b0354988ab352e960d650e7ab4aa084d98211fdea600554cf335"
|
|
3028
3028
|
},
|
|
3029
3029
|
"python.Lowering.problem": {
|
|
3030
|
-
"merkle": "
|
|
3031
|
-
"own": "
|
|
3030
|
+
"merkle": "fdd8254cc4299af4547910f6dee6aefb145de6d09a738682d81dedc71090bc45",
|
|
3031
|
+
"own": "25b6f937b468f7b33a24fca106ffab03f1bb3ec2f5df0bbd2128c2bb94ac9373"
|
|
3032
3032
|
},
|
|
3033
3033
|
"python.Lowering.program": {
|
|
3034
3034
|
"merkle": "2f95ae3f625f7c1d1259f01fba3a5a5f58357d4adb929e38ff271d2f46815364",
|
|
@@ -3179,7 +3179,7 @@
|
|
|
3179
3179
|
"own": "3e43872d9ebabdebd7243bd5e0907674ae301f64c7ede549622888a760d44d7a"
|
|
3180
3180
|
},
|
|
3181
3181
|
"python.Lowering.thrown": {
|
|
3182
|
-
"merkle": "
|
|
3182
|
+
"merkle": "cb0742d02e430b479e6804141ea771fdffac1f36ab70ebc14c11004e1bf42f50",
|
|
3183
3183
|
"own": "68d3ee3f576d8c5242ca4940816e43ed5708caf9fe6ab6604857073b9e0ed626"
|
|
3184
3184
|
},
|
|
3185
3185
|
"python.Lowering.tracebackReaders": {
|
|
@@ -3215,15 +3215,15 @@
|
|
|
3215
3215
|
"own": "e628324d9edded78d429fa88666bad843a0ef3b4e9660a9a80ec492869195f98"
|
|
3216
3216
|
},
|
|
3217
3217
|
"python.Lowering.untaken": {
|
|
3218
|
-
"merkle": "
|
|
3219
|
-
"own": "
|
|
3218
|
+
"merkle": "bb8e4ec87172c9eb59d2d0c85091f73536ffc0e154ea8d3d3368e73f4b4be86f",
|
|
3219
|
+
"own": "cc5a548dd2fc10ae3a9c2778e5090bf54763590ba67cb11cba2b2f001da25e94"
|
|
3220
3220
|
},
|
|
3221
3221
|
"python.Lowering.updated": {
|
|
3222
3222
|
"merkle": "496a180765d23987a07ada2c13824d478c347d0bf7db25657ad9d2b39377f856",
|
|
3223
3223
|
"own": "b43bc458cbbbe58a0d1e6be12e447fbf50bfbefdfb1c3048f5d51d30815b3a74"
|
|
3224
3224
|
},
|
|
3225
3225
|
"python.Lowering.verdict": {
|
|
3226
|
-
"merkle": "
|
|
3226
|
+
"merkle": "fa04564d2ba880904458665a0f18f209622341428859e63441faa890c45adaa6",
|
|
3227
3227
|
"own": "f1efa8c88de49af61504571f925b4154d2483cf540a41ae0d62479d52640b2ba"
|
|
3228
3228
|
},
|
|
3229
3229
|
"python.Lowering.whileStatement": {
|
|
@@ -7543,12 +7543,12 @@
|
|
|
7543
7543
|
"own": "1abeee3bceaeffc4b83c8e0178368e0d4dd4dd1199129212d28931bac01e7b83"
|
|
7544
7544
|
},
|
|
7545
7545
|
"python.verdict": {
|
|
7546
|
-
"merkle": "
|
|
7546
|
+
"merkle": "a3dd44f6b1938690076c58cf57a40b7b3bfd05b6b656dbcb37c1d123c3ce23a6",
|
|
7547
7547
|
"own": "babf4ff64e288aec2c7e1c825da9248327b934ae160ca8a8deb061c86c02edff"
|
|
7548
7548
|
}
|
|
7549
7549
|
},
|
|
7550
7550
|
"format": 1,
|
|
7551
|
-
"inputs": "
|
|
7551
|
+
"inputs": "b122cf9485c153533d113aa3eb75947519cfbe6ce1074cb2b9f4a618c46dd6fc",
|
|
7552
7552
|
"modules": {
|
|
7553
7553
|
"python": {
|
|
7554
7554
|
"bytes": 366492,
|
|
@@ -7789,7 +7789,7 @@
|
|
|
7789
7789
|
]
|
|
7790
7790
|
},
|
|
7791
7791
|
"python.lowering": {
|
|
7792
|
-
"bytes":
|
|
7792
|
+
"bytes": 482374,
|
|
7793
7793
|
"deps": [
|
|
7794
7794
|
"python.syntax",
|
|
7795
7795
|
"python.values",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cella-lang/python",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.202611030114",
|
|
4
4
|
"description": "A Python model for Cella Lang: dynamically typed values (arbitrary-precision int, IEEE 754 float, str, tuple, list, dict, set on a heap), operations and printing that match CPython exactly, exceptions, and statements on @cella-lang/machine's small-step machine and debugger — compiled module pack.",
|
|
5
5
|
"files": [
|
|
6
6
|
"python.builtins.cell",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"author": "SungYu Chang",
|
|
50
50
|
"homepage": "https://cella-lang.org/",
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"cella-lang": "0.1.
|
|
53
|
-
"@cella-lang/machine": "0.1.
|
|
52
|
+
"cella-lang": "0.1.202611030113",
|
|
53
|
+
"@cella-lang/machine": "0.1.202611030113"
|
|
54
54
|
},
|
|
55
55
|
"cella": {
|
|
56
56
|
"checkerHash": "eac27d7a51e5e48b",
|
|
@@ -58,6 +58,6 @@
|
|
|
58
58
|
"modules": [
|
|
59
59
|
"python"
|
|
60
60
|
],
|
|
61
|
-
"packHash": "
|
|
61
|
+
"packHash": "590f9b2d912a83fe"
|
|
62
62
|
}
|
|
63
63
|
}
|
package/python.lowering.cell
CHANGED
|
Binary file
|