pyret-npm 0.1.23 → 0.1.24
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 +0 -20
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
NPM package for a command line interface of the Pyret programming language.
|
|
2
2
|
|
|
3
|
-
The package ships a prebuilt compiler. `build.sh` builds `lang/` from this
|
|
4
|
-
repository and stages `build/phaseA` into `pyret-lang/`, which is where
|
|
5
|
-
`pyret.js` loads it from.
|
|
6
|
-
|
|
7
3
|
After installing the package, you can run
|
|
8
4
|
|
|
9
5
|
```
|
|
@@ -12,19 +8,3 @@ $ pyret --help
|
|
|
12
8
|
|
|
13
9
|
to get started.
|
|
14
10
|
|
|
15
|
-
## Compiler backends
|
|
16
|
-
|
|
17
|
-
The CLI can run on either the stock Pyret-hosted compiler (the default) or
|
|
18
|
-
the TypeScript port of the compiler (`pyret-lang/src/ts-compiler`) — the CLI
|
|
19
|
-
analogue of code.pyret.org's `?compiler=ts` flag:
|
|
20
|
-
|
|
21
|
-
```
|
|
22
|
-
$ pyret --backend ts my-program.arr # or: PYRET_COMPILER=ts pyret my-program.arr
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
Each backend keeps its own Parley compile server (separate sockets), so both
|
|
26
|
-
can be used side by side. An explicit `--compiler <path>` overrides
|
|
27
|
-
`--backend`. The ts backend is available when the package was built with
|
|
28
|
-
`PYRET_NPM_TS=1 npm run build` (which additionally runs `make ts-compiler`
|
|
29
|
-
in `../lang` and packages its build output); the default build ships only
|
|
30
|
-
the stock compiler, and default behavior is unchanged.
|