jssm 5.143.25 → 5.143.26

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 CHANGED
@@ -18,10 +18,10 @@ Please edit the file it's derived from, instead: `./src/md/readme_base.md`
18
18
 
19
19
 
20
20
 
21
- * Generated for version 5.143.25 at 6/12/2026, 2:28:30 PM
21
+ * Generated for version 5.143.26 at 6/12/2026, 2:39:54 PM
22
22
 
23
23
  -->
24
- # jssm 5.143.25
24
+ # jssm 5.143.26
25
25
 
26
26
  [**Try the live editor**](https://stonecypher.github.io/jssm-viz-demo/graph_explorer.html) ·
27
27
  [Documentation](https://stonecypher.github.io/jssm/docs/) ·
@@ -417,7 +417,7 @@ If your contribution is missing here, please open an issue.
417
417
  ***7,013 tests***, run 81,857 times.
418
418
 
419
419
  - 6,257 specs with 100.0% coverage
420
- - 756 fuzz tests with 83.4% coverage
420
+ - 756 fuzz tests with 83.5% coverage
421
421
  - 5,880 TypeScript lines - 1.2 tests per line, 13.9 generated tests per line
422
422
 
423
423
  [![Actions Status](https://github.com/StoneCypher/jssm/workflows/Node%20CI/badge.svg)](https://github.com/StoneCypher/jssm/actions)
@@ -3355,49 +3355,35 @@ function peg$parse(input, options) {
3355
3355
  return s0;
3356
3356
  }
3357
3357
  function peg$parseIntegerLiteral() {
3358
- var s0, s1, s2, s3, s4;
3359
- s0 = peg$currPos;
3360
- if (input.charCodeAt(peg$currPos) === 48) {
3361
- s1 = peg$c312;
3358
+ var c, start;
3359
+ c = input.charCodeAt(peg$currPos);
3360
+ if (c === 48) { // '0' alternative
3362
3361
  peg$currPos++;
3362
+ return '0';
3363
3363
  }
3364
- else {
3365
- s1 = peg$FAILED;
3366
- if (peg$silentFails === 0 && peg$currPos >= peg$maxFailPos) {
3367
- peg$fail(peg$c313);
3368
- }
3364
+ // the generated code records the "0" alternative's expectation whenever
3365
+ // input doesn't start with 0 — including on the successful 1-9 path
3366
+ if (peg$silentFails === 0 && peg$currPos >= peg$maxFailPos) {
3367
+ peg$fail(peg$c313);
3369
3368
  }
3370
- if (s1 === peg$FAILED) {
3371
- s1 = peg$currPos;
3372
- s2 = peg$parseNonZeroDigit();
3373
- if (s2 !== peg$FAILED) {
3374
- s3 = [];
3375
- s4 = peg$parseDecimalDigit();
3376
- while (s4 !== peg$FAILED) {
3377
- s3.push(s4);
3378
- s4 = peg$parseDecimalDigit();
3379
- }
3380
- if (s3 !== peg$FAILED) {
3381
- s2 = [s2, s3];
3382
- s1 = s2;
3383
- }
3384
- else {
3385
- peg$currPos = s1;
3386
- s1 = peg$FAILED;
3387
- }
3369
+ if (c >= 49 && c <= 57) { // 1-9
3370
+ start = peg$currPos;
3371
+ peg$currPos++;
3372
+ c = input.charCodeAt(peg$currPos);
3373
+ while (c >= 48 && c <= 57) { // 0-9 run
3374
+ peg$currPos++;
3375
+ c = input.charCodeAt(peg$currPos);
3388
3376
  }
3389
- else {
3390
- peg$currPos = s1;
3391
- s1 = peg$FAILED;
3377
+ // run-terminating DecimalDigit failure, recorded at the stop position
3378
+ if (peg$silentFails === 0 && peg$currPos >= peg$maxFailPos) {
3379
+ peg$fail(peg$c315);
3392
3380
  }
3381
+ return input.substring(start, peg$currPos);
3393
3382
  }
3394
- if (s1 !== peg$FAILED) {
3395
- s0 = input.substring(s0, peg$currPos);
3396
- }
3397
- else {
3398
- s0 = s1;
3383
+ if (peg$silentFails === 0 && peg$currPos >= peg$maxFailPos) {
3384
+ peg$fail(peg$c317);
3399
3385
  }
3400
- return s0;
3386
+ return peg$FAILED;
3401
3387
  }
3402
3388
  function peg$parseDecimalDigit() {
3403
3389
  var s0;
@@ -22402,7 +22388,7 @@ var constants = /*#__PURE__*/Object.freeze({
22402
22388
  * Useful for runtime diagnostics and for embedding in serialized machine
22403
22389
  * snapshots so that deserializers can detect version-skew.
22404
22390
  */
22405
- const version = "5.143.25";
22391
+ const version = "5.143.26";
22406
22392
 
22407
22393
  // whargarbl lots of these return arrays could/should be sets
22408
22394
  const { state_name_chars, state_name_first_chars, action_label_chars } = constants;
package/dist/cdn/viz.js CHANGED
@@ -3380,49 +3380,35 @@ function peg$parse(input, options) {
3380
3380
  return s0;
3381
3381
  }
3382
3382
  function peg$parseIntegerLiteral() {
3383
- var s0, s1, s2, s3, s4;
3384
- s0 = peg$currPos;
3385
- if (input.charCodeAt(peg$currPos) === 48) {
3386
- s1 = peg$c312;
3383
+ var c, start;
3384
+ c = input.charCodeAt(peg$currPos);
3385
+ if (c === 48) { // '0' alternative
3387
3386
  peg$currPos++;
3387
+ return '0';
3388
3388
  }
3389
- else {
3390
- s1 = peg$FAILED;
3391
- if (peg$silentFails === 0 && peg$currPos >= peg$maxFailPos) {
3392
- peg$fail(peg$c313);
3393
- }
3389
+ // the generated code records the "0" alternative's expectation whenever
3390
+ // input doesn't start with 0 — including on the successful 1-9 path
3391
+ if (peg$silentFails === 0 && peg$currPos >= peg$maxFailPos) {
3392
+ peg$fail(peg$c313);
3394
3393
  }
3395
- if (s1 === peg$FAILED) {
3396
- s1 = peg$currPos;
3397
- s2 = peg$parseNonZeroDigit();
3398
- if (s2 !== peg$FAILED) {
3399
- s3 = [];
3400
- s4 = peg$parseDecimalDigit();
3401
- while (s4 !== peg$FAILED) {
3402
- s3.push(s4);
3403
- s4 = peg$parseDecimalDigit();
3404
- }
3405
- if (s3 !== peg$FAILED) {
3406
- s2 = [s2, s3];
3407
- s1 = s2;
3408
- }
3409
- else {
3410
- peg$currPos = s1;
3411
- s1 = peg$FAILED;
3412
- }
3394
+ if (c >= 49 && c <= 57) { // 1-9
3395
+ start = peg$currPos;
3396
+ peg$currPos++;
3397
+ c = input.charCodeAt(peg$currPos);
3398
+ while (c >= 48 && c <= 57) { // 0-9 run
3399
+ peg$currPos++;
3400
+ c = input.charCodeAt(peg$currPos);
3413
3401
  }
3414
- else {
3415
- peg$currPos = s1;
3416
- s1 = peg$FAILED;
3402
+ // run-terminating DecimalDigit failure, recorded at the stop position
3403
+ if (peg$silentFails === 0 && peg$currPos >= peg$maxFailPos) {
3404
+ peg$fail(peg$c315);
3417
3405
  }
3406
+ return input.substring(start, peg$currPos);
3418
3407
  }
3419
- if (s1 !== peg$FAILED) {
3420
- s0 = input.substring(s0, peg$currPos);
3421
- }
3422
- else {
3423
- s0 = s1;
3408
+ if (peg$silentFails === 0 && peg$currPos >= peg$maxFailPos) {
3409
+ peg$fail(peg$c317);
3424
3410
  }
3425
- return s0;
3411
+ return peg$FAILED;
3426
3412
  }
3427
3413
  function peg$parseDecimalDigit() {
3428
3414
  var s0;
@@ -22427,7 +22413,7 @@ var constants = /*#__PURE__*/Object.freeze({
22427
22413
  * Useful for runtime diagnostics and for embedding in serialized machine
22428
22414
  * snapshots so that deserializers can detect version-skew.
22429
22415
  */
22430
- const version = "5.143.25";
22416
+ const version = "5.143.26";
22431
22417
 
22432
22418
  // whargarbl lots of these return arrays could/should be sets
22433
22419
  const { state_name_chars, state_name_first_chars, action_label_chars } = constants;