@plylang/plylang 1.0.14 → 1.0.16

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 +5 -3
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -299,13 +299,15 @@ A module names what it publishes with one `@` list. The list may stand anywhere
299
299
  @ Maybe, Nothing, Just, fromMaybe
300
300
  ```
301
301
 
302
- Imports stay together and come before the first `:`, `;`, `-`, `&`, or `#`. A path inside this package is written from the source directory. A path into another package is a package specifier. The names after the path are what this file uses. `: Alias` brings every published name as `Alias:name`, and a call is `Alias:send`. `send : busSend` brings `send` as `busSend`. A bare path brings instances and no names. Writing the local name again in the `@` list publishes it. A colon in column 0 still starts a word.
302
+ Imports stay together and come before the first `:`, `;`, `-`, `&`, `#`, or `=`. A path inside this package is written from the source directory. A path into another package is a package specifier. The names after the path are what this file uses. `: Alias` brings every published name as `Alias:name`, and a call is `Alias:send`. `send : busSend` brings `send` as `busSend`. A bare path brings instances and no names. Writing the local name again in the `@` list publishes it. A colon in column 0 still starts a word.
303
303
 
304
304
  A test entry, a word `( -- Verdict )` or `suite`, is not a module and has no list. A utility under `test/` is a module and has one. A word `main` with scheme `( -- Unit )` may stay off the list. Node still runs it when it starts that file.
305
305
 
306
- A comment runs from `.` to the end of the line, when the dot is not inside `()`. `..` in column 0, directly above `:`, `;`, `-`, or `&`, is the text of that declaration. One space after `..` is not part of the text. A type has one text for all of its constructors. A class has one text for its name and for all of its methods. A `..` line above `#` does not attach to the declaration.
306
+ A comment runs from `.` to the end of the line, when the dot is not inside `()`. `..` in column 0, directly above `:`, `;`, `-`, `&`, or `=`, is the text of that declaration. One space after `..` is not part of the text. A type has one text for all of its constructors. A class has one text for its name and for all of its methods. A `..` line above `#` does not attach to the declaration.
307
307
 
308
- A declaration stands in column 0 and starts with `@`, `:`, `;`, `-`, `&`, `#`, or `~`.
308
+ A declaration stands in column 0 and starts with `@`, `:`, `;`, `-`, `&`, `#`, `~`, or `=`.
309
+
310
+ A place is one value the module keeps off the stack. `= base Num` declares it. The program under that line has scheme `( -- Num )` and runs once, when the module loads. After that, `base` reads the current frame `( -- Num )`. `=base` writes the top value `( Num -- )`. `=>base` runs the quotation under a new frame and restores the previous frame afterwards, including when the quotation throws: `( ..s Num ( ..s -- ..t ) -- ..t )`. The stored type is monomorphic. Importing `base` also opens `=base` and `=>base`. The program that fills the place does not read or write it.
309
311
 
310
312
  A package is described by `package.json`.
311
313
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plylang/plylang",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
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.14",
37
- "@plylang/plylang-darwin-x64": "1.0.14",
38
- "@plylang/plylang-linux-arm64": "1.0.14",
39
- "@plylang/plylang-linux-x64": "1.0.14",
40
- "@plylang/plylang-win32-arm64": "1.0.14",
41
- "@plylang/plylang-win32-x64": "1.0.14"
36
+ "@plylang/plylang-darwin-arm64": "1.0.16",
37
+ "@plylang/plylang-darwin-x64": "1.0.16",
38
+ "@plylang/plylang-linux-arm64": "1.0.16",
39
+ "@plylang/plylang-linux-x64": "1.0.16",
40
+ "@plylang/plylang-win32-arm64": "1.0.16",
41
+ "@plylang/plylang-win32-x64": "1.0.16"
42
42
  },
43
43
  "scripts": {
44
44
  "build": "cargo build --release",