@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.js
CHANGED
|
@@ -62,7 +62,7 @@ var require_machine = __commonJS({
|
|
|
62
62
|
$N: () => $N2,
|
|
63
63
|
$P: () => $P2,
|
|
64
64
|
$Q: () => $Q2,
|
|
65
|
-
$R: () => $
|
|
65
|
+
$R: () => $R104,
|
|
66
66
|
$R$0: () => $R$02,
|
|
67
67
|
$S: () => $S2,
|
|
68
68
|
$T: () => $T2,
|
|
@@ -99,7 +99,7 @@ var require_machine = __commonJS({
|
|
|
99
99
|
return;
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
|
-
function $
|
|
102
|
+
function $R104(regExp) {
|
|
103
103
|
return function(_ctx, state2) {
|
|
104
104
|
const { input, pos } = state2;
|
|
105
105
|
regExp.lastIndex = state2.pos;
|
|
@@ -1612,10 +1612,7 @@ function needsRef(expression, base = "ref") {
|
|
|
1612
1612
|
return;
|
|
1613
1613
|
}
|
|
1614
1614
|
if (Array.isArray(expression)) {
|
|
1615
|
-
const nonempty = ((s,
|
|
1616
|
-
let step = e > s ? 1 : -1;
|
|
1617
|
-
return Array.from({ length: Math.abs(e - s) }, (_2, i) => s + i * step);
|
|
1618
|
-
})(0, expression.length).filter((i) => !isWhitespaceOrEmpty(expression[i]));
|
|
1615
|
+
const nonempty = ((s) => Array.from({ length: expression.length - s }, (_2, i) => s + i))(0).filter((i) => !isWhitespaceOrEmpty(expression[i]));
|
|
1619
1616
|
if (nonempty.length === 1) {
|
|
1620
1617
|
let ref1;
|
|
1621
1618
|
if (ref1 = needsRef(expression[nonempty[0]], base)) {
|
|
@@ -2927,7 +2924,7 @@ function assignResults(node, collect) {
|
|
|
2927
2924
|
return;
|
|
2928
2925
|
}
|
|
2929
2926
|
case "BlockStatement": {
|
|
2930
|
-
if (
|
|
2927
|
+
if (exp.expressions.some(isExit)) {
|
|
2931
2928
|
return;
|
|
2932
2929
|
}
|
|
2933
2930
|
assignResults(exp.expressions[exp.expressions.length - 1], collect);
|
|
@@ -2963,6 +2960,15 @@ function assignResults(node, collect) {
|
|
|
2963
2960
|
}
|
|
2964
2961
|
return;
|
|
2965
2962
|
}
|
|
2963
|
+
case "PipelineExpression": {
|
|
2964
|
+
const semi2 = exp.children.lastIndexOf(";");
|
|
2965
|
+
if (0 <= semi2 && semi2 < exp.children.length - 1) {
|
|
2966
|
+
exp.children.splice(semi2 + 1, 1 / 0, ...[collect(exp.children.slice(semi2 + 1))]);
|
|
2967
|
+
return;
|
|
2968
|
+
}
|
|
2969
|
+
;
|
|
2970
|
+
break;
|
|
2971
|
+
}
|
|
2966
2972
|
}
|
|
2967
2973
|
if (node[node.length - 1]?.type === "SemicolonDelimiter") {
|
|
2968
2974
|
return;
|
|
@@ -3120,6 +3126,15 @@ function insertReturn(node) {
|
|
|
3120
3126
|
}
|
|
3121
3127
|
return;
|
|
3122
3128
|
}
|
|
3129
|
+
case "PipelineExpression": {
|
|
3130
|
+
const semi2 = exp.children.lastIndexOf(";");
|
|
3131
|
+
if (0 <= semi2 && semi2 < exp.children.length - 1) {
|
|
3132
|
+
exp.children.splice(semi2 + 1, 1 / 0, ...[wrapWithReturn(exp.children.slice(semi2 + 1))]);
|
|
3133
|
+
return;
|
|
3134
|
+
}
|
|
3135
|
+
;
|
|
3136
|
+
break;
|
|
3137
|
+
}
|
|
3123
3138
|
}
|
|
3124
3139
|
if (node[node.length - 1]?.type === "SemicolonDelimiter") {
|
|
3125
3140
|
return;
|
|
@@ -3132,17 +3147,6 @@ function processBreakContinueWith(statement) {
|
|
|
3132
3147
|
statement.block,
|
|
3133
3148
|
($3) => $3.type === "BreakStatement" || $3.type === "ContinueStatement"
|
|
3134
3149
|
)) {
|
|
3135
|
-
let controlName2 = function() {
|
|
3136
|
-
switch (control.type) {
|
|
3137
|
-
case "BreakStatement": {
|
|
3138
|
-
return "break";
|
|
3139
|
-
}
|
|
3140
|
-
case "ContinueStatement": {
|
|
3141
|
-
return "continue";
|
|
3142
|
-
}
|
|
3143
|
-
}
|
|
3144
|
-
};
|
|
3145
|
-
var controlName = controlName2;
|
|
3146
3150
|
if (control.with) {
|
|
3147
3151
|
if (control.label) {
|
|
3148
3152
|
let m2;
|
|
@@ -3171,7 +3175,7 @@ function processBreakContinueWith(statement) {
|
|
|
3171
3175
|
}
|
|
3172
3176
|
const block = control.parent;
|
|
3173
3177
|
if (!(block?.type === "BlockStatement")) {
|
|
3174
|
-
throw new Error(`Expected parent of ${
|
|
3178
|
+
throw new Error(`Expected parent of ${control.type.toLowerCase().replace("statement", "")} to be BlockStatement`);
|
|
3175
3179
|
}
|
|
3176
3180
|
braceBlock(block);
|
|
3177
3181
|
}
|
|
@@ -5492,8 +5496,10 @@ function processPipelineExpressions(statements) {
|
|
|
5492
5496
|
gatherRecursiveAll(statements, (n) => n.type === "PipelineExpression").forEach((s) => {
|
|
5493
5497
|
const [ws, , body] = s.children;
|
|
5494
5498
|
let [, arg] = s.children;
|
|
5495
|
-
let i = 0
|
|
5499
|
+
let i = 0;
|
|
5500
|
+
const l = body.length;
|
|
5496
5501
|
const children = [ws];
|
|
5502
|
+
const comma = blockContainingStatement(s) ? ";" : ",";
|
|
5497
5503
|
let usingRef = null;
|
|
5498
5504
|
for (let i1 = 0, len3 = body.length; i1 < len3; i1++) {
|
|
5499
5505
|
const i2 = i1;
|
|
@@ -5517,7 +5523,7 @@ function processPipelineExpressions(statements) {
|
|
|
5517
5523
|
usingRef = makeRef();
|
|
5518
5524
|
initRef = {
|
|
5519
5525
|
type: "AssignmentExpression",
|
|
5520
|
-
children: [usingRef, " = ", arg,
|
|
5526
|
+
children: [usingRef, " = ", arg, comma]
|
|
5521
5527
|
};
|
|
5522
5528
|
arg = {
|
|
5523
5529
|
type: "MemberExpression",
|
|
@@ -5593,7 +5599,7 @@ function processPipelineExpressions(statements) {
|
|
|
5593
5599
|
}
|
|
5594
5600
|
if (returning) {
|
|
5595
5601
|
arg = returning;
|
|
5596
|
-
children.push(result,
|
|
5602
|
+
children.push(result, comma);
|
|
5597
5603
|
} else {
|
|
5598
5604
|
arg = result;
|
|
5599
5605
|
}
|
|
@@ -5796,7 +5802,8 @@ function forRange(open, forDeclaration, range, stepExp, close) {
|
|
|
5796
5802
|
}
|
|
5797
5803
|
if (start?.type === "Literal" && "Literal" === end?.type) {
|
|
5798
5804
|
asc = literalValue(start) <= literalValue(end);
|
|
5799
|
-
|
|
5805
|
+
let ref4;
|
|
5806
|
+
if ("StringLiteral" === (ref4 = start.subtype) && ref4 === end.subtype) {
|
|
5800
5807
|
const startChar = literalValue(start).charCodeAt(0).toString();
|
|
5801
5808
|
startRef = {
|
|
5802
5809
|
type: "Literal",
|
|
@@ -5852,8 +5859,8 @@ function forRange(open, forDeclaration, range, stepExp, close) {
|
|
|
5852
5859
|
}
|
|
5853
5860
|
function processForInOf($0) {
|
|
5854
5861
|
let [awaits, eachOwn, open, declaration, declaration2, ws, inOf, exp, step, close] = $0;
|
|
5855
|
-
for (let
|
|
5856
|
-
const decl =
|
|
5862
|
+
for (let ref5 = [declaration, declaration2?.[declaration2.length - 1]], i1 = 0, len3 = ref5.length; i1 < len3; i1++) {
|
|
5863
|
+
const decl = ref5[i1];
|
|
5857
5864
|
if (!(decl != null)) {
|
|
5858
5865
|
continue;
|
|
5859
5866
|
}
|
|
@@ -7252,8 +7259,7 @@ function processAssignments(statements) {
|
|
|
7252
7259
|
block = void 0;
|
|
7253
7260
|
}
|
|
7254
7261
|
}
|
|
7255
|
-
|
|
7256
|
-
if ($1.some(($8) => (ref14 = $8)[ref14.length - 1].special)) {
|
|
7262
|
+
if ($1.some(($8) => $8[$8.length - 1].special)) {
|
|
7257
7263
|
if ($1.length !== 1)
|
|
7258
7264
|
throw new Error("Only one assignment with id= is allowed");
|
|
7259
7265
|
const [, lhs, , op] = $1[0];
|
|
@@ -7431,9 +7437,9 @@ function unchainOptionalMemberExpression(exp, ref, innerExp) {
|
|
|
7431
7437
|
}
|
|
7432
7438
|
j++;
|
|
7433
7439
|
}
|
|
7434
|
-
let
|
|
7435
|
-
if (
|
|
7436
|
-
const l =
|
|
7440
|
+
let ref14;
|
|
7441
|
+
if (ref14 = conditions.length) {
|
|
7442
|
+
const l = ref14;
|
|
7437
7443
|
const cs = flatJoin(conditions, " && ");
|
|
7438
7444
|
return {
|
|
7439
7445
|
...exp,
|
|
@@ -7469,8 +7475,8 @@ function attachPostfixStatementAsExpression(exp, post) {
|
|
|
7469
7475
|
}
|
|
7470
7476
|
function processTypes(node) {
|
|
7471
7477
|
const results1 = [];
|
|
7472
|
-
for (let
|
|
7473
|
-
const unary =
|
|
7478
|
+
for (let ref15 = gatherRecursiveAll(node, ($11) => $11.type === "TypeUnary"), i8 = 0, len6 = ref15.length; i8 < len6; i8++) {
|
|
7479
|
+
const unary = ref15[i8];
|
|
7474
7480
|
let suffixIndex = unary.suffix.length - 1;
|
|
7475
7481
|
const results2 = [];
|
|
7476
7482
|
while (suffixIndex >= 0) {
|
|
@@ -7549,12 +7555,12 @@ function processTypes(node) {
|
|
|
7549
7555
|
const outer = unary.suffix.splice(suffixIndex + 1, Infinity);
|
|
7550
7556
|
const space = getTrimmingSpace(unary);
|
|
7551
7557
|
inplaceInsertTrimmingSpace(unary, "");
|
|
7552
|
-
let
|
|
7558
|
+
let ref16;
|
|
7553
7559
|
if (unary.suffix.length)
|
|
7554
|
-
|
|
7560
|
+
ref16 = unary;
|
|
7555
7561
|
else
|
|
7556
|
-
|
|
7557
|
-
const t =
|
|
7562
|
+
ref16 = unary.t;
|
|
7563
|
+
const t = ref16;
|
|
7558
7564
|
const arg = makeNode({
|
|
7559
7565
|
type: "TypeArgument",
|
|
7560
7566
|
ts: true,
|
|
@@ -7599,18 +7605,18 @@ function processTypes(node) {
|
|
|
7599
7605
|
return results1;
|
|
7600
7606
|
}
|
|
7601
7607
|
function processStatementExpressions(statements) {
|
|
7602
|
-
for (let
|
|
7603
|
-
const exp =
|
|
7608
|
+
for (let ref17 = gatherRecursiveAll(statements, ($12) => $12.type === "StatementExpression"), i9 = 0, len7 = ref17.length; i9 < len7; i9++) {
|
|
7609
|
+
const exp = ref17[i9];
|
|
7604
7610
|
const { maybe, statement } = exp;
|
|
7605
7611
|
if ((maybe || statement.type === "ThrowStatement") && blockContainingStatement(exp)) {
|
|
7606
7612
|
replaceNode(exp, statement);
|
|
7607
7613
|
continue;
|
|
7608
7614
|
}
|
|
7609
|
-
let
|
|
7615
|
+
let ref18;
|
|
7610
7616
|
switch (statement.type) {
|
|
7611
7617
|
case "IfStatement": {
|
|
7612
|
-
if (
|
|
7613
|
-
const expression =
|
|
7618
|
+
if (ref18 = expressionizeIfStatement(statement)) {
|
|
7619
|
+
const expression = ref18;
|
|
7614
7620
|
replaceNode(statement, expression, exp);
|
|
7615
7621
|
} else {
|
|
7616
7622
|
replaceNode(statement, wrapIIFE([["", statement]]), exp);
|
|
@@ -7668,13 +7674,13 @@ function processNegativeIndexAccess(statements) {
|
|
|
7668
7674
|
});
|
|
7669
7675
|
}
|
|
7670
7676
|
function processFinallyClauses(statements) {
|
|
7671
|
-
for (let
|
|
7672
|
-
let f =
|
|
7673
|
-
let
|
|
7674
|
-
if (!((
|
|
7677
|
+
for (let ref19 = gatherRecursiveAll(statements, ($) => $.type === "FinallyClause" && $.parent?.type !== "TryStatement"), i10 = 0, len8 = ref19.length; i10 < len8; i10++) {
|
|
7678
|
+
let f = ref19[i10];
|
|
7679
|
+
let ref20;
|
|
7680
|
+
if (!((ref20 = blockContainingStatement(f)) && typeof ref20 === "object" && "block" in ref20 && "index" in ref20)) {
|
|
7675
7681
|
throw new Error("finally clause must be inside try statement or block");
|
|
7676
7682
|
}
|
|
7677
|
-
const { block, index } =
|
|
7683
|
+
const { block, index } = ref20;
|
|
7678
7684
|
const indent = block.expressions[index][0];
|
|
7679
7685
|
const expressions = block.expressions.slice(index + 1);
|
|
7680
7686
|
const t = makeNode({
|
|
@@ -7697,6 +7703,54 @@ function processFinallyClauses(statements) {
|
|
|
7697
7703
|
block.expressions.splice(index, 1 / 0, ...[tuple]);
|
|
7698
7704
|
}
|
|
7699
7705
|
}
|
|
7706
|
+
function processBreaksContinues(statements) {
|
|
7707
|
+
for (const control of gatherRecursive(
|
|
7708
|
+
statements,
|
|
7709
|
+
($) => Boolean(
|
|
7710
|
+
($.type === "BreakStatement" || $.type === "ContinueStatement") && $.label?.special
|
|
7711
|
+
)
|
|
7712
|
+
)) {
|
|
7713
|
+
const label = control.label;
|
|
7714
|
+
const special = label.special;
|
|
7715
|
+
const { ancestor } = findAncestor(
|
|
7716
|
+
control,
|
|
7717
|
+
($) => {
|
|
7718
|
+
return special === "for" ? $.type === "ForStatement" : $.type === "IterationStatement" && $.subtype.startsWith(special);
|
|
7719
|
+
},
|
|
7720
|
+
// in particular, special = "do" matches "do-while" and "do-until"
|
|
7721
|
+
isFunction
|
|
7722
|
+
);
|
|
7723
|
+
if (!(ancestor != null)) {
|
|
7724
|
+
control.children.push({
|
|
7725
|
+
type: "Error",
|
|
7726
|
+
message: `No matching '${special}' iteration found above '${control.type.toLowerCase().replace("statement", "")} ${special}'`
|
|
7727
|
+
});
|
|
7728
|
+
continue;
|
|
7729
|
+
}
|
|
7730
|
+
let { parent } = ancestor;
|
|
7731
|
+
if (!(parent?.type === "LabelledStatement")) {
|
|
7732
|
+
const ref = makeRef(`_${special.replace("-", "_")}`);
|
|
7733
|
+
const label2 = makeNode({
|
|
7734
|
+
type: "Label",
|
|
7735
|
+
name: ref,
|
|
7736
|
+
children: [ref, ":"]
|
|
7737
|
+
});
|
|
7738
|
+
replaceNode(
|
|
7739
|
+
ancestor,
|
|
7740
|
+
makeNode({
|
|
7741
|
+
type: "LabelledStatement",
|
|
7742
|
+
label: label2,
|
|
7743
|
+
statement: ancestor,
|
|
7744
|
+
children: [label2, " ", ancestor]
|
|
7745
|
+
}),
|
|
7746
|
+
parent
|
|
7747
|
+
);
|
|
7748
|
+
parent = ancestor.parent;
|
|
7749
|
+
}
|
|
7750
|
+
label.children.push(label.name = parent.label.name);
|
|
7751
|
+
delete label.special;
|
|
7752
|
+
}
|
|
7753
|
+
}
|
|
7700
7754
|
function processProgram(root) {
|
|
7701
7755
|
const state2 = getState();
|
|
7702
7756
|
const config2 = getConfig();
|
|
@@ -7727,6 +7781,7 @@ function processProgram(root) {
|
|
|
7727
7781
|
processPatternMatching(statements);
|
|
7728
7782
|
processIterationExpressions(statements);
|
|
7729
7783
|
processFinallyClauses(statements);
|
|
7784
|
+
processBreaksContinues(statements);
|
|
7730
7785
|
hoistRefDecs(statements);
|
|
7731
7786
|
processFunctions(statements, config2);
|
|
7732
7787
|
statements.unshift(...state2.prelude);
|
|
@@ -7754,8 +7809,8 @@ async function processProgramAsync(root) {
|
|
|
7754
7809
|
function processRepl(root, rootIIFE) {
|
|
7755
7810
|
const topBlock = gatherRecursive(rootIIFE, ($14) => $14.type === "BlockStatement")[0];
|
|
7756
7811
|
let i = 0;
|
|
7757
|
-
for (let
|
|
7758
|
-
const decl =
|
|
7812
|
+
for (let ref21 = gatherRecursiveWithinFunction(topBlock, ($15) => $15.type === "Declaration"), i11 = 0, len9 = ref21.length; i11 < len9; i11++) {
|
|
7813
|
+
const decl = ref21[i11];
|
|
7759
7814
|
if (!decl.names?.length) {
|
|
7760
7815
|
continue;
|
|
7761
7816
|
}
|
|
@@ -7768,8 +7823,8 @@ function processRepl(root, rootIIFE) {
|
|
|
7768
7823
|
root.expressions.splice(i++, 0, ["", `var ${decl.names.join(",")}`, ";"]);
|
|
7769
7824
|
}
|
|
7770
7825
|
}
|
|
7771
|
-
for (let
|
|
7772
|
-
const func =
|
|
7826
|
+
for (let ref22 = gatherRecursive(topBlock, ($16) => $16.type === "FunctionExpression"), i12 = 0, len10 = ref22.length; i12 < len10; i12++) {
|
|
7827
|
+
const func = ref22[i12];
|
|
7773
7828
|
if (func.name && func.parent?.type === "BlockStatement") {
|
|
7774
7829
|
if (func.parent === topBlock) {
|
|
7775
7830
|
replaceNode(func, void 0);
|
|
@@ -7781,8 +7836,8 @@ function processRepl(root, rootIIFE) {
|
|
|
7781
7836
|
}
|
|
7782
7837
|
}
|
|
7783
7838
|
}
|
|
7784
|
-
for (let
|
|
7785
|
-
const classExp =
|
|
7839
|
+
for (let ref23 = gatherRecursiveWithinFunction(topBlock, ($17) => $17.type === "ClassExpression"), i13 = 0, len11 = ref23.length; i13 < len11; i13++) {
|
|
7840
|
+
const classExp = ref23[i13];
|
|
7786
7841
|
let m8;
|
|
7787
7842
|
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)) {
|
|
7788
7843
|
classExp.children.unshift(classExp.name, "=");
|
|
@@ -7814,8 +7869,8 @@ function populateRefs(statements) {
|
|
|
7814
7869
|
function processPlaceholders(statements) {
|
|
7815
7870
|
const placeholderMap = /* @__PURE__ */ new Map();
|
|
7816
7871
|
const liftedIfs = /* @__PURE__ */ new Set();
|
|
7817
|
-
for (let
|
|
7818
|
-
const exp =
|
|
7872
|
+
for (let ref24 = gatherRecursiveAll(statements, ($19) => $19.type === "Placeholder"), i14 = 0, len12 = ref24.length; i14 < len12; i14++) {
|
|
7873
|
+
const exp = ref24[i14];
|
|
7819
7874
|
let ancestor;
|
|
7820
7875
|
if (exp.subtype === ".") {
|
|
7821
7876
|
({ ancestor } = findAncestor(
|
|
@@ -7927,8 +7982,8 @@ function processPlaceholders(statements) {
|
|
|
7927
7982
|
for (let i15 = 0, len13 = placeholders.length; i15 < len13; i15++) {
|
|
7928
7983
|
const placeholder = placeholders[i15];
|
|
7929
7984
|
typeSuffix ??= placeholder.typeSuffix;
|
|
7930
|
-
let
|
|
7931
|
-
(
|
|
7985
|
+
let ref25;
|
|
7986
|
+
(ref25 = placeholder.children)[ref25.length - 1] = ref;
|
|
7932
7987
|
}
|
|
7933
7988
|
const { parent } = ancestor;
|
|
7934
7989
|
const body = maybeUnwrap(ancestor);
|
|
@@ -7949,16 +8004,16 @@ function processPlaceholders(statements) {
|
|
|
7949
8004
|
}
|
|
7950
8005
|
case "PipelineExpression": {
|
|
7951
8006
|
const i = findChildIndex(parent, ancestor);
|
|
7952
|
-
let
|
|
8007
|
+
let ref26;
|
|
7953
8008
|
if (i === 1) {
|
|
7954
|
-
|
|
8009
|
+
ref26 = ancestor === parent.children[i];
|
|
7955
8010
|
} else if (i === 2) {
|
|
7956
|
-
|
|
8011
|
+
ref26 = ancestor === parent.children[i][findChildIndex(parent.children[i], ancestor)][3];
|
|
7957
8012
|
} else {
|
|
7958
|
-
|
|
8013
|
+
ref26 = void 0;
|
|
7959
8014
|
}
|
|
7960
8015
|
;
|
|
7961
|
-
outer =
|
|
8016
|
+
outer = ref26;
|
|
7962
8017
|
break;
|
|
7963
8018
|
}
|
|
7964
8019
|
case "AssignmentExpression":
|
|
@@ -7973,9 +8028,9 @@ function processPlaceholders(statements) {
|
|
|
7973
8028
|
fnExp = makeLeftHandSideExpression(fnExp);
|
|
7974
8029
|
}
|
|
7975
8030
|
replaceNode(ancestor, fnExp, parent);
|
|
7976
|
-
let
|
|
7977
|
-
if (
|
|
7978
|
-
const ws =
|
|
8031
|
+
let ref27;
|
|
8032
|
+
if (ref27 = getTrimmingSpace(body)) {
|
|
8033
|
+
const ws = ref27;
|
|
7979
8034
|
inplaceInsertTrimmingSpace(body, "");
|
|
7980
8035
|
inplacePrepend(ws, fnExp);
|
|
7981
8036
|
}
|
|
@@ -8020,8 +8075,8 @@ function reorderBindingRestProperty(props) {
|
|
|
8020
8075
|
}
|
|
8021
8076
|
];
|
|
8022
8077
|
}
|
|
8023
|
-
let
|
|
8024
|
-
if (Array.isArray(rest.delim) && (
|
|
8078
|
+
let ref28;
|
|
8079
|
+
if (Array.isArray(rest.delim) && (ref28 = rest.delim)[ref28.length - 1]?.token === ",") {
|
|
8025
8080
|
rest.delim = rest.delim.slice(0, -1);
|
|
8026
8081
|
rest.children = [...rest.children.slice(0, -1), rest.delim];
|
|
8027
8082
|
}
|
|
@@ -9211,77 +9266,78 @@ var $R28 = (0, import_lib2.$R)(new RegExp("!\\^\\^?", "suy"));
|
|
|
9211
9266
|
var $R29 = (0, import_lib2.$R)(new RegExp("(?!\\+\\+|--)[!~+-](?!\\s)", "suy"));
|
|
9212
9267
|
var $R30 = (0, import_lib2.$R)(new RegExp("[:.]", "suy"));
|
|
9213
9268
|
var $R31 = (0, import_lib2.$R)(new RegExp("(?=for|if|loop|unless|until|while)", "suy"));
|
|
9214
|
-
var $R32 = (0, import_lib2.$R)(new RegExp("(
|
|
9215
|
-
var $R33 = (0, import_lib2.$R)(new RegExp(
|
|
9216
|
-
var $R34 = (0, import_lib2.$R)(new RegExp("
|
|
9217
|
-
var $R35 = (0, import_lib2.$R)(new RegExp("(
|
|
9218
|
-
var $R36 = (0, import_lib2.$R)(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)
|
|
9219
|
-
var $R37 = (0, import_lib2.$R)(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)(
|
|
9220
|
-
var $R38 = (0, import_lib2.$R)(new RegExp("(?:\\.[0-9](?:_[0-9]|[0-9])*)", "suy"));
|
|
9221
|
-
var $R39 = (0, import_lib2.$R)(new RegExp("(
|
|
9222
|
-
var $R40 = (0, import_lib2.$R)(new RegExp("
|
|
9223
|
-
var $R41 = (0, import_lib2.$R)(new RegExp("0[
|
|
9224
|
-
var $R42 = (0, import_lib2.$R)(new RegExp("0[
|
|
9225
|
-
var $R43 = (0, import_lib2.$R)(new RegExp("(
|
|
9226
|
-
var $R44 = (0, import_lib2.$R)(new RegExp("(
|
|
9227
|
-
var $R45 = (0, import_lib2.$R)(new RegExp(
|
|
9228
|
-
var $R46 = (0, import_lib2.$R)(new RegExp(
|
|
9229
|
-
var $R47 = (0, import_lib2.$R)(new RegExp(
|
|
9230
|
-
var $R48 = (0, import_lib2.$R)(new RegExp('(?:"(?!"")|\\\\.|[
|
|
9231
|
-
var $R49 = (0, import_lib2.$R)(new RegExp(
|
|
9232
|
-
var $R50 = (0, import_lib2.$R)(new RegExp('(
|
|
9233
|
-
var $R51 = (0, import_lib2.$R)(new RegExp(
|
|
9234
|
-
var $R52 = (0, import_lib2.$R)(new RegExp("(
|
|
9235
|
-
var $R53 = (0, import_lib2.$R)(new RegExp("
|
|
9236
|
-
var $R54 = (0, import_lib2.$R)(new RegExp("
|
|
9237
|
-
var $R55 = (0, import_lib2.$R)(new RegExp("
|
|
9238
|
-
var $R56 = (0, import_lib2.$R)(new RegExp("[
|
|
9239
|
-
var $R57 = (0, import_lib2.$R)(new RegExp("
|
|
9240
|
-
var $R58 = (0, import_lib2.$R)(new RegExp("(
|
|
9241
|
-
var $R59 = (0, import_lib2.$R)(new RegExp("(
|
|
9242
|
-
var $R60 = (0, import_lib2.$R)(new RegExp("(
|
|
9243
|
-
var $R61 = (0, import_lib2.$R)(new RegExp("(?:\\$(?!\\{)
|
|
9244
|
-
var $R62 = (0, import_lib2.$R)(new RegExp("(
|
|
9245
|
-
var $R63 = (0, import_lib2.$R)(new RegExp("(?:
|
|
9246
|
-
var $R64 = (0, import_lib2.$R)(new RegExp("(?:
|
|
9247
|
-
var $R65 = (0, import_lib2.$R)(new RegExp("(?:
|
|
9248
|
-
var $R66 = (0, import_lib2.$R)(new RegExp("(?:
|
|
9249
|
-
var $R67 = (0, import_lib2.$R)(new RegExp("(
|
|
9250
|
-
var $R68 = (0, import_lib2.$R)(new RegExp("
|
|
9251
|
-
var $R69 = (0, import_lib2.$R)(new RegExp("
|
|
9252
|
-
var $R70 = (0, import_lib2.$R)(new RegExp("
|
|
9253
|
-
var $R71 = (0, import_lib2.$R)(new RegExp("[
|
|
9254
|
-
var $R72 = (0, import_lib2.$R)(new RegExp("
|
|
9255
|
-
var $R73 = (0, import_lib2.$R)(new RegExp("
|
|
9256
|
-
var $R74 = (0, import_lib2.$R)(new RegExp("(
|
|
9257
|
-
var $R75 = (0, import_lib2.$R)(new RegExp("(
|
|
9258
|
-
var $R76 = (0, import_lib2.$R)(new RegExp("(
|
|
9259
|
-
var $R77 = (0, import_lib2.$R)(new RegExp("
|
|
9260
|
-
var $R78 = (0, import_lib2.$R)(new RegExp("[
|
|
9261
|
-
var $R79 = (0, import_lib2.$R)(new RegExp("
|
|
9262
|
-
var $R80 = (0, import_lib2.$R)(new RegExp("
|
|
9263
|
-
var $R81 = (0, import_lib2.$R)(new RegExp("(
|
|
9264
|
-
var $R82 = (0, import_lib2.$R)(new RegExp("[
|
|
9265
|
-
var $R83 = (0, import_lib2.$R)(new RegExp("[
|
|
9266
|
-
var $R84 = (0, import_lib2.$R)(new RegExp("
|
|
9267
|
-
var $R85 = (0, import_lib2.$R)(new RegExp(
|
|
9268
|
-
var $R86 = (0, import_lib2.$R)(new RegExp("[
|
|
9269
|
-
var $R87 = (0, import_lib2.$R)(new RegExp("[
|
|
9270
|
-
var $R88 = (0, import_lib2.$R)(new RegExp("
|
|
9271
|
-
var $R89 = (0, import_lib2.$R)(new RegExp("[
|
|
9272
|
-
var $R90 = (0, import_lib2.$R)(new RegExp("[
|
|
9273
|
-
var $R91 = (0, import_lib2.$R)(new RegExp("
|
|
9274
|
-
var $R92 = (0, import_lib2.$R)(new RegExp("
|
|
9275
|
-
var $R93 = (0, import_lib2.$R)(new RegExp("
|
|
9276
|
-
var $R94 = (0, import_lib2.$R)(new RegExp("
|
|
9277
|
-
var $R95 = (0, import_lib2.$R)(new RegExp("
|
|
9278
|
-
var $R96 = (0, import_lib2.$R)(new RegExp("[\\
|
|
9279
|
-
var $R97 = (0, import_lib2.$R)(new RegExp("[\\
|
|
9280
|
-
var $R98 = (0, import_lib2.$R)(new RegExp("
|
|
9281
|
-
var $R99 = (0, import_lib2.$R)(new RegExp("
|
|
9282
|
-
var $R100 = (0, import_lib2.$R)(new RegExp("
|
|
9283
|
-
var $R101 = (0, import_lib2.$R)(new RegExp("\\r\\n
|
|
9284
|
-
var $R102 = (0, import_lib2.$R)(new RegExp("
|
|
9269
|
+
var $R32 = (0, import_lib2.$R)(new RegExp("(?:loop|while|until|for|do)(?!\\p{ID_Continue})", "suy"));
|
|
9270
|
+
var $R33 = (0, import_lib2.$R)(new RegExp("(?=loop|comptime|do|for|until|while)", "suy"));
|
|
9271
|
+
var $R34 = (0, import_lib2.$R)(new RegExp('[^;"\\s=>]+', "suy"));
|
|
9272
|
+
var $R35 = (0, import_lib2.$R)(new RegExp("(?=[0-9.])", "suy"));
|
|
9273
|
+
var $R36 = (0, import_lib2.$R)(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)n", "suy"));
|
|
9274
|
+
var $R37 = (0, import_lib2.$R)(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)(?=\\.(?:\\p{ID_Start}|[_$]))", "suy"));
|
|
9275
|
+
var $R38 = (0, import_lib2.$R)(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)(?:\\.(?:[0-9](?:_[0-9]|[0-9])*))?", "suy"));
|
|
9276
|
+
var $R39 = (0, import_lib2.$R)(new RegExp("(?:\\.[0-9](?:_[0-9]|[0-9])*)", "suy"));
|
|
9277
|
+
var $R40 = (0, import_lib2.$R)(new RegExp("(?:[eE][+-]?[0-9]+(?:_[0-9]|[0-9])*)", "suy"));
|
|
9278
|
+
var $R41 = (0, import_lib2.$R)(new RegExp("0[bB][01](?:[01]|_[01])*n?", "suy"));
|
|
9279
|
+
var $R42 = (0, import_lib2.$R)(new RegExp("0[oO][0-7](?:[0-7]|_[0-7])*n?", "suy"));
|
|
9280
|
+
var $R43 = (0, import_lib2.$R)(new RegExp("0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_[0-9a-fA-F])*n?", "suy"));
|
|
9281
|
+
var $R44 = (0, import_lib2.$R)(new RegExp("(?=[0-9])", "suy"));
|
|
9282
|
+
var $R45 = (0, import_lib2.$R)(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)", "suy"));
|
|
9283
|
+
var $R46 = (0, import_lib2.$R)(new RegExp('(?:\\\\.|[^"])*', "suy"));
|
|
9284
|
+
var $R47 = (0, import_lib2.$R)(new RegExp("(?:\\\\.|[^'])*", "suy"));
|
|
9285
|
+
var $R48 = (0, import_lib2.$R)(new RegExp('(?:"(?!"")|#(?!\\{)|\\\\.|[^#"])+', "suy"));
|
|
9286
|
+
var $R49 = (0, import_lib2.$R)(new RegExp('(?:"(?!"")|\\\\.|[^"])+', "suy"));
|
|
9287
|
+
var $R50 = (0, import_lib2.$R)(new RegExp("(?:'(?!'')|\\\\.|[^'])*", "suy"));
|
|
9288
|
+
var $R51 = (0, import_lib2.$R)(new RegExp('(?:\\\\.|#(?!\\{)|[^"#])+', "suy"));
|
|
9289
|
+
var $R52 = (0, import_lib2.$R)(new RegExp("(?:\\\\.|[^\\]])*", "suy"));
|
|
9290
|
+
var $R53 = (0, import_lib2.$R)(new RegExp("(?:\\\\.)", "suy"));
|
|
9291
|
+
var $R54 = (0, import_lib2.$R)(new RegExp("[\\s]+", "suy"));
|
|
9292
|
+
var $R55 = (0, import_lib2.$R)(new RegExp("\\/(?!\\/\\/)", "suy"));
|
|
9293
|
+
var $R56 = (0, import_lib2.$R)(new RegExp("[^[\\/\\s#$\\\\]+|[#$]", "suy"));
|
|
9294
|
+
var $R57 = (0, import_lib2.$R)(new RegExp("[*\\/\\r\\n]", "suy"));
|
|
9295
|
+
var $R58 = (0, import_lib2.$R)(new RegExp("(?:\\\\.|[^[\\/\\r\\n])+", "suy"));
|
|
9296
|
+
var $R59 = (0, import_lib2.$R)(new RegExp("(?:\\p{ID_Continue}|[\\u200C\\u200D$])*", "suy"));
|
|
9297
|
+
var $R60 = (0, import_lib2.$R)(new RegExp("(?=[`'\"])", "suy"));
|
|
9298
|
+
var $R61 = (0, import_lib2.$R)(new RegExp("(?:\\$(?!\\{)|\\\\.|[^$`])+", "suy"));
|
|
9299
|
+
var $R62 = (0, import_lib2.$R)(new RegExp("(?:\\$(?!\\{)|`(?!``)|\\\\.|[^$`])+", "suy"));
|
|
9300
|
+
var $R63 = (0, import_lib2.$R)(new RegExp("(?:on|off|yes|no)(?!\\p{ID_Continue})", "suy"));
|
|
9301
|
+
var $R64 = (0, import_lib2.$R)(new RegExp("(?:isnt)(?!\\p{ID_Continue})", "suy"));
|
|
9302
|
+
var $R65 = (0, import_lib2.$R)(new RegExp("(?:by)(?!\\p{ID_Continue})", "suy"));
|
|
9303
|
+
var $R66 = (0, import_lib2.$R)(new RegExp("(?:of)(?!\\p{ID_Continue})", "suy"));
|
|
9304
|
+
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"));
|
|
9305
|
+
var $R68 = (0, import_lib2.$R)(new RegExp("(?=\\/|#)", "suy"));
|
|
9306
|
+
var $R69 = (0, import_lib2.$R)(new RegExp("\\/\\/(?!\\/)[^\\r\\n]*", "suy"));
|
|
9307
|
+
var $R70 = (0, import_lib2.$R)(new RegExp(".", "suy"));
|
|
9308
|
+
var $R71 = (0, import_lib2.$R)(new RegExp("#(?!##(?!#))([^\\r\\n]*)", "suy"));
|
|
9309
|
+
var $R72 = (0, import_lib2.$R)(new RegExp("[^]*?###", "suy"));
|
|
9310
|
+
var $R73 = (0, import_lib2.$R)(new RegExp("###(?!#)", "suy"));
|
|
9311
|
+
var $R74 = (0, import_lib2.$R)(new RegExp("\\/\\*(?:(?!\\*\\/)[^\\r\\n])*\\*\\/", "suy"));
|
|
9312
|
+
var $R75 = (0, import_lib2.$R)(new RegExp("(?=[ \\t\\/\\\\])", "suy"));
|
|
9313
|
+
var $R76 = (0, import_lib2.$R)(new RegExp("(?=\\s|\\/|#)", "suy"));
|
|
9314
|
+
var $R77 = (0, import_lib2.$R)(new RegExp("(?!\\p{ID_Continue})", "suy"));
|
|
9315
|
+
var $R78 = (0, import_lib2.$R)(new RegExp("[=:]", "suy"));
|
|
9316
|
+
var $R79 = (0, import_lib2.$R)(new RegExp("['\u2019]s", "suy"));
|
|
9317
|
+
var $R80 = (0, import_lib2.$R)(new RegExp("\\s", "suy"));
|
|
9318
|
+
var $R81 = (0, import_lib2.$R)(new RegExp("(?=[<])", "suy"));
|
|
9319
|
+
var $R82 = (0, import_lib2.$R)(new RegExp("(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$-])*", "suy"));
|
|
9320
|
+
var $R83 = (0, import_lib2.$R)(new RegExp("[!+-]", "suy"));
|
|
9321
|
+
var $R84 = (0, import_lib2.$R)(new RegExp("[\\s>]|\\/>", "suy"));
|
|
9322
|
+
var $R85 = (0, import_lib2.$R)(new RegExp("(?:[\\w\\-:]+|\\([^()]*\\)|\\[[^\\[\\]]*\\])+", "suy"));
|
|
9323
|
+
var $R86 = (0, import_lib2.$R)(new RegExp(`"[^"]*"|'[^']*'`, "suy"));
|
|
9324
|
+
var $R87 = (0, import_lib2.$R)(new RegExp("[<>]", "suy"));
|
|
9325
|
+
var $R88 = (0, import_lib2.$R)(new RegExp("[!~+-](?!\\s|[!~+-]*&)", "suy"));
|
|
9326
|
+
var $R89 = (0, import_lib2.$R)(new RegExp("(?:-[^-]|[^-]*)*", "suy"));
|
|
9327
|
+
var $R90 = (0, import_lib2.$R)(new RegExp("[^{}<>\\r\\n]+", "suy"));
|
|
9328
|
+
var $R91 = (0, import_lib2.$R)(new RegExp("[+-]?", "suy"));
|
|
9329
|
+
var $R92 = (0, import_lib2.$R)(new RegExp("(?=if|unless)", "suy"));
|
|
9330
|
+
var $R93 = (0, import_lib2.$R)(new RegExp("[|&<!=\\-\u21D2\u2192]", "suy"));
|
|
9331
|
+
var $R94 = (0, import_lib2.$R)(new RegExp("(extends|not|is)(?!\\p{ID_Continue}|[\\u200C\\u200D$])", "suy"));
|
|
9332
|
+
var $R95 = (0, import_lib2.$R)(new RegExp("const|in|out", "suy"));
|
|
9333
|
+
var $R96 = (0, import_lib2.$R)(new RegExp("#![^\\r\\n]*", "suy"));
|
|
9334
|
+
var $R97 = (0, import_lib2.$R)(new RegExp("[\\t ]*", "suy"));
|
|
9335
|
+
var $R98 = (0, import_lib2.$R)(new RegExp("[\\s]*", "suy"));
|
|
9336
|
+
var $R99 = (0, import_lib2.$R)(new RegExp("\\s+([+-]?)([a-zA-Z0-9-]+)(\\s*=\\s*([\\p{ID_Continue}.,+-]*))?", "suy"));
|
|
9337
|
+
var $R100 = (0, import_lib2.$R)(new RegExp("\\/\\/\\/[^\\r\\n]*", "suy"));
|
|
9338
|
+
var $R101 = (0, import_lib2.$R)(new RegExp("(?=[ \\t\\r\\n\\/#]|$)", "suy"));
|
|
9339
|
+
var $R102 = (0, import_lib2.$R)(new RegExp("\\r\\n|\\n|\\r|$", "suy"));
|
|
9340
|
+
var $R103 = (0, import_lib2.$R)(new RegExp("[^]*", "suy"));
|
|
9285
9341
|
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) {
|
|
9286
9342
|
var reset = $1;
|
|
9287
9343
|
var init = $2;
|
|
@@ -14469,10 +14525,12 @@ var LabelledStatement$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(Label, Labell
|
|
|
14469
14525
|
function LabelledStatement(ctx, state2) {
|
|
14470
14526
|
return (0, import_lib2.$EVENT)(ctx, state2, "LabelledStatement", LabelledStatement$0);
|
|
14471
14527
|
}
|
|
14472
|
-
var Label$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(Colon,
|
|
14528
|
+
var Label$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(Colon, IdentifierName, Whitespace), function($skip, $loc, $0, $1, $2, $3) {
|
|
14473
14529
|
var colon = $1;
|
|
14474
14530
|
var id = $2;
|
|
14475
14531
|
var w = $3;
|
|
14532
|
+
if (id.name === "void")
|
|
14533
|
+
return $skip;
|
|
14476
14534
|
return {
|
|
14477
14535
|
type: "Label",
|
|
14478
14536
|
name: id.name,
|
|
@@ -14482,12 +14540,34 @@ var Label$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(Colon, Identifier, Whites
|
|
|
14482
14540
|
function Label(ctx, state2) {
|
|
14483
14541
|
return (0, import_lib2.$EVENT)(ctx, state2, "Label", Label$0);
|
|
14484
14542
|
}
|
|
14485
|
-
var LabelIdentifier$0 = (0, import_lib2.$
|
|
14486
|
-
var id =
|
|
14487
|
-
return
|
|
14543
|
+
var LabelIdentifier$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(Colon, IdentifierName), function($skip, $loc, $0, $1, $2) {
|
|
14544
|
+
var id = $2;
|
|
14545
|
+
return {
|
|
14546
|
+
type: "Label",
|
|
14547
|
+
name: id.name,
|
|
14548
|
+
children: [id]
|
|
14549
|
+
};
|
|
14488
14550
|
});
|
|
14551
|
+
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) {
|
|
14552
|
+
return {
|
|
14553
|
+
type: "Label",
|
|
14554
|
+
special: $0,
|
|
14555
|
+
name: "",
|
|
14556
|
+
// to be filled in
|
|
14557
|
+
children: []
|
|
14558
|
+
};
|
|
14559
|
+
});
|
|
14560
|
+
var LabelIdentifier$2 = (0, import_lib2.$TV)(Identifier, function($skip, $loc, $0, $1) {
|
|
14561
|
+
var id = $0;
|
|
14562
|
+
return {
|
|
14563
|
+
type: "Label",
|
|
14564
|
+
name: id.name,
|
|
14565
|
+
children: [id]
|
|
14566
|
+
};
|
|
14567
|
+
});
|
|
14568
|
+
var LabelIdentifier$$ = [LabelIdentifier$0, LabelIdentifier$1, LabelIdentifier$2];
|
|
14489
14569
|
function LabelIdentifier(ctx, state2) {
|
|
14490
|
-
return (0, import_lib2.$
|
|
14570
|
+
return (0, import_lib2.$EVENT_C)(ctx, state2, "LabelIdentifier", LabelIdentifier$$);
|
|
14491
14571
|
}
|
|
14492
14572
|
var LabelledItem$0 = Statement;
|
|
14493
14573
|
var LabelledItem$1 = FunctionDeclaration;
|
|
@@ -14571,7 +14651,7 @@ var IfClause$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$C)(If
|
|
|
14571
14651
|
function IfClause(ctx, state2) {
|
|
14572
14652
|
return (0, import_lib2.$EVENT)(ctx, state2, "IfClause", IfClause$0);
|
|
14573
14653
|
}
|
|
14574
|
-
var IterationStatement$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
14654
|
+
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) {
|
|
14575
14655
|
return value[1];
|
|
14576
14656
|
});
|
|
14577
14657
|
function IterationStatement(ctx, state2) {
|
|
@@ -14612,7 +14692,7 @@ var LoopStatement$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(LoopClause, Block
|
|
|
14612
14692
|
var block = $2;
|
|
14613
14693
|
return {
|
|
14614
14694
|
...clause,
|
|
14615
|
-
type: "IterationStatement",
|
|
14695
|
+
//type: "IterationStatement", [from LoopClause]
|
|
14616
14696
|
children: [...clause.children, block],
|
|
14617
14697
|
block
|
|
14618
14698
|
};
|
|
@@ -14635,7 +14715,7 @@ var LoopClause$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(Loop, (0, import_lib
|
|
|
14635
14715
|
};
|
|
14636
14716
|
return {
|
|
14637
14717
|
type: "IterationStatement",
|
|
14638
|
-
subtype:
|
|
14718
|
+
subtype: "loop",
|
|
14639
14719
|
children: [kind, condition],
|
|
14640
14720
|
condition,
|
|
14641
14721
|
generator
|
|
@@ -14652,8 +14732,8 @@ var DoWhileStatement$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(Do, (0, import
|
|
|
14652
14732
|
var clause = $5;
|
|
14653
14733
|
return {
|
|
14654
14734
|
...clause,
|
|
14655
|
-
type: "IterationStatement",
|
|
14656
|
-
subtype:
|
|
14735
|
+
//type: "IterationStatement", [from WhileClause]
|
|
14736
|
+
subtype: `do-${clause.subtype}`,
|
|
14657
14737
|
children: [d, block, ws, clause],
|
|
14658
14738
|
block,
|
|
14659
14739
|
generator
|
|
@@ -14711,13 +14791,14 @@ var WhileClause$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$C)
|
|
|
14711
14791
|
var generator = $2;
|
|
14712
14792
|
var ws = $3;
|
|
14713
14793
|
var condition = $4;
|
|
14794
|
+
const subtype = kind.token;
|
|
14714
14795
|
if (kind.negated) {
|
|
14715
14796
|
kind = { ...kind, token: "while" };
|
|
14716
14797
|
condition = negateCondition(condition);
|
|
14717
14798
|
}
|
|
14718
14799
|
return {
|
|
14719
14800
|
type: "IterationStatement",
|
|
14720
|
-
subtype
|
|
14801
|
+
subtype,
|
|
14721
14802
|
children: [kind, ws, condition],
|
|
14722
14803
|
condition,
|
|
14723
14804
|
generator,
|
|
@@ -16174,7 +16255,7 @@ var UnprocessedModuleSpecifier$$ = [UnprocessedModuleSpecifier$0, UnprocessedMod
|
|
|
16174
16255
|
function UnprocessedModuleSpecifier(ctx, state2) {
|
|
16175
16256
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "UnprocessedModuleSpecifier", UnprocessedModuleSpecifier$$);
|
|
16176
16257
|
}
|
|
16177
|
-
var UnquotedSpecifier$0 = (0, import_lib2.$TV)((0, import_lib2.$EXPECT)($
|
|
16258
|
+
var UnquotedSpecifier$0 = (0, import_lib2.$TV)((0, import_lib2.$EXPECT)($R34, 'UnquotedSpecifier /[^;"\\s=>]+/'), function($skip, $loc, $0, $1) {
|
|
16178
16259
|
var spec = $0;
|
|
16179
16260
|
return { $loc, token: `"${spec}"` };
|
|
16180
16261
|
});
|
|
@@ -16447,7 +16528,7 @@ var VariableDeclarationList$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(Lexical
|
|
|
16447
16528
|
function VariableDeclarationList(ctx, state2) {
|
|
16448
16529
|
return (0, import_lib2.$EVENT)(ctx, state2, "VariableDeclarationList", VariableDeclarationList$0);
|
|
16449
16530
|
}
|
|
16450
|
-
var NumericLiteral$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
16531
|
+
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) {
|
|
16451
16532
|
var token = $2;
|
|
16452
16533
|
return { type: "NumericLiteral", $loc, token };
|
|
16453
16534
|
});
|
|
@@ -16463,36 +16544,36 @@ var NumericLiteralKind$$ = [NumericLiteralKind$0, NumericLiteralKind$1, NumericL
|
|
|
16463
16544
|
function NumericLiteralKind(ctx, state2) {
|
|
16464
16545
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "NumericLiteralKind", NumericLiteralKind$$);
|
|
16465
16546
|
}
|
|
16466
|
-
var DecimalBigIntegerLiteral$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
16547
|
+
var DecimalBigIntegerLiteral$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R36, "DecimalBigIntegerLiteral /(?:0|[1-9](?:_[0-9]|[0-9])*)n/"));
|
|
16467
16548
|
function DecimalBigIntegerLiteral(ctx, state2) {
|
|
16468
16549
|
return (0, import_lib2.$EVENT)(ctx, state2, "DecimalBigIntegerLiteral", DecimalBigIntegerLiteral$0);
|
|
16469
16550
|
}
|
|
16470
|
-
var DecimalLiteral$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($
|
|
16551
|
+
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) {
|
|
16471
16552
|
return $1 + ".";
|
|
16472
16553
|
});
|
|
16473
|
-
var DecimalLiteral$1 = (0, import_lib2.$TEXT)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
16474
|
-
var DecimalLiteral$2 = (0, import_lib2.$TEXT)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
16554
|
+
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)));
|
|
16555
|
+
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)));
|
|
16475
16556
|
var DecimalLiteral$$ = [DecimalLiteral$0, DecimalLiteral$1, DecimalLiteral$2];
|
|
16476
16557
|
function DecimalLiteral(ctx, state2) {
|
|
16477
16558
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "DecimalLiteral", DecimalLiteral$$);
|
|
16478
16559
|
}
|
|
16479
|
-
var ExponentPart$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
16560
|
+
var ExponentPart$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R40, "ExponentPart /(?:[eE][+-]?[0-9]+(?:_[0-9]|[0-9])*)/"));
|
|
16480
16561
|
function ExponentPart(ctx, state2) {
|
|
16481
16562
|
return (0, import_lib2.$EVENT)(ctx, state2, "ExponentPart", ExponentPart$0);
|
|
16482
16563
|
}
|
|
16483
|
-
var BinaryIntegerLiteral$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
16564
|
+
var BinaryIntegerLiteral$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R41, "BinaryIntegerLiteral /0[bB][01](?:[01]|_[01])*n?/"));
|
|
16484
16565
|
function BinaryIntegerLiteral(ctx, state2) {
|
|
16485
16566
|
return (0, import_lib2.$EVENT)(ctx, state2, "BinaryIntegerLiteral", BinaryIntegerLiteral$0);
|
|
16486
16567
|
}
|
|
16487
|
-
var OctalIntegerLiteral$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
16568
|
+
var OctalIntegerLiteral$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R42, "OctalIntegerLiteral /0[oO][0-7](?:[0-7]|_[0-7])*n?/"));
|
|
16488
16569
|
function OctalIntegerLiteral(ctx, state2) {
|
|
16489
16570
|
return (0, import_lib2.$EVENT)(ctx, state2, "OctalIntegerLiteral", OctalIntegerLiteral$0);
|
|
16490
16571
|
}
|
|
16491
|
-
var HexIntegerLiteral$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
16572
|
+
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?/"));
|
|
16492
16573
|
function HexIntegerLiteral(ctx, state2) {
|
|
16493
16574
|
return (0, import_lib2.$EVENT)(ctx, state2, "HexIntegerLiteral", HexIntegerLiteral$0);
|
|
16494
16575
|
}
|
|
16495
|
-
var IntegerLiteral$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
16576
|
+
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) {
|
|
16496
16577
|
var token = $2;
|
|
16497
16578
|
return { $loc, token };
|
|
16498
16579
|
});
|
|
@@ -16508,7 +16589,7 @@ var IntegerLiteralKind$$ = [IntegerLiteralKind$0, IntegerLiteralKind$1, IntegerL
|
|
|
16508
16589
|
function IntegerLiteralKind(ctx, state2) {
|
|
16509
16590
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "IntegerLiteralKind", IntegerLiteralKind$$);
|
|
16510
16591
|
}
|
|
16511
|
-
var DecimalIntegerLiteral$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
16592
|
+
var DecimalIntegerLiteral$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R45, "DecimalIntegerLiteral /(?:0|[1-9](?:_[0-9]|[0-9])*)/"));
|
|
16512
16593
|
function DecimalIntegerLiteral(ctx, state2) {
|
|
16513
16594
|
return (0, import_lib2.$EVENT)(ctx, state2, "DecimalIntegerLiteral", DecimalIntegerLiteral$0);
|
|
16514
16595
|
}
|
|
@@ -16532,13 +16613,13 @@ var StringLiteral$$ = [StringLiteral$0, StringLiteral$1];
|
|
|
16532
16613
|
function StringLiteral(ctx, state2) {
|
|
16533
16614
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "StringLiteral", StringLiteral$$);
|
|
16534
16615
|
}
|
|
16535
|
-
var DoubleStringCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
16616
|
+
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) {
|
|
16536
16617
|
return { $loc, token: $0 };
|
|
16537
16618
|
});
|
|
16538
16619
|
function DoubleStringCharacters(ctx, state2) {
|
|
16539
16620
|
return (0, import_lib2.$EVENT)(ctx, state2, "DoubleStringCharacters", DoubleStringCharacters$0);
|
|
16540
16621
|
}
|
|
16541
|
-
var SingleStringCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
16622
|
+
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) {
|
|
16542
16623
|
return { $loc, token: $0 };
|
|
16543
16624
|
});
|
|
16544
16625
|
function SingleStringCharacters(ctx, state2) {
|
|
@@ -16554,19 +16635,19 @@ var TripleDoubleStringContents$$ = [TripleDoubleStringContents$0, TripleDoubleSt
|
|
|
16554
16635
|
function TripleDoubleStringContents(ctx, state2) {
|
|
16555
16636
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "TripleDoubleStringContents", TripleDoubleStringContents$$);
|
|
16556
16637
|
}
|
|
16557
|
-
var CoffeeTripleDoubleStringCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
16638
|
+
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) {
|
|
16558
16639
|
return { $loc, token: $0 };
|
|
16559
16640
|
});
|
|
16560
16641
|
function CoffeeTripleDoubleStringCharacters(ctx, state2) {
|
|
16561
16642
|
return (0, import_lib2.$EVENT)(ctx, state2, "CoffeeTripleDoubleStringCharacters", CoffeeTripleDoubleStringCharacters$0);
|
|
16562
16643
|
}
|
|
16563
|
-
var TripleDoubleStringCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
16644
|
+
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) {
|
|
16564
16645
|
return { $loc, token: $0 };
|
|
16565
16646
|
});
|
|
16566
16647
|
function TripleDoubleStringCharacters(ctx, state2) {
|
|
16567
16648
|
return (0, import_lib2.$EVENT)(ctx, state2, "TripleDoubleStringCharacters", TripleDoubleStringCharacters$0);
|
|
16568
16649
|
}
|
|
16569
|
-
var TripleSingleStringCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
16650
|
+
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) {
|
|
16570
16651
|
return { $loc, token: $0 };
|
|
16571
16652
|
});
|
|
16572
16653
|
function TripleSingleStringCharacters(ctx, state2) {
|
|
@@ -16589,7 +16670,7 @@ var CoffeeInterpolatedDoubleQuotedString$0 = (0, import_lib2.$TS)((0, import_lib
|
|
|
16589
16670
|
function CoffeeInterpolatedDoubleQuotedString(ctx, state2) {
|
|
16590
16671
|
return (0, import_lib2.$EVENT)(ctx, state2, "CoffeeInterpolatedDoubleQuotedString", CoffeeInterpolatedDoubleQuotedString$0);
|
|
16591
16672
|
}
|
|
16592
|
-
var CoffeeDoubleQuotedStringCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
16673
|
+
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) {
|
|
16593
16674
|
return { $loc, token: $0 };
|
|
16594
16675
|
});
|
|
16595
16676
|
function CoffeeDoubleQuotedStringCharacters(ctx, state2) {
|
|
@@ -16609,7 +16690,7 @@ var RegularExpressionClass$0 = (0, import_lib2.$TV)((0, import_lib2.$TEXT)((0, i
|
|
|
16609
16690
|
function RegularExpressionClass(ctx, state2) {
|
|
16610
16691
|
return (0, import_lib2.$EVENT)(ctx, state2, "RegularExpressionClass", RegularExpressionClass$0);
|
|
16611
16692
|
}
|
|
16612
|
-
var RegularExpressionClassCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
16693
|
+
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) {
|
|
16613
16694
|
return { $loc, token: $0 };
|
|
16614
16695
|
});
|
|
16615
16696
|
function RegularExpressionClassCharacters(ctx, state2) {
|
|
@@ -16666,7 +16747,7 @@ var HeregexPart$1 = (0, import_lib2.$T)((0, import_lib2.$S)(CoffeeInterpolationE
|
|
|
16666
16747
|
var HeregexPart$2 = (0, import_lib2.$T)((0, import_lib2.$S)(TemplateSubstitution), function(value) {
|
|
16667
16748
|
return { "type": "Substitution", "children": value[0] };
|
|
16668
16749
|
});
|
|
16669
|
-
var HeregexPart$3 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
16750
|
+
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) {
|
|
16670
16751
|
let token = $0;
|
|
16671
16752
|
switch ($0[1]) {
|
|
16672
16753
|
case "\n":
|
|
@@ -16684,13 +16765,13 @@ var HeregexPart$3 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R52, "Heregex
|
|
|
16684
16765
|
var HeregexPart$4 = (0, import_lib2.$TS)((0, import_lib2.$S)(HeregexComment), function($skip, $loc, $0, $1) {
|
|
16685
16766
|
return { $loc, token: "" };
|
|
16686
16767
|
});
|
|
16687
|
-
var HeregexPart$5 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
16768
|
+
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) {
|
|
16688
16769
|
return { $loc, token: "" };
|
|
16689
16770
|
});
|
|
16690
|
-
var HeregexPart$6 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
16771
|
+
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) {
|
|
16691
16772
|
return { $loc, token: "\\/" };
|
|
16692
16773
|
});
|
|
16693
|
-
var HeregexPart$7 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
16774
|
+
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) {
|
|
16694
16775
|
return { $loc, token: $0 };
|
|
16695
16776
|
});
|
|
16696
16777
|
var HeregexPart$$ = [HeregexPart$0, HeregexPart$1, HeregexPart$2, HeregexPart$3, HeregexPart$4, HeregexPart$5, HeregexPart$6, HeregexPart$7];
|
|
@@ -16705,7 +16786,7 @@ var HeregexComment$$ = [HeregexComment$0, HeregexComment$1];
|
|
|
16705
16786
|
function HeregexComment(ctx, state2) {
|
|
16706
16787
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "HeregexComment", HeregexComment$$);
|
|
16707
16788
|
}
|
|
16708
|
-
var RegularExpressionBody$0 = (0, import_lib2.$S)((0, import_lib2.$N)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
16789
|
+
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));
|
|
16709
16790
|
function RegularExpressionBody(ctx, state2) {
|
|
16710
16791
|
return (0, import_lib2.$EVENT)(ctx, state2, "RegularExpressionBody", RegularExpressionBody$0);
|
|
16711
16792
|
}
|
|
@@ -16715,15 +16796,15 @@ var RegExpPart$$ = [RegExpPart$0, RegExpPart$1];
|
|
|
16715
16796
|
function RegExpPart(ctx, state2) {
|
|
16716
16797
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "RegExpPart", RegExpPart$$);
|
|
16717
16798
|
}
|
|
16718
|
-
var RegExpCharacter$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
16799
|
+
var RegExpCharacter$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R58, "RegExpCharacter /(?:\\\\.|[^[\\/\\r\\n])+/"));
|
|
16719
16800
|
function RegExpCharacter(ctx, state2) {
|
|
16720
16801
|
return (0, import_lib2.$EVENT)(ctx, state2, "RegExpCharacter", RegExpCharacter$0);
|
|
16721
16802
|
}
|
|
16722
|
-
var RegularExpressionFlags$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
16803
|
+
var RegularExpressionFlags$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R59, "RegularExpressionFlags /(?:\\p{ID_Continue}|[\\u200C\\u200D$])*/"));
|
|
16723
16804
|
function RegularExpressionFlags(ctx, state2) {
|
|
16724
16805
|
return (0, import_lib2.$EVENT)(ctx, state2, "RegularExpressionFlags", RegularExpressionFlags$0);
|
|
16725
16806
|
}
|
|
16726
|
-
var TemplateLiteral$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
16807
|
+
var TemplateLiteral$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($R60, "TemplateLiteral /(?=[`'\"])/"), _TemplateLiteral), function(value) {
|
|
16727
16808
|
return value[1];
|
|
16728
16809
|
});
|
|
16729
16810
|
function TemplateLiteral(ctx, state2) {
|
|
@@ -16763,28 +16844,28 @@ var TemplateSubstitution$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(Substituti
|
|
|
16763
16844
|
function TemplateSubstitution(ctx, state2) {
|
|
16764
16845
|
return (0, import_lib2.$EVENT)(ctx, state2, "TemplateSubstitution", TemplateSubstitution$0);
|
|
16765
16846
|
}
|
|
16766
|
-
var TemplateCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
16847
|
+
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) {
|
|
16767
16848
|
return { $loc, token: $0 };
|
|
16768
16849
|
});
|
|
16769
16850
|
function TemplateCharacters(ctx, state2) {
|
|
16770
16851
|
return (0, import_lib2.$EVENT)(ctx, state2, "TemplateCharacters", TemplateCharacters$0);
|
|
16771
16852
|
}
|
|
16772
|
-
var TemplateBlockCharacters$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
16853
|
+
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) {
|
|
16773
16854
|
return { $loc, token: $0 };
|
|
16774
16855
|
});
|
|
16775
16856
|
function TemplateBlockCharacters(ctx, state2) {
|
|
16776
16857
|
return (0, import_lib2.$EVENT)(ctx, state2, "TemplateBlockCharacters", TemplateBlockCharacters$0);
|
|
16777
16858
|
}
|
|
16778
|
-
var ReservedWord$0 = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
16779
|
-
var ReservedWord$1 = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
16780
|
-
var ReservedWord$2 = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
16781
|
-
var ReservedWord$3 = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
16782
|
-
var ReservedWord$4 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
16859
|
+
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);
|
|
16860
|
+
var ReservedWord$1 = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R64, "ReservedWord /(?:isnt)(?!\\p{ID_Continue})/")), CoffeeIsntEnabled);
|
|
16861
|
+
var ReservedWord$2 = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R65, "ReservedWord /(?:by)(?!\\p{ID_Continue})/")), CoffeeForLoopsEnabled);
|
|
16862
|
+
var ReservedWord$3 = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R66, "ReservedWord /(?:of)(?!\\p{ID_Continue})/")), CoffeeOfEnabled);
|
|
16863
|
+
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})/"));
|
|
16783
16864
|
var ReservedWord$$ = [ReservedWord$0, ReservedWord$1, ReservedWord$2, ReservedWord$3, ReservedWord$4];
|
|
16784
16865
|
function ReservedWord(ctx, state2) {
|
|
16785
16866
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "ReservedWord", ReservedWord$$);
|
|
16786
16867
|
}
|
|
16787
|
-
var Comment$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
16868
|
+
var Comment$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($R68, "Comment /(?=\\/|#)/"), _Comment), function(value) {
|
|
16788
16869
|
return value[1];
|
|
16789
16870
|
});
|
|
16790
16871
|
function Comment(ctx, state2) {
|
|
@@ -16802,7 +16883,7 @@ var SingleLineComment$$ = [SingleLineComment$0, SingleLineComment$1];
|
|
|
16802
16883
|
function SingleLineComment(ctx, state2) {
|
|
16803
16884
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "SingleLineComment", SingleLineComment$$);
|
|
16804
16885
|
}
|
|
16805
|
-
var JSSingleLineComment$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
16886
|
+
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) {
|
|
16806
16887
|
return { type: "Comment", $loc, token: $0 };
|
|
16807
16888
|
});
|
|
16808
16889
|
function JSSingleLineComment(ctx, state2) {
|
|
@@ -16814,30 +16895,30 @@ var MultiLineComment$$ = [MultiLineComment$0, MultiLineComment$1];
|
|
|
16814
16895
|
function MultiLineComment(ctx, state2) {
|
|
16815
16896
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "MultiLineComment", MultiLineComment$$);
|
|
16816
16897
|
}
|
|
16817
|
-
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)($
|
|
16898
|
+
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) {
|
|
16818
16899
|
return { type: "Comment", $loc, token: $1 };
|
|
16819
16900
|
});
|
|
16820
16901
|
function JSMultiLineComment(ctx, state2) {
|
|
16821
16902
|
return (0, import_lib2.$EVENT)(ctx, state2, "JSMultiLineComment", JSMultiLineComment$0);
|
|
16822
16903
|
}
|
|
16823
|
-
var CoffeeSingleLineComment$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
16904
|
+
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) {
|
|
16824
16905
|
return { type: "Comment", $loc, token: `//${$1}` };
|
|
16825
16906
|
});
|
|
16826
16907
|
function CoffeeSingleLineComment(ctx, state2) {
|
|
16827
16908
|
return (0, import_lib2.$EVENT)(ctx, state2, "CoffeeSingleLineComment", CoffeeSingleLineComment$0);
|
|
16828
16909
|
}
|
|
16829
|
-
var CoffeeMultiLineComment$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(CoffeeHereCommentStart, (0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($
|
|
16910
|
+
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) {
|
|
16830
16911
|
$2 = $2.slice(0, $2.length - 3).replace(/\*\//g, "* /");
|
|
16831
16912
|
return { type: "Comment", $loc, token: `/*${$2}*/` };
|
|
16832
16913
|
});
|
|
16833
16914
|
function CoffeeMultiLineComment(ctx, state2) {
|
|
16834
16915
|
return (0, import_lib2.$EVENT)(ctx, state2, "CoffeeMultiLineComment", CoffeeMultiLineComment$0);
|
|
16835
16916
|
}
|
|
16836
|
-
var CoffeeHereCommentStart$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
16917
|
+
var CoffeeHereCommentStart$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R73, "CoffeeHereCommentStart /###(?!#)/"));
|
|
16837
16918
|
function CoffeeHereCommentStart(ctx, state2) {
|
|
16838
16919
|
return (0, import_lib2.$EVENT)(ctx, state2, "CoffeeHereCommentStart", CoffeeHereCommentStart$0);
|
|
16839
16920
|
}
|
|
16840
|
-
var InlineComment$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
16921
|
+
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) {
|
|
16841
16922
|
return { $loc, token: $0 };
|
|
16842
16923
|
});
|
|
16843
16924
|
function InlineComment(ctx, state2) {
|
|
@@ -16851,7 +16932,7 @@ var TrailingComment$0 = (0, import_lib2.$S)((0, import_lib2.$E)(_), (0, import_l
|
|
|
16851
16932
|
function TrailingComment(ctx, state2) {
|
|
16852
16933
|
return (0, import_lib2.$EVENT)(ctx, state2, "TrailingComment", TrailingComment$0);
|
|
16853
16934
|
}
|
|
16854
|
-
var _$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
16935
|
+
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) {
|
|
16855
16936
|
return value[1];
|
|
16856
16937
|
});
|
|
16857
16938
|
function _(ctx, state2) {
|
|
@@ -16874,7 +16955,7 @@ var Trimmed_$0 = (0, import_lib2.$TV)(_, function($skip, $loc, $0, $1) {
|
|
|
16874
16955
|
function Trimmed_(ctx, state2) {
|
|
16875
16956
|
return (0, import_lib2.$EVENT)(ctx, state2, "Trimmed_", Trimmed_$0);
|
|
16876
16957
|
}
|
|
16877
|
-
var __$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
16958
|
+
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) {
|
|
16878
16959
|
return value[1];
|
|
16879
16960
|
});
|
|
16880
16961
|
var __$1 = (0, import_lib2.$EXPECT)($L0, '__ ""');
|
|
@@ -16882,7 +16963,7 @@ var __$$ = [__$0, __$1];
|
|
|
16882
16963
|
function __(ctx, state2) {
|
|
16883
16964
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "__", __$$);
|
|
16884
16965
|
}
|
|
16885
|
-
var Whitespace$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
16966
|
+
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) {
|
|
16886
16967
|
return { $loc, token: $0 };
|
|
16887
16968
|
});
|
|
16888
16969
|
function Whitespace(ctx, state2) {
|
|
@@ -16924,7 +17005,7 @@ var SemicolonDelimiter$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_l
|
|
|
16924
17005
|
function SemicolonDelimiter(ctx, state2) {
|
|
16925
17006
|
return (0, import_lib2.$EVENT)(ctx, state2, "SemicolonDelimiter", SemicolonDelimiter$0);
|
|
16926
17007
|
}
|
|
16927
|
-
var NonIdContinue$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
17008
|
+
var NonIdContinue$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R77, "NonIdContinue /(?!\\p{ID_Continue})/"));
|
|
16928
17009
|
function NonIdContinue(ctx, state2) {
|
|
16929
17010
|
return (0, import_lib2.$EVENT)(ctx, state2, "NonIdContinue", NonIdContinue$0);
|
|
16930
17011
|
}
|
|
@@ -17042,7 +17123,7 @@ var CoffeeSubstitutionStart$0 = (0, import_lib2.$TV)((0, import_lib2.$EXPECT)($L
|
|
|
17042
17123
|
function CoffeeSubstitutionStart(ctx, state2) {
|
|
17043
17124
|
return (0, import_lib2.$EVENT)(ctx, state2, "CoffeeSubstitutionStart", CoffeeSubstitutionStart$0);
|
|
17044
17125
|
}
|
|
17045
|
-
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)($
|
|
17126
|
+
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) {
|
|
17046
17127
|
return { $loc, token: $1 };
|
|
17047
17128
|
});
|
|
17048
17129
|
function Colon(ctx, state2) {
|
|
@@ -17093,7 +17174,7 @@ function Do(ctx, state2) {
|
|
|
17093
17174
|
var Dot$0 = (0, import_lib2.$TV)((0, import_lib2.$EXPECT)($L7, 'Dot "."'), function($skip, $loc, $0, $1) {
|
|
17094
17175
|
return { $loc, token: $1 };
|
|
17095
17176
|
});
|
|
17096
|
-
var Dot$1 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
17177
|
+
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) {
|
|
17097
17178
|
var ws = $2;
|
|
17098
17179
|
return [
|
|
17099
17180
|
{ $loc, token: "." },
|
|
@@ -17226,7 +17307,7 @@ var If$0 = (0, import_lib2.$TV)((0, import_lib2.$TEXT)((0, import_lib2.$S)((0, i
|
|
|
17226
17307
|
function If(ctx, state2) {
|
|
17227
17308
|
return (0, import_lib2.$EVENT)(ctx, state2, "If", If$0);
|
|
17228
17309
|
}
|
|
17229
|
-
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)($
|
|
17310
|
+
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) {
|
|
17230
17311
|
return { $loc, token: $1 };
|
|
17231
17312
|
});
|
|
17232
17313
|
function Import(ctx, state2) {
|
|
@@ -17584,7 +17665,7 @@ var JSXImplicitFragment$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(JSXTag, (0,
|
|
|
17584
17665
|
function JSXImplicitFragment(ctx, state2) {
|
|
17585
17666
|
return (0, import_lib2.$EVENT)(ctx, state2, "JSXImplicitFragment", JSXImplicitFragment$0);
|
|
17586
17667
|
}
|
|
17587
|
-
var JSXTag$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
17668
|
+
var JSXTag$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($R81, "JSXTag /(?=[<])/"), _JSXTag), function(value) {
|
|
17588
17669
|
return value[1];
|
|
17589
17670
|
});
|
|
17590
17671
|
function JSXTag(ctx, state2) {
|
|
@@ -17731,7 +17812,7 @@ var JSXElementName$$ = [JSXElementName$0, JSXElementName$1];
|
|
|
17731
17812
|
function JSXElementName(ctx, state2) {
|
|
17732
17813
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "JSXElementName", JSXElementName$$);
|
|
17733
17814
|
}
|
|
17734
|
-
var JSXIdentifierName$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
17815
|
+
var JSXIdentifierName$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R82, "JSXIdentifierName /(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$-])*/"));
|
|
17735
17816
|
function JSXIdentifierName(ctx, state2) {
|
|
17736
17817
|
return (0, import_lib2.$EVENT)(ctx, state2, "JSXIdentifierName", JSXIdentifierName$0);
|
|
17737
17818
|
}
|
|
@@ -17913,7 +17994,7 @@ var JSXAttribute$6 = (0, import_lib2.$TS)((0, import_lib2.$S)(Dot, JSXShorthandS
|
|
|
17913
17994
|
class: $2
|
|
17914
17995
|
};
|
|
17915
17996
|
});
|
|
17916
|
-
var JSXAttribute$7 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$TEXT)((0, import_lib2.$EXPECT)($
|
|
17997
|
+
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) {
|
|
17917
17998
|
var toggle = $1;
|
|
17918
17999
|
var id = $2;
|
|
17919
18000
|
const value = toggle === "+" ? "true" : "false";
|
|
@@ -17923,11 +18004,11 @@ var JSXAttribute$$ = [JSXAttribute$0, JSXAttribute$1, JSXAttribute$2, JSXAttribu
|
|
|
17923
18004
|
function JSXAttribute(ctx, state2) {
|
|
17924
18005
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "JSXAttribute", JSXAttribute$$);
|
|
17925
18006
|
}
|
|
17926
|
-
var JSXAttributeSpace$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
18007
|
+
var JSXAttributeSpace$0 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R84, "JSXAttributeSpace /[\\s>]|\\/>/"));
|
|
17927
18008
|
function JSXAttributeSpace(ctx, state2) {
|
|
17928
18009
|
return (0, import_lib2.$EVENT)(ctx, state2, "JSXAttributeSpace", JSXAttributeSpace$0);
|
|
17929
18010
|
}
|
|
17930
|
-
var JSXShorthandString$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
18011
|
+
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) {
|
|
17931
18012
|
return quoteString($0);
|
|
17932
18013
|
});
|
|
17933
18014
|
var JSXShorthandString$1 = (0, import_lib2.$TS)((0, import_lib2.$S)(TemplateLiteral), function($skip, $loc, $0, $1) {
|
|
@@ -17970,7 +18051,7 @@ var JSXAttributeValue$3 = (0, import_lib2.$TS)((0, import_lib2.$S)(InsertInlineO
|
|
|
17970
18051
|
}
|
|
17971
18052
|
return [open, value, close];
|
|
17972
18053
|
});
|
|
17973
|
-
var JSXAttributeValue$4 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
18054
|
+
var JSXAttributeValue$4 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R86, `JSXAttributeValue /"[^"]*"|'[^']*'/`));
|
|
17974
18055
|
var JSXAttributeValue$$ = [JSXAttributeValue$0, JSXAttributeValue$1, JSXAttributeValue$2, JSXAttributeValue$3, JSXAttributeValue$4];
|
|
17975
18056
|
function JSXAttributeValue(ctx, state2) {
|
|
17976
18057
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "JSXAttributeValue", JSXAttributeValue$$);
|
|
@@ -17983,7 +18064,7 @@ var InlineJSXAttributeValue$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(InlineJ
|
|
|
17983
18064
|
function InlineJSXAttributeValue(ctx, state2) {
|
|
17984
18065
|
return (0, import_lib2.$EVENT)(ctx, state2, "InlineJSXAttributeValue", InlineJSXAttributeValue$0);
|
|
17985
18066
|
}
|
|
17986
|
-
var InlineJSXBinaryOpRHS$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$N)((0, import_lib2.$EXPECT)($
|
|
18067
|
+
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) {
|
|
17987
18068
|
var op = $2;
|
|
17988
18069
|
var rhs = $3;
|
|
17989
18070
|
return [[], op, [], rhs];
|
|
@@ -18000,7 +18081,7 @@ var InlineJSXUnaryExpression$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, im
|
|
|
18000
18081
|
function InlineJSXUnaryExpression(ctx, state2) {
|
|
18001
18082
|
return (0, import_lib2.$EVENT)(ctx, state2, "InlineJSXUnaryExpression", InlineJSXUnaryExpression$0);
|
|
18002
18083
|
}
|
|
18003
|
-
var InlineJSXUnaryOp$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
18084
|
+
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) {
|
|
18004
18085
|
return { $loc, token: $0 };
|
|
18005
18086
|
});
|
|
18006
18087
|
function InlineJSXUnaryOp(ctx, state2) {
|
|
@@ -18251,13 +18332,13 @@ var JSXComment$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$EXP
|
|
|
18251
18332
|
function JSXComment(ctx, state2) {
|
|
18252
18333
|
return (0, import_lib2.$EVENT)(ctx, state2, "JSXComment", JSXComment$0);
|
|
18253
18334
|
}
|
|
18254
|
-
var JSXCommentContent$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
18335
|
+
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) {
|
|
18255
18336
|
return { $loc, token: $0.replace(/\*\//g, "* /") };
|
|
18256
18337
|
});
|
|
18257
18338
|
function JSXCommentContent(ctx, state2) {
|
|
18258
18339
|
return (0, import_lib2.$EVENT)(ctx, state2, "JSXCommentContent", JSXCommentContent$0);
|
|
18259
18340
|
}
|
|
18260
|
-
var JSXText$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
18341
|
+
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) {
|
|
18261
18342
|
return {
|
|
18262
18343
|
type: "JSXText",
|
|
18263
18344
|
token: $0,
|
|
@@ -18791,7 +18872,7 @@ var TypeProperty$0 = (0, import_lib2.$S)((0, import_lib2.$E)((0, import_lib2.$S)
|
|
|
18791
18872
|
function TypeProperty(ctx, state2) {
|
|
18792
18873
|
return (0, import_lib2.$EVENT)(ctx, state2, "TypeProperty", TypeProperty$0);
|
|
18793
18874
|
}
|
|
18794
|
-
var TypeIndexSignature$0 = (0, import_lib2.$S)((0, import_lib2.$E)((0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
18875
|
+
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)))));
|
|
18795
18876
|
function TypeIndexSignature(ctx, state2) {
|
|
18796
18877
|
return (0, import_lib2.$EVENT)(ctx, state2, "TypeIndexSignature", TypeIndexSignature$0);
|
|
18797
18878
|
}
|
|
@@ -19300,7 +19381,7 @@ var TypeWithPostfix$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(TypeConditional
|
|
|
19300
19381
|
function TypeWithPostfix(ctx, state2) {
|
|
19301
19382
|
return (0, import_lib2.$EVENT)(ctx, state2, "TypeWithPostfix", TypeWithPostfix$0);
|
|
19302
19383
|
}
|
|
19303
|
-
var TypeConditional$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import_lib2.$E)(_), (0, import_lib2.$EXPECT)($
|
|
19384
|
+
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) {
|
|
19304
19385
|
return prepend($1, expressionizeTypeIf($3));
|
|
19305
19386
|
});
|
|
19306
19387
|
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) {
|
|
@@ -19534,8 +19615,8 @@ function TypeApplicationStart(ctx, state2) {
|
|
|
19534
19615
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "TypeApplicationStart", TypeApplicationStart$$);
|
|
19535
19616
|
}
|
|
19536
19617
|
var ForbiddenImplicitTypeCalls$0 = ReservedBinary;
|
|
19537
|
-
var ForbiddenImplicitTypeCalls$1 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
19538
|
-
var ForbiddenImplicitTypeCalls$2 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
19618
|
+
var ForbiddenImplicitTypeCalls$1 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R93, "ForbiddenImplicitTypeCalls /[|&<!=\\-\u21D2\u2192]/"));
|
|
19619
|
+
var ForbiddenImplicitTypeCalls$2 = (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R94, "ForbiddenImplicitTypeCalls /(extends|not|is)(?!\\p{ID_Continue}|[\\u200C\\u200D$])/"));
|
|
19539
19620
|
var ForbiddenImplicitTypeCalls$$ = [ForbiddenImplicitTypeCalls$0, ForbiddenImplicitTypeCalls$1, ForbiddenImplicitTypeCalls$2];
|
|
19540
19621
|
function ForbiddenImplicitTypeCalls(ctx, state2) {
|
|
19541
19622
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "ForbiddenImplicitTypeCalls", ForbiddenImplicitTypeCalls$$);
|
|
@@ -19626,7 +19707,7 @@ var TypeParameters$0 = (0, import_lib2.$TS)((0, import_lib2.$S)(OpenAngleBracket
|
|
|
19626
19707
|
function TypeParameters(ctx, state2) {
|
|
19627
19708
|
return (0, import_lib2.$EVENT)(ctx, state2, "TypeParameters", TypeParameters$0);
|
|
19628
19709
|
}
|
|
19629
|
-
var TypeParameter$0 = (0, import_lib2.$S)(__, (0, import_lib2.$Q)((0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
19710
|
+
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);
|
|
19630
19711
|
function TypeParameter(ctx, state2) {
|
|
19631
19712
|
return (0, import_lib2.$EVENT)(ctx, state2, "TypeParameter", TypeParameter$0);
|
|
19632
19713
|
}
|
|
@@ -19653,15 +19734,15 @@ var ThisType$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$E)(_),
|
|
|
19653
19734
|
function ThisType(ctx, state2) {
|
|
19654
19735
|
return (0, import_lib2.$EVENT)(ctx, state2, "ThisType", ThisType$0);
|
|
19655
19736
|
}
|
|
19656
|
-
var Shebang$0 = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
19737
|
+
var Shebang$0 = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R96, "Shebang /#![^\\r\\n]*/")), EOL);
|
|
19657
19738
|
function Shebang(ctx, state2) {
|
|
19658
19739
|
return (0, import_lib2.$EVENT)(ctx, state2, "Shebang", Shebang$0);
|
|
19659
19740
|
}
|
|
19660
|
-
var CivetPrologue$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
19741
|
+
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) {
|
|
19661
19742
|
var content = value[2];
|
|
19662
19743
|
return content;
|
|
19663
19744
|
});
|
|
19664
|
-
var CivetPrologue$1 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
19745
|
+
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) {
|
|
19665
19746
|
var content = value[2];
|
|
19666
19747
|
return content;
|
|
19667
19748
|
});
|
|
@@ -19669,7 +19750,7 @@ var CivetPrologue$$ = [CivetPrologue$0, CivetPrologue$1];
|
|
|
19669
19750
|
function CivetPrologue(ctx, state2) {
|
|
19670
19751
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "CivetPrologue", CivetPrologue$$);
|
|
19671
19752
|
}
|
|
19672
|
-
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)($
|
|
19753
|
+
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) {
|
|
19673
19754
|
var options = $3;
|
|
19674
19755
|
return {
|
|
19675
19756
|
type: "CivetPrologue",
|
|
@@ -19680,7 +19761,7 @@ var CivetPrologueContent$0 = (0, import_lib2.$TS)((0, import_lib2.$S)((0, import
|
|
|
19680
19761
|
function CivetPrologueContent(ctx, state2) {
|
|
19681
19762
|
return (0, import_lib2.$EVENT)(ctx, state2, "CivetPrologueContent", CivetPrologueContent$0);
|
|
19682
19763
|
}
|
|
19683
|
-
var CivetOption$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
19764
|
+
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) {
|
|
19684
19765
|
const optionName = $2.replace(/-+([a-z]?)/g, (_2, l) => {
|
|
19685
19766
|
if (l)
|
|
19686
19767
|
return l.toUpperCase();
|
|
@@ -19703,11 +19784,11 @@ var CivetOption$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($R98, "CivetOp
|
|
|
19703
19784
|
function CivetOption(ctx, state2) {
|
|
19704
19785
|
return (0, import_lib2.$EVENT)(ctx, state2, "CivetOption", CivetOption$0);
|
|
19705
19786
|
}
|
|
19706
|
-
var UnknownPrologue$0 = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
19787
|
+
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);
|
|
19707
19788
|
function UnknownPrologue(ctx, state2) {
|
|
19708
19789
|
return (0, import_lib2.$EVENT)(ctx, state2, "UnknownPrologue", UnknownPrologue$0);
|
|
19709
19790
|
}
|
|
19710
|
-
var TripleSlashDirective$0 = (0, import_lib2.$S)((0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
19791
|
+
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));
|
|
19711
19792
|
function TripleSlashDirective(ctx, state2) {
|
|
19712
19793
|
return (0, import_lib2.$EVENT)(ctx, state2, "TripleSlashDirective", TripleSlashDirective$0);
|
|
19713
19794
|
}
|
|
@@ -19723,13 +19804,13 @@ var PrologueString$$ = [PrologueString$0, PrologueString$1];
|
|
|
19723
19804
|
function PrologueString(ctx, state2) {
|
|
19724
19805
|
return (0, import_lib2.$EVENT_C)(ctx, state2, "PrologueString", PrologueString$$);
|
|
19725
19806
|
}
|
|
19726
|
-
var EOS$0 = (0, import_lib2.$T)((0, import_lib2.$S)((0, import_lib2.$EXPECT)($
|
|
19807
|
+
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) {
|
|
19727
19808
|
return value[1];
|
|
19728
19809
|
});
|
|
19729
19810
|
function EOS(ctx, state2) {
|
|
19730
19811
|
return (0, import_lib2.$EVENT)(ctx, state2, "EOS", EOS$0);
|
|
19731
19812
|
}
|
|
19732
|
-
var EOL$0 = (0, import_lib2.$TR)((0, import_lib2.$EXPECT)($
|
|
19813
|
+
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) {
|
|
19733
19814
|
return { $loc, token: $0 };
|
|
19734
19815
|
});
|
|
19735
19816
|
function EOL(ctx, state2) {
|
|
@@ -20145,7 +20226,7 @@ var Prologue$0 = (0, import_lib2.$Q)((0, import_lib2.$C)(TripleSlashDirective, (
|
|
|
20145
20226
|
function Prologue(ctx, state2) {
|
|
20146
20227
|
return (0, import_lib2.$EVENT)(ctx, state2, "Prologue", Prologue$0);
|
|
20147
20228
|
}
|
|
20148
|
-
var ProloguePrefix$0 = (0, import_lib2.$S)(Prologue, (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($
|
|
20229
|
+
var ProloguePrefix$0 = (0, import_lib2.$S)(Prologue, (0, import_lib2.$R$0)((0, import_lib2.$EXPECT)($R103, "ProloguePrefix /[^]*/")));
|
|
20149
20230
|
function ProloguePrefix(ctx, state2) {
|
|
20150
20231
|
return (0, import_lib2.$EVENT)(ctx, state2, "ProloguePrefix", ProloguePrefix$0);
|
|
20151
20232
|
}
|