parseman 0.54.0 → 0.55.1
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/dist/analysis/diagnostics.js +102 -61
- package/dist/analysis/diagnostics.js.map +2 -2
- package/dist/cli/index.js +102 -61
- package/dist/cli/index.js.map +2 -2
- package/dist/combinators/withCtx.d.ts +22 -7
- package/dist/combinators/withCtx.d.ts.map +1 -1
- package/dist/index.js +121 -71
- package/dist/index.js.map +2 -2
- package/dist/plugin/evaluator.d.ts.map +1 -1
- package/dist/plugin/index.js +126 -73
- package/dist/plugin/index.js.map +2 -2
- package/dist/table/assemble.d.ts.map +1 -1
- package/dist/table/encode.d.ts.map +1 -1
- package/dist/table/exec.d.ts.map +1 -1
- package/dist/table/index.js +102 -61
- package/dist/table/index.js.map +2 -2
- package/dist/table/ops.d.ts +3 -1
- package/dist/table/ops.d.ts.map +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/combinators/withCtx.ts +61 -28
- package/src/plugin/evaluator.ts +12 -2
- package/src/table/assemble.ts +11 -1
- package/src/table/encode.ts +94 -65
- package/src/table/exec.ts +2 -1
- package/src/table/ops.ts +3 -1
- package/src/types.ts +2 -0
- package/src/version.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evaluator.d.ts","sourceRoot":"","sources":["../../src/plugin/evaluator.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,UAAU,EAAE,IAAI,EAMjB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAG7C,OAAO,EAAS,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAInE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"evaluator.d.ts","sourceRoot":"","sources":["../../src/plugin/eva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CAAC,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO,CAiBnF"}
|
package/dist/plugin/index.js
CHANGED
|
@@ -6858,19 +6858,11 @@ var Encoder = class {
|
|
|
6858
6858
|
nonCommittingChoiceSites = /* @__PURE__ */ new Set();
|
|
6859
6859
|
failureRollbackCleanSites = /* @__PURE__ */ new Set();
|
|
6860
6860
|
/**
|
|
6861
|
-
* `
|
|
6862
|
-
* for the lifetime of this `Encoder`.
|
|
6863
|
-
*
|
|
6864
|
-
*
|
|
6865
|
-
*
|
|
6866
|
-
* (as a local inside `failureNeedsRollback`) was correct but discarded that
|
|
6867
|
-
* fact after every arm, so a grammar with many ordered-choice arms / optional
|
|
6868
|
-
* / attempt sites re-walked the SAME shared rule graph from scratch for each
|
|
6869
|
-
* site — O(sites × graph size) instead of O(graph size). Measured on the
|
|
6870
|
-
* scss-parser grammar (composed CSS-base superset, the deepest/largest of the
|
|
6871
|
-
* four grammars): 47-50s for one `compileRuleMap` with the per-call memo,
|
|
6872
|
-
* versus the whole macro transform completing in under a second once this
|
|
6873
|
-
* memo is hoisted here.
|
|
6861
|
+
* `reachesSideWriter`'s answers, shared by every `failureNeedsRollback` call
|
|
6862
|
+
* for the lifetime of this `Encoder`. Every entry is exact — it depends only on
|
|
6863
|
+
* the node's own reachable subgraph, never on which root's walk asked — so each
|
|
6864
|
+
* combinator is walked once per encode however many choice arms, optionals and
|
|
6865
|
+
* attempt sites reach it.
|
|
6874
6866
|
*/
|
|
6875
6867
|
sideWriterMemo = /* @__PURE__ */ new Map();
|
|
6876
6868
|
labels = void 0;
|
|
@@ -7303,63 +7295,96 @@ var Encoder = class {
|
|
|
7303
7295
|
* writer census covers the side sinks that proof deliberately does not model:
|
|
7304
7296
|
* fields, recovered errors, and interpreted scanners. Strict assemblies do
|
|
7305
7297
|
* not run repeat recovery, but these rows can still publish through a caller's
|
|
7306
|
-
* context.
|
|
7307
|
-
* discover a writer the first traversal did not already reach.
|
|
7298
|
+
* context.
|
|
7308
7299
|
*/
|
|
7309
7300
|
failureNeedsRollback(p, autoNot) {
|
|
7310
7301
|
const refName = p._ruleName;
|
|
7311
7302
|
const winner = refName === void 0 ? void 0 : this.winners?.[refName];
|
|
7312
7303
|
const root = winner !== void 0 && !winnerWrapsReference2(winner, p) ? winner : p;
|
|
7313
|
-
|
|
7314
|
-
|
|
7315
|
-
|
|
7316
|
-
|
|
7317
|
-
|
|
7318
|
-
|
|
7319
|
-
|
|
7320
|
-
|
|
7321
|
-
|
|
7322
|
-
|
|
7323
|
-
|
|
7324
|
-
|
|
7325
|
-
|
|
7326
|
-
|
|
7327
|
-
|
|
7328
|
-
|
|
7329
|
-
|
|
7330
|
-
|
|
7331
|
-
|
|
7332
|
-
|
|
7333
|
-
|
|
7334
|
-
|
|
7335
|
-
|
|
7336
|
-
|
|
7337
|
-
|
|
7338
|
-
|
|
7339
|
-
|
|
7340
|
-
|
|
7304
|
+
return mayLeavePartialCapture(root, /* @__PURE__ */ new Set(), true) || this.reachesSideWriter(root) || (autoNot?.length ?? 0) > 0 && capturesLeaf(root);
|
|
7305
|
+
}
|
|
7306
|
+
/**
|
|
7307
|
+
* Whether a field, recovered error, interpreted scanner or unresolvable shape
|
|
7308
|
+
* is reachable from `root` — the writer census of `failureNeedsRollback`.
|
|
7309
|
+
*
|
|
7310
|
+
* Reachability over a cyclic graph, decided with Tarjan's strongly connected
|
|
7311
|
+
* components so that every node the walk enters leaves with its exact answer
|
|
7312
|
+
* memoized: the members of one component reach each other, so they share one
|
|
7313
|
+
* answer, settled when the walk returns to the component's first node. A DFS
|
|
7314
|
+
* that instead cuts a cycle at its own ancestor path learns nothing it can
|
|
7315
|
+
* keep about a node whose walk hit the cut, and re-walks that node along
|
|
7316
|
+
* every path that reaches it — exponential over recursive value rules (linking
|
|
7317
|
+
* jess's SCSS grammar cost ~290G instructions). This walk enters each node
|
|
7318
|
+
* once per `Encoder`.
|
|
7319
|
+
*/
|
|
7320
|
+
reachesSideWriter(root) {
|
|
7321
|
+
const memo = this.sideWriterMemo;
|
|
7322
|
+
const known = memo.get(root);
|
|
7323
|
+
if (known !== void 0) return known;
|
|
7324
|
+
const order = /* @__PURE__ */ new Map();
|
|
7325
|
+
const low = [];
|
|
7326
|
+
const found = [];
|
|
7327
|
+
const stack = [];
|
|
7328
|
+
const visit = (node2) => {
|
|
7329
|
+
const at = low.length;
|
|
7330
|
+
order.set(node2, at);
|
|
7331
|
+
low.push(at);
|
|
7332
|
+
found.push(false);
|
|
7333
|
+
stack.push(node2);
|
|
7334
|
+
const next = this.sideWriterSuccessors(node2);
|
|
7335
|
+
if (next === true) found[at] = true;
|
|
7336
|
+
else {
|
|
7337
|
+
for (const child of next) {
|
|
7338
|
+
const hit = memo.get(child);
|
|
7339
|
+
if (hit !== void 0) {
|
|
7340
|
+
if (hit) found[at] = true;
|
|
7341
|
+
continue;
|
|
7341
7342
|
}
|
|
7342
|
-
|
|
7343
|
-
|
|
7344
|
-
|
|
7345
|
-
|
|
7346
|
-
result = { found: false, complete: true };
|
|
7347
|
-
for (const child of childrenOf2(def)) {
|
|
7348
|
-
const childResult = hasSideWriter(child);
|
|
7349
|
-
if (childResult.found) {
|
|
7350
|
-
result = { found: true, complete: true };
|
|
7351
|
-
break;
|
|
7352
|
-
}
|
|
7353
|
-
complete &&= childResult.complete;
|
|
7343
|
+
const seen = order.get(child);
|
|
7344
|
+
if (seen !== void 0) {
|
|
7345
|
+
if (seen < low[at]) low[at] = seen;
|
|
7346
|
+
continue;
|
|
7354
7347
|
}
|
|
7355
|
-
|
|
7348
|
+
const k = visit(child);
|
|
7349
|
+
if (low[k] < low[at]) low[at] = low[k];
|
|
7350
|
+
if (found[k]) found[at] = true;
|
|
7356
7351
|
}
|
|
7357
7352
|
}
|
|
7358
|
-
|
|
7359
|
-
|
|
7360
|
-
|
|
7353
|
+
if (low[at] === at) {
|
|
7354
|
+
const answer = found[at];
|
|
7355
|
+
let member;
|
|
7356
|
+
do {
|
|
7357
|
+
member = stack.pop();
|
|
7358
|
+
memo.set(member, answer);
|
|
7359
|
+
} while (member !== node2);
|
|
7360
|
+
}
|
|
7361
|
+
return at;
|
|
7361
7362
|
};
|
|
7362
|
-
return
|
|
7363
|
+
return found[visit(root)];
|
|
7364
|
+
}
|
|
7365
|
+
/** The census's edges out of `node`, or `true` when `node` is itself a writer. */
|
|
7366
|
+
sideWriterSuccessors(node2) {
|
|
7367
|
+
const def = node2._def;
|
|
7368
|
+
switch (def.tag) {
|
|
7369
|
+
case "field":
|
|
7370
|
+
case "expect":
|
|
7371
|
+
case "recover":
|
|
7372
|
+
case "scanTo":
|
|
7373
|
+
case "unknown":
|
|
7374
|
+
return true;
|
|
7375
|
+
case "lazy": {
|
|
7376
|
+
const name = node2._ruleName;
|
|
7377
|
+
const winner = name === void 0 ? void 0 : this.winners?.[name];
|
|
7378
|
+
if (winner !== void 0 && !winnerWrapsReference2(winner, node2)) return [winner];
|
|
7379
|
+
try {
|
|
7380
|
+
return [def.thunk()];
|
|
7381
|
+
} catch {
|
|
7382
|
+
return true;
|
|
7383
|
+
}
|
|
7384
|
+
}
|
|
7385
|
+
default:
|
|
7386
|
+
return childrenOf2(def);
|
|
7387
|
+
}
|
|
7363
7388
|
}
|
|
7364
7389
|
/** A first set becomes a char class string, or −1 for `any`. */
|
|
7365
7390
|
charClass(fs3) {
|
|
@@ -7876,6 +7901,9 @@ var Encoder = class {
|
|
|
7876
7901
|
this.expected([adjacencyExpected(d)])
|
|
7877
7902
|
);
|
|
7878
7903
|
case "withCtx": {
|
|
7904
|
+
if (typeof d.extra === "function") {
|
|
7905
|
+
return this.emit(OP_WITHCTX, ~this.fn(d.extra, d.extraSrc ?? null), this.node(d.parser).ip);
|
|
7906
|
+
}
|
|
7879
7907
|
if (!emittableConst(d.extra)) {
|
|
7880
7908
|
this.runtimeOnly.add("withCtx(extra) \u2014 the state object is not serialisable");
|
|
7881
7909
|
}
|
|
@@ -12816,8 +12844,21 @@ function assemble(t, prog, cfg) {
|
|
|
12816
12844
|
};
|
|
12817
12845
|
}
|
|
12818
12846
|
case OP_WITHCTX: {
|
|
12819
|
-
const
|
|
12847
|
+
const ki = code[ip + 1];
|
|
12820
12848
|
const child = link(code[ip + 2]);
|
|
12849
|
+
if (ki < 0) {
|
|
12850
|
+
const derive2 = fns[~ki];
|
|
12851
|
+
return (input, pos, ctx) => {
|
|
12852
|
+
const saved = ctx.state;
|
|
12853
|
+
ctx.state = derive2(saved);
|
|
12854
|
+
try {
|
|
12855
|
+
return child(input, pos, ctx);
|
|
12856
|
+
} finally {
|
|
12857
|
+
ctx.state = saved;
|
|
12858
|
+
}
|
|
12859
|
+
};
|
|
12860
|
+
}
|
|
12861
|
+
const extra = k[ki];
|
|
12821
12862
|
return (input, pos, ctx) => {
|
|
12822
12863
|
const saved = ctx.state;
|
|
12823
12864
|
ctx.state = extra;
|
|
@@ -17311,7 +17352,7 @@ function fieldOptionsSrc(def) {
|
|
|
17311
17352
|
}
|
|
17312
17353
|
|
|
17313
17354
|
// src/version.ts
|
|
17314
|
-
var PARSEMAN_VERSION = "0.
|
|
17355
|
+
var PARSEMAN_VERSION = "0.55.1";
|
|
17315
17356
|
|
|
17316
17357
|
// src/compiler/compile-linkable-table.ts
|
|
17317
17358
|
function isLocal(rule) {
|
|
@@ -17430,19 +17471,28 @@ function withCtx(extra, combinator) {
|
|
|
17430
17471
|
canMatchNewline: combinator._meta.canMatchNewline,
|
|
17431
17472
|
isTrivia: false
|
|
17432
17473
|
};
|
|
17474
|
+
const parse2 = typeof extra === "function" ? (input, pos, ctx) => {
|
|
17475
|
+
const saved = ctx.state;
|
|
17476
|
+
ctx.state = extra(saved);
|
|
17477
|
+
try {
|
|
17478
|
+
return combinator.parse(input, pos, ctx);
|
|
17479
|
+
} finally {
|
|
17480
|
+
ctx.state = saved;
|
|
17481
|
+
}
|
|
17482
|
+
} : (input, pos, ctx) => {
|
|
17483
|
+
const saved = ctx.state;
|
|
17484
|
+
ctx.state = extra;
|
|
17485
|
+
try {
|
|
17486
|
+
return combinator.parse(input, pos, ctx);
|
|
17487
|
+
} finally {
|
|
17488
|
+
ctx.state = saved;
|
|
17489
|
+
}
|
|
17490
|
+
};
|
|
17433
17491
|
return {
|
|
17434
17492
|
_tag: "withCtx",
|
|
17435
17493
|
_meta: meta,
|
|
17436
17494
|
_def: { tag: "withCtx", extra, parser: combinator },
|
|
17437
|
-
parse
|
|
17438
|
-
const saved = ctx.state;
|
|
17439
|
-
ctx.state = extra;
|
|
17440
|
-
try {
|
|
17441
|
-
return combinator.parse(input, pos, ctx);
|
|
17442
|
-
} finally {
|
|
17443
|
-
ctx.state = saved;
|
|
17444
|
-
}
|
|
17445
|
-
}
|
|
17495
|
+
parse: parse2
|
|
17446
17496
|
};
|
|
17447
17497
|
}
|
|
17448
17498
|
|
|
@@ -17721,6 +17771,7 @@ function stripTsFromSource(node2, code) {
|
|
|
17721
17771
|
var UnevaluatedExtra = class {
|
|
17722
17772
|
};
|
|
17723
17773
|
var UNEVALUATED_EXTRA = new UnevaluatedExtra();
|
|
17774
|
+
var DERIVE_STAND_IN = (state) => state;
|
|
17724
17775
|
var _reducers = null;
|
|
17725
17776
|
var _entrySource = null;
|
|
17726
17777
|
function setReducerResolver(r, entrySource = null) {
|
|
@@ -18324,9 +18375,11 @@ function exprToCombi(node2, scope, code, mfs) {
|
|
|
18324
18375
|
const inner = anyValue(innerArg, scope, code, mfs);
|
|
18325
18376
|
if (!isCombinator2(inner)) return null;
|
|
18326
18377
|
try {
|
|
18327
|
-
const
|
|
18378
|
+
const extraType = unwrapStaticExpr(extraArg).type;
|
|
18379
|
+
const derives = extraType === "ArrowFunctionExpression" || extraType === "FunctionExpression";
|
|
18380
|
+
const evaluated = derives ? null : anyValue(extraArg, scope, code, []);
|
|
18328
18381
|
const usable = typeof evaluated === "object" && evaluated !== null && !Array.isArray(evaluated) && Object.getPrototypeOf(evaluated) === Object.prototype;
|
|
18329
|
-
const combi = withCtx(usable ? evaluated : UNEVALUATED_EXTRA, inner);
|
|
18382
|
+
const combi = withCtx(derives ? DERIVE_STAND_IN : usable ? evaluated : UNEVALUATED_EXTRA, inner);
|
|
18330
18383
|
if (combi._def.tag !== "withCtx") return null;
|
|
18331
18384
|
combi._def.extraSrc = extraSrc;
|
|
18332
18385
|
return combi;
|