seam-lang 2.0.1 → 2.0.3
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 +7 -5
- package/docs/guide.md +1 -1
- package/package.json +2 -2
- package/src/cli.js +1 -1
package/README.md
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
# Seam
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/seam)
|
|
3
|
+
[](https://www.npmjs.com/package/seam-lang)
|
|
4
4
|
[](https://doi.org/10.5281/zenodo.20761726)
|
|
5
5
|
|
|
6
|
-
Seam is a small
|
|
7
|
-
|
|
8
|
-
It
|
|
6
|
+
Seam is a small reasoning language for facts, rules, goals, answers, and proofs.
|
|
7
|
+
|
|
8
|
+
It uses Prolog-like syntax with ISO Prolog-style variables such as X, plus practical features for tabled predicates, mode declarations, witness terms, and portable not/1 usage.
|
|
9
|
+
|
|
10
|
+
Seam grew out of experiments in the EYE tradition, but is packaged as its own project.
|
|
9
11
|
|
|
10
12
|
## Install and run
|
|
11
13
|
|
|
@@ -14,7 +16,7 @@ Seam has no runtime npm dependencies and no build step. From a source checkout,
|
|
|
14
16
|
```bash
|
|
15
17
|
node bin/seam.js examples/ancestor.pl
|
|
16
18
|
node bin/seam.js --proof examples/socrates.pl
|
|
17
|
-
node bin/seam.js --warnings
|
|
19
|
+
node bin/seam.js --warnings test/conformance/warnings/negation/unstratified_mutual.pl
|
|
18
20
|
printf 'works(stdin, true) :- eq(ok, ok).\n' | node bin/seam.js -
|
|
19
21
|
```
|
|
20
22
|
|
package/docs/guide.md
CHANGED
|
@@ -246,7 +246,7 @@ seam -s examples/observability-log-correlation.pl
|
|
|
246
246
|
Add `-w` or `--warnings` when you want non-fatal portability diagnostics, such as unstratified `not/1` dependencies, printed to stderr while normal answer output still goes to stdout:
|
|
247
247
|
|
|
248
248
|
```sh
|
|
249
|
-
seam --warnings
|
|
249
|
+
seam --warnings test/conformance/warnings/negation/unstratified_mutual.pl
|
|
250
250
|
```
|
|
251
251
|
|
|
252
252
|
The playground has matching `--stats` and `--proof` checkboxes, so browser runs can show the same counters or explanations like the CLI.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "seam-lang",
|
|
3
|
-
"version": "2.0.
|
|
4
|
-
"description": "A small
|
|
3
|
+
"version": "2.0.3",
|
|
4
|
+
"description": "A small reasoning language with ISO Prolog-compatible surface syntax.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
7
7
|
"types": "./index.d.ts",
|
package/src/cli.js
CHANGED
|
@@ -139,7 +139,7 @@ Usage:
|
|
|
139
139
|
seam [options] [file-or-url.pl|- ...]
|
|
140
140
|
|
|
141
141
|
Input:
|
|
142
|
-
file-or-url.pl
|
|
142
|
+
file-or-url.pl Read a Seam program from a local file or http(s) URL.
|
|
143
143
|
- Read a Seam program from standard input.
|
|
144
144
|
|
|
145
145
|
Options:
|