tla-ts 0.0.3-dev.fe239f8 → 0.0.4-dev.2be6058
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 +12 -12
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/run-cli.cjs +32 -1337
- package/dist/run-cli.js +30 -1335
- package/dist/transfer.cjs +1335 -30
- package/dist/transfer.js +1335 -30
- package/package.json +1 -1
- package/src/ast.ts +4 -2
- package/src/config.ts +2 -2
- package/src/environment.ts +22 -3
- package/src/evaluate.ts +25 -24
- package/src/lexer.ts +90 -25
- package/src/live-check.ts +43 -4
- package/src/parser.ts +48 -65
- package/src/resolve.ts +131 -40
- package/src/run-cli.ts +25 -13
- package/src/sany-generator.ts +36 -20
- package/src/sany-report.ts +2 -0
- package/src/tlc-modules.ts +4 -0
- package/src/tlc-order.ts +5 -1
- package/src/values.ts +17 -1
package/README.md
CHANGED
|
@@ -108,18 +108,18 @@ const result = await check({
|
|
|
108
108
|
});
|
|
109
109
|
```
|
|
110
110
|
|
|
111
|
-
| Option | Description
|
|
112
|
-
| ----------------------- |
|
|
113
|
-
| `source` | The TLA+ module to check
|
|
114
|
-
| `config` | A TLC configuration, as text or as the result of `parseConfig`
|
|
115
|
-
| `loadModule` | Returns the source of a module that isn't a standard module
|
|
116
|
-
| `loadClass` | Returns a compiled Java class that overrides a module's operators with constants
|
|
117
|
-
| `onPrint` | Receives the output of `Print` and `PrintT`. Defaults to `console.log`
|
|
118
|
-
| `onPause` | Runs when `TLCSet("pause", TRUE)` pauses checking, which resumes when it returns
|
|
119
|
-
| `readFile`, `writeFile` | Read and write files for the Json module and `dump`
|
|
120
|
-
| `seed` | A `bigint` seed. Defaults to `0n`, and matches TLC run with the same `-seed` and `-fp 0`
|
|
121
|
-
| `workers` | The number of worker threads. Defaults to 1
|
|
122
|
-
| `dump` | Writes the reachable states or the state graph, as TLC's `-dump` does
|
|
111
|
+
| Option | Description |
|
|
112
|
+
| ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
|
|
113
|
+
| `source` | The TLA+ module to check |
|
|
114
|
+
| `config` | A TLC configuration, as text or as the result of `parseConfig` |
|
|
115
|
+
| `loadModule` | Returns the source of a module that isn't a standard module, or of Bags, Json, Randomization, or TLCExt to read in place of tla-ts's own |
|
|
116
|
+
| `loadClass` | Returns a compiled Java class that overrides a module's operators with constants |
|
|
117
|
+
| `onPrint` | Receives the output of `Print` and `PrintT`. Defaults to `console.log` |
|
|
118
|
+
| `onPause` | Runs when `TLCSet("pause", TRUE)` pauses checking, which resumes when it returns |
|
|
119
|
+
| `readFile`, `writeFile` | Read and write files for the Json module and `dump` |
|
|
120
|
+
| `seed` | A `bigint` seed. Defaults to `0n`, and matches TLC run with the same `-seed` and `-fp 0` |
|
|
121
|
+
| `workers` | The number of worker threads. Defaults to 1 |
|
|
122
|
+
| `dump` | Writes the reachable states or the state graph, as TLC's `-dump` does |
|
|
123
123
|
|
|
124
124
|
`dump` takes the `path` that `check` passes to `writeFile` before it returns. Set `dot` to write the state graph in the DOT language of Graphviz, and `colorize`, `actionLabels`, or `snapshot` for TLC's formats of the same names. A dump checks the spec on the calling thread, as one TLC worker does.
|
|
125
125
|
|
package/dist/index.cjs
CHANGED
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./transfer.cjs"),t=require("./parallel.cjs");exports.TlaConfigError=e.at,exports.TlaError=e.ot,exports.TlaEvaluationError=e.st,exports.TlaSyntaxError=e.ft,exports.TlaUnsupportedError=e.pt,exports.check=t.t,exports.formatValue=e.q,exports.parseConfig=e.Z,exports.parseModule=e.
|
|
9
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./transfer.cjs"),t=require("./parallel.cjs");exports.TlaConfigError=e.at,exports.TlaError=e.ot,exports.TlaEvaluationError=e.st,exports.TlaSyntaxError=e.ft,exports.TlaUnsupportedError=e.pt,exports.check=t.t,exports.formatValue=e.q,exports.parseConfig=e.Z,exports.parseModule=e.D;
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
import{
|
|
9
|
+
import{D as e,Z as t,at as n,ft as r,ot as i,pt as a,q as o,st as s}from"./transfer.js";import{t as c}from"./parallel.js";export{n as TlaConfigError,i as TlaError,s as TlaEvaluationError,r as TlaSyntaxError,a as TlaUnsupportedError,c as check,o as formatValue,t as parseConfig,e as parseModule};
|