@danielx/civet 0.9.0 → 0.9.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/CHANGELOG.md +7 -0
- package/dist/browser.js +302 -221
- package/dist/main.js +302 -221
- package/dist/main.mjs +302 -221
- package/dist/unplugin/unplugin.js +3 -1
- package/dist/unplugin/unplugin.mjs +3 -1
- package/package.json +4 -4
package/dist/main.mjs
CHANGED
|
@@ -60,7 +60,7 @@ var require_machine = __commonJS({
|
|
|
60
60
|
$N: () => $N2,
|
|
61
61
|
$P: () => $P2,
|
|
62
62
|
$Q: () => $Q2,
|
|
63
|
-
$R: () => $
|
|
63
|
+
$R: () => $R104,
|
|
64
64
|
$R$0: () => $R$02,
|
|
65
65
|
$S: () => $S2,
|
|
66
66
|
$T: () => $T2,
|
|
@@ -97,7 +97,7 @@ var require_machine = __commonJS({
|
|
|
97
97
|
return;
|
|
98
98
|
};
|
|
99
99
|
}
|
|
100
|
-
function $
|
|
100
|
+
function $R104(regExp) {
|
|
101
101
|
return function(_ctx, state2) {
|
|
102
102
|
const { input, pos } = state2;
|
|
103
103
|
regExp.lastIndex = state2.pos;
|
|
@@ -1592,10 +1592,7 @@ function needsRef(expression, base = "ref") {
|
|
|
1592
1592
|
return;
|
|
1593
1593
|
}
|
|
1594
1594
|
if (Array.isArray(expression)) {
|
|
1595
|
-
const nonempty = ((s,
|
|
1596
|
-
let step = e > s ? 1 : -1;
|
|
1597
|
-
return Array.from({ length: Math.abs(e - s) }, (_2, i) => s + i * step);
|
|
1598
|
-
})(0, expression.length).filter((i) => !isWhitespaceOrEmpty(expression[i]));
|
|
1595
|
+
const nonempty = ((s) => Array.from({ length: expression.length - s }, (_2, i) => s + i))(0).filter((i) => !isWhitespaceOrEmpty(expression[i]));
|
|
1599
1596
|
if (nonempty.length === 1) {
|
|
1600
1597
|
let ref1;
|
|
1601
1598
|
if (ref1 = needsRef(expression[nonempty[0]], base)) {
|
|
@@ -2907,7 +2904,7 @@ function assignResults(node, collect) {
|
|
|
2907
2904
|
return;
|
|
2908
2905
|
}
|
|
2909
2906
|
case "BlockStatement": {
|
|
2910
|
-
if (
|
|
2907
|
+
if (exp.expressions.some(isExit)) {
|
|
2911
2908
|
return;
|
|
2912
2909
|
}
|
|
2913
2910
|
assignResults(exp.expressions[exp.expressions.length - 1], collect);
|
|
@@ -2943,6 +2940,15 @@ function assignResults(node, collect) {
|
|
|
2943
2940
|
}
|
|
2944
2941
|
return;
|
|
2945
2942
|
}
|
|
2943
|
+
case "PipelineExpression": {
|
|
2944
|
+
const semi2 = exp.children.lastIndexOf(";");
|
|
2945
|
+
if (0 <= semi2 && semi2 < exp.children.length - 1) {
|
|
2946
|
+
exp.children.splice(semi2 + 1, 1 / 0, ...[collect(exp.children.slice(semi2 + 1))]);
|
|
2947
|
+
return;
|
|
2948
|
+
}
|
|
2949
|
+
;
|
|
2950
|
+
break;
|
|
2951
|
+
}
|
|
2946
2952
|
}
|
|
2947
2953
|
if (node[node.length - 1]?.type === "SemicolonDelimiter") {
|
|
2948
2954
|
return;
|
|
@@ -3100,6 +3106,15 @@ function insertReturn(node) {
|
|
|
3100
3106
|
}
|
|
3101
3107
|
return;
|
|
3102
3108
|
}
|
|
3109
|
+
case "PipelineExpression": {
|
|
3110
|
+
const semi2 = exp.children.lastIndexOf(";");
|
|
3111
|
+
if (0 <= semi2 && semi2 < exp.children.length - 1) {
|
|
3112
|
+
exp.children.splice(semi2 + 1, 1 / 0, ...[wrapWithReturn(exp.children.slice(semi2 + 1))]);
|
|
3113
|
+
return;
|
|
3114
|
+
}
|
|
3115
|
+
;
|
|
3116
|
+
break;
|
|
3117
|
+
}
|
|
3103
3118
|
}
|
|
3104
3119
|
if (node[node.length - 1]?.type === "SemicolonDelimiter") {
|
|
3105
3120
|
return;
|
|
@@ -3112,17 +3127,6 @@ function processBreakContinueWith(statement) {
|
|
|
3112
3127
|
statement.block,
|
|
3113
3128
|
($3) => $3.type === "BreakStatement" || $3.type === "ContinueStatement"
|
|
3114
3129
|
)) {
|
|
3115
|
-
let controlName2 = function() {
|
|
3116
|
-
switch (control.type) {
|
|
3117
|
-
case "BreakStatement": {
|
|
3118
|
-
return "break";
|
|
3119
|
-
}
|
|
3120
|
-
case "ContinueStatement": {
|
|
3121
|
-
return "continue";
|
|
3122
|
-
}
|
|
3123
|
-
}
|
|
3124
|
-
};
|
|
3125
|
-
var controlName = controlName2;
|
|
3126
3130
|
if (control.with) {
|
|
3127
3131
|
if (control.label) {
|
|
3128
3132
|
let m2;
|
|
@@ -3151,7 +3155,7 @@ function processBreakContinueWith(statement) {
|
|
|
3151
3155
|
}
|
|
3152
3156
|
const block = control.parent;
|
|
3153
3157
|
if (!(block?.type === "BlockStatement")) {
|
|
3154
|
-
throw new Error(`Expected parent of ${
|
|
3158
|
+
throw new Error(`Expected parent of ${control.type.toLowerCase().replace("statement", "")} to be BlockStatement`);
|
|
3155
3159
|
}
|
|
3156
3160
|
braceBlock(block);
|
|
3157
3161
|
}
|
|
@@ -5472,8 +5476,10 @@ function processPipelineExpressions(statements) {
|
|
|
5472
5476
|
gatherRecursiveAll(statements, (n) => n.type === "PipelineExpression").forEach((s) => {
|
|
5473
5477
|
const [ws, , body] = s.children;
|
|
5474
5478
|
let [, arg] = s.children;
|
|
5475
|
-
let i = 0
|
|
5479
|
+
let i = 0;
|
|
5480
|
+
const l = body.length;
|
|
5476
5481
|
const children = [ws];
|
|
5482
|
+
const comma = blockContainingStatement(s) ? ";" : ",";
|
|
5477
5483
|
let usingRef = null;
|
|
5478
5484
|
for (let i1 = 0, len3 = body.length; i1 < len3; i1++) {
|
|
5479
5485
|
const i2 = i1;
|
|
@@ -5497,7 +5503,7 @@ function processPipelineExpressions(statements) {
|
|
|
5497
5503
|
usingRef = makeRef();
|
|
5498
5504
|
initRef = {
|
|
5499
5505
|
type: "AssignmentExpression",
|
|
5500
|
-
children: [usingRef, " = ", arg,
|
|
5506
|
+
children: [usingRef, " = ", arg, comma]
|
|
5501
5507
|
};
|
|
5502
5508
|
arg = {
|
|
5503
5509
|
type: "MemberExpression",
|
|
@@ -5573,7 +5579,7 @@ function processPipelineExpressions(statements) {
|
|
|
5573
5579
|
}
|
|
5574
5580
|
if (returning) {
|
|
5575
5581
|
arg = returning;
|
|
5576
|
-
children.push(result,
|
|
5582
|
+
children.push(result, comma);
|
|
5577
5583
|
} else {
|
|
5578
5584
|
arg = result;
|
|
5579
5585
|
}
|
|
@@ -5776,7 +5782,8 @@ function forRange(open, forDeclaration, range, stepExp, close) {
|
|
|
5776
5782
|
}
|
|
5777
5783
|
if (start?.type === "Literal" && "Literal" === end?.type) {
|
|
5778
5784
|
asc = literalValue(start) <= literalValue(end);
|
|
5779
|
-
|
|
5785
|
+
let ref4;
|
|
5786
|
+
if ("StringLiteral" === (ref4 = start.subtype) && ref4 === end.subtype) {
|
|
5780
5787
|
const startChar = literalValue(start).charCodeAt(0).toString();
|
|
5781
5788
|
startRef = {
|
|
5782
5789
|
type: "Literal",
|
|
@@ -5832,8 +5839,8 @@ function forRange(open, forDeclaration, range, stepExp, close) {
|
|
|
5832
5839
|
}
|
|
5833
5840
|
function processForInOf($0) {
|
|
5834
5841
|
let [awaits, eachOwn, open, declaration, declaration2, ws, inOf, exp, step, close] = $0;
|
|
5835
|
-
for (let
|
|
5836
|
-
const decl =
|
|
5842
|
+
for (let ref5 = [declaration, declaration2?.[declaration2.length - 1]], i1 = 0, len3 = ref5.length; i1 < len3; i1++) {
|
|
5843
|
+
const decl = ref5[i1];
|
|
5837
5844
|
if (!(decl != null)) {
|
|
5838
5845
|
continue;
|
|
5839
5846
|
}
|
|
@@ -7232,8 +7239,7 @@ function processAssignments(statements) {
|
|
|
7232
7239
|
block = void 0;
|
|
7233
7240
|
}
|
|
7234
7241
|
}
|
|
7235
|
-
|
|
7236
|
-
if ($1.some(($8) => (ref14 = $8)[ref14.length - 1].special)) {
|
|
7242
|
+
if ($1.some(($8) => $8[$8.length - 1].special)) {
|
|
7237
7243
|
if ($1.length !== 1)
|
|
7238
7244
|
throw new Error("Only one assignment with id= is allowed");
|
|
7239
7245
|
const [, lhs, , op] = $1[0];
|
|
@@ -7411,9 +7417,9 @@ function unchainOptionalMemberExpression(exp, ref, innerExp) {
|
|
|
7411
7417
|
}
|
|
7412
7418
|
j++;
|
|
7413
7419
|
}
|
|
7414
|
-
let
|
|
7415
|
-
if (
|
|
7416
|
-
const l =
|
|
7420
|
+
let ref14;
|
|
7421
|
+
if (ref14 = conditions.length) {
|
|
7422
|
+
const l = ref14;
|
|
7417
7423
|
const cs = flatJoin(conditions, " && ");
|
|
7418
7424
|
return {
|
|
7419
7425
|
...exp,
|
|
@@ -7449,8 +7455,8 @@ function attachPostfixStatementAsExpression(exp, post) {
|
|
|
7449
7455
|
}
|
|
7450
7456
|
function processTypes(node) {
|
|
7451
7457
|
const results1 = [];
|
|
7452
|
-
for (let
|
|
7453
|
-
const unary =
|
|
7458
|
+
for (let ref15 = gatherRecursiveAll(node, ($11) => $11.type === "TypeUnary"), i8 = 0, len6 = ref15.length; i8 < len6; i8++) {
|
|
7459
|
+
const unary = ref15[i8];
|
|
7454
7460
|
let suffixIndex = unary.suffix.length - 1;
|
|
7455
7461
|
const results2 = [];
|
|
7456
7462
|
while (suffixIndex >= 0) {
|
|
@@ -7529,12 +7535,12 @@ function processTypes(node) {
|
|
|
7529
7535
|
const outer = unary.suffix.splice(suffixIndex + 1, Infinity);
|
|
7530
7536
|
const space = getTrimmingSpace(unary);
|
|
7531
7537
|
inplaceInsertTrimmingSpace(unary, "");
|
|
7532
|
-
let
|
|
7538
|
+
let ref16;
|
|
7533
7539
|
if (unary.suffix.length)
|
|
7534
|
-
|
|
7540
|
+
ref16 = unary;
|
|
7535
7541
|
else
|
|
7536
|
-
|
|
7537
|
-
const t =
|
|
7542
|
+
ref16 = unary.t;
|
|
7543
|
+
const t = ref16;
|
|
7538
7544
|
const arg = makeNode({
|
|
7539
7545
|
type: "TypeArgument",
|
|
7540
7546
|
ts: true,
|
|
@@ -7579,18 +7585,18 @@ function processTypes(node) {
|
|
|
7579
7585
|
return results1;
|
|
7580
7586
|
}
|
|
7581
7587
|
function processStatementExpressions(statements) {
|
|
7582
|
-
for (let
|
|
7583
|
-
const exp =
|
|
7588
|
+
for (let ref17 = gatherRecursiveAll(statements, ($12) => $12.type === "StatementExpression"), i9 = 0, len7 = ref17.length; i9 < len7; i9++) {
|
|
7589
|
+
const exp = ref17[i9];
|
|
7584
7590
|
const { maybe, statement } = exp;
|
|
7585
7591
|
if ((maybe || statement.type === "ThrowStatement") && blockContainingStatement(exp)) {
|
|
7586
7592
|
replaceNode(exp, statement);
|
|
7587
7593
|
continue;
|
|
7588
7594
|
}
|
|
7589
|
-
let
|
|
7595
|
+
let ref18;
|
|
7590
7596
|
switch (statement.type) {
|
|
7591
7597
|
case "IfStatement": {
|
|
7592
|
-
if (
|
|
7593
|
-
const expression =
|
|
7598
|
+
if (ref18 = expressionizeIfStatement(statement)) {
|
|
7599
|
+
const expression = ref18;
|
|
7594
7600
|
replaceNode(statement, expression, exp);
|
|
7595
7601
|
} else {
|
|
7596
7602
|
replaceNode(statement, wrapIIFE([["", statement]]), exp);
|
|
@@ -7648,13 +7654,13 @@ function processNegativeIndexAccess(statements) {
|
|
|
7648
7654
|
});
|
|
7649
7655
|
}
|
|
7650
7656
|
function processFinallyClauses(statements) {
|
|
7651
|
-
for (let
|
|
7652
|
-
let f =
|
|
7653
|
-
let
|
|
7654
|
-
if (!((
|
|
7657
|
+
for (let ref19 = gatherRecursiveAll(statements, ($) => $.type === "FinallyClause" && $.parent?.type !== "TryStatement"), i10 = 0, len8 = ref19.length; i10 < len8; i10++) {
|
|
7658
|
+
let f = ref19[i10];
|
|
7659
|
+
let ref20;
|
|
7660
|
+
if (!((ref20 = blockContainingStatement(f)) && typeof ref20 === "object" && "block" in ref20 && "index" in ref20)) {
|
|
7655
7661
|
throw new Error("finally clause must be inside try statement or block");
|
|
7656
7662
|
}
|
|
7657
|
-
const { block, index } =
|
|
7663
|
+
const { block, index } = ref20;
|
|
7658
7664
|
const indent = block.expressions[index][0];
|
|
7659
7665
|
const expressions = block.expressions.slice(index + 1);
|
|
7660
7666
|
const t = makeNode({
|
|
@@ -7677,6 +7683,54 @@ function processFinallyClauses(statements) {
|
|
|
7677
7683
|
block.expressions.splice(index, 1 / 0, ...[tuple]);
|
|
7678
7684
|
}
|
|
7679
7685
|
}
|
|
7686
|
+
function processBreaksContinues(statements) {
|
|
7687
|
+
for (const control of gatherRecursive(
|
|
7688
|
+
statements,
|
|
7689
|
+
($) => Boolean(
|
|
7690
|
+
($.type === "BreakStatement" || $.type === "ContinueStatement") && $.label?.special
|
|
7691
|
+
)
|
|
7692
|
+
)) {
|
|
7693
|
+
const label = control.label;
|
|
7694
|
+
const special = label.special;
|
|
7695
|
+
const { ancestor } = findAncestor(
|
|
7696
|
+
control,
|
|
7697
|
+
($) => {
|
|
7698
|
+
return special === "for" ? $.type === "ForStatement" : $.type === "IterationStatement" && $.subtype.startsWith(special);
|
|
7699
|
+
},
|
|
7700
|
+
// in particular, special = "do" matches "do-while" and "do-until"
|
|
7701
|
+
isFunction
|
|
7702
|
+
);
|
|
7703
|
+
if (!(ancestor != null)) {
|
|
7704
|
+
control.children.push({
|
|
7705
|
+
type: "Error",
|
|
7706
|
+
message: `No matching '${special}' iteration found above '${control.type.toLowerCase().replace("statement", "")} ${special}'`
|
|
7707
|
+
});
|
|
7708
|
+
continue;
|
|
7709
|
+
}
|
|
7710
|
+
let { parent } = ancestor;
|
|
7711
|
+
if (!(parent?.type === "LabelledStatement")) {
|
|
7712
|
+
const ref = makeRef(`_${special.replace("-", "_")}`);
|
|
7713
|
+
const label2 = makeNode({
|
|
7714
|
+
type: "Label",
|
|
7715
|
+
name: ref,
|
|
7716
|
+
children: [ref, ":"]
|
|
7717
|
+
});
|
|
7718
|
+
replaceNode(
|
|
7719
|
+
ancestor,
|
|
7720
|
+
makeNode({
|
|
7721
|
+
type: "LabelledStatement",
|
|
7722
|
+
label: label2,
|
|
7723
|
+
statement: ancestor,
|
|
7724
|
+
children: [label2, " ", ancestor]
|
|
7725
|
+
}),
|
|
7726
|
+
parent
|
|
7727
|
+
);
|
|
7728
|
+
parent = ancestor.parent;
|
|
7729
|
+
}
|
|
7730
|
+
label.children.push(label.name = parent.label.name);
|
|
7731
|
+
delete label.special;
|
|
7732
|
+
}
|
|
7733
|
+
}
|
|
7680
7734
|
function processProgram(root) {
|
|
7681
7735
|
const state2 = getState();
|
|
7682
7736
|
const config2 = getConfig();
|
|
@@ -7707,6 +7761,7 @@ function processProgram(root) {
|
|
|
7707
7761
|
processPatternMatching(statements);
|
|
7708
7762
|
processIterationExpressions(statements);
|
|
7709
7763
|
processFinallyClauses(statements);
|
|
7764
|
+
processBreaksContinues(statements);
|
|
7710
7765
|
hoistRefDecs(statements);
|
|
7711
7766
|
processFunctions(statements, config2);
|
|
7712
7767
|
statements.unshift(...state2.prelude);
|
|
@@ -7734,8 +7789,8 @@ async function processProgramAsync(root) {
|
|
|
7734
7789
|
function processRepl(root, rootIIFE) {
|
|
7735
7790
|
const topBlock = gatherRecursive(rootIIFE, ($14) => $14.type === "BlockStatement")[0];
|
|
7736
7791
|
let i = 0;
|
|
7737
|
-
for (let
|
|
7738
|
-
const decl =
|
|
7792
|
+
for (let ref21 = gatherRecursiveWithinFunction(topBlock, ($15) => $15.type === "Declaration"), i11 = 0, len9 = ref21.length; i11 < len9; i11++) {
|
|
7793
|
+
const decl = ref21[i11];
|
|
7739
7794
|
if (!decl.names?.length) {
|
|
7740
7795
|
continue;
|
|
7741
7796
|
}
|
|
@@ -7748,8 +7803,8 @@ function processRepl(root, rootIIFE) {
|
|
|
7748
7803
|
root.expressions.splice(i++, 0, ["", `var ${decl.names.join(",")}`, ";"]);
|
|
7749
7804
|
}
|
|
7750
7805
|
}
|
|
7751
|
-
for (let
|
|
7752
|
-
const func =
|
|
7806
|
+
for (let ref22 = gatherRecursive(topBlock, ($16) => $16.type === "FunctionExpression"), i12 = 0, len10 = ref22.length; i12 < len10; i12++) {
|
|
7807
|
+
const func = ref22[i12];
|
|
7753
7808
|
if (func.name && func.parent?.type === "BlockStatement") {
|
|
7754
7809
|
if (func.parent === topBlock) {
|
|
7755
7810
|
replaceNode(func, void 0);
|
|
@@ -7761,8 +7816,8 @@ function processRepl(root, rootIIFE) {
|
|
|
7761
7816
|
}
|
|
7762
7817
|
}
|
|
7763
7818
|
}
|
|
7764
|
-
for (let
|
|
7765
|
-
const classExp =
|
|
7819
|
+
for (let ref23 = gatherRecursiveWithinFunction(topBlock, ($17) => $17.type === "ClassExpression"), i13 = 0, len11 = ref23.length; i13 < len11; i13++) {
|
|
7820
|
+
const classExp = ref23[i13];
|
|
7766
7821
|
let m8;
|
|
7767
7822
|
if (classExp.name && classExp.parent === topBlock || (m8 = classExp.parent, typeof m8 === "object" && m8 != null && "type" in m8 && m8.type === "ReturnStatement" && "parent" in m8 && m8.parent === topBlock)) {
|
|
7768
7823
|
classExp.children.unshift(classExp.name, "=");
|
|
@@ -7794,8 +7849,8 @@ function populateRefs(statements) {
|
|
|
7794
7849
|
function processPlaceholders(statements) {
|
|
7795
7850
|
const placeholderMap = /* @__PURE__ */ new Map();
|
|
7796
7851
|
const liftedIfs = /* @__PURE__ */ new Set();
|
|
7797
|
-
for (let
|
|
7798
|
-
const exp =
|
|
7852
|
+
for (let ref24 = gatherRecursiveAll(statements, ($19) => $19.type === "Placeholder"), i14 = 0, len12 = ref24.length; i14 < len12; i14++) {
|
|
7853
|
+
const exp = ref24[i14];
|
|
7799
7854
|
let ancestor;
|
|
7800
7855
|
if (exp.subtype === ".") {
|
|
7801
7856
|
({ ancestor } = findAncestor(
|
|
@@ -7907,8 +7962,8 @@ function processPlaceholders(statements) {
|
|
|
7907
7962
|
for (let i15 = 0, len13 = placeholders.length; i15 < len13; i15++) {
|
|
7908
7963
|
const placeholder = placeholders[i15];
|
|
7909
7964
|
typeSuffix ??= placeholder.typeSuffix;
|
|
7910
|
-
let
|
|
7911
|
-
(
|
|
7965
|
+
let ref25;
|
|
7966
|
+
(ref25 = placeholder.children)[ref25.length - 1] = ref;
|
|
7912
7967
|
}
|
|
7913
7968
|
const { parent } = ancestor;
|
|
7914
7969
|
const body = maybeUnwrap(ancestor);
|
|
@@ -7929,16 +7984,16 @@ function processPlaceholders(statements) {
|
|
|
7929
7984
|
}
|
|
7930
7985
|
case "PipelineExpression": {
|
|
7931
7986
|
const i = findChildIndex(parent, ancestor);
|
|
7932
|
-
let
|
|
7987
|
+
let ref26;
|
|
7933
7988
|
if (i === 1) {
|
|
7934
|
-
|
|
7989
|
+
ref26 = ancestor === parent.children[i];
|
|
7935
7990
|
} else if (i === 2) {
|
|
7936
|
-
|
|
7991
|
+
ref26 = ancestor === parent.children[i][findChildIndex(parent.children[i], ancestor)][3];
|
|
7937
7992
|
} else {
|
|
7938
|
-
|
|
7993
|
+
ref26 = void 0;
|
|
7939
7994
|
}
|
|
7940
7995
|
;
|
|
7941
|
-
outer =
|
|
7996
|
+
outer = ref26;
|
|
7942
7997
|
break;
|
|
7943
7998
|
}
|
|
7944
7999
|
case "AssignmentExpression":
|
|
@@ -7953,9 +8008,9 @@ function processPlaceholders(statements) {
|
|
|
7953
8008
|
fnExp = makeLeftHandSideExpression(fnExp);
|
|
7954
8009
|
}
|
|
7955
8010
|
replaceNode(ancestor, fnExp, parent);
|
|
7956
|
-
let
|
|
7957
|
-
if (
|
|
7958
|
-
const ws =
|
|
8011
|
+
let ref27;
|
|
8012
|
+
if (ref27 = getTrimmingSpace(body)) {
|
|
8013
|
+
const ws = ref27;
|
|
7959
8014
|
inplaceInsertTrimmingSpace(body, "");
|
|
7960
8015
|
inplacePrepend(ws, fnExp);
|
|
7961
8016
|
}
|
|
@@ -8000,8 +8055,8 @@ function reorderBindingRestProperty(props) {
|
|
|
8000
8055
|
}
|
|
8001
8056
|
];
|
|
8002
8057
|
}
|
|
8003
|
-
let
|
|
8004
|
-
if (Array.isArray(rest.delim) && (
|
|
8058
|
+
let ref28;
|
|
8059
|
+
if (Array.isArray(rest.delim) && (ref28 = rest.delim)[ref28.length - 1]?.token === ",") {
|
|
8005
8060
|
rest.delim = rest.delim.slice(0, -1);
|
|
8006
8061
|
rest.children = [...rest.children.slice(0, -1), rest.delim];
|
|
8007
8062
|
}
|
|
@@ -9191,77 +9246,78 @@ var $R28 = (0, import_lib2.$R)(new RegExp("!\\^\\^?", "suy"));
|
|
|
9191
9246
|
var $R29 = (0, import_lib2.$R)(new RegExp("(?!\\+\\+|--)[!~+-](?!\\s)", "suy"));
|
|
9192
9247
|
var $R30 = (0, import_lib2.$R)(new RegExp("[:.]", "suy"));
|
|
9193
9248
|
var $R31 = (0, import_lib2.$R)(new RegExp("(?=for|if|loop|unless|until|while)", "suy"));
|
|
9194
|
-
var $R32 = (0, import_lib2.$R)(new RegExp("(
|
|
9195
|
-
var $R33 = (0, import_lib2.$R)(new RegExp(
|
|
9196
|
-
var $R34 = (0, import_lib2.$R)(new RegExp("
|
|
9197
|
-
var $R35 = (0, import_lib2.$R)(new RegExp("(
|
|
9198
|
-
var $R36 = (0, import_lib2.$R)(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)
|
|
9199
|
-
var $R37 = (0, import_lib2.$R)(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)(
|
|
9200
|
-
var $R38 = (0, import_lib2.$R)(new RegExp("(?:\\.[0-9](?:_[0-9]|[0-9])*)", "suy"));
|
|
9201
|
-
var $R39 = (0, import_lib2.$R)(new RegExp("(
|
|
9202
|
-
var $R40 = (0, import_lib2.$R)(new RegExp("
|
|
9203
|
-
var $R41 = (0, import_lib2.$R)(new RegExp("0[
|
|
9204
|
-
var $R42 = (0, import_lib2.$R)(new RegExp("0[
|
|
9205
|
-
var $R43 = (0, import_lib2.$R)(new RegExp("(
|
|
9206
|
-
var $R44 = (0, import_lib2.$R)(new RegExp("(
|
|
9207
|
-
var $R45 = (0, import_lib2.$R)(new RegExp(
|
|
9208
|
-
var $R46 = (0, import_lib2.$R)(new RegExp(
|
|
9209
|
-
var $R47 = (0, import_lib2.$R)(new RegExp(
|
|
9210
|
-
var $R48 = (0, import_lib2.$R)(new RegExp('(?:"(?!"")|\\\\.|[
|
|
9211
|
-
var $R49 = (0, import_lib2.$R)(new RegExp(
|
|
9212
|
-
var $R50 = (0, import_lib2.$R)(new RegExp('(
|
|
9213
|
-
var $R51 = (0, import_lib2.$R)(new RegExp(
|
|
9214
|
-
var $R52 = (0, import_lib2.$R)(new RegExp("(
|
|
9215
|
-
var $R53 = (0, import_lib2.$R)(new RegExp("
|
|
9216
|
-
var $R54 = (0, import_lib2.$R)(new RegExp("
|
|
9217
|
-
var $R55 = (0, import_lib2.$R)(new RegExp("
|
|
9218
|
-
var $R56 = (0, import_lib2.$R)(new RegExp("[
|
|
9219
|
-
var $R57 = (0, import_lib2.$R)(new RegExp("
|
|
9220
|
-
var $R58 = (0, import_lib2.$R)(new RegExp("(
|
|
9221
|
-
var $R59 = (0, import_lib2.$R)(new RegExp("(
|
|
9222
|
-
var $R60 = (0, import_lib2.$R)(new RegExp("(
|
|
9223
|
-
var $R61 = (0, import_lib2.$R)(new RegExp("(?:\\$(?!\\{)
|
|
9224
|
-
var $R62 = (0, import_lib2.$R)(new RegExp("(
|
|
9225
|
-
var $R63 = (0, import_lib2.$R)(new RegExp("(?:
|
|
9226
|
-
var $R64 = (0, import_lib2.$R)(new RegExp("(?:
|
|
9227
|
-
var $R65 = (0, import_lib2.$R)(new RegExp("(?:
|
|
9228
|
-
var $R66 = (0, import_lib2.$R)(new RegExp("(?:
|
|
9229
|
-
var $R67 = (0, import_lib2.$R)(new RegExp("(
|
|
9230
|
-
var $R68 = (0, import_lib2.$R)(new RegExp("
|
|
9231
|
-
var $R69 = (0, import_lib2.$R)(new RegExp("
|
|
9232
|
-
var $R70 = (0, import_lib2.$R)(new RegExp("
|
|
9233
|
-
var $R71 = (0, import_lib2.$R)(new RegExp("[
|
|
9234
|
-
var $R72 = (0, import_lib2.$R)(new RegExp("
|
|
9235
|
-
var $R73 = (0, import_lib2.$R)(new RegExp("
|
|
9236
|
-
var $R74 = (0, import_lib2.$R)(new RegExp("(
|
|
9237
|
-
var $R75 = (0, import_lib2.$R)(new RegExp("(
|
|
9238
|
-
var $R76 = (0, import_lib2.$R)(new RegExp("(
|
|
9239
|
-
var $R77 = (0, import_lib2.$R)(new RegExp("
|
|
9240
|
-
var $R78 = (0, import_lib2.$R)(new RegExp("[
|
|
9241
|
-
var $R79 = (0, import_lib2.$R)(new RegExp("
|
|
9242
|
-
var $R80 = (0, import_lib2.$R)(new RegExp("
|
|
9243
|
-
var $R81 = (0, import_lib2.$R)(new RegExp("(
|
|
9244
|
-
var $R82 = (0, import_lib2.$R)(new RegExp("[
|
|
9245
|
-
var $R83 = (0, import_lib2.$R)(new RegExp("[
|
|
9246
|
-
var $R84 = (0, import_lib2.$R)(new RegExp("
|
|
9247
|
-
var $R85 = (0, import_lib2.$R)(new RegExp(
|
|
9248
|
-
var $R86 = (0, import_lib2.$R)(new RegExp("[
|
|
9249
|
-
var $R87 = (0, import_lib2.$R)(new RegExp("[
|
|
9250
|
-
var $R88 = (0, import_lib2.$R)(new RegExp("
|
|
9251
|
-
var $R89 = (0, import_lib2.$R)(new RegExp("[
|
|
9252
|
-
var $R90 = (0, import_lib2.$R)(new RegExp("[
|
|
9253
|
-
var $R91 = (0, import_lib2.$R)(new RegExp("
|
|
9254
|
-
var $R92 = (0, import_lib2.$R)(new RegExp("
|
|
9255
|
-
var $R93 = (0, import_lib2.$R)(new RegExp("
|
|
9256
|
-
var $R94 = (0, import_lib2.$R)(new RegExp("
|
|
9257
|
-
var $R95 = (0, import_lib2.$R)(new RegExp("
|
|
9258
|
-
var $R96 = (0, import_lib2.$R)(new RegExp("[\\
|
|
9259
|
-
var $R97 = (0, import_lib2.$R)(new RegExp("[\\
|
|
9260
|
-
var $R98 = (0, import_lib2.$R)(new RegExp("
|
|
9261
|
-
var $R99 = (0, import_lib2.$R)(new RegExp("
|
|
9262
|
-
var $R100 = (0, import_lib2.$R)(new RegExp("
|
|
9263
|
-
var $R101 = (0, import_lib2.$R)(new RegExp("\\r\\n
|
|
9264
|
-
var $R102 = (0, import_lib2.$R)(new RegExp("
|
|
9249
|
+
var $R32 = (0, import_lib2.$R)(new RegExp("(?:loop|while|until|for|do)(?!\\p{ID_Continue})", "suy"));
|
|
9250
|
+
var $R33 = (0, import_lib2.$R)(new RegExp("(?=loop|comptime|do|for|until|while)", "suy"));
|
|
9251
|
+
var $R34 = (0, import_lib2.$R)(new RegExp('[^;"\\s=>]+', "suy"));
|
|
9252
|
+
var $R35 = (0, import_lib2.$R)(new RegExp("(?=[0-9.])", "suy"));
|
|
9253
|
+
var $R36 = (0, import_lib2.$R)(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)n", "suy"));
|
|
9254
|
+
var $R37 = (0, import_lib2.$R)(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)(?=\\.(?:\\p{ID_Start}|[_$]))", "suy"));
|
|
9255
|
+
var $R38 = (0, import_lib2.$R)(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)(?:\\.(?:[0-9](?:_[0-9]|[0-9])*))?", "suy"));
|
|
9256
|
+
var $R39 = (0, import_lib2.$R)(new RegExp("(?:\\.[0-9](?:_[0-9]|[0-9])*)", "suy"));
|
|
9257
|
+
var $R40 = (0, import_lib2.$R)(new RegExp("(?:[eE][+-]?[0-9]+(?:_[0-9]|[0-9])*)", "suy"));
|
|
9258
|
+
var $R41 = (0, import_lib2.$R)(new RegExp("0[bB][01](?:[01]|_[01])*n?", "suy"));
|
|
9259
|
+
var $R42 = (0, import_lib2.$R)(new RegExp("0[oO][0-7](?:[0-7]|_[0-7])*n?", "suy"));
|
|
9260
|
+
var $R43 = (0, import_lib2.$R)(new RegExp("0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_[0-9a-fA-F])*n?", "suy"));
|
|
9261
|
+
var $R44 = (0, import_lib2.$R)(new RegExp("(?=[0-9])", "suy"));
|
|
9262
|
+
var $R45 = (0, import_lib2.$R)(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)", "suy"));
|
|
9263
|
+
var $R46 = (0, import_lib2.$R)(new RegExp('(?:\\\\.|[^"])*', "suy"));
|
|
9264
|
+
var $R47 = (0, import_lib2.$R)(new RegExp("(?:\\\\.|[^'])*", "suy"));
|
|
9265
|
+
var $R48 = (0, import_lib2.$R)(new RegExp('(?:"(?!"")|#(?!\\{)|\\\\.|[^#"])+', "suy"));
|
|
9266
|
+
var $R49 = (0, import_lib2.$R)(new RegExp('(?:"(?!"")|\\\\.|[^"])+', "suy"));
|
|
9267
|
+
var $R50 = (0, import_lib2.$R)(new RegExp("(?:'(?!'')|\\\\.|[^'])*", "suy"));
|
|
9268
|
+
var $R51 = (0, import_lib2.$R)(new RegExp('(?:\\\\.|#(?!\\{)|[^"#])+', "suy"));
|
|
9269
|
+
var $R52 = (0, import_lib2.$R)(new RegExp("(?:\\\\.|[^\\]])*", "suy"));
|
|
9270
|
+
var $R53 = (0, import_lib2.$R)(new RegExp("(?:\\\\.)", "suy"));
|
|
9271
|
+
var $R54 = (0, import_lib2.$R)(new RegExp("[\\s]+", "suy"));
|
|
9272
|
+
var $R55 = (0, import_lib2.$R)(new RegExp("\\/(?!\\/\\/)", "suy"));
|
|
9273
|
+
var $R56 = (0, import_lib2.$R)(new RegExp("[^[\\/\\s#$\\\\]+|[#$]", "suy"));
|
|
9274
|
+
var $R57 = (0, import_lib2.$R)(new RegExp("[*\\/\\r\\n]", "suy"));
|
|
9275
|
+
var $R58 = (0, import_lib2.$R)(new RegExp("(?:\\\\.|[^[\\/\\r\\n])+", "suy"));
|
|
9276
|
+
var $R59 = (0, import_lib2.$R)(new RegExp("(?:\\p{ID_Continue}|[\\u200C\\u200D$])*", "suy"));
|
|
9277
|
+
var $R60 = (0, import_lib2.$R)(new RegExp("(?=[`'\"])", "suy"));
|
|
9278
|
+
var $R61 = (0, import_lib2.$R)(new RegExp("(?:\\$(?!\\{)|\\\\.|[^$`])+", "suy"));
|
|
9279
|
+
var $R62 = (0, import_lib2.$R)(new RegExp("(?:\\$(?!\\{)|`(?!``)|\\\\.|[^$`])+", "suy"));
|
|
9280
|
+
var $R63 = (0, import_lib2.$R)(new RegExp("(?:on|off|yes|no)(?!\\p{ID_Continue})", "suy"));
|
|
9281
|
+
var $R64 = (0, import_lib2.$R)(new RegExp("(?:isnt)(?!\\p{ID_Continue})", "suy"));
|
|
9282
|
+
var $R65 = (0, import_lib2.$R)(new RegExp("(?:by)(?!\\p{ID_Continue})", "suy"));
|
|
9283
|
+
var $R66 = (0, import_lib2.$R)(new RegExp("(?:of)(?!\\p{ID_Continue})", "suy"));
|
|
9284
|
+
var $R67 = (0, import_lib2.$R)(new RegExp("(?:and|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|false|finally|for|function|if|import|in|instanceof|interface|is|let|loop|new|not|null|or|private|protected|public|return|static|super|switch|this|throw|true|try|typeof|unless|until|var|void|while|with|yield)(?!\\p{ID_Continue})", "suy"));
|
|
9285
|
+
var $R68 = (0, import_lib2.$R)(new RegExp("(?=\\/|#)", "suy"));
|
|
9286
|
+
var $R69 = (0, import_lib2.$R)(new RegExp("\\/\\/(?!\\/)[^\\r\\n]*", "suy"));
|
|
9287
|
+
var $R70 = (0, import_lib2.$R)(new RegExp(".", "suy"));
|
|
9288
|
+
var $R71 = (0, import_lib2.$R)(new RegExp("#(?!##(?!#))([^\\r\\n]*)", "suy"));
|
|
9289
|
+
var $R72 = (0, import_lib2.$R)(new RegExp("[^]*?###", "suy"));
|
|
9290
|
+
var $R73 = (0, import_lib2.$R)(new RegExp("###(?!#)", "suy"));
|
|
9291
|
+
var $R74 = (0, import_lib2.$R)(new RegExp("\\/\\*(?:(?!\\*\\/)[^\\r\\n])*\\*\\/", "suy"));
|
|
9292
|
+
var $R75 = (0, import_lib2.$R)(new RegExp("(?=[ \\t\\/\\\\])", "suy"));
|
|
9293
|
+
var $R76 = (0, import_lib2.$R)(new RegExp("(?=\\s|\\/|#)", "suy"));
|
|
9294
|
+
var $R77 = (0, import_lib2.$R)(new RegExp("(?!\\p{ID_Continue})", "suy"));
|
|
9295
|
+
var $R78 = (0, import_lib2.$R)(new RegExp("[=:]", "suy"));
|
|
9296
|
+
var $R79 = (0, import_lib2.$R)(new RegExp("['\u2019]s", "suy"));
|
|
9297
|
+
var $R80 = (0, import_lib2.$R)(new RegExp("\\s", "suy"));
|
|
9298
|
+
var $R81 = (0, import_lib2.$R)(new RegExp("(?=[<])", "suy"));
|
|
9299
|
+
var $R82 = (0, import_lib2.$R)(new RegExp("(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$-])*", "suy"));
|
|
9300
|
+
var $R83 = (0, import_lib2.$R)(new RegExp("[!+-]", "suy"));
|
|
9301
|
+
var $R84 = (0, import_lib2.$R)(new RegExp("[\\s>]|\\/>", "suy"));
|
|
9302
|
+
var $R85 = (0, import_lib2.$R)(new RegExp("(?:[\\w\\-:]+|\\([^()]*\\)|\\[[^\\[\\]]*\\])+", "suy"));
|
|
9303
|
+
var $R86 = (0, import_lib2.$R)(new RegExp(`"[^"]*"|'[^']*'`, "suy"));
|
|
9304
|
+
var $R87 = (0, import_lib2.$R)(new RegExp("[<>]", "suy"));
|
|
9305
|
+
var $R88 = (0, import_lib2.$R)(new RegExp("[!~+-](?!\\s|[!~+-]*&)", "suy"));
|
|
9306
|
+
var $R89 = (0, import_lib2.$R)(new RegExp("(?:-[^-]|[^-]*)*", "suy"));
|
|
9307
|
+
var $R90 = (0, import_lib2.$R)(new RegExp("[^{}<>\\r\\n]+", "suy"));
|
|
9308
|
+
var $R91 = (0, import_lib2.$R)(new RegExp("[+-]?", "suy"));
|
|
9309
|
+
var $R92 = (0, import_lib2.$R)(new RegExp("(?=if|unless)", "suy"));
|
|
9310
|
+
var $R93 = (0, import_lib2.$R)(new RegExp("[|&<!=\\-\u21D2\u2192]", "suy"));
|
|
9311
|
+
var $R94 = (0, import_lib2.$R)(new RegExp("(extends|not|is)(?!\\p{ID_Continue}|[\\u200C\\u200D$])", "suy"));
|
|
9312
|
+
var $R95 = (0, import_lib2.$R)(new RegExp("const|in|out", "suy"));
|
|
9313
|
+
var $R96 = (0, import_lib2.$R)(new RegExp("#![^\\r\\n]*", "suy"));
|
|
9314
|
+
var $R97 = (0, import_lib2.$R)(new RegExp("[\\t ]*", "suy"));
|
|
9315
|
+
var $R98 = (0, import_lib2.$R)(new RegExp("[\\s]*", "suy"));
|
|
9316
|
+
var $R99 = (0, import_lib2.$R)(new RegExp("\\s+([+-]?)([a-zA-Z0-9-]+)(\\s*=\\s*([\\p{ID_Continue}.,+-]*))?", "suy"));
|
|
9317
|
+
var $R100 = (0, import_lib2.$R)(new RegExp("\\/\\/\\/[^\\r\\n]*", "suy"));
|
|
9318
|
+
var $R101 = (0, import_lib2.$R)(new RegExp("(?=[ \\t\\r\\n\\/#]|$)", "suy"));
|
|
9319
|
+
var $R102 = (0, import_lib2.$R)(new RegExp("\\r\\n|\\n|\\r|$", "suy"));
|
|
9320
|
+
var $R103 = (0, import_lib2.$R)(new RegExp("[^]*", "suy"));
|
|
9265
9321
|
var Program$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(Reset, Init, (0, import_lib2.$E)(EOS), TopLevelStatements, __), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
|
|
9266
9322
|
var reset = $1;
|
|
9267
9323
|
var init = $2;
|
|
@@ -14449,10 +14505,12 @@ var LabelledStatement$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(Label, Labell
|
|
|
14449
14505
|
function LabelledStatement(ctx, state2) {
|
|
14450
14506
|
return (0, import_lib2.$EVENT)(ctx, state2, "LabelledStatement", LabelledStatement$0);
|
|
14451
14507
|
}
|
|
14452
|
-
var Label$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(Colon,
|
|
14508
|
+
var Label$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(Colon, IdentifierName, Whitespace), function($skip, $loc, $0, $1, $2, $3) {
|
|
14453
14509
|
var colon = $1;
|
|
14454
14510
|
var id = $2;
|
|
14455
14511
|
var w = $3;
|
|
14512
|
+
if (id.name === "void")
|
|
14513
|
+
return $skip;
|
|
14456
14514
|
return {
|
|
14457
14515
|
type: "Label",
|
|
14458
14516
|
name: id.name,
|
|
@@ -14462,12 +14520,34 @@ var Label$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(Colon, Identifier, Whites
|
|
|
14462
14520
|
function Label(ctx, state2) {
|
|
14463
14521
|
return (0, import_lib2.$EVENT)(ctx, state2, "Label", Label$0);
|
|
14464
14522
|
}
|
|
14465
|
-
var LabelIdentifier$0 = (0, import_lib2.$
|
|
14466
|
-
var id =
|
|
14467
|
-
return
|
|
14523
|
+
var LabelIdentifier$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(Colon, IdentifierName), function($skip, $loc, $0, $1, $2) {
|
|
14524
|
+
var id = $2;
|
|
14525
|
+
return {
|
|
14526
|
+
type: "Label",
|
|
14527
|
+
name: id.name,
|
|
14528
|
+
children: [id]
|
|
14529
|
+
};
|
|
14468
14530
|
});
|
|
14531
|
+
var LabelIdentifier$1 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R32, "LabelIdentifier /(?:loop|while|until|for|do)(?!\\p{ID_Continue})/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
14532
|
+
return {
|
|
14533
|
+
type: "Label",
|
|
14534
|
+
special: $0,
|
|
14535
|
+
name: "",
|
|
14536
|
+
// to be filled in
|
|
14537
|
+
children: []
|
|
14538
|
+
};
|
|
14539
|
+
});
|
|
14540
|
+
var LabelIdentifier$2 = (0, import_lib2.$TV)(Identifier, function($skip, $loc, $0, $1) {
|
|
14541
|
+
var id = $0;
|
|
14542
|
+
return {
|
|
14543
|
+
type: "Label",
|
|
14544
|
+
name: id.name,
|
|
14545
|
+
children: [id]
|
|
14546
|
+
};
|
|
14547
|
+
});
|
|
14548
|
+
var LabelIdentifier$$ = [LabelIdentifier$0, LabelIdentifier$1, LabelIdentifier$2];
|
|
14469
14549
|
function LabelIdentifier(ctx, state2) {
|
|
14470
|
-
return (0, import_lib2.$
|
|
14550
|
+
return (0, import_lib2.$EVENT_C)(ctx, state2, "LabelIdentifier", LabelIdentifier$$);
|
|
14471
14551
|
}
|
|
14472
14552
|
var LabelledItem$0 = Statement;
|
|
14473
14553
|
var LabelledItem$1 = FunctionDeclaration;
|
|
@@ -14551,7 +14631,7 @@ var IfClause$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$C)(If
|
|
|
14551
14631
|
function IfClause(ctx, state2) {
|
|
14552
14632
|
return (0, import_lib2.$EVENT)(ctx, state2, "IfClause", IfClause$0);
|
|
14553
14633
|
}
|
|
14554
|
-
var IterationStatement$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
14634
|
+
var IterationStatement$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($R33, "IterationStatement /(?=loop|comptime|do|for|until|while)/"), _IterationStatement), function(value) {
|
|
14555
14635
|
return value[1];
|
|
14556
14636
|
});
|
|
14557
14637
|
function IterationStatement(ctx, state2) {
|
|
@@ -14592,7 +14672,7 @@ var LoopStatement$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(LoopClause, Block
|
|
|
14592
14672
|
var block = $2;
|
|
14593
14673
|
return {
|
|
14594
14674
|
...clause,
|
|
14595
|
-
type: "IterationStatement",
|
|
14675
|
+
//type: "IterationStatement", [from LoopClause]
|
|
14596
14676
|
children: [...clause.children, block],
|
|
14597
14677
|
block
|
|
14598
14678
|
};
|
|
@@ -14615,7 +14695,7 @@ var LoopClause$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(Loop, (0, import_lib
|
|
|
14615
14695
|
};
|
|
14616
14696
|
return {
|
|
14617
14697
|
type: "IterationStatement",
|
|
14618
|
-
subtype:
|
|
14698
|
+
subtype: "loop",
|
|
14619
14699
|
children: [kind, condition],
|
|
14620
14700
|
condition,
|
|
14621
14701
|
generator
|
|
@@ -14632,8 +14712,8 @@ var DoWhileStatement$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(Do, (0, import
|
|
|
14632
14712
|
var clause = $5;
|
|
14633
14713
|
return {
|
|
14634
14714
|
...clause,
|
|
14635
|
-
type: "IterationStatement",
|
|
14636
|
-
subtype:
|
|
14715
|
+
//type: "IterationStatement", [from WhileClause]
|
|
14716
|
+
subtype: `do-${clause.subtype}`,
|
|
14637
14717
|
children: [d, block, ws, clause],
|
|
14638
14718
|
block,
|
|
14639
14719
|
generator
|
|
@@ -14691,13 +14771,14 @@ var WhileClause$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$C)
|
|
|
14691
14771
|
var generator = $2;
|
|
14692
14772
|
var ws = $3;
|
|
14693
14773
|
var condition = $4;
|
|
14774
|
+
const subtype = kind.token;
|
|
14694
14775
|
if (kind.negated) {
|
|
14695
14776
|
kind = { ...kind, token: "while" };
|
|
14696
14777
|
condition = negateCondition(condition);
|
|
14697
14778
|
}
|
|
14698
14779
|
return {
|
|
14699
14780
|
type: "IterationStatement",
|
|
14700
|
-
subtype
|
|
14781
|
+
subtype,
|
|
14701
14782
|
children: [kind, ws, condition],
|
|
14702
14783
|
condition,
|
|
14703
14784
|
generator,
|
|
@@ -16154,7 +16235,7 @@ var UnprocessedModuleSpecifier$$ = [UnprocessedModuleSpecifier$0, UnprocessedMod
|
|
|
16154
16235
|
function UnprocessedModuleSpecifier(ctx, state2) {
|
|
16155
16236
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "UnprocessedModuleSpecifier", UnprocessedModuleSpecifier$$);
|
|
16156
16237
|
}
|
|
16157
|
-
var UnquotedSpecifier$0 = (0, import_lib2.$TV)((0, import_lib2.$EXPECT)($
|
|
16238
|
+
var UnquotedSpecifier$0 = (0, import_lib2.$TV)((0, import_lib2.$EXPECT)($R34, 'UnquotedSpecifier /[^;"\\s=>]+/'), function($skip, $loc, $0, $1) {
|
|
16158
16239
|
var spec = $0;
|
|
16159
16240
|
return { $loc, token: `"${spec}"` };
|
|
16160
16241
|
});
|
|
@@ -16427,7 +16508,7 @@ var VariableDeclarationList$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(Lexical
|
|
|
16427
16508
|
function VariableDeclarationList(ctx, state2) {
|
|
16428
16509
|
return (0, import_lib2.$EVENT)(ctx, state2, "VariableDeclarationList", VariableDeclarationList$0);
|
|
16429
16510
|
}
|
|
16430
|
-
var NumericLiteral$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
16511
|
+
var NumericLiteral$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($R35, "NumericLiteral /(?=[0-9.])/"), NumericLiteralKind), function($skip, $loc, $0, $1, $2) {
|
|
16431
16512
|
var token = $2;
|
|
16432
16513
|
return { type: "NumericLiteral", $loc, token };
|
|
16433
16514
|
});
|
|
@@ -16443,36 +16524,36 @@ var NumericLiteralKind$$ = [NumericLiteralKind$0, NumericLiteralKind$1, NumericL
|
|
|
16443
16524
|
function NumericLiteralKind(ctx, state2) {
|
|
16444
16525
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "NumericLiteralKind", NumericLiteralKind$$);
|
|
16445
16526
|
}
|
|
16446
|
-
var DecimalBigIntegerLiteral$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
16527
|
+
var DecimalBigIntegerLiteral$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R36, "DecimalBigIntegerLiteral /(?:0|[1-9](?:_[0-9]|[0-9])*)n/"));
|
|
16447
16528
|
function DecimalBigIntegerLiteral(ctx, state2) {
|
|
16448
16529
|
return (0, import_lib2.$EVENT)(ctx, state2, "DecimalBigIntegerLiteral", DecimalBigIntegerLiteral$0);
|
|
16449
16530
|
}
|
|
16450
|
-
var DecimalLiteral$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($
|
|
16531
|
+
var DecimalLiteral$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($R37, "DecimalLiteral /(?:0|[1-9](?:_[0-9]|[0-9])*)(?=\\.(?:\\p{ID_Start}|[_$]))/")), (0, import_lib2.$N)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($L7, 'DecimalLiteral "."'), ExponentPart))), function($skip, $loc, $0, $1, $2) {
|
|
16451
16532
|
return $1 + ".";
|
|
16452
16533
|
});
|
|
16453
|
-
var DecimalLiteral$1 = (0, import_lib2.$TEXT)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
16454
|
-
var DecimalLiteral$2 = (0, import_lib2.$TEXT)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
16534
|
+
var DecimalLiteral$1 = (0, import_lib2.$TEXT)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($R38, "DecimalLiteral /(?:0|[1-9](?:_[0-9]|[0-9])*)(?:\\.(?:[0-9](?:_[0-9]|[0-9])*))?/"), (0, import_lib2.$E)(ExponentPart)));
|
|
16535
|
+
var DecimalLiteral$2 = (0, import_lib2.$TEXT)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($R39, "DecimalLiteral /(?:\\.[0-9](?:_[0-9]|[0-9])*)/"), (0, import_lib2.$E)(ExponentPart)));
|
|
16455
16536
|
var DecimalLiteral$$ = [DecimalLiteral$0, DecimalLiteral$1, DecimalLiteral$2];
|
|
16456
16537
|
function DecimalLiteral(ctx, state2) {
|
|
16457
16538
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "DecimalLiteral", DecimalLiteral$$);
|
|
16458
16539
|
}
|
|
16459
|
-
var ExponentPart$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
16540
|
+
var ExponentPart$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R40, "ExponentPart /(?:[eE][+-]?[0-9]+(?:_[0-9]|[0-9])*)/"));
|
|
16460
16541
|
function ExponentPart(ctx, state2) {
|
|
16461
16542
|
return (0, import_lib2.$EVENT)(ctx, state2, "ExponentPart", ExponentPart$0);
|
|
16462
16543
|
}
|
|
16463
|
-
var BinaryIntegerLiteral$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
16544
|
+
var BinaryIntegerLiteral$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R41, "BinaryIntegerLiteral /0[bB][01](?:[01]|_[01])*n?/"));
|
|
16464
16545
|
function BinaryIntegerLiteral(ctx, state2) {
|
|
16465
16546
|
return (0, import_lib2.$EVENT)(ctx, state2, "BinaryIntegerLiteral", BinaryIntegerLiteral$0);
|
|
16466
16547
|
}
|
|
16467
|
-
var OctalIntegerLiteral$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
16548
|
+
var OctalIntegerLiteral$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R42, "OctalIntegerLiteral /0[oO][0-7](?:[0-7]|_[0-7])*n?/"));
|
|
16468
16549
|
function OctalIntegerLiteral(ctx, state2) {
|
|
16469
16550
|
return (0, import_lib2.$EVENT)(ctx, state2, "OctalIntegerLiteral", OctalIntegerLiteral$0);
|
|
16470
16551
|
}
|
|
16471
|
-
var HexIntegerLiteral$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
16552
|
+
var HexIntegerLiteral$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R43, "HexIntegerLiteral /0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_[0-9a-fA-F])*n?/"));
|
|
16472
16553
|
function HexIntegerLiteral(ctx, state2) {
|
|
16473
16554
|
return (0, import_lib2.$EVENT)(ctx, state2, "HexIntegerLiteral", HexIntegerLiteral$0);
|
|
16474
16555
|
}
|
|
16475
|
-
var IntegerLiteral$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
16556
|
+
var IntegerLiteral$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($R44, "IntegerLiteral /(?=[0-9])/"), IntegerLiteralKind), function($skip, $loc, $0, $1, $2) {
|
|
16476
16557
|
var token = $2;
|
|
16477
16558
|
return { $loc, token };
|
|
16478
16559
|
});
|
|
@@ -16488,7 +16569,7 @@ var IntegerLiteralKind$$ = [IntegerLiteralKind$0, IntegerLiteralKind$1, IntegerL
|
|
|
16488
16569
|
function IntegerLiteralKind(ctx, state2) {
|
|
16489
16570
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "IntegerLiteralKind", IntegerLiteralKind$$);
|
|
16490
16571
|
}
|
|
16491
|
-
var DecimalIntegerLiteral$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
16572
|
+
var DecimalIntegerLiteral$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R45, "DecimalIntegerLiteral /(?:0|[1-9](?:_[0-9]|[0-9])*)/"));
|
|
16492
16573
|
function DecimalIntegerLiteral(ctx, state2) {
|
|
16493
16574
|
return (0, import_lib2.$EVENT)(ctx, state2, "DecimalIntegerLiteral", DecimalIntegerLiteral$0);
|
|
16494
16575
|
}
|
|
@@ -16512,13 +16593,13 @@ var StringLiteral$$ = [StringLiteral$0, StringLiteral$1];
|
|
|
16512
16593
|
function StringLiteral(ctx, state2) {
|
|
16513
16594
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "StringLiteral", StringLiteral$$);
|
|
16514
16595
|
}
|
|
16515
|
-
var DoubleStringCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
16596
|
+
var DoubleStringCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R46, 'DoubleStringCharacters /(?:\\\\.|[^"])*/'), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
16516
16597
|
return { $loc, token: $0 };
|
|
16517
16598
|
});
|
|
16518
16599
|
function DoubleStringCharacters(ctx, state2) {
|
|
16519
16600
|
return (0, import_lib2.$EVENT)(ctx, state2, "DoubleStringCharacters", DoubleStringCharacters$0);
|
|
16520
16601
|
}
|
|
16521
|
-
var SingleStringCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
16602
|
+
var SingleStringCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R47, "SingleStringCharacters /(?:\\\\.|[^'])*/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
16522
16603
|
return { $loc, token: $0 };
|
|
16523
16604
|
});
|
|
16524
16605
|
function SingleStringCharacters(ctx, state2) {
|
|
@@ -16534,19 +16615,19 @@ var TripleDoubleStringContents$$ = [TripleDoubleStringContents$0, TripleDoubleSt
|
|
|
16534
16615
|
function TripleDoubleStringContents(ctx, state2) {
|
|
16535
16616
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "TripleDoubleStringContents", TripleDoubleStringContents$$);
|
|
16536
16617
|
}
|
|
16537
|
-
var CoffeeTripleDoubleStringCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
16618
|
+
var CoffeeTripleDoubleStringCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R48, 'CoffeeTripleDoubleStringCharacters /(?:"(?!"")|#(?!\\{)|\\\\.|[^#"])+/'), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
16538
16619
|
return { $loc, token: $0 };
|
|
16539
16620
|
});
|
|
16540
16621
|
function CoffeeTripleDoubleStringCharacters(ctx, state2) {
|
|
16541
16622
|
return (0, import_lib2.$EVENT)(ctx, state2, "CoffeeTripleDoubleStringCharacters", CoffeeTripleDoubleStringCharacters$0);
|
|
16542
16623
|
}
|
|
16543
|
-
var TripleDoubleStringCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
16624
|
+
var TripleDoubleStringCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R49, 'TripleDoubleStringCharacters /(?:"(?!"")|\\\\.|[^"])+/'), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
16544
16625
|
return { $loc, token: $0 };
|
|
16545
16626
|
});
|
|
16546
16627
|
function TripleDoubleStringCharacters(ctx, state2) {
|
|
16547
16628
|
return (0, import_lib2.$EVENT)(ctx, state2, "TripleDoubleStringCharacters", TripleDoubleStringCharacters$0);
|
|
16548
16629
|
}
|
|
16549
|
-
var TripleSingleStringCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
16630
|
+
var TripleSingleStringCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R50, "TripleSingleStringCharacters /(?:'(?!'')|\\\\.|[^'])*/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
16550
16631
|
return { $loc, token: $0 };
|
|
16551
16632
|
});
|
|
16552
16633
|
function TripleSingleStringCharacters(ctx, state2) {
|
|
@@ -16569,7 +16650,7 @@ var CoffeeInterpolatedDoubleQuotedString$0 = (0, import_lib2.$TS)((0, import_lib
|
|
|
16569
16650
|
function CoffeeInterpolatedDoubleQuotedString(ctx, state2) {
|
|
16570
16651
|
return (0, import_lib2.$EVENT)(ctx, state2, "CoffeeInterpolatedDoubleQuotedString", CoffeeInterpolatedDoubleQuotedString$0);
|
|
16571
16652
|
}
|
|
16572
|
-
var CoffeeDoubleQuotedStringCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
16653
|
+
var CoffeeDoubleQuotedStringCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R51, 'CoffeeDoubleQuotedStringCharacters /(?:\\\\.|#(?!\\{)|[^"#])+/'), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
16573
16654
|
return { $loc, token: $0 };
|
|
16574
16655
|
});
|
|
16575
16656
|
function CoffeeDoubleQuotedStringCharacters(ctx, state2) {
|
|
@@ -16589,7 +16670,7 @@ var RegularExpressionClass$0 = (0, import_lib2.$TV)((0, import_lib2.$TEXT)((0, i
|
|
|
16589
16670
|
function RegularExpressionClass(ctx, state2) {
|
|
16590
16671
|
return (0, import_lib2.$EVENT)(ctx, state2, "RegularExpressionClass", RegularExpressionClass$0);
|
|
16591
16672
|
}
|
|
16592
|
-
var RegularExpressionClassCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
16673
|
+
var RegularExpressionClassCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R52, "RegularExpressionClassCharacters /(?:\\\\.|[^\\]])*/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
16593
16674
|
return { $loc, token: $0 };
|
|
16594
16675
|
});
|
|
16595
16676
|
function RegularExpressionClassCharacters(ctx, state2) {
|
|
@@ -16646,7 +16727,7 @@ var HeregexPart$1 = (0, import_lib2.$T)((0, import_lib2.$S)(CoffeeInterpolationE
|
|
|
16646
16727
|
var HeregexPart$2 = (0, import_lib2.$T)((0, import_lib2.$S)(TemplateSubstitution), function(value) {
|
|
16647
16728
|
return { "type": "Substitution", "children": value[0] };
|
|
16648
16729
|
});
|
|
16649
|
-
var HeregexPart$3 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
16730
|
+
var HeregexPart$3 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R53, "HeregexPart /(?:\\\\.)/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
16650
16731
|
let token = $0;
|
|
16651
16732
|
switch ($0[1]) {
|
|
16652
16733
|
case "\n":
|
|
@@ -16664,13 +16745,13 @@ var HeregexPart$3 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R52, "Heregex
|
|
|
16664
16745
|
var HeregexPart$4 = (0, import_lib2.$TS)((0, import_lib2.$S)(HeregexComment), function($skip, $loc, $0, $1) {
|
|
16665
16746
|
return { $loc, token: "" };
|
|
16666
16747
|
});
|
|
16667
|
-
var HeregexPart$5 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
16748
|
+
var HeregexPart$5 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R54, "HeregexPart /[\\s]+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
16668
16749
|
return { $loc, token: "" };
|
|
16669
16750
|
});
|
|
16670
|
-
var HeregexPart$6 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
16751
|
+
var HeregexPart$6 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R55, "HeregexPart /\\/(?!\\/\\/)/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
16671
16752
|
return { $loc, token: "\\/" };
|
|
16672
16753
|
});
|
|
16673
|
-
var HeregexPart$7 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
16754
|
+
var HeregexPart$7 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R56, "HeregexPart /[^[\\/\\s#$\\\\]+|[#$]/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
16674
16755
|
return { $loc, token: $0 };
|
|
16675
16756
|
});
|
|
16676
16757
|
var HeregexPart$$ = [HeregexPart$0, HeregexPart$1, HeregexPart$2, HeregexPart$3, HeregexPart$4, HeregexPart$5, HeregexPart$6, HeregexPart$7];
|
|
@@ -16685,7 +16766,7 @@ var HeregexComment$$ = [HeregexComment$0, HeregexComment$1];
|
|
|
16685
16766
|
function HeregexComment(ctx, state2) {
|
|
16686
16767
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "HeregexComment", HeregexComment$$);
|
|
16687
16768
|
}
|
|
16688
|
-
var RegularExpressionBody$0 = (0, import_lib2.$S)((0, import_lib2.$N)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
16769
|
+
var RegularExpressionBody$0 = (0, import_lib2.$S)((0, import_lib2.$N)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R57, "RegularExpressionBody /[*\\/\\r\\n]/"))), (0, import_lib2.$Q)(RegExpPart));
|
|
16689
16770
|
function RegularExpressionBody(ctx, state2) {
|
|
16690
16771
|
return (0, import_lib2.$EVENT)(ctx, state2, "RegularExpressionBody", RegularExpressionBody$0);
|
|
16691
16772
|
}
|
|
@@ -16695,15 +16776,15 @@ var RegExpPart$$ = [RegExpPart$0, RegExpPart$1];
|
|
|
16695
16776
|
function RegExpPart(ctx, state2) {
|
|
16696
16777
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "RegExpPart", RegExpPart$$);
|
|
16697
16778
|
}
|
|
16698
|
-
var RegExpCharacter$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
16779
|
+
var RegExpCharacter$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R58, "RegExpCharacter /(?:\\\\.|[^[\\/\\r\\n])+/"));
|
|
16699
16780
|
function RegExpCharacter(ctx, state2) {
|
|
16700
16781
|
return (0, import_lib2.$EVENT)(ctx, state2, "RegExpCharacter", RegExpCharacter$0);
|
|
16701
16782
|
}
|
|
16702
|
-
var RegularExpressionFlags$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
16783
|
+
var RegularExpressionFlags$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R59, "RegularExpressionFlags /(?:\\p{ID_Continue}|[\\u200C\\u200D$])*/"));
|
|
16703
16784
|
function RegularExpressionFlags(ctx, state2) {
|
|
16704
16785
|
return (0, import_lib2.$EVENT)(ctx, state2, "RegularExpressionFlags", RegularExpressionFlags$0);
|
|
16705
16786
|
}
|
|
16706
|
-
var TemplateLiteral$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
16787
|
+
var TemplateLiteral$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($R60, "TemplateLiteral /(?=[`'\"])/"), _TemplateLiteral), function(value) {
|
|
16707
16788
|
return value[1];
|
|
16708
16789
|
});
|
|
16709
16790
|
function TemplateLiteral(ctx, state2) {
|
|
@@ -16743,28 +16824,28 @@ var TemplateSubstitution$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(Substituti
|
|
|
16743
16824
|
function TemplateSubstitution(ctx, state2) {
|
|
16744
16825
|
return (0, import_lib2.$EVENT)(ctx, state2, "TemplateSubstitution", TemplateSubstitution$0);
|
|
16745
16826
|
}
|
|
16746
|
-
var TemplateCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
16827
|
+
var TemplateCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R61, "TemplateCharacters /(?:\\$(?!\\{)|\\\\.|[^$`])+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
16747
16828
|
return { $loc, token: $0 };
|
|
16748
16829
|
});
|
|
16749
16830
|
function TemplateCharacters(ctx, state2) {
|
|
16750
16831
|
return (0, import_lib2.$EVENT)(ctx, state2, "TemplateCharacters", TemplateCharacters$0);
|
|
16751
16832
|
}
|
|
16752
|
-
var TemplateBlockCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
16833
|
+
var TemplateBlockCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R62, "TemplateBlockCharacters /(?:\\$(?!\\{)|`(?!``)|\\\\.|[^$`])+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
16753
16834
|
return { $loc, token: $0 };
|
|
16754
16835
|
});
|
|
16755
16836
|
function TemplateBlockCharacters(ctx, state2) {
|
|
16756
16837
|
return (0, import_lib2.$EVENT)(ctx, state2, "TemplateBlockCharacters", TemplateBlockCharacters$0);
|
|
16757
16838
|
}
|
|
16758
|
-
var ReservedWord$0 = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
16759
|
-
var ReservedWord$1 = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
16760
|
-
var ReservedWord$2 = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
16761
|
-
var ReservedWord$3 = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
16762
|
-
var ReservedWord$4 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
16839
|
+
var ReservedWord$0 = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R63, "ReservedWord /(?:on|off|yes|no)(?!\\p{ID_Continue})/")), CoffeeBooleansEnabled);
|
|
16840
|
+
var ReservedWord$1 = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R64, "ReservedWord /(?:isnt)(?!\\p{ID_Continue})/")), CoffeeIsntEnabled);
|
|
16841
|
+
var ReservedWord$2 = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R65, "ReservedWord /(?:by)(?!\\p{ID_Continue})/")), CoffeeForLoopsEnabled);
|
|
16842
|
+
var ReservedWord$3 = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R66, "ReservedWord /(?:of)(?!\\p{ID_Continue})/")), CoffeeOfEnabled);
|
|
16843
|
+
var ReservedWord$4 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R67, "ReservedWord /(?:and|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|false|finally|for|function|if|import|in|instanceof|interface|is|let|loop|new|not|null|or|private|protected|public|return|static|super|switch|this|throw|true|try|typeof|unless|until|var|void|while|with|yield)(?!\\p{ID_Continue})/"));
|
|
16763
16844
|
var ReservedWord$$ = [ReservedWord$0, ReservedWord$1, ReservedWord$2, ReservedWord$3, ReservedWord$4];
|
|
16764
16845
|
function ReservedWord(ctx, state2) {
|
|
16765
16846
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "ReservedWord", ReservedWord$$);
|
|
16766
16847
|
}
|
|
16767
|
-
var Comment$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
16848
|
+
var Comment$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($R68, "Comment /(?=\\/|#)/"), _Comment), function(value) {
|
|
16768
16849
|
return value[1];
|
|
16769
16850
|
});
|
|
16770
16851
|
function Comment(ctx, state2) {
|
|
@@ -16782,7 +16863,7 @@ var SingleLineComment$$ = [SingleLineComment$0, SingleLineComment$1];
|
|
|
16782
16863
|
function SingleLineComment(ctx, state2) {
|
|
16783
16864
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "SingleLineComment", SingleLineComment$$);
|
|
16784
16865
|
}
|
|
16785
|
-
var JSSingleLineComment$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
16866
|
+
var JSSingleLineComment$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R69, "JSSingleLineComment /\\/\\/(?!\\/)[^\\r\\n]*/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
16786
16867
|
return { type: "Comment", $loc, token: $0 };
|
|
16787
16868
|
});
|
|
16788
16869
|
function JSSingleLineComment(ctx, state2) {
|
|
@@ -16794,30 +16875,30 @@ var MultiLineComment$$ = [MultiLineComment$0, MultiLineComment$1];
|
|
|
16794
16875
|
function MultiLineComment(ctx, state2) {
|
|
16795
16876
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "MultiLineComment", MultiLineComment$$);
|
|
16796
16877
|
}
|
|
16797
|
-
var JSMultiLineComment$0 = (0, import_lib2.$TV)((0, import_lib2.$TEXT)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($L138, 'JSMultiLineComment "/*"'), (0, import_lib2.$Q)((0, import_lib2.$S)((0, import_lib2.$N)((0, import_lib2.$EXPECT)($L139, 'JSMultiLineComment "*/"')), (0, import_lib2.$EXPECT)($
|
|
16878
|
+
var JSMultiLineComment$0 = (0, import_lib2.$TV)((0, import_lib2.$TEXT)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($L138, 'JSMultiLineComment "/*"'), (0, import_lib2.$Q)((0, import_lib2.$S)((0, import_lib2.$N)((0, import_lib2.$EXPECT)($L139, 'JSMultiLineComment "*/"')), (0, import_lib2.$EXPECT)($R70, "JSMultiLineComment /./"))), (0, import_lib2.$EXPECT)($L139, 'JSMultiLineComment "*/"'))), function($skip, $loc, $0, $1) {
|
|
16798
16879
|
return { type: "Comment", $loc, token: $1 };
|
|
16799
16880
|
});
|
|
16800
16881
|
function JSMultiLineComment(ctx, state2) {
|
|
16801
16882
|
return (0, import_lib2.$EVENT)(ctx, state2, "JSMultiLineComment", JSMultiLineComment$0);
|
|
16802
16883
|
}
|
|
16803
|
-
var CoffeeSingleLineComment$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
16884
|
+
var CoffeeSingleLineComment$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R71, "CoffeeSingleLineComment /#(?!##(?!#))([^\\r\\n]*)/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
16804
16885
|
return { type: "Comment", $loc, token: `//${$1}` };
|
|
16805
16886
|
});
|
|
16806
16887
|
function CoffeeSingleLineComment(ctx, state2) {
|
|
16807
16888
|
return (0, import_lib2.$EVENT)(ctx, state2, "CoffeeSingleLineComment", CoffeeSingleLineComment$0);
|
|
16808
16889
|
}
|
|
16809
|
-
var CoffeeMultiLineComment$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(CoffeeHereCommentStart, (0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($
|
|
16890
|
+
var CoffeeMultiLineComment$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(CoffeeHereCommentStart, (0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($R72, "CoffeeMultiLineComment /[^]*?###/"))), function($skip, $loc, $0, $1, $2) {
|
|
16810
16891
|
$2 = $2.slice(0, $2.length - 3).replace(/\*\//g, "* /");
|
|
16811
16892
|
return { type: "Comment", $loc, token: `/*${$2}*/` };
|
|
16812
16893
|
});
|
|
16813
16894
|
function CoffeeMultiLineComment(ctx, state2) {
|
|
16814
16895
|
return (0, import_lib2.$EVENT)(ctx, state2, "CoffeeMultiLineComment", CoffeeMultiLineComment$0);
|
|
16815
16896
|
}
|
|
16816
|
-
var CoffeeHereCommentStart$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
16897
|
+
var CoffeeHereCommentStart$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R73, "CoffeeHereCommentStart /###(?!#)/"));
|
|
16817
16898
|
function CoffeeHereCommentStart(ctx, state2) {
|
|
16818
16899
|
return (0, import_lib2.$EVENT)(ctx, state2, "CoffeeHereCommentStart", CoffeeHereCommentStart$0);
|
|
16819
16900
|
}
|
|
16820
|
-
var InlineComment$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
16901
|
+
var InlineComment$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R74, "InlineComment /\\/\\*(?:(?!\\*\\/)[^\\r\\n])*\\*\\//"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
16821
16902
|
return { $loc, token: $0 };
|
|
16822
16903
|
});
|
|
16823
16904
|
function InlineComment(ctx, state2) {
|
|
@@ -16831,7 +16912,7 @@ var TrailingComment$0 = (0, import_lib2.$S)((0, import_lib2.$E)(_), (0, import_l
|
|
|
16831
16912
|
function TrailingComment(ctx, state2) {
|
|
16832
16913
|
return (0, import_lib2.$EVENT)(ctx, state2, "TrailingComment", TrailingComment$0);
|
|
16833
16914
|
}
|
|
16834
|
-
var _$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
16915
|
+
var _$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($R75, "_ /(?=[ \\t\\/\\\\])/"), (0, import_lib2.$P)((0, import_lib2.$C)(NonNewlineWhitespace, InlineComment))), function(value) {
|
|
16835
16916
|
return value[1];
|
|
16836
16917
|
});
|
|
16837
16918
|
function _(ctx, state2) {
|
|
@@ -16854,7 +16935,7 @@ var Trimmed_$0 = (0, import_lib2.$TV)(_, function($skip, $loc, $0, $1) {
|
|
|
16854
16935
|
function Trimmed_(ctx, state2) {
|
|
16855
16936
|
return (0, import_lib2.$EVENT)(ctx, state2, "Trimmed_", Trimmed_$0);
|
|
16856
16937
|
}
|
|
16857
|
-
var __$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
16938
|
+
var __$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($R76, "__ /(?=\\s|\\/|#)/"), (0, import_lib2.$Q)((0, import_lib2.$C)(Whitespace, Comment))), function(value) {
|
|
16858
16939
|
return value[1];
|
|
16859
16940
|
});
|
|
16860
16941
|
var __$1 = (0, import_lib2.$EXPECT)($L0, '__ ""');
|
|
@@ -16862,7 +16943,7 @@ var __$$ = [__$0, __$1];
|
|
|
16862
16943
|
function __(ctx, state2) {
|
|
16863
16944
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "__", __$$);
|
|
16864
16945
|
}
|
|
16865
|
-
var Whitespace$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
16946
|
+
var Whitespace$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R54, "Whitespace /[\\s]+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
16866
16947
|
return { $loc, token: $0 };
|
|
16867
16948
|
});
|
|
16868
16949
|
function Whitespace(ctx, state2) {
|
|
@@ -16904,7 +16985,7 @@ var SemicolonDelimiter$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_l
|
|
|
16904
16985
|
function SemicolonDelimiter(ctx, state2) {
|
|
16905
16986
|
return (0, import_lib2.$EVENT)(ctx, state2, "SemicolonDelimiter", SemicolonDelimiter$0);
|
|
16906
16987
|
}
|
|
16907
|
-
var NonIdContinue$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
16988
|
+
var NonIdContinue$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R77, "NonIdContinue /(?!\\p{ID_Continue})/"));
|
|
16908
16989
|
function NonIdContinue(ctx, state2) {
|
|
16909
16990
|
return (0, import_lib2.$EVENT)(ctx, state2, "NonIdContinue", NonIdContinue$0);
|
|
16910
16991
|
}
|
|
@@ -17022,7 +17103,7 @@ var CoffeeSubstitutionStart$0 = (0, import_lib2.$TV)((0, import_lib2.$EXPECT)($L
|
|
|
17022
17103
|
function CoffeeSubstitutionStart(ctx, state2) {
|
|
17023
17104
|
return (0, import_lib2.$EVENT)(ctx, state2, "CoffeeSubstitutionStart", CoffeeSubstitutionStart$0);
|
|
17024
17105
|
}
|
|
17025
|
-
var Colon$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($L16, 'Colon ":"'), (0, import_lib2.$N)((0, import_lib2.$EXPECT)($
|
|
17106
|
+
var Colon$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($L16, 'Colon ":"'), (0, import_lib2.$N)((0, import_lib2.$EXPECT)($R78, "Colon /[=:]/"))), function($skip, $loc, $0, $1, $2) {
|
|
17026
17107
|
return { $loc, token: $1 };
|
|
17027
17108
|
});
|
|
17028
17109
|
function Colon(ctx, state2) {
|
|
@@ -17073,7 +17154,7 @@ function Do(ctx, state2) {
|
|
|
17073
17154
|
var Dot$0 = (0, import_lib2.$TV)((0, import_lib2.$EXPECT)($L7, 'Dot "."'), function($skip, $loc, $0, $1) {
|
|
17074
17155
|
return { $loc, token: $1 };
|
|
17075
17156
|
});
|
|
17076
|
-
var Dot$1 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
17157
|
+
var Dot$1 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($R79, "Dot /['\u2019]s/"), Trimmed_), function($skip, $loc, $0, $1, $2) {
|
|
17077
17158
|
var ws = $2;
|
|
17078
17159
|
return [
|
|
17079
17160
|
{ $loc, token: "." },
|
|
@@ -17206,7 +17287,7 @@ var If$0 = (0, import_lib2.$TV)((0, import_lib2.$TEXT)((0, import_lib2.$S)((0, i
|
|
|
17206
17287
|
function If(ctx, state2) {
|
|
17207
17288
|
return (0, import_lib2.$EVENT)(ctx, state2, "If", If$0);
|
|
17208
17289
|
}
|
|
17209
|
-
var Import$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($L15, 'Import "import"'), (0, import_lib2.$Y)((0, import_lib2.$EXPECT)($
|
|
17290
|
+
var Import$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($L15, 'Import "import"'), (0, import_lib2.$Y)((0, import_lib2.$EXPECT)($R80, "Import /\\s/"))), function($skip, $loc, $0, $1, $2) {
|
|
17210
17291
|
return { $loc, token: $1 };
|
|
17211
17292
|
});
|
|
17212
17293
|
function Import(ctx, state2) {
|
|
@@ -17564,7 +17645,7 @@ var JSXImplicitFragment$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(JSXTag, (0,
|
|
|
17564
17645
|
function JSXImplicitFragment(ctx, state2) {
|
|
17565
17646
|
return (0, import_lib2.$EVENT)(ctx, state2, "JSXImplicitFragment", JSXImplicitFragment$0);
|
|
17566
17647
|
}
|
|
17567
|
-
var JSXTag$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
17648
|
+
var JSXTag$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($R81, "JSXTag /(?=[<])/"), _JSXTag), function(value) {
|
|
17568
17649
|
return value[1];
|
|
17569
17650
|
});
|
|
17570
17651
|
function JSXTag(ctx, state2) {
|
|
@@ -17711,7 +17792,7 @@ var JSXElementName$$ = [JSXElementName$0, JSXElementName$1];
|
|
|
17711
17792
|
function JSXElementName(ctx, state2) {
|
|
17712
17793
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "JSXElementName", JSXElementName$$);
|
|
17713
17794
|
}
|
|
17714
|
-
var JSXIdentifierName$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
17795
|
+
var JSXIdentifierName$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R82, "JSXIdentifierName /(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$-])*/"));
|
|
17715
17796
|
function JSXIdentifierName(ctx, state2) {
|
|
17716
17797
|
return (0, import_lib2.$EVENT)(ctx, state2, "JSXIdentifierName", JSXIdentifierName$0);
|
|
17717
17798
|
}
|
|
@@ -17893,7 +17974,7 @@ var JSXAttribute$6 = (0, import_lib2.$TS)((0, import_lib2.$S)(Dot, JSXShorthandS
|
|
|
17893
17974
|
class: $2
|
|
17894
17975
|
};
|
|
17895
17976
|
});
|
|
17896
|
-
var JSXAttribute$7 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($
|
|
17977
|
+
var JSXAttribute$7 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($R83, "JSXAttribute /[!+-]/")), JSXAttributeName, (0, import_lib2.$Y)(JSXAttributeSpace)), function($skip, $loc, $0, $1, $2, $3) {
|
|
17897
17978
|
var toggle = $1;
|
|
17898
17979
|
var id = $2;
|
|
17899
17980
|
const value = toggle === "+" ? "true" : "false";
|
|
@@ -17903,11 +17984,11 @@ var JSXAttribute$$ = [JSXAttribute$0, JSXAttribute$1, JSXAttribute$2, JSXAttribu
|
|
|
17903
17984
|
function JSXAttribute(ctx, state2) {
|
|
17904
17985
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "JSXAttribute", JSXAttribute$$);
|
|
17905
17986
|
}
|
|
17906
|
-
var JSXAttributeSpace$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
17987
|
+
var JSXAttributeSpace$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R84, "JSXAttributeSpace /[\\s>]|\\/>/"));
|
|
17907
17988
|
function JSXAttributeSpace(ctx, state2) {
|
|
17908
17989
|
return (0, import_lib2.$EVENT)(ctx, state2, "JSXAttributeSpace", JSXAttributeSpace$0);
|
|
17909
17990
|
}
|
|
17910
|
-
var JSXShorthandString$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
17991
|
+
var JSXShorthandString$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R85, "JSXShorthandString /(?:[\\w\\-:]+|\\([^()]*\\)|\\[[^\\[\\]]*\\])+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
17911
17992
|
return quoteString($0);
|
|
17912
17993
|
});
|
|
17913
17994
|
var JSXShorthandString$1 = (0, import_lib2.$TS)((0, import_lib2.$S)(TemplateLiteral), function($skip, $loc, $0, $1) {
|
|
@@ -17950,7 +18031,7 @@ var JSXAttributeValue$3 = (0, import_lib2.$TS)((0, import_lib2.$S)(InsertInlineO
|
|
|
17950
18031
|
}
|
|
17951
18032
|
return [open, value, close];
|
|
17952
18033
|
});
|
|
17953
|
-
var JSXAttributeValue$4 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
18034
|
+
var JSXAttributeValue$4 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R86, `JSXAttributeValue /"[^"]*"|'[^']*'/`));
|
|
17954
18035
|
var JSXAttributeValue$$ = [JSXAttributeValue$0, JSXAttributeValue$1, JSXAttributeValue$2, JSXAttributeValue$3, JSXAttributeValue$4];
|
|
17955
18036
|
function JSXAttributeValue(ctx, state2) {
|
|
17956
18037
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "JSXAttributeValue", JSXAttributeValue$$);
|
|
@@ -17963,7 +18044,7 @@ var InlineJSXAttributeValue$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(InlineJ
|
|
|
17963
18044
|
function InlineJSXAttributeValue(ctx, state2) {
|
|
17964
18045
|
return (0, import_lib2.$EVENT)(ctx, state2, "InlineJSXAttributeValue", InlineJSXAttributeValue$0);
|
|
17965
18046
|
}
|
|
17966
|
-
var InlineJSXBinaryOpRHS$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$N)((0, import_lib2.$EXPECT)($
|
|
18047
|
+
var InlineJSXBinaryOpRHS$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$N)((0, import_lib2.$EXPECT)($R87, "InlineJSXBinaryOpRHS /[<>]/")), BinaryOp, InlineJSXUnaryExpression), function($skip, $loc, $0, $1, $2, $3) {
|
|
17967
18048
|
var op = $2;
|
|
17968
18049
|
var rhs = $3;
|
|
17969
18050
|
return [[], op, [], rhs];
|
|
@@ -17980,7 +18061,7 @@ var InlineJSXUnaryExpression$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, im
|
|
|
17980
18061
|
function InlineJSXUnaryExpression(ctx, state2) {
|
|
17981
18062
|
return (0, import_lib2.$EVENT)(ctx, state2, "InlineJSXUnaryExpression", InlineJSXUnaryExpression$0);
|
|
17982
18063
|
}
|
|
17983
|
-
var InlineJSXUnaryOp$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
18064
|
+
var InlineJSXUnaryOp$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R88, "InlineJSXUnaryOp /[!~+-](?!\\s|[!~+-]*&)/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
17984
18065
|
return { $loc, token: $0 };
|
|
17985
18066
|
});
|
|
17986
18067
|
function InlineJSXUnaryOp(ctx, state2) {
|
|
@@ -18231,13 +18312,13 @@ var JSXComment$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$EXP
|
|
|
18231
18312
|
function JSXComment(ctx, state2) {
|
|
18232
18313
|
return (0, import_lib2.$EVENT)(ctx, state2, "JSXComment", JSXComment$0);
|
|
18233
18314
|
}
|
|
18234
|
-
var JSXCommentContent$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
18315
|
+
var JSXCommentContent$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R89, "JSXCommentContent /(?:-[^-]|[^-]*)*/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
18235
18316
|
return { $loc, token: $0.replace(/\*\//g, "* /") };
|
|
18236
18317
|
});
|
|
18237
18318
|
function JSXCommentContent(ctx, state2) {
|
|
18238
18319
|
return (0, import_lib2.$EVENT)(ctx, state2, "JSXCommentContent", JSXCommentContent$0);
|
|
18239
18320
|
}
|
|
18240
|
-
var JSXText$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
18321
|
+
var JSXText$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R90, "JSXText /[^{}<>\\r\\n]+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
18241
18322
|
return {
|
|
18242
18323
|
type: "JSXText",
|
|
18243
18324
|
token: $0,
|
|
@@ -18771,7 +18852,7 @@ var TypeProperty$0 = (0, import_lib2.$S)((0, import_lib2.$E)((0, import_lib2.$S)
|
|
|
18771
18852
|
function TypeProperty(ctx, state2) {
|
|
18772
18853
|
return (0, import_lib2.$EVENT)(ctx, state2, "TypeProperty", TypeProperty$0);
|
|
18773
18854
|
}
|
|
18774
|
-
var TypeIndexSignature$0 = (0, import_lib2.$S)((0, import_lib2.$E)((0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
18855
|
+
var TypeIndexSignature$0 = (0, import_lib2.$S)((0, import_lib2.$E)((0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R91, "TypeIndexSignature /[+-]?/")), Readonly, NotDedented)), OpenBracket, TypeIndex, CloseBracket, (0, import_lib2.$E)((0, import_lib2.$S)(__, (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R14, "TypeIndexSignature /[+-]/")), (0, import_lib2.$Y)((0, import_lib2.$S)((0, import_lib2.$E)(_), QuestionMark)))));
|
|
18775
18856
|
function TypeIndexSignature(ctx, state2) {
|
|
18776
18857
|
return (0, import_lib2.$EVENT)(ctx, state2, "TypeIndexSignature", TypeIndexSignature$0);
|
|
18777
18858
|
}
|
|
@@ -19280,7 +19361,7 @@ var TypeWithPostfix$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(TypeConditional
|
|
|
19280
19361
|
function TypeWithPostfix(ctx, state2) {
|
|
19281
19362
|
return (0, import_lib2.$EVENT)(ctx, state2, "TypeWithPostfix", TypeWithPostfix$0);
|
|
19282
19363
|
}
|
|
19283
|
-
var TypeConditional$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$E)(_), (0, import_lib2.$EXPECT)($
|
|
19364
|
+
var TypeConditional$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$E)(_), (0, import_lib2.$EXPECT)($R92, "TypeConditional /(?=if|unless)/"), TypeIfThenElse), function($skip, $loc, $0, $1, $2, $3) {
|
|
19284
19365
|
return prepend($1, expressionizeTypeIf($3));
|
|
19285
19366
|
});
|
|
19286
19367
|
var TypeConditional$1 = (0, import_lib2.$TS)((0, import_lib2.$S)(TypeCondition, NotDedented, QuestionMark, __, Type, __, Colon, __, Type), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
@@ -19514,8 +19595,8 @@ function TypeApplicationStart(ctx, state2) {
|
|
|
19514
19595
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "TypeApplicationStart", TypeApplicationStart$$);
|
|
19515
19596
|
}
|
|
19516
19597
|
var ForbiddenImplicitTypeCalls$0 = ReservedBinary;
|
|
19517
|
-
var ForbiddenImplicitTypeCalls$1 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
19518
|
-
var ForbiddenImplicitTypeCalls$2 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
19598
|
+
var ForbiddenImplicitTypeCalls$1 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R93, "ForbiddenImplicitTypeCalls /[|&<!=\\-\u21D2\u2192]/"));
|
|
19599
|
+
var ForbiddenImplicitTypeCalls$2 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R94, "ForbiddenImplicitTypeCalls /(extends|not|is)(?!\\p{ID_Continue}|[\\u200C\\u200D$])/"));
|
|
19519
19600
|
var ForbiddenImplicitTypeCalls$$ = [ForbiddenImplicitTypeCalls$0, ForbiddenImplicitTypeCalls$1, ForbiddenImplicitTypeCalls$2];
|
|
19520
19601
|
function ForbiddenImplicitTypeCalls(ctx, state2) {
|
|
19521
19602
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "ForbiddenImplicitTypeCalls", ForbiddenImplicitTypeCalls$$);
|
|
@@ -19606,7 +19687,7 @@ var TypeParameters$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(OpenAngleBracket
|
|
|
19606
19687
|
function TypeParameters(ctx, state2) {
|
|
19607
19688
|
return (0, import_lib2.$EVENT)(ctx, state2, "TypeParameters", TypeParameters$0);
|
|
19608
19689
|
}
|
|
19609
|
-
var TypeParameter$0 = (0, import_lib2.$S)(__, (0, import_lib2.$Q)((0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
19690
|
+
var TypeParameter$0 = (0, import_lib2.$S)(__, (0, import_lib2.$Q)((0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R95, "TypeParameter /const|in|out/")), _)), Identifier, (0, import_lib2.$E)(TypeConstraint), (0, import_lib2.$E)(TypeInitializer), TypeParameterDelimiter);
|
|
19610
19691
|
function TypeParameter(ctx, state2) {
|
|
19611
19692
|
return (0, import_lib2.$EVENT)(ctx, state2, "TypeParameter", TypeParameter$0);
|
|
19612
19693
|
}
|
|
@@ -19633,15 +19714,15 @@ var ThisType$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$E)(_),
|
|
|
19633
19714
|
function ThisType(ctx, state2) {
|
|
19634
19715
|
return (0, import_lib2.$EVENT)(ctx, state2, "ThisType", ThisType$0);
|
|
19635
19716
|
}
|
|
19636
|
-
var Shebang$0 = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
19717
|
+
var Shebang$0 = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R96, "Shebang /#![^\\r\\n]*/")), EOL);
|
|
19637
19718
|
function Shebang(ctx, state2) {
|
|
19638
19719
|
return (0, import_lib2.$EVENT)(ctx, state2, "Shebang", Shebang$0);
|
|
19639
19720
|
}
|
|
19640
|
-
var CivetPrologue$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
19721
|
+
var CivetPrologue$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($R97, "CivetPrologue /[\\t ]*/"), DoubleQuote, CivetPrologueContent, DoubleQuote, SimpleStatementDelimiter, (0, import_lib2.$EXPECT)($R22, "CivetPrologue /[ \\t]*/"), (0, import_lib2.$C)(EOL, (0, import_lib2.$Y)(RestOfLine))), function(value) {
|
|
19641
19722
|
var content = value[2];
|
|
19642
19723
|
return content;
|
|
19643
19724
|
});
|
|
19644
|
-
var CivetPrologue$1 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
19725
|
+
var CivetPrologue$1 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($R97, "CivetPrologue /[\\t ]*/"), SingleQuote, CivetPrologueContent, SingleQuote, SimpleStatementDelimiter, (0, import_lib2.$EXPECT)($R22, "CivetPrologue /[ \\t]*/"), (0, import_lib2.$C)(EOL, (0, import_lib2.$Y)(RestOfLine))), function(value) {
|
|
19645
19726
|
var content = value[2];
|
|
19646
19727
|
return content;
|
|
19647
19728
|
});
|
|
@@ -19649,7 +19730,7 @@ var CivetPrologue$$ = [CivetPrologue$0, CivetPrologue$1];
|
|
|
19649
19730
|
function CivetPrologue(ctx, state2) {
|
|
19650
19731
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "CivetPrologue", CivetPrologue$$);
|
|
19651
19732
|
}
|
|
19652
|
-
var CivetPrologueContent$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($L246, 'CivetPrologueContent "civet"'), NonIdContinue, (0, import_lib2.$Q)(CivetOption), (0, import_lib2.$EXPECT)($
|
|
19733
|
+
var CivetPrologueContent$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($L246, 'CivetPrologueContent "civet"'), NonIdContinue, (0, import_lib2.$Q)(CivetOption), (0, import_lib2.$EXPECT)($R98, "CivetPrologueContent /[\\s]*/")), function($skip, $loc, $0, $1, $2, $3, $4) {
|
|
19653
19734
|
var options = $3;
|
|
19654
19735
|
return {
|
|
19655
19736
|
type: "CivetPrologue",
|
|
@@ -19660,7 +19741,7 @@ var CivetPrologueContent$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import
|
|
|
19660
19741
|
function CivetPrologueContent(ctx, state2) {
|
|
19661
19742
|
return (0, import_lib2.$EVENT)(ctx, state2, "CivetPrologueContent", CivetPrologueContent$0);
|
|
19662
19743
|
}
|
|
19663
|
-
var CivetOption$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
19744
|
+
var CivetOption$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R99, "CivetOption /\\s+([+-]?)([a-zA-Z0-9-]+)(\\s*=\\s*([\\p{ID_Continue}.,+-]*))?/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
19664
19745
|
const optionName = $2.replace(/-+([a-z]?)/g, (_2, l) => {
|
|
19665
19746
|
if (l)
|
|
19666
19747
|
return l.toUpperCase();
|
|
@@ -19683,11 +19764,11 @@ var CivetOption$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R98, "CivetOp
|
|
|
19683
19764
|
function CivetOption(ctx, state2) {
|
|
19684
19765
|
return (0, import_lib2.$EVENT)(ctx, state2, "CivetOption", CivetOption$0);
|
|
19685
19766
|
}
|
|
19686
|
-
var UnknownPrologue$0 = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
19767
|
+
var UnknownPrologue$0 = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R97, "UnknownPrologue /[\\t ]*/")), StringLiteral, (0, import_lib2.$TEXT)(SimpleStatementDelimiter), EOS);
|
|
19687
19768
|
function UnknownPrologue(ctx, state2) {
|
|
19688
19769
|
return (0, import_lib2.$EVENT)(ctx, state2, "UnknownPrologue", UnknownPrologue$0);
|
|
19689
19770
|
}
|
|
19690
|
-
var TripleSlashDirective$0 = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
19771
|
+
var TripleSlashDirective$0 = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R100, "TripleSlashDirective /\\/\\/\\/[^\\r\\n]*/")), (0, import_lib2.$E)(EOS));
|
|
19691
19772
|
function TripleSlashDirective(ctx, state2) {
|
|
19692
19773
|
return (0, import_lib2.$EVENT)(ctx, state2, "TripleSlashDirective", TripleSlashDirective$0);
|
|
19693
19774
|
}
|
|
@@ -19703,13 +19784,13 @@ var PrologueString$$ = [PrologueString$0, PrologueString$1];
|
|
|
19703
19784
|
function PrologueString(ctx, state2) {
|
|
19704
19785
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "PrologueString", PrologueString$$);
|
|
19705
19786
|
}
|
|
19706
|
-
var EOS$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
19787
|
+
var EOS$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($R101, "EOS /(?=[ \\t\\r\\n\\/#]|$)/"), (0, import_lib2.$P)(RestOfLine)), function(value) {
|
|
19707
19788
|
return value[1];
|
|
19708
19789
|
});
|
|
19709
19790
|
function EOS(ctx, state2) {
|
|
19710
19791
|
return (0, import_lib2.$EVENT)(ctx, state2, "EOS", EOS$0);
|
|
19711
19792
|
}
|
|
19712
|
-
var EOL$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
19793
|
+
var EOL$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R102, "EOL /\\r\\n|\\n|\\r|$/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
19713
19794
|
return { $loc, token: $0 };
|
|
19714
19795
|
});
|
|
19715
19796
|
function EOL(ctx, state2) {
|
|
@@ -20125,7 +20206,7 @@ var Prologue$0 = (0, import_lib2.$Q)((0, import_lib2.$C)(TripleSlashDirective, (
|
|
|
20125
20206
|
function Prologue(ctx, state2) {
|
|
20126
20207
|
return (0, import_lib2.$EVENT)(ctx, state2, "Prologue", Prologue$0);
|
|
20127
20208
|
}
|
|
20128
|
-
var ProloguePrefix$0 = (0, import_lib2.$S)(Prologue, (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
20209
|
+
var ProloguePrefix$0 = (0, import_lib2.$S)(Prologue, (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R103, "ProloguePrefix /[^]*/")));
|
|
20129
20210
|
function ProloguePrefix(ctx, state2) {
|
|
20130
20211
|
return (0, import_lib2.$EVENT)(ctx, state2, "ProloguePrefix", ProloguePrefix$0);
|
|
20131
20212
|
}
|