@plylang/plylang 1.0.24 → 1.0.25

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.
Files changed (2) hide show
  1. package/README.md +3 -1
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -185,7 +185,9 @@ In JavaScript a constructor with no fields is `{ tag: "Nothing" }`. One field is
185
185
 
186
186
  ## Array
187
187
 
188
- `< 1 2 3 >` is an array of three numbers, of type `(Array Num)`. Index 0 is the left element. The empty array is `<>`. A word is not written inside the angle brackets: an element is a literal, a quotation, or a nested array.
188
+ `< 1 2 3 >` is an array of three numbers, of type `(Array Num)`. Index 0 is the left element. The empty array is `<>`.
189
+
190
+ The text between the angles is a program. It starts from an empty stack and does not see the stack outside. The values it leaves are the elements, and they must be one type. `< 1 dup >` is two numbers. `< 1 2 add >` is one number, once `add` is in scope. A quotation is a value, so `< [ 1 add ] [ 2 add ] >` is an array of quotations. `[ call ] map` runs those. A pattern does not run this program. `<>` matches only the empty array.
189
191
 
190
192
  A word that walks an array is imported. In the example the quotation sits on top. The name comes from one module, and the instance for the array comes from another.
191
193
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plylang/plylang",
3
- "version": "1.0.24",
3
+ "version": "1.0.25",
4
4
  "description": "Ply compiler and language server",
5
5
  "license": "MIT",
6
6
  "author": "Algosail",
@@ -33,12 +33,12 @@
33
33
  "bin/native.js"
34
34
  ],
35
35
  "optionalDependencies": {
36
- "@plylang/plylang-darwin-arm64": "1.0.24",
37
- "@plylang/plylang-darwin-x64": "1.0.24",
38
- "@plylang/plylang-linux-arm64": "1.0.24",
39
- "@plylang/plylang-linux-x64": "1.0.24",
40
- "@plylang/plylang-win32-arm64": "1.0.24",
41
- "@plylang/plylang-win32-x64": "1.0.24"
36
+ "@plylang/plylang-darwin-arm64": "1.0.25",
37
+ "@plylang/plylang-darwin-x64": "1.0.25",
38
+ "@plylang/plylang-linux-arm64": "1.0.25",
39
+ "@plylang/plylang-linux-x64": "1.0.25",
40
+ "@plylang/plylang-win32-arm64": "1.0.25",
41
+ "@plylang/plylang-win32-x64": "1.0.25"
42
42
  },
43
43
  "scripts": {
44
44
  "build": "cargo build --release",