parseman 0.59.1 → 0.59.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 +5 -4
- package/dist/analysis/commitment.d.ts +1 -1
- package/dist/analysis/diagnostics.js +4 -4
- package/dist/analysis/diagnostics.js.map +1 -1
- package/dist/cli/index.js +4 -4
- package/dist/cli/index.js.map +1 -1
- package/dist/combinators/completions.d.ts +3 -3
- package/dist/combinators/completions.d.ts.map +1 -1
- package/dist/combinators/gate.d.ts +1 -1
- package/dist/compiler/compile-linkable-table.d.ts +2 -3
- package/dist/compiler/compile-linkable-table.d.ts.map +1 -1
- package/dist/compiler/linker.d.ts.map +1 -1
- package/dist/cst/host-mode.d.ts +1 -1
- package/dist/cst/root-trivia-scope.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/language-service/index.d.ts +1 -1
- package/dist/language-service/index.js.map +1 -1
- package/dist/plugin/entry-supercompiler.d.ts.map +1 -1
- package/dist/plugin/index.d.ts +3 -7
- package/dist/plugin/index.d.ts.map +1 -1
- package/dist/plugin/index.js +4 -4
- package/dist/plugin/index.js.map +1 -1
- package/dist/spec/index.js.map +1 -1
- package/dist/table/assemble.d.ts +2 -3
- package/dist/table/assemble.d.ts.map +1 -1
- package/dist/table/compile-rule-map.d.ts +3 -2
- package/dist/table/compile-rule-map.d.ts.map +1 -1
- package/dist/table/compile.d.ts +2 -2
- package/dist/table/emit.d.ts +4 -5
- package/dist/table/emit.d.ts.map +1 -1
- package/dist/table/encode.d.ts +6 -7
- package/dist/table/encode.d.ts.map +1 -1
- package/dist/table/exec.d.ts.map +1 -1
- package/dist/table/index.js +4 -4
- package/dist/table/index.js.map +1 -1
- package/dist/table/ops.d.ts +20 -20
- package/dist/table/ops.d.ts.map +1 -1
- package/dist/table/program.d.ts +7 -7
- package/dist/types.d.ts +1 -1
- package/dist/version.d.ts +6 -6
- package/package.json +1 -1
- package/src/analysis/commitment.ts +1 -1
- package/src/analysis/terminal.ts +1 -1
- package/src/combinators/choice.ts +1 -1
- package/src/combinators/completions.ts +3 -3
- package/src/combinators/gate.ts +1 -1
- package/src/compiler/compile-linkable-table.ts +2 -3
- package/src/compiler/degradation.ts +2 -2
- package/src/compiler/linker.ts +5 -3
- package/src/cst/capture-buffer.ts +2 -2
- package/src/cst/host-mode.ts +1 -1
- package/src/cst/root-trivia-scope.ts +1 -1
- package/src/language-service/index.ts +1 -1
- package/src/plugin/entry-supercompiler.ts +2 -1
- package/src/plugin/index.ts +11 -16
- package/src/table/assemble.ts +9 -10
- package/src/table/compile-rule-map.ts +4 -3
- package/src/table/compile.ts +3 -3
- package/src/table/emit-assembly.ts +4 -4
- package/src/table/emit.ts +13 -14
- package/src/table/encode.ts +14 -15
- package/src/table/exec.ts +4 -5
- package/src/table/ops.ts +20 -20
- package/src/table/program.ts +7 -7
- package/src/table/stamp.ts +1 -1
- package/src/types.ts +1 -1
- package/src/version.ts +6 -6
package/README.md
CHANGED
|
@@ -200,10 +200,11 @@ pnpm docs:dev # this documentation site, locally
|
|
|
200
200
|
Benchmark and chart tasks (`pnpm bench`, `bench:svg`, `bench:parseman`, …) are described in
|
|
201
201
|
the [benchmarks guide](https://matthew-dean.github.io/parseman/guide/benchmarks#reproducing-the-numbers).
|
|
202
202
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
203
|
+
How the code fits together (the pipeline, the engines, the table format, macro builds
|
|
204
|
+
and how performance is measured) is in
|
|
205
|
+
[`docs/design/internals.md`](https://github.com/matthew-dean/parseman/blob/main/docs/design/internals.md). Start there before reading
|
|
206
|
+
`src/`. The token and lexical-body specification is
|
|
207
|
+
[`docs/design/parseman-0.48.md`](https://github.com/matthew-dean/parseman/blob/main/docs/design/parseman-0.48.md).
|
|
207
208
|
|
|
208
209
|
## License
|
|
209
210
|
|
|
@@ -99,7 +99,7 @@ export declare function hasNodeDef(p: Combinator<unknown>, seen?: Set<Combinator
|
|
|
99
99
|
*
|
|
100
100
|
* It belongs in THIS module for the reason stated at the top of it: both lowerings
|
|
101
101
|
* must reach the same answer, and a stamp they disagree about is a driver that
|
|
102
|
-
* accepts a host it should refuse. It previously lived in
|
|
102
|
+
* accepts a host it should refuse. It previously lived in the source lowering,
|
|
103
103
|
* which forced `table/compile-rule-map.ts` to import the engine the table replaced.
|
|
104
104
|
*
|
|
105
105
|
* The descent mirrors the source lowering's own `childrenOf` exactly — including a
|
|
@@ -7463,8 +7463,8 @@ var Encoder = class {
|
|
|
7463
7463
|
/**
|
|
7464
7464
|
* The class of the follow set of term `i` in a sequence — the sync sentinel a
|
|
7465
7465
|
* list nested in that term resyncs to, INFERRED from structure exactly as
|
|
7466
|
-
* `sequence()` (combinators/sequence.ts:58) and
|
|
7467
|
-
*
|
|
7466
|
+
* `sequence()` (combinators/sequence.ts:58) and the source
|
|
7467
|
+
* lowering's `emitSeqValues` infer it: the union of every LATER term's first
|
|
7468
7468
|
* set, not merely up to the first non-nullable one, so a mandatory middle term
|
|
7469
7469
|
* cannot hide a later close. −1 where there is no usable sentinel, which is the
|
|
7470
7470
|
* same set of cases `firstSetSentinel` answers `null` for.
|
|
@@ -8255,7 +8255,7 @@ var Encoder = class {
|
|
|
8255
8255
|
}
|
|
8256
8256
|
// A LABEL IS A ROW — see `OP_LABEL`. It replaces the child's expected set,
|
|
8257
8257
|
// which is the entire combinator.
|
|
8258
|
-
// A LABEL IS CREDITED ON SUCCESS, as
|
|
8258
|
+
// A LABEL IS CREDITED ON SUCCESS, as the source lowering credited it: its hook
|
|
8259
8259
|
// is emitted AFTER the child's statements, where a failed child has already
|
|
8260
8260
|
// broken out of the labelled block.
|
|
8261
8261
|
case "label":
|
|
@@ -16383,7 +16383,7 @@ function tableRules(source, metadataOrEntry = {}) {
|
|
|
16383
16383
|
}
|
|
16384
16384
|
|
|
16385
16385
|
// src/version.ts
|
|
16386
|
-
var PARSEMAN_VERSION = "0.59.
|
|
16386
|
+
var PARSEMAN_VERSION = "0.59.3";
|
|
16387
16387
|
|
|
16388
16388
|
// src/table/emit.ts
|
|
16389
16389
|
var FACTORY_ARITY_GUARD = `if(arguments.length<${EMITTED_PARAMS.length})throw new Error(${JSON.stringify(`parseman: this parser was printed by parseman ${PARSEMAN_VERSION}; upgrade the parseman runtime to at least that version`)});`;
|