@plylang/plylang 1.1.0 → 1.1.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/README.md +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -372,7 +372,7 @@ The name is a string literal. The picture is the stack from the bottom upward. T
|
|
|
372
372
|
|
|
373
373
|
A word named `main` whose scheme is `( -- Unit )` is the program of that module. It may stay off the `@` list. `build` calls it at the bottom of that module's `.js`, and only when Node started that file. `node dist/App.js` runs the program. An import of the module does not. A `package.json` script can name that file. Several modules may each have a `main`. A module without one is a library. Any other scheme on the name `main` is an error. `plylang compile` also writes those modules, then the page script. `--out` names that file. Otherwise it is `script.js` beside the modules. `--entry` names the module for this run, instead of `ply.entry`. The root is `main` when that module defines `main` of scheme `( -- Unit )`, and the script calls `main()`. A module with no `main` and at least one place roots the script at those places, and the script does not call `main`. A module with neither is an error. A binding is inlined when the root can call it. The modules themselves still carry the Node guard. `compile` does not rewrite `exports`. `--foreign` names the foreign directory for this run. A relative `--out` or `--foreign` stays inside the package.
|
|
374
374
|
|
|
375
|
-
`plylang docs` writes `DOCS.md` at the package root. `--out` names another file. A module heading is the string used to import it: the package name and the path, or only the path when there is no name. The prose comes from `..`. Inside a module the sections are `Types`, `Classes`, `Instances`, and `Words`. An empty section is left out. The name of a type, a class, or a word is a heading under its section. A method is a heading after its class. The class heading carries the class text. The method heading carries that method's text. `Instances`
|
|
375
|
+
`plylang docs` writes `DOCS.md` at the package root. `--out` names another file. A module heading is the string used to import it: the package name and the path, or only the path when there is no name. The prose comes from `..`. Inside a module the sections are `Types`, `Classes`, `Instances`, and `Words`. An empty section is left out. The name of a type, a class, or a word is a heading under its section. A method is a heading after its class. The class heading carries the class text. The method heading carries that method's text. `Instances` lists each class written in that file, one class on a line. A line has the class and the type, with no comment and no method bindings.
|
|
376
376
|
|
|
377
377
|
`plylang check --parse` prints how one file was parsed, and it does not check types. `plylang check --js` prints the JavaScript that `build` would write for that file. Outside a package that is the JavaScript of the one file, and imports are not resolved.
|
|
378
378
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plylang/plylang",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Ply compiler",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Algosail",
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"bin/native.js"
|
|
31
31
|
],
|
|
32
32
|
"optionalDependencies": {
|
|
33
|
-
"@plylang/plylang-darwin-arm64": "1.1.
|
|
34
|
-
"@plylang/plylang-darwin-x64": "1.1.
|
|
35
|
-
"@plylang/plylang-linux-arm64": "1.1.
|
|
36
|
-
"@plylang/plylang-linux-x64": "1.1.
|
|
37
|
-
"@plylang/plylang-win32-arm64": "1.1.
|
|
38
|
-
"@plylang/plylang-win32-x64": "1.1.
|
|
33
|
+
"@plylang/plylang-darwin-arm64": "1.1.2",
|
|
34
|
+
"@plylang/plylang-darwin-x64": "1.1.2",
|
|
35
|
+
"@plylang/plylang-linux-arm64": "1.1.2",
|
|
36
|
+
"@plylang/plylang-linux-x64": "1.1.2",
|
|
37
|
+
"@plylang/plylang-win32-arm64": "1.1.2",
|
|
38
|
+
"@plylang/plylang-win32-x64": "1.1.2"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "cargo build --release",
|