@cella-lang/python 0.1.202611260345 → 0.1.202611260446

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 CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  ## 未發佈
4
4
 
5
+ - **`verdict-kinds.json` 的每個種類多 `meaning` 與 `category`**(只增加):`meaning` 是這個種類的意思,給使用者看的一句英文(宿主沒有自己的說明時可以直接顯示);`category` 是判決裡這個種類的問題帶的分類,六種之一(`error`、`unsupported`、`indeterminate`、`termination`、`incomplete`、`invalid`)。宿主可以只讀清單就知道一個種類怎麼歸類,不必等它出現在判決裡。
6
+
5
7
  - **str 的 set 只在順序看得到時才假設 `str.hash`**(之前只要結束時堆上有一個裝著 str 的 set 就列進 `assumes`):一個名字
6
8
  若只由 `x = {…}`、`x = {… for …}`、`x = set()`、`x = set(it)` 綁定(不在 class 本體裡),其他地方只用
7
9
  `len(x)`、`sorted(x)`、`v in x`、`v not in x`、`x.add(v)`、`x.discard(v)`、`x.remove(v)`、`if x:`、`while x:`、
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cella-lang/python",
3
- "version": "0.1.202611260345",
3
+ "version": "0.1.202611260446",
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",
@@ -51,7 +51,7 @@
51
51
  "homepage": "https://cella-lang.org/",
52
52
  "peerDependencies": {
53
53
  "cella-lang": "0.1.202611260344",
54
- "@cella-lang/machine": "0.1.202611260344"
54
+ "@cella-lang/machine": "0.1.202611260445"
55
55
  },
56
56
  "cella": {
57
57
  "checkerHash": "0b3103e70af9f0fa",
@@ -59,6 +59,6 @@
59
59
  "modules": [
60
60
  "python"
61
61
  ],
62
- "packHash": "687596b611c74627"
62
+ "packHash": "2d80484242207c4a"
63
63
  }
64
64
  }
@@ -1,22 +1,34 @@
1
1
  {
2
- "description": "The kinds of the problems a verdict of this package can have: whether each is structured (its params are the details a host reads; the reason is made from them), and the params of a structured one (values are strings, integers in decimal, or booleans; an optional one may be absent).",
2
+ "description": "The kinds of the problems a verdict of this package can have: for each, its meaning (a sentence for a person), its category (one of error, unsupported, indeterminate, termination, incomplete, invalid), whether it is structured (its params are the details a host reads; the reason is made from them), and the params of a structured one (values are strings, integers in decimal, or booleans; an optional one may be absent).",
3
3
  "kinds": {
4
4
  "fuel": {
5
+ "meaning": "The run reached the checker's step limit before the program finished, so its result is not known.",
6
+ "category": "indeterminate",
5
7
  "structured": false
6
8
  },
7
9
  "hole": {
10
+ "meaning": "The program has an empty slot that still has to be filled in.",
11
+ "category": "incomplete",
8
12
  "structured": false
9
13
  },
10
14
  "json": {
15
+ "meaning": "The input is not a valid program in the JSON form the package reads.",
16
+ "category": "invalid",
11
17
  "structured": false
12
18
  },
13
19
  "stopped": {
20
+ "meaning": "The program waits for input, so how it goes on is not known.",
21
+ "category": "indeterminate",
14
22
  "structured": false
15
23
  },
16
24
  "uncaught": {
25
+ "meaning": "An exception no handler caught, so the program ended with a traceback.",
26
+ "category": "termination",
17
27
  "structured": false
18
28
  },
19
29
  "undeclared": {
30
+ "meaning": "A name used that is not defined, so the program ended with a NameError.",
31
+ "category": "termination",
20
32
  "structured": true,
21
33
  "params": {
22
34
  "name": {
@@ -31,6 +43,8 @@
31
43
  }
32
44
  },
33
45
  "unsupported": {
46
+ "meaning": "The program uses a construct the model does not have yet (the program may be valid).",
47
+ "category": "unsupported",
34
48
  "structured": false
35
49
  }
36
50
  }