yyjj 2025.12.2 → 2025.12.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/dist/index.cjs +88 -84
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +88 -84
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -302,37 +302,37 @@ const f4ah6o$yyjj$common$$zero$46$record$47$413 = {
|
|
|
302
302
|
offset: 0
|
|
303
303
|
};
|
|
304
304
|
const f4ah6o$yyjj$jsonc$$int_to_hex4$46$hex_chars$124$192 = "0123456789abcdef";
|
|
305
|
-
const f4ah6o$yyjj$jsonc$$lex_comment_or_invalid$46$constr$47$
|
|
306
|
-
const f4ah6o$yyjj$jsonc$$lex_comment_or_invalid$46$constr$47$
|
|
307
|
-
const f4ah6o$yyjj$jsonc$$lex_comment_or_invalid$46$constr$47$
|
|
308
|
-
const f4ah6o$yyjj$jsonc$$lex_number$46$constr$47$
|
|
309
|
-
const f4ah6o$yyjj$jsonc$$lex_number$46$constr$47$
|
|
310
|
-
const f4ah6o$yyjj$jsonc$$lex_number$46$constr$47$
|
|
311
|
-
const f4ah6o$yyjj$jsonc$$lex_number$46$constr$47$
|
|
312
|
-
const f4ah6o$yyjj$jsonc$$lex_number$46$constr$47$
|
|
313
|
-
const f4ah6o$yyjj$jsonc$$lex_string$46$constr$47$
|
|
314
|
-
const f4ah6o$yyjj$jsonc$$lex_string$46$constr$47$
|
|
315
|
-
const f4ah6o$yyjj$jsonc$$lex_string$46$constr$47$
|
|
316
|
-
const f4ah6o$yyjj$jsonc$$lex_string$46$constr$47$
|
|
317
|
-
const f4ah6o$yyjj$jsonc$$lex_string$46$constr$47$
|
|
318
|
-
const f4ah6o$yyjj$jsonc$$next_token$46$constr$47$
|
|
319
|
-
const f4ah6o$yyjj$yaml$$lex_alias$46$constr$47$
|
|
320
|
-
const f4ah6o$yyjj$yaml$$lex_anchor$46$constr$47$
|
|
321
|
-
const f4ah6o$yyjj$yaml$$lex_double_quoted$46$constr$47$
|
|
322
|
-
const f4ah6o$yyjj$yaml$$lex_double_quoted$46$constr$47$
|
|
323
|
-
const f4ah6o$yyjj$yaml$$lex_folded_block$46$constr$47$
|
|
324
|
-
const f4ah6o$yyjj$yaml$$lex_folded_block$46$constr$47$
|
|
325
|
-
const f4ah6o$yyjj$yaml$$lex_literal_block$46$constr$47$
|
|
326
|
-
const f4ah6o$yyjj$yaml$$lex_literal_block$46$constr$47$
|
|
327
|
-
const f4ah6o$yyjj$yaml$$lex_single_quoted$46$constr$47$
|
|
328
|
-
const f4ah6o$yyjj$yaml$$lex_single_quoted$46$constr$47$
|
|
329
|
-
const f4ah6o$yyjj$yaml$$next_token$46$constr$47$1166 = 10;
|
|
330
|
-
const f4ah6o$yyjj$yaml$$next_token$46$constr$47$1167 = 32;
|
|
305
|
+
const f4ah6o$yyjj$jsonc$$lex_comment_or_invalid$46$constr$47$596 = new $64$f4ah6o$47$yyjj$47$jsonc$46$TokenKind$Invalid("unexpected character: /");
|
|
306
|
+
const f4ah6o$yyjj$jsonc$$lex_comment_or_invalid$46$constr$47$597 = new $64$f4ah6o$47$yyjj$47$jsonc$46$TokenKind$Invalid("unclosed block comment");
|
|
307
|
+
const f4ah6o$yyjj$jsonc$$lex_comment_or_invalid$46$constr$47$598 = 47;
|
|
308
|
+
const f4ah6o$yyjj$jsonc$$lex_number$46$constr$47$630 = 45;
|
|
309
|
+
const f4ah6o$yyjj$jsonc$$lex_number$46$constr$47$631 = new $64$f4ah6o$47$yyjj$47$jsonc$46$TokenKind$Invalid("invalid number");
|
|
310
|
+
const f4ah6o$yyjj$jsonc$$lex_number$46$constr$47$632 = 46;
|
|
311
|
+
const f4ah6o$yyjj$jsonc$$lex_number$46$constr$47$633 = new $64$f4ah6o$47$yyjj$47$jsonc$46$TokenKind$Invalid("invalid number: expected digit after decimal point");
|
|
312
|
+
const f4ah6o$yyjj$jsonc$$lex_number$46$constr$47$634 = new $64$f4ah6o$47$yyjj$47$jsonc$46$TokenKind$Invalid("invalid number: expected digit in exponent");
|
|
313
|
+
const f4ah6o$yyjj$jsonc$$lex_string$46$constr$47$676 = new $64$f4ah6o$47$yyjj$47$jsonc$46$TokenKind$Invalid("unclosed string");
|
|
314
|
+
const f4ah6o$yyjj$jsonc$$lex_string$46$constr$47$677 = new $64$f4ah6o$47$yyjj$47$jsonc$46$TokenKind$Invalid("unclosed string");
|
|
315
|
+
const f4ah6o$yyjj$jsonc$$lex_string$46$constr$47$678 = new $64$f4ah6o$47$yyjj$47$jsonc$46$TokenKind$Invalid("invalid unicode escape");
|
|
316
|
+
const f4ah6o$yyjj$jsonc$$lex_string$46$constr$47$679 = new $64$f4ah6o$47$yyjj$47$jsonc$46$TokenKind$Invalid("invalid unicode escape");
|
|
317
|
+
const f4ah6o$yyjj$jsonc$$lex_string$46$constr$47$680 = new $64$f4ah6o$47$yyjj$47$jsonc$46$TokenKind$Invalid("control character in string");
|
|
318
|
+
const f4ah6o$yyjj$jsonc$$next_token$46$constr$47$701 = 10;
|
|
319
|
+
const f4ah6o$yyjj$yaml$$lex_alias$46$constr$47$1061 = new $64$f4ah6o$47$yyjj$47$yaml$46$TokenKind$Invalid("empty alias name");
|
|
320
|
+
const f4ah6o$yyjj$yaml$$lex_anchor$46$constr$47$1066 = new $64$f4ah6o$47$yyjj$47$yaml$46$TokenKind$Invalid("empty anchor name");
|
|
321
|
+
const f4ah6o$yyjj$yaml$$lex_double_quoted$46$constr$47$1072 = new $64$f4ah6o$47$yyjj$47$yaml$46$TokenKind$Invalid("unclosed double-quoted string");
|
|
322
|
+
const f4ah6o$yyjj$yaml$$lex_double_quoted$46$constr$47$1073 = new $64$f4ah6o$47$yyjj$47$yaml$46$TokenKind$Invalid("unclosed double-quoted string");
|
|
323
|
+
const f4ah6o$yyjj$yaml$$lex_folded_block$46$constr$47$1088 = 10;
|
|
324
|
+
const f4ah6o$yyjj$yaml$$lex_folded_block$46$constr$47$1089 = 10;
|
|
325
|
+
const f4ah6o$yyjj$yaml$$lex_literal_block$46$constr$47$1118 = 10;
|
|
326
|
+
const f4ah6o$yyjj$yaml$$lex_literal_block$46$constr$47$1119 = 10;
|
|
327
|
+
const f4ah6o$yyjj$yaml$$lex_single_quoted$46$constr$47$1156 = new $64$f4ah6o$47$yyjj$47$yaml$46$TokenKind$Invalid("unclosed single-quoted string");
|
|
328
|
+
const f4ah6o$yyjj$yaml$$lex_single_quoted$46$constr$47$1157 = 39;
|
|
331
329
|
const f4ah6o$yyjj$yaml$$next_token$46$constr$47$1168 = 10;
|
|
332
|
-
const f4ah6o$yyjj$yaml$$next_token$46$constr$47$1169 =
|
|
333
|
-
const f4ah6o$yyjj$yaml$$next_token$46$constr$47$1170 =
|
|
334
|
-
const f4ah6o$yyjj$yaml$$next_token$46$constr$47$1171 =
|
|
335
|
-
const f4ah6o$yyjj$yaml$$next_token$46$constr$47$1172 =
|
|
330
|
+
const f4ah6o$yyjj$yaml$$next_token$46$constr$47$1169 = 32;
|
|
331
|
+
const f4ah6o$yyjj$yaml$$next_token$46$constr$47$1170 = 10;
|
|
332
|
+
const f4ah6o$yyjj$yaml$$next_token$46$constr$47$1171 = 45;
|
|
333
|
+
const f4ah6o$yyjj$yaml$$next_token$46$constr$47$1172 = 45;
|
|
334
|
+
const f4ah6o$yyjj$yaml$$next_token$46$constr$47$1173 = 46;
|
|
335
|
+
const f4ah6o$yyjj$yaml$$next_token$46$constr$47$1174 = 46;
|
|
336
336
|
const moonbitlang$core$builtin$$seed = moonbitlang$core$builtin$$random_seed();
|
|
337
337
|
function moonbitlang$core$builtin$$Logger$write_object$2$(self, obj) {
|
|
338
338
|
moonbitlang$core$builtin$$Show$output$2$(obj, self);
|
|
@@ -1298,58 +1298,58 @@ function f4ah6o$yyjj$pretty$$join(docs, sep) {
|
|
|
1298
1298
|
}
|
|
1299
1299
|
return result;
|
|
1300
1300
|
}
|
|
1301
|
-
function moonbitlang$core$builtin$$Eq$equal$24$(
|
|
1302
|
-
switch (
|
|
1303
|
-
case 0: if (
|
|
1301
|
+
function moonbitlang$core$builtin$$Eq$equal$24$(_x_271, _x_272) {
|
|
1302
|
+
switch (_x_271.$tag) {
|
|
1303
|
+
case 0: if (_x_272.$tag === 0) return true;
|
|
1304
1304
|
else return false;
|
|
1305
|
-
case 1: if (
|
|
1305
|
+
case 1: if (_x_272.$tag === 1) return true;
|
|
1306
1306
|
else return false;
|
|
1307
|
-
case 2: if (
|
|
1307
|
+
case 2: if (_x_272.$tag === 2) return true;
|
|
1308
1308
|
else return false;
|
|
1309
|
-
case 3: if (
|
|
1309
|
+
case 3: if (_x_272.$tag === 3) return true;
|
|
1310
1310
|
else return false;
|
|
1311
|
-
case 4: if (
|
|
1311
|
+
case 4: if (_x_272.$tag === 4) return true;
|
|
1312
1312
|
else return false;
|
|
1313
|
-
case 5: if (
|
|
1313
|
+
case 5: if (_x_272.$tag === 5) return true;
|
|
1314
1314
|
else return false;
|
|
1315
1315
|
case 6: {
|
|
1316
|
-
const _$42$
|
|
1317
|
-
if (
|
|
1316
|
+
const _$42$x0_273 = _x_271._0;
|
|
1317
|
+
if (_x_272.$tag === 6) return _$42$x0_273 === _x_272._0;
|
|
1318
1318
|
else return false;
|
|
1319
1319
|
}
|
|
1320
1320
|
case 7: {
|
|
1321
|
-
const _$42$
|
|
1322
|
-
if (
|
|
1321
|
+
const _$42$x0_275 = _x_271._0;
|
|
1322
|
+
if (_x_272.$tag === 7) return _$42$x0_275 === _x_272._0;
|
|
1323
1323
|
else return false;
|
|
1324
1324
|
}
|
|
1325
|
-
case 8: if (
|
|
1325
|
+
case 8: if (_x_272.$tag === 8) return true;
|
|
1326
1326
|
else return false;
|
|
1327
|
-
case 9: if (
|
|
1327
|
+
case 9: if (_x_272.$tag === 9) return true;
|
|
1328
1328
|
else return false;
|
|
1329
|
-
case 10: if (
|
|
1329
|
+
case 10: if (_x_272.$tag === 10) return true;
|
|
1330
1330
|
else return false;
|
|
1331
1331
|
case 11: {
|
|
1332
|
-
const _$42$
|
|
1333
|
-
if (
|
|
1332
|
+
const _$42$x0_277 = _x_271._0;
|
|
1333
|
+
if (_x_272.$tag === 11) return _$42$x0_277 === _x_272._0;
|
|
1334
1334
|
else return false;
|
|
1335
1335
|
}
|
|
1336
1336
|
case 12: {
|
|
1337
|
-
const _$42$
|
|
1338
|
-
if (
|
|
1337
|
+
const _$42$x0_279 = _x_271._0;
|
|
1338
|
+
if (_x_272.$tag === 12) return _$42$x0_279 === _x_272._0;
|
|
1339
1339
|
else return false;
|
|
1340
1340
|
}
|
|
1341
1341
|
case 13: {
|
|
1342
|
-
const _$42$
|
|
1343
|
-
if (
|
|
1342
|
+
const _$42$x0_281 = _x_271._0;
|
|
1343
|
+
if (_x_272.$tag === 13) return _$42$x0_281 === _x_272._0;
|
|
1344
1344
|
else return false;
|
|
1345
1345
|
}
|
|
1346
|
-
case 14: if (
|
|
1346
|
+
case 14: if (_x_272.$tag === 14) return true;
|
|
1347
1347
|
else return false;
|
|
1348
|
-
case 15: if (
|
|
1348
|
+
case 15: if (_x_272.$tag === 15) return true;
|
|
1349
1349
|
else return false;
|
|
1350
1350
|
default: {
|
|
1351
|
-
const _$42$
|
|
1352
|
-
if (
|
|
1351
|
+
const _$42$x0_283 = _x_271._0;
|
|
1352
|
+
if (_x_272.$tag === 16) return _$42$x0_283 === _x_272._0;
|
|
1353
1353
|
else return false;
|
|
1354
1354
|
}
|
|
1355
1355
|
}
|
|
@@ -1510,10 +1510,14 @@ function f4ah6o$yyjj$jsonc$$object_to_doc(props) {
|
|
|
1510
1510
|
const i = _tmp;
|
|
1511
1511
|
if (i < props.length) {
|
|
1512
1512
|
const prop = moonbitlang$core$array$$Array$at$14$(props, i);
|
|
1513
|
+
const key_leading = f4ah6o$yyjj$jsonc$$trivia_to_doc(prop.key_trivia.leading, true);
|
|
1513
1514
|
const key_doc = new $64$f4ah6o$47$yyjj$47$pretty$46$Doc$Text(f4ah6o$yyjj$jsonc$$escape_json_string(prop.key));
|
|
1515
|
+
const key_trailing = f4ah6o$yyjj$jsonc$$trivia_to_doc(prop.key_trivia.trailing, false);
|
|
1514
1516
|
const value_doc = f4ah6o$yyjj$jsonc$$to_doc_with_trivia(prop.value);
|
|
1515
1517
|
const prop_doc = f4ah6o$yyjj$pretty$$concat([
|
|
1518
|
+
key_leading,
|
|
1516
1519
|
key_doc,
|
|
1520
|
+
key_trailing,
|
|
1517
1521
|
new $64$f4ah6o$47$yyjj$47$pretty$46$Doc$Text(": "),
|
|
1518
1522
|
value_doc
|
|
1519
1523
|
]);
|
|
@@ -1604,12 +1608,12 @@ function f4ah6o$yyjj$jsonc$$Lexer$lex_comment_or_invalid(self, start) {
|
|
|
1604
1608
|
const buf = moonbitlang$core$builtin$$StringBuilder$new$46$inner(0);
|
|
1605
1609
|
while (true) {
|
|
1606
1610
|
const _bind$2 = f4ah6o$yyjj$jsonc$$Lexer$peek(self);
|
|
1607
|
-
if (_bind$2 === -1) return f4ah6o$yyjj$jsonc$$Token$new(f4ah6o$yyjj$jsonc$$lex_comment_or_invalid$46$constr$47$
|
|
1611
|
+
if (_bind$2 === -1) return f4ah6o$yyjj$jsonc$$Token$new(f4ah6o$yyjj$jsonc$$lex_comment_or_invalid$46$constr$47$597, f4ah6o$yyjj$common$$Span$new(start, f4ah6o$yyjj$jsonc$$Lexer$current_pos(self)));
|
|
1608
1612
|
else {
|
|
1609
1613
|
const _x$2 = _bind$2;
|
|
1610
1614
|
if (_x$2 === 42) {
|
|
1611
1615
|
f4ah6o$yyjj$jsonc$$Lexer$advance(self);
|
|
1612
|
-
if (moonbitlang$core$builtin$$Eq$equal$25$(f4ah6o$yyjj$jsonc$$Lexer$peek(self), f4ah6o$yyjj$jsonc$$lex_comment_or_invalid$46$constr$47$
|
|
1616
|
+
if (moonbitlang$core$builtin$$Eq$equal$25$(f4ah6o$yyjj$jsonc$$Lexer$peek(self), f4ah6o$yyjj$jsonc$$lex_comment_or_invalid$46$constr$47$598)) {
|
|
1613
1617
|
f4ah6o$yyjj$jsonc$$Lexer$advance(self);
|
|
1614
1618
|
break;
|
|
1615
1619
|
} else moonbitlang$core$builtin$$Logger$write_char$0$(buf, 42);
|
|
@@ -1625,7 +1629,7 @@ function f4ah6o$yyjj$jsonc$$Lexer$lex_comment_or_invalid(self, start) {
|
|
|
1625
1629
|
default: break _L;
|
|
1626
1630
|
}
|
|
1627
1631
|
}
|
|
1628
|
-
return f4ah6o$yyjj$jsonc$$Token$new(f4ah6o$yyjj$jsonc$$lex_comment_or_invalid$46$constr$47$
|
|
1632
|
+
return f4ah6o$yyjj$jsonc$$Token$new(f4ah6o$yyjj$jsonc$$lex_comment_or_invalid$46$constr$47$596, f4ah6o$yyjj$common$$Span$new(start, f4ah6o$yyjj$jsonc$$Lexer$current_pos(self)));
|
|
1629
1633
|
}
|
|
1630
1634
|
function f4ah6o$yyjj$jsonc$$is_ident_char(c) {
|
|
1631
1635
|
return c >= 97 && c <= 122 || c >= 65 && c <= 90 || c >= 48 && c <= 57 || c === 95;
|
|
@@ -1660,7 +1664,7 @@ function f4ah6o$yyjj$jsonc$$Lexer$lex_keyword(self, expected, kind, start) {
|
|
|
1660
1664
|
}
|
|
1661
1665
|
function f4ah6o$yyjj$jsonc$$Lexer$lex_number(self, start) {
|
|
1662
1666
|
const num_start = self.pos;
|
|
1663
|
-
if (moonbitlang$core$builtin$$Eq$equal$25$(f4ah6o$yyjj$jsonc$$Lexer$peek(self), f4ah6o$yyjj$jsonc$$lex_number$46$constr$47$
|
|
1667
|
+
if (moonbitlang$core$builtin$$Eq$equal$25$(f4ah6o$yyjj$jsonc$$Lexer$peek(self), f4ah6o$yyjj$jsonc$$lex_number$46$constr$47$630)) f4ah6o$yyjj$jsonc$$Lexer$advance(self);
|
|
1664
1668
|
_L: {
|
|
1665
1669
|
_L$2: {
|
|
1666
1670
|
const _bind$1 = f4ah6o$yyjj$jsonc$$Lexer$peek(self);
|
|
@@ -1686,9 +1690,9 @@ function f4ah6o$yyjj$jsonc$$Lexer$lex_number(self, start) {
|
|
|
1686
1690
|
}
|
|
1687
1691
|
break _L;
|
|
1688
1692
|
}
|
|
1689
|
-
return f4ah6o$yyjj$jsonc$$Token$new(f4ah6o$yyjj$jsonc$$lex_number$46$constr$47$
|
|
1693
|
+
return f4ah6o$yyjj$jsonc$$Token$new(f4ah6o$yyjj$jsonc$$lex_number$46$constr$47$631, f4ah6o$yyjj$common$$Span$new(start, f4ah6o$yyjj$jsonc$$Lexer$current_pos(self)));
|
|
1690
1694
|
}
|
|
1691
|
-
if (moonbitlang$core$builtin$$Eq$equal$25$(f4ah6o$yyjj$jsonc$$Lexer$peek(self), f4ah6o$yyjj$jsonc$$lex_number$46$constr$47$
|
|
1695
|
+
if (moonbitlang$core$builtin$$Eq$equal$25$(f4ah6o$yyjj$jsonc$$Lexer$peek(self), f4ah6o$yyjj$jsonc$$lex_number$46$constr$47$632)) {
|
|
1692
1696
|
f4ah6o$yyjj$jsonc$$Lexer$advance(self);
|
|
1693
1697
|
const _bind$1 = f4ah6o$yyjj$jsonc$$Lexer$peek(self);
|
|
1694
1698
|
let _tmp;
|
|
@@ -1697,7 +1701,7 @@ function f4ah6o$yyjj$jsonc$$Lexer$lex_number(self, start) {
|
|
|
1697
1701
|
const _d = _bind$1;
|
|
1698
1702
|
_tmp = _d >= 48 && _d <= 57;
|
|
1699
1703
|
}
|
|
1700
|
-
if (!_tmp) return f4ah6o$yyjj$jsonc$$Token$new(f4ah6o$yyjj$jsonc$$lex_number$46$constr$47$
|
|
1704
|
+
if (!_tmp) return f4ah6o$yyjj$jsonc$$Token$new(f4ah6o$yyjj$jsonc$$lex_number$46$constr$47$633, f4ah6o$yyjj$common$$Span$new(start, f4ah6o$yyjj$jsonc$$Lexer$current_pos(self)));
|
|
1701
1705
|
while (true) {
|
|
1702
1706
|
const _bind$2 = f4ah6o$yyjj$jsonc$$Lexer$peek(self);
|
|
1703
1707
|
if (_bind$2 === -1) break;
|
|
@@ -1740,7 +1744,7 @@ function f4ah6o$yyjj$jsonc$$Lexer$lex_number(self, start) {
|
|
|
1740
1744
|
const _d = _bind$3;
|
|
1741
1745
|
_tmp = _d >= 48 && _d <= 57;
|
|
1742
1746
|
}
|
|
1743
|
-
if (!_tmp) return f4ah6o$yyjj$jsonc$$Token$new(f4ah6o$yyjj$jsonc$$lex_number$46$constr$47$
|
|
1747
|
+
if (!_tmp) return f4ah6o$yyjj$jsonc$$Token$new(f4ah6o$yyjj$jsonc$$lex_number$46$constr$47$634, f4ah6o$yyjj$common$$Span$new(start, f4ah6o$yyjj$jsonc$$Lexer$current_pos(self)));
|
|
1744
1748
|
while (true) {
|
|
1745
1749
|
const _bind$4 = f4ah6o$yyjj$jsonc$$Lexer$peek(self);
|
|
1746
1750
|
if (_bind$4 === -1) break;
|
|
@@ -1785,7 +1789,7 @@ function f4ah6o$yyjj$jsonc$$Lexer$lex_string(self, start) {
|
|
|
1785
1789
|
const buf = moonbitlang$core$builtin$$StringBuilder$new$46$inner(0);
|
|
1786
1790
|
_L: while (true) {
|
|
1787
1791
|
const _bind = f4ah6o$yyjj$jsonc$$Lexer$peek(self);
|
|
1788
|
-
if (_bind === -1) return f4ah6o$yyjj$jsonc$$Token$new(f4ah6o$yyjj$jsonc$$lex_string$46$constr$47$
|
|
1792
|
+
if (_bind === -1) return f4ah6o$yyjj$jsonc$$Token$new(f4ah6o$yyjj$jsonc$$lex_string$46$constr$47$676, f4ah6o$yyjj$common$$Span$new(start, f4ah6o$yyjj$jsonc$$Lexer$current_pos(self)));
|
|
1789
1793
|
else {
|
|
1790
1794
|
const _x = _bind;
|
|
1791
1795
|
switch (_x) {
|
|
@@ -1795,7 +1799,7 @@ function f4ah6o$yyjj$jsonc$$Lexer$lex_string(self, start) {
|
|
|
1795
1799
|
case 92: {
|
|
1796
1800
|
f4ah6o$yyjj$jsonc$$Lexer$advance(self);
|
|
1797
1801
|
const _bind$2 = f4ah6o$yyjj$jsonc$$Lexer$peek(self);
|
|
1798
|
-
if (_bind$2 === -1) return f4ah6o$yyjj$jsonc$$Token$new(f4ah6o$yyjj$jsonc$$lex_string$46$constr$47$
|
|
1802
|
+
if (_bind$2 === -1) return f4ah6o$yyjj$jsonc$$Token$new(f4ah6o$yyjj$jsonc$$lex_string$46$constr$47$677, f4ah6o$yyjj$common$$Span$new(start, f4ah6o$yyjj$jsonc$$Lexer$current_pos(self)));
|
|
1799
1803
|
else {
|
|
1800
1804
|
const _esc = _bind$2;
|
|
1801
1805
|
f4ah6o$yyjj$jsonc$$Lexer$advance(self);
|
|
@@ -1843,14 +1847,14 @@ function f4ah6o$yyjj$jsonc$$Lexer$lex_string(self, start) {
|
|
|
1843
1847
|
}
|
|
1844
1848
|
break _L$2;
|
|
1845
1849
|
}
|
|
1846
|
-
return f4ah6o$yyjj$jsonc$$Token$new(f4ah6o$yyjj$jsonc$$lex_string$46$constr$47$
|
|
1850
|
+
return f4ah6o$yyjj$jsonc$$Token$new(f4ah6o$yyjj$jsonc$$lex_string$46$constr$47$678, f4ah6o$yyjj$common$$Span$new(start, f4ah6o$yyjj$jsonc$$Lexer$current_pos(self)));
|
|
1847
1851
|
}
|
|
1848
1852
|
_tmp = i + 1 | 0;
|
|
1849
1853
|
continue;
|
|
1850
1854
|
} else break;
|
|
1851
1855
|
}
|
|
1852
1856
|
const _bind$3 = f4ah6o$yyjj$jsonc$$parse_hex(hex);
|
|
1853
|
-
if (_bind$3 === void 0) return f4ah6o$yyjj$jsonc$$Token$new(f4ah6o$yyjj$jsonc$$lex_string$46$constr$47$
|
|
1857
|
+
if (_bind$3 === void 0) return f4ah6o$yyjj$jsonc$$Token$new(f4ah6o$yyjj$jsonc$$lex_string$46$constr$47$679, f4ah6o$yyjj$common$$Span$new(start, f4ah6o$yyjj$jsonc$$Lexer$current_pos(self)));
|
|
1854
1858
|
else moonbitlang$core$builtin$$Logger$write_char$0$(buf, _bind$3);
|
|
1855
1859
|
break;
|
|
1856
1860
|
}
|
|
@@ -1859,7 +1863,7 @@ function f4ah6o$yyjj$jsonc$$Lexer$lex_string(self, start) {
|
|
|
1859
1863
|
}
|
|
1860
1864
|
break;
|
|
1861
1865
|
}
|
|
1862
|
-
default: if (_x < 32) return f4ah6o$yyjj$jsonc$$Token$new(f4ah6o$yyjj$jsonc$$lex_string$46$constr$47$
|
|
1866
|
+
default: if (_x < 32) return f4ah6o$yyjj$jsonc$$Token$new(f4ah6o$yyjj$jsonc$$lex_string$46$constr$47$680, f4ah6o$yyjj$common$$Span$new(start, f4ah6o$yyjj$jsonc$$Lexer$current_pos(self)));
|
|
1863
1867
|
else {
|
|
1864
1868
|
f4ah6o$yyjj$jsonc$$Lexer$advance(self);
|
|
1865
1869
|
moonbitlang$core$builtin$$Logger$write_char$0$(buf, _x);
|
|
@@ -1904,7 +1908,7 @@ function f4ah6o$yyjj$jsonc$$Lexer$next_token(self) {
|
|
|
1904
1908
|
return f4ah6o$yyjj$jsonc$$Token$new($64$f4ah6o$47$yyjj$47$jsonc$46$TokenKind$Newline, f4ah6o$yyjj$common$$Span$new(start, f4ah6o$yyjj$jsonc$$Lexer$current_pos(self)));
|
|
1905
1909
|
case 13:
|
|
1906
1910
|
f4ah6o$yyjj$jsonc$$Lexer$advance(self);
|
|
1907
|
-
if (moonbitlang$core$builtin$$Eq$equal$25$(f4ah6o$yyjj$jsonc$$Lexer$peek(self), f4ah6o$yyjj$jsonc$$next_token$46$constr$47$
|
|
1911
|
+
if (moonbitlang$core$builtin$$Eq$equal$25$(f4ah6o$yyjj$jsonc$$Lexer$peek(self), f4ah6o$yyjj$jsonc$$next_token$46$constr$47$701)) f4ah6o$yyjj$jsonc$$Lexer$advance(self);
|
|
1908
1912
|
return f4ah6o$yyjj$jsonc$$Token$new($64$f4ah6o$47$yyjj$47$jsonc$46$TokenKind$Newline, f4ah6o$yyjj$common$$Span$new(start, f4ah6o$yyjj$jsonc$$Lexer$current_pos(self)));
|
|
1909
1913
|
case 47: return f4ah6o$yyjj$jsonc$$Lexer$lex_comment_or_invalid(self, start);
|
|
1910
1914
|
case 45: break _L;
|
|
@@ -2903,12 +2907,12 @@ function f4ah6o$yyjj$yaml$$Lexer$skip_while(self, pred) {
|
|
|
2903
2907
|
function f4ah6o$yyjj$yaml$$Lexer$lex_alias(self, start) {
|
|
2904
2908
|
f4ah6o$yyjj$yaml$$Lexer$advance(self);
|
|
2905
2909
|
const name = f4ah6o$yyjj$yaml$$Lexer$skip_while(self, (c) => f4ah6o$yyjj$yaml$$is_anchor_char(c));
|
|
2906
|
-
return name.length === 0 ? f4ah6o$yyjj$yaml$$Token$new(f4ah6o$yyjj$yaml$$lex_alias$46$constr$47$
|
|
2910
|
+
return name.length === 0 ? f4ah6o$yyjj$yaml$$Token$new(f4ah6o$yyjj$yaml$$lex_alias$46$constr$47$1061, f4ah6o$yyjj$common$$Span$new(start, f4ah6o$yyjj$yaml$$Lexer$current_pos(self))) : f4ah6o$yyjj$yaml$$Token$new(new $64$f4ah6o$47$yyjj$47$yaml$46$TokenKind$Alias(name), f4ah6o$yyjj$common$$Span$new(start, f4ah6o$yyjj$yaml$$Lexer$current_pos(self)));
|
|
2907
2911
|
}
|
|
2908
2912
|
function f4ah6o$yyjj$yaml$$Lexer$lex_anchor(self, start) {
|
|
2909
2913
|
f4ah6o$yyjj$yaml$$Lexer$advance(self);
|
|
2910
2914
|
const name = f4ah6o$yyjj$yaml$$Lexer$skip_while(self, (c) => f4ah6o$yyjj$yaml$$is_anchor_char(c));
|
|
2911
|
-
return name.length === 0 ? f4ah6o$yyjj$yaml$$Token$new(f4ah6o$yyjj$yaml$$lex_anchor$46$constr$47$
|
|
2915
|
+
return name.length === 0 ? f4ah6o$yyjj$yaml$$Token$new(f4ah6o$yyjj$yaml$$lex_anchor$46$constr$47$1066, f4ah6o$yyjj$common$$Span$new(start, f4ah6o$yyjj$yaml$$Lexer$current_pos(self))) : f4ah6o$yyjj$yaml$$Token$new(new $64$f4ah6o$47$yyjj$47$yaml$46$TokenKind$Anchor(name), f4ah6o$yyjj$common$$Span$new(start, f4ah6o$yyjj$yaml$$Lexer$current_pos(self)));
|
|
2912
2916
|
}
|
|
2913
2917
|
function f4ah6o$yyjj$yaml$$Lexer$peek(self) {
|
|
2914
2918
|
if (self.pos >= self.source.length) return -1;
|
|
@@ -2924,7 +2928,7 @@ function f4ah6o$yyjj$yaml$$Lexer$lex_double_quoted(self, start) {
|
|
|
2924
2928
|
const buf = moonbitlang$core$builtin$$StringBuilder$new$46$inner(0);
|
|
2925
2929
|
_L: while (true) {
|
|
2926
2930
|
const _bind = f4ah6o$yyjj$yaml$$Lexer$peek(self);
|
|
2927
|
-
if (_bind === -1) return f4ah6o$yyjj$yaml$$Token$new(f4ah6o$yyjj$yaml$$lex_double_quoted$46$constr$47$
|
|
2931
|
+
if (_bind === -1) return f4ah6o$yyjj$yaml$$Token$new(f4ah6o$yyjj$yaml$$lex_double_quoted$46$constr$47$1072, f4ah6o$yyjj$common$$Span$new(start, f4ah6o$yyjj$yaml$$Lexer$current_pos(self)));
|
|
2928
2932
|
else {
|
|
2929
2933
|
const _x = _bind;
|
|
2930
2934
|
switch (_x) {
|
|
@@ -2934,7 +2938,7 @@ function f4ah6o$yyjj$yaml$$Lexer$lex_double_quoted(self, start) {
|
|
|
2934
2938
|
case 92: {
|
|
2935
2939
|
f4ah6o$yyjj$yaml$$Lexer$advance(self);
|
|
2936
2940
|
const _bind$2 = f4ah6o$yyjj$yaml$$Lexer$peek(self);
|
|
2937
|
-
if (_bind$2 === -1) return f4ah6o$yyjj$yaml$$Token$new(f4ah6o$yyjj$yaml$$lex_double_quoted$46$constr$47$
|
|
2941
|
+
if (_bind$2 === -1) return f4ah6o$yyjj$yaml$$Token$new(f4ah6o$yyjj$yaml$$lex_double_quoted$46$constr$47$1073, f4ah6o$yyjj$common$$Span$new(start, f4ah6o$yyjj$yaml$$Lexer$current_pos(self)));
|
|
2938
2942
|
else {
|
|
2939
2943
|
const _esc = _bind$2;
|
|
2940
2944
|
f4ah6o$yyjj$yaml$$Lexer$advance(self);
|
|
@@ -3011,7 +3015,7 @@ function f4ah6o$yyjj$yaml$$Lexer$lex_folded_block(self, start) {
|
|
|
3011
3015
|
break _L;
|
|
3012
3016
|
}
|
|
3013
3017
|
f4ah6o$yyjj$yaml$$Lexer$advance(self);
|
|
3014
|
-
if (moonbitlang$core$builtin$$Eq$equal$25$(f4ah6o$yyjj$yaml$$Lexer$peek(self), f4ah6o$yyjj$yaml$$lex_folded_block$46$constr$47$
|
|
3018
|
+
if (moonbitlang$core$builtin$$Eq$equal$25$(f4ah6o$yyjj$yaml$$Lexer$peek(self), f4ah6o$yyjj$yaml$$lex_folded_block$46$constr$47$1088)) f4ah6o$yyjj$yaml$$Lexer$advance(self);
|
|
3015
3019
|
}
|
|
3016
3020
|
const block_indent = f4ah6o$yyjj$yaml$$Lexer$current_indent(self) + 2 | 0;
|
|
3017
3021
|
const buf = moonbitlang$core$builtin$$StringBuilder$new$46$inner(0);
|
|
@@ -3057,7 +3061,7 @@ function f4ah6o$yyjj$yaml$$Lexer$lex_folded_block(self, start) {
|
|
|
3057
3061
|
break _L$2;
|
|
3058
3062
|
}
|
|
3059
3063
|
f4ah6o$yyjj$yaml$$Lexer$advance(self);
|
|
3060
|
-
if (moonbitlang$core$builtin$$Eq$equal$25$(f4ah6o$yyjj$yaml$$Lexer$peek(self), f4ah6o$yyjj$yaml$$lex_folded_block$46$constr$47$
|
|
3064
|
+
if (moonbitlang$core$builtin$$Eq$equal$25$(f4ah6o$yyjj$yaml$$Lexer$peek(self), f4ah6o$yyjj$yaml$$lex_folded_block$46$constr$47$1089)) f4ah6o$yyjj$yaml$$Lexer$advance(self);
|
|
3061
3065
|
}
|
|
3062
3066
|
continue;
|
|
3063
3067
|
} else break;
|
|
@@ -3087,7 +3091,7 @@ function f4ah6o$yyjj$yaml$$Lexer$lex_literal_block(self, start) {
|
|
|
3087
3091
|
break _L;
|
|
3088
3092
|
}
|
|
3089
3093
|
f4ah6o$yyjj$yaml$$Lexer$advance(self);
|
|
3090
|
-
if (moonbitlang$core$builtin$$Eq$equal$25$(f4ah6o$yyjj$yaml$$Lexer$peek(self), f4ah6o$yyjj$yaml$$lex_literal_block$46$constr$47$
|
|
3094
|
+
if (moonbitlang$core$builtin$$Eq$equal$25$(f4ah6o$yyjj$yaml$$Lexer$peek(self), f4ah6o$yyjj$yaml$$lex_literal_block$46$constr$47$1118)) f4ah6o$yyjj$yaml$$Lexer$advance(self);
|
|
3091
3095
|
}
|
|
3092
3096
|
const block_indent = f4ah6o$yyjj$yaml$$Lexer$current_indent(self) + 2 | 0;
|
|
3093
3097
|
const buf = moonbitlang$core$builtin$$StringBuilder$new$46$inner(0);
|
|
@@ -3131,7 +3135,7 @@ function f4ah6o$yyjj$yaml$$Lexer$lex_literal_block(self, start) {
|
|
|
3131
3135
|
break _L$2;
|
|
3132
3136
|
}
|
|
3133
3137
|
f4ah6o$yyjj$yaml$$Lexer$advance(self);
|
|
3134
|
-
if (moonbitlang$core$builtin$$Eq$equal$25$(f4ah6o$yyjj$yaml$$Lexer$peek(self), f4ah6o$yyjj$yaml$$lex_literal_block$46$constr$47$
|
|
3138
|
+
if (moonbitlang$core$builtin$$Eq$equal$25$(f4ah6o$yyjj$yaml$$Lexer$peek(self), f4ah6o$yyjj$yaml$$lex_literal_block$46$constr$47$1119)) f4ah6o$yyjj$yaml$$Lexer$advance(self);
|
|
3135
3139
|
}
|
|
3136
3140
|
continue;
|
|
3137
3141
|
} else break;
|
|
@@ -3193,12 +3197,12 @@ function f4ah6o$yyjj$yaml$$Lexer$lex_single_quoted(self, start) {
|
|
|
3193
3197
|
const buf = moonbitlang$core$builtin$$StringBuilder$new$46$inner(0);
|
|
3194
3198
|
while (true) {
|
|
3195
3199
|
const _bind = f4ah6o$yyjj$yaml$$Lexer$peek(self);
|
|
3196
|
-
if (_bind === -1) return f4ah6o$yyjj$yaml$$Token$new(f4ah6o$yyjj$yaml$$lex_single_quoted$46$constr$47$
|
|
3200
|
+
if (_bind === -1) return f4ah6o$yyjj$yaml$$Token$new(f4ah6o$yyjj$yaml$$lex_single_quoted$46$constr$47$1156, f4ah6o$yyjj$common$$Span$new(start, f4ah6o$yyjj$yaml$$Lexer$current_pos(self)));
|
|
3197
3201
|
else {
|
|
3198
3202
|
const _x = _bind;
|
|
3199
3203
|
if (_x === 39) {
|
|
3200
3204
|
f4ah6o$yyjj$yaml$$Lexer$advance(self);
|
|
3201
|
-
if (moonbitlang$core$builtin$$Eq$equal$25$(f4ah6o$yyjj$yaml$$Lexer$peek(self), f4ah6o$yyjj$yaml$$lex_single_quoted$46$constr$47$
|
|
3205
|
+
if (moonbitlang$core$builtin$$Eq$equal$25$(f4ah6o$yyjj$yaml$$Lexer$peek(self), f4ah6o$yyjj$yaml$$lex_single_quoted$46$constr$47$1157)) {
|
|
3202
3206
|
f4ah6o$yyjj$yaml$$Lexer$advance(self);
|
|
3203
3207
|
moonbitlang$core$builtin$$Logger$write_char$0$(buf, 39);
|
|
3204
3208
|
} else break;
|
|
@@ -3239,7 +3243,7 @@ function f4ah6o$yyjj$yaml$$Lexer$next_token(self) {
|
|
|
3239
3243
|
return f4ah6o$yyjj$yaml$$Token$new($64$f4ah6o$47$yyjj$47$yaml$46$TokenKind$Newline, f4ah6o$yyjj$common$$Span$new(start, f4ah6o$yyjj$yaml$$Lexer$current_pos(self)));
|
|
3240
3244
|
case 13:
|
|
3241
3245
|
f4ah6o$yyjj$yaml$$Lexer$advance(self);
|
|
3242
|
-
if (moonbitlang$core$builtin$$Eq$equal$25$(f4ah6o$yyjj$yaml$$Lexer$peek(self), f4ah6o$yyjj$yaml$$next_token$46$constr$47$
|
|
3246
|
+
if (moonbitlang$core$builtin$$Eq$equal$25$(f4ah6o$yyjj$yaml$$Lexer$peek(self), f4ah6o$yyjj$yaml$$next_token$46$constr$47$1168)) f4ah6o$yyjj$yaml$$Lexer$advance(self);
|
|
3243
3247
|
return f4ah6o$yyjj$yaml$$Token$new($64$f4ah6o$47$yyjj$47$yaml$46$TokenKind$Newline, f4ah6o$yyjj$common$$Span$new(start, f4ah6o$yyjj$yaml$$Lexer$current_pos(self)));
|
|
3244
3248
|
case 32: break _L;
|
|
3245
3249
|
case 9: break _L;
|
|
@@ -3250,10 +3254,10 @@ function f4ah6o$yyjj$yaml$$Lexer$next_token(self) {
|
|
|
3250
3254
|
f4ah6o$yyjj$yaml$$Lexer$advance(self);
|
|
3251
3255
|
return f4ah6o$yyjj$yaml$$Token$new($64$f4ah6o$47$yyjj$47$yaml$46$TokenKind$Colon, f4ah6o$yyjj$common$$Span$new(start, f4ah6o$yyjj$yaml$$Lexer$current_pos(self)));
|
|
3252
3256
|
case 45:
|
|
3253
|
-
_L$2: if (moonbitlang$core$builtin$$Eq$equal$25$(f4ah6o$yyjj$yaml$$Lexer$peek_at(self, 1), f4ah6o$yyjj$yaml$$next_token$46$constr$47$
|
|
3254
|
-
else if (moonbitlang$core$builtin$$Eq$equal$25$(f4ah6o$yyjj$yaml$$Lexer$peek_at(self, 1), f4ah6o$yyjj$yaml$$next_token$46$constr$47$
|
|
3257
|
+
_L$2: if (moonbitlang$core$builtin$$Eq$equal$25$(f4ah6o$yyjj$yaml$$Lexer$peek_at(self, 1), f4ah6o$yyjj$yaml$$next_token$46$constr$47$1169)) break _L$2;
|
|
3258
|
+
else if (moonbitlang$core$builtin$$Eq$equal$25$(f4ah6o$yyjj$yaml$$Lexer$peek_at(self, 1), f4ah6o$yyjj$yaml$$next_token$46$constr$47$1170)) break _L$2;
|
|
3255
3259
|
else if (f4ah6o$yyjj$yaml$$Lexer$peek_at(self, 1) === -1) break _L$2;
|
|
3256
|
-
else if (moonbitlang$core$builtin$$Eq$equal$25$(f4ah6o$yyjj$yaml$$Lexer$peek_at(self, 1), f4ah6o$yyjj$yaml$$next_token$46$constr$47$
|
|
3260
|
+
else if (moonbitlang$core$builtin$$Eq$equal$25$(f4ah6o$yyjj$yaml$$Lexer$peek_at(self, 1), f4ah6o$yyjj$yaml$$next_token$46$constr$47$1171) && moonbitlang$core$builtin$$Eq$equal$25$(f4ah6o$yyjj$yaml$$Lexer$peek_at(self, 2), f4ah6o$yyjj$yaml$$next_token$46$constr$47$1172)) {
|
|
3257
3261
|
f4ah6o$yyjj$yaml$$Lexer$advance(self);
|
|
3258
3262
|
f4ah6o$yyjj$yaml$$Lexer$advance(self);
|
|
3259
3263
|
f4ah6o$yyjj$yaml$$Lexer$advance(self);
|
|
@@ -3261,7 +3265,7 @@ function f4ah6o$yyjj$yaml$$Lexer$next_token(self) {
|
|
|
3261
3265
|
} else return f4ah6o$yyjj$yaml$$Lexer$lex_plain_scalar(self, start);
|
|
3262
3266
|
f4ah6o$yyjj$yaml$$Lexer$advance(self);
|
|
3263
3267
|
return f4ah6o$yyjj$yaml$$Token$new($64$f4ah6o$47$yyjj$47$yaml$46$TokenKind$Dash, f4ah6o$yyjj$common$$Span$new(start, f4ah6o$yyjj$yaml$$Lexer$current_pos(self)));
|
|
3264
|
-
case 46: if (moonbitlang$core$builtin$$Eq$equal$25$(f4ah6o$yyjj$yaml$$Lexer$peek_at(self, 1), f4ah6o$yyjj$yaml$$next_token$46$constr$47$
|
|
3268
|
+
case 46: if (moonbitlang$core$builtin$$Eq$equal$25$(f4ah6o$yyjj$yaml$$Lexer$peek_at(self, 1), f4ah6o$yyjj$yaml$$next_token$46$constr$47$1173) && moonbitlang$core$builtin$$Eq$equal$25$(f4ah6o$yyjj$yaml$$Lexer$peek_at(self, 2), f4ah6o$yyjj$yaml$$next_token$46$constr$47$1174)) {
|
|
3265
3269
|
f4ah6o$yyjj$yaml$$Lexer$advance(self);
|
|
3266
3270
|
f4ah6o$yyjj$yaml$$Lexer$advance(self);
|
|
3267
3271
|
f4ah6o$yyjj$yaml$$Lexer$advance(self);
|