@env-spec/parser 0.1.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-W7OLHAQY.js → chunk-CHM43IJO.js} +79 -17
- package/dist/chunk-CHM43IJO.js.map +1 -0
- package/dist/{chunk-CO7WMO6T.mjs → chunk-RRVAHNIY.mjs} +79 -18
- package/dist/chunk-RRVAHNIY.mjs.map +1 -0
- package/dist/{classes-BGIxXMLF.d.mts → classes-CgmCxTZQ.d.mts} +39 -13
- package/dist/{classes-BGIxXMLF.d.ts → classes-CgmCxTZQ.d.ts} +39 -13
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +610 -471
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +465 -330
- package/dist/index.mjs.map +1 -1
- package/dist/simple-resolver.d.mts +1 -1
- package/dist/simple-resolver.d.ts +1 -1
- package/dist/simple-resolver.js +25 -14
- package/dist/simple-resolver.js.map +1 -1
- package/dist/simple-resolver.mjs +17 -6
- package/dist/simple-resolver.mjs.map +1 -1
- package/package.json +11 -8
- package/dist/chunk-CO7WMO6T.mjs.map +0 -1
- package/dist/chunk-W7OLHAQY.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkCHM43IJO_js = require('./chunk-CHM43IJO.js');
|
|
4
4
|
|
|
5
5
|
// src/updater.ts
|
|
6
6
|
function ensureHeader(file, newHeaderContents) {
|
|
7
7
|
if (!file.header) {
|
|
8
8
|
newHeaderContents ||= "This env file uses @env-spec - see https://varlock.dev/env-spec for more info\n";
|
|
9
9
|
file.contents.unshift(
|
|
10
|
-
// header is
|
|
11
|
-
new
|
|
10
|
+
// header is any comment block(s) before the first config item; we add a divider for clarity
|
|
11
|
+
new chunkCHM43IJO_js.ParsedEnvSpecCommentBlock({
|
|
12
12
|
// we'll break up the passed in content and add a comment line for each
|
|
13
|
-
comments: newHeaderContents.split("\n").map((line) => new
|
|
14
|
-
divider: new
|
|
13
|
+
comments: newHeaderContents.split("\n").map((line) => new chunkCHM43IJO_js.ParsedEnvSpecComment({ contents: line, leadingSpace: " " })),
|
|
14
|
+
divider: new chunkCHM43IJO_js.ParsedEnvSpecDivider({ contents: "----------", leadingSpace: " " })
|
|
15
15
|
}),
|
|
16
|
-
new
|
|
16
|
+
new chunkCHM43IJO_js.ParsedEnvSpecBlankLine({})
|
|
17
17
|
// add extra blank line after header
|
|
18
18
|
);
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
chunkCHM43IJO_js.__name(ensureHeader, "ensureHeader");
|
|
22
22
|
function createDummyDecoratorNode(decoratorName, valueStr, opts) {
|
|
23
23
|
let decStr = `@${decoratorName}`;
|
|
24
24
|
if (opts?.bareFnArgs) decStr += `(${valueStr})`;
|
|
@@ -31,7 +31,7 @@ function createDummyDecoratorNode(decoratorName, valueStr, opts) {
|
|
|
31
31
|
if (!newDecNode) throw new Error("Creating new decorator failed");
|
|
32
32
|
return newDecNode;
|
|
33
33
|
}
|
|
34
|
-
|
|
34
|
+
chunkCHM43IJO_js.__name(createDummyDecoratorNode, "createDummyDecoratorNode");
|
|
35
35
|
function setRootDecorator(file, decoratorName, valueStr, opts) {
|
|
36
36
|
ensureHeader(file);
|
|
37
37
|
const newDecNode = createDummyDecoratorNode(decoratorName, valueStr, opts);
|
|
@@ -42,10 +42,10 @@ function setRootDecorator(file, decoratorName, valueStr, opts) {
|
|
|
42
42
|
if (!file.header) throw new Error("No header found");
|
|
43
43
|
const lastComment = file.header.data.comments[file.header.data.comments.length - 1];
|
|
44
44
|
let decCommentLine;
|
|
45
|
-
if (lastComment instanceof
|
|
45
|
+
if (lastComment instanceof chunkCHM43IJO_js.ParsedEnvSpecDecoratorComment && lastComment.toString().length < 40) {
|
|
46
46
|
decCommentLine = lastComment;
|
|
47
47
|
} else {
|
|
48
|
-
decCommentLine = new
|
|
48
|
+
decCommentLine = new chunkCHM43IJO_js.ParsedEnvSpecDecoratorComment({
|
|
49
49
|
decorators: [],
|
|
50
50
|
leadingSpace: " ",
|
|
51
51
|
...opts?.comment && { postComment: `# ${opts.comment}` }
|
|
@@ -55,11 +55,11 @@ function setRootDecorator(file, decoratorName, valueStr, opts) {
|
|
|
55
55
|
decCommentLine.decorators.push(newDecNode);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
|
|
58
|
+
chunkCHM43IJO_js.__name(setRootDecorator, "setRootDecorator");
|
|
59
59
|
function setItemDecorator(file, key, decoratorName, valueStr, opts) {
|
|
60
60
|
let item = file.configItems.find((i) => i.key === key);
|
|
61
61
|
if (!item) {
|
|
62
|
-
item = new
|
|
62
|
+
item = new chunkCHM43IJO_js.ParsedEnvSpecConfigItem({
|
|
63
63
|
key,
|
|
64
64
|
value: void 0,
|
|
65
65
|
preComments: [],
|
|
@@ -74,10 +74,10 @@ function setItemDecorator(file, key, decoratorName, valueStr, opts) {
|
|
|
74
74
|
} else {
|
|
75
75
|
const lastComment = item.data.preComments[item.data.preComments.length - 1];
|
|
76
76
|
let decCommentLine;
|
|
77
|
-
if (lastComment instanceof
|
|
77
|
+
if (lastComment instanceof chunkCHM43IJO_js.ParsedEnvSpecDecoratorComment && lastComment.toString().length < 40) {
|
|
78
78
|
decCommentLine = lastComment;
|
|
79
79
|
} else {
|
|
80
|
-
decCommentLine = new
|
|
80
|
+
decCommentLine = new chunkCHM43IJO_js.ParsedEnvSpecDecoratorComment({
|
|
81
81
|
decorators: [],
|
|
82
82
|
leadingSpace: " "
|
|
83
83
|
});
|
|
@@ -86,7 +86,7 @@ function setItemDecorator(file, key, decoratorName, valueStr, opts) {
|
|
|
86
86
|
decCommentLine.decorators.push(newDecNode);
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
|
|
89
|
+
chunkCHM43IJO_js.__name(setItemDecorator, "setItemDecorator");
|
|
90
90
|
function injectFromStr(file, content, opts) {
|
|
91
91
|
const parsed = parseEnvSpecDotEnvFile(content);
|
|
92
92
|
let injectIndex = file.contents.length;
|
|
@@ -107,14 +107,14 @@ function injectFromStr(file, content, opts) {
|
|
|
107
107
|
}
|
|
108
108
|
file.contents.splice(injectIndex, 0, ...parsed.contents);
|
|
109
109
|
}
|
|
110
|
-
|
|
110
|
+
chunkCHM43IJO_js.__name(injectFromStr, "injectFromStr");
|
|
111
111
|
function deleteItem(file, key) {
|
|
112
112
|
const item = file.configItems.find((i) => i.key === key);
|
|
113
113
|
if (item) {
|
|
114
114
|
file.contents.splice(file.contents.indexOf(item), 1);
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
|
|
117
|
+
chunkCHM43IJO_js.__name(deleteItem, "deleteItem");
|
|
118
118
|
var envSpecUpdater = {
|
|
119
119
|
ensureHeader,
|
|
120
120
|
setRootDecorator,
|
|
@@ -126,7 +126,7 @@ var envSpecUpdater = {
|
|
|
126
126
|
// src/grammar.js
|
|
127
127
|
var peg$SyntaxError = class extends SyntaxError {
|
|
128
128
|
static {
|
|
129
|
-
|
|
129
|
+
chunkCHM43IJO_js.__name(this, "peg$SyntaxError");
|
|
130
130
|
}
|
|
131
131
|
constructor(message, expected, found, location) {
|
|
132
132
|
super(message);
|
|
@@ -163,7 +163,7 @@ var peg$SyntaxError = class extends SyntaxError {
|
|
|
163
163
|
function hex(ch) {
|
|
164
164
|
return ch.codePointAt(0).toString(16).toUpperCase();
|
|
165
165
|
}
|
|
166
|
-
|
|
166
|
+
chunkCHM43IJO_js.__name(hex, "hex");
|
|
167
167
|
const nonPrintable = Object.prototype.hasOwnProperty.call(RegExp.prototype, "unicode") ? new RegExp("[\\p{C}\\p{Mn}\\p{Mc}]", "gu") : null;
|
|
168
168
|
function unicodeEscape(s) {
|
|
169
169
|
if (nonPrintable) {
|
|
@@ -171,15 +171,15 @@ var peg$SyntaxError = class extends SyntaxError {
|
|
|
171
171
|
}
|
|
172
172
|
return s;
|
|
173
173
|
}
|
|
174
|
-
|
|
174
|
+
chunkCHM43IJO_js.__name(unicodeEscape, "unicodeEscape");
|
|
175
175
|
function literalEscape(s) {
|
|
176
176
|
return unicodeEscape(s.replace(/\\/g, "\\\\").replace(/"/g, '\\"').replace(/\0/g, "\\0").replace(/\t/g, "\\t").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/[\x00-\x0F]/g, (ch) => "\\x0" + hex(ch)).replace(/[\x10-\x1F\x7F-\x9F]/g, (ch) => "\\x" + hex(ch)));
|
|
177
177
|
}
|
|
178
|
-
|
|
178
|
+
chunkCHM43IJO_js.__name(literalEscape, "literalEscape");
|
|
179
179
|
function classEscape(s) {
|
|
180
180
|
return unicodeEscape(s.replace(/\\/g, "\\\\").replace(/\]/g, "\\]").replace(/\^/g, "\\^").replace(/-/g, "\\-").replace(/\0/g, "\\0").replace(/\t/g, "\\t").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/[\x00-\x0F]/g, (ch) => "\\x0" + hex(ch)).replace(/[\x10-\x1F\x7F-\x9F]/g, (ch) => "\\x" + hex(ch)));
|
|
181
181
|
}
|
|
182
|
-
|
|
182
|
+
chunkCHM43IJO_js.__name(classEscape, "classEscape");
|
|
183
183
|
const DESCRIBE_EXPECTATION_FNS = {
|
|
184
184
|
literal(expectation) {
|
|
185
185
|
return '"' + literalEscape(expectation.text) + '"';
|
|
@@ -203,7 +203,7 @@ var peg$SyntaxError = class extends SyntaxError {
|
|
|
203
203
|
function describeExpectation(expectation) {
|
|
204
204
|
return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation);
|
|
205
205
|
}
|
|
206
|
-
|
|
206
|
+
chunkCHM43IJO_js.__name(describeExpectation, "describeExpectation");
|
|
207
207
|
function describeExpected(expected2) {
|
|
208
208
|
const descriptions = expected2.map(describeExpectation);
|
|
209
209
|
descriptions.sort();
|
|
@@ -226,11 +226,11 @@ var peg$SyntaxError = class extends SyntaxError {
|
|
|
226
226
|
return descriptions.slice(0, -1).join(", ") + ", or " + descriptions[descriptions.length - 1];
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
|
-
|
|
229
|
+
chunkCHM43IJO_js.__name(describeExpected, "describeExpected");
|
|
230
230
|
function describeFound(found2) {
|
|
231
231
|
return found2 ? '"' + literalEscape(found2) + '"' : "end of input";
|
|
232
232
|
}
|
|
233
|
-
|
|
233
|
+
chunkCHM43IJO_js.__name(describeFound, "describeFound");
|
|
234
234
|
return "Expected " + describeExpected(expected) + " but " + describeFound(found) + " found.";
|
|
235
235
|
}
|
|
236
236
|
};
|
|
@@ -251,13 +251,15 @@ function peg$parse(input, options) {
|
|
|
251
251
|
const peg$c6 = "(";
|
|
252
252
|
const peg$c7 = ",";
|
|
253
253
|
const peg$c8 = ")";
|
|
254
|
-
const peg$c9 =
|
|
255
|
-
const peg$c10 = "
|
|
256
|
-
const peg$c11 = "
|
|
257
|
-
const peg$c12 = '"
|
|
258
|
-
const peg$c13 =
|
|
259
|
-
const peg$c14 = "
|
|
260
|
-
const peg$c15 = "
|
|
254
|
+
const peg$c9 = "/";
|
|
255
|
+
const peg$c10 = "\\/";
|
|
256
|
+
const peg$c11 = '\\"';
|
|
257
|
+
const peg$c12 = "\\'";
|
|
258
|
+
const peg$c13 = "\\`";
|
|
259
|
+
const peg$c14 = '"""';
|
|
260
|
+
const peg$c15 = '\\"""';
|
|
261
|
+
const peg$c16 = "```";
|
|
262
|
+
const peg$c17 = "\\```";
|
|
261
263
|
const peg$r0 = /^[a-zA-Z_]/;
|
|
262
264
|
const peg$r1 = /^[a-zA-Z0-9_.\-]/;
|
|
263
265
|
const peg$r2 = /^[^\n]/;
|
|
@@ -268,15 +270,17 @@ function peg$parse(input, options) {
|
|
|
268
270
|
const peg$r7 = /^[ \t]/;
|
|
269
271
|
const peg$r8 = /^[ \t\n]/;
|
|
270
272
|
const peg$r9 = /^[\-=*#]/;
|
|
271
|
-
const peg$r10 = /^[
|
|
272
|
-
const peg$r11 = /^[
|
|
273
|
-
const peg$r12 = /^[
|
|
274
|
-
const peg$r13 = /^[
|
|
275
|
-
const peg$r14 = /^[
|
|
276
|
-
const peg$r15 = /^[
|
|
277
|
-
const peg$r16 = /^[^
|
|
278
|
-
const peg$r17 = /^[
|
|
279
|
-
const peg$r18 = /^[
|
|
273
|
+
const peg$r10 = /^[^\/\n]/;
|
|
274
|
+
const peg$r11 = /^[gimsuy]/;
|
|
275
|
+
const peg$r12 = /^['"`]/;
|
|
276
|
+
const peg$r13 = /^[^#\n]/;
|
|
277
|
+
const peg$r14 = /^[^# \n]/;
|
|
278
|
+
const peg$r15 = /^["]/;
|
|
279
|
+
const peg$r16 = /^[^"\n]/;
|
|
280
|
+
const peg$r17 = /^[']/;
|
|
281
|
+
const peg$r18 = /^[^'\n]/;
|
|
282
|
+
const peg$r19 = /^[`]/;
|
|
283
|
+
const peg$r20 = /^[^`\n]/;
|
|
280
284
|
const peg$e0 = peg$literalExpectation("\n", false);
|
|
281
285
|
const peg$e1 = peg$literalExpectation("export ", false);
|
|
282
286
|
const peg$e2 = peg$literalExpectation("=", false);
|
|
@@ -296,33 +300,37 @@ function peg$parse(input, options) {
|
|
|
296
300
|
const peg$e16 = peg$classExpectation([" ", " "], false, false, false);
|
|
297
301
|
const peg$e17 = peg$classExpectation([" ", " ", "\n"], false, false, false);
|
|
298
302
|
const peg$e18 = peg$classExpectation(["-", "=", "*", "#"], false, false, false);
|
|
299
|
-
const peg$e19 = peg$
|
|
300
|
-
const peg$e20 = peg$
|
|
301
|
-
const peg$e21 = peg$classExpectation(["
|
|
302
|
-
const peg$e22 = peg$classExpectation([
|
|
303
|
-
const peg$e23 = peg$
|
|
304
|
-
const peg$e24 = peg$classExpectation([
|
|
305
|
-
const peg$e25 = peg$classExpectation(["
|
|
306
|
-
const peg$e26 = peg$
|
|
307
|
-
const peg$e27 = peg$
|
|
308
|
-
const peg$e28 = peg$classExpectation(["
|
|
309
|
-
const peg$e29 = peg$
|
|
310
|
-
const peg$e30 = peg$
|
|
311
|
-
const peg$e31 = peg$
|
|
312
|
-
const peg$e32 = peg$
|
|
313
|
-
const peg$e33 = peg$literalExpectation("
|
|
314
|
-
const peg$e34 = peg$
|
|
315
|
-
const peg$e35 = peg$
|
|
303
|
+
const peg$e19 = peg$literalExpectation("/", false);
|
|
304
|
+
const peg$e20 = peg$literalExpectation("\\/", false);
|
|
305
|
+
const peg$e21 = peg$classExpectation(["/", "\n"], true, false, false);
|
|
306
|
+
const peg$e22 = peg$classExpectation(["g", "i", "m", "s", "u", "y"], false, false, false);
|
|
307
|
+
const peg$e23 = peg$classExpectation(["'", '"', "`"], false, false, false);
|
|
308
|
+
const peg$e24 = peg$classExpectation(["#", "\n"], true, false, false);
|
|
309
|
+
const peg$e25 = peg$classExpectation(["#", " ", "\n"], true, false, false);
|
|
310
|
+
const peg$e26 = peg$classExpectation(['"'], false, false, false);
|
|
311
|
+
const peg$e27 = peg$literalExpectation('\\"', false);
|
|
312
|
+
const peg$e28 = peg$classExpectation(['"', "\n"], true, false, false);
|
|
313
|
+
const peg$e29 = peg$classExpectation(["'"], false, false, false);
|
|
314
|
+
const peg$e30 = peg$literalExpectation("\\'", false);
|
|
315
|
+
const peg$e31 = peg$classExpectation(["'", "\n"], true, false, false);
|
|
316
|
+
const peg$e32 = peg$classExpectation(["`"], false, false, false);
|
|
317
|
+
const peg$e33 = peg$literalExpectation("\\`", false);
|
|
318
|
+
const peg$e34 = peg$classExpectation(["`", "\n"], true, false, false);
|
|
319
|
+
const peg$e35 = peg$literalExpectation('"""', false);
|
|
320
|
+
const peg$e36 = peg$literalExpectation('\\"""', false);
|
|
321
|
+
const peg$e37 = peg$literalExpectation("```", false);
|
|
322
|
+
const peg$e38 = peg$literalExpectation("\\```", false);
|
|
323
|
+
const peg$e39 = peg$anyExpectation();
|
|
316
324
|
function peg$f0() {
|
|
317
|
-
return new
|
|
325
|
+
return new chunkCHM43IJO_js.ParsedEnvSpecBlankLine({ _location: location() });
|
|
318
326
|
}
|
|
319
|
-
|
|
327
|
+
chunkCHM43IJO_js.__name(peg$f0, "peg$f0");
|
|
320
328
|
function peg$f1(contents) {
|
|
321
|
-
return new
|
|
329
|
+
return new chunkCHM43IJO_js.ParsedEnvSpecFile(contents);
|
|
322
330
|
}
|
|
323
|
-
|
|
331
|
+
chunkCHM43IJO_js.__name(peg$f1, "peg$f1");
|
|
324
332
|
function peg$f2(preComments, key, value, postComment) {
|
|
325
|
-
return new
|
|
333
|
+
return new chunkCHM43IJO_js.ParsedEnvSpecConfigItem({
|
|
326
334
|
key,
|
|
327
335
|
preComments,
|
|
328
336
|
postComment,
|
|
@@ -330,135 +338,144 @@ function peg$parse(input, options) {
|
|
|
330
338
|
_location: location()
|
|
331
339
|
});
|
|
332
340
|
}
|
|
333
|
-
|
|
341
|
+
chunkCHM43IJO_js.__name(peg$f2, "peg$f2");
|
|
334
342
|
function peg$f3(comments, end) {
|
|
335
|
-
return new
|
|
343
|
+
return new chunkCHM43IJO_js.ParsedEnvSpecCommentBlock({
|
|
336
344
|
comments,
|
|
337
|
-
divider: end instanceof
|
|
345
|
+
divider: end instanceof chunkCHM43IJO_js.ParsedEnvSpecDivider ? end : void 0,
|
|
338
346
|
_location: location()
|
|
339
347
|
});
|
|
340
348
|
}
|
|
341
|
-
|
|
349
|
+
chunkCHM43IJO_js.__name(peg$f3, "peg$f3");
|
|
342
350
|
function peg$f4(leadingSpace, contents) {
|
|
343
|
-
return new
|
|
351
|
+
return new chunkCHM43IJO_js.ParsedEnvSpecComment({
|
|
344
352
|
contents,
|
|
345
353
|
leadingSpace,
|
|
346
354
|
_location: location()
|
|
347
355
|
});
|
|
348
356
|
}
|
|
349
|
-
|
|
357
|
+
chunkCHM43IJO_js.__name(peg$f4, "peg$f4");
|
|
350
358
|
function peg$f5(leadingSpace, contents) {
|
|
351
|
-
return new
|
|
359
|
+
return new chunkCHM43IJO_js.ParsedEnvSpecComment({ contents, leadingSpace, _location: location() });
|
|
352
360
|
}
|
|
353
|
-
|
|
361
|
+
chunkCHM43IJO_js.__name(peg$f5, "peg$f5");
|
|
354
362
|
function peg$f6(leadingSpace, first, rest, postComment) {
|
|
355
|
-
return new
|
|
363
|
+
return new chunkCHM43IJO_js.ParsedEnvSpecDecoratorComment({
|
|
356
364
|
decorators: [first, ...rest],
|
|
357
365
|
leadingSpace,
|
|
358
366
|
postComment,
|
|
359
367
|
_location: location()
|
|
360
368
|
});
|
|
361
369
|
}
|
|
362
|
-
|
|
370
|
+
chunkCHM43IJO_js.__name(peg$f6, "peg$f6");
|
|
363
371
|
function peg$f7(name, val) {
|
|
364
|
-
return new
|
|
372
|
+
return new chunkCHM43IJO_js.ParsedEnvSpecDecorator({
|
|
365
373
|
name,
|
|
366
374
|
value: Array.isArray(val) ? val[1] : val,
|
|
367
375
|
isBareFnCall: val && !Array.isArray(val),
|
|
368
376
|
_location: location()
|
|
369
377
|
});
|
|
370
378
|
}
|
|
371
|
-
|
|
379
|
+
chunkCHM43IJO_js.__name(peg$f7, "peg$f7");
|
|
372
380
|
function peg$f8(name, args) {
|
|
373
|
-
return new
|
|
381
|
+
return new chunkCHM43IJO_js.ParsedEnvSpecFunctionCall({
|
|
374
382
|
name,
|
|
375
383
|
args,
|
|
376
384
|
_location: location()
|
|
377
385
|
});
|
|
378
386
|
}
|
|
379
|
-
|
|
387
|
+
chunkCHM43IJO_js.__name(peg$f8, "peg$f8");
|
|
380
388
|
function peg$f9(key, val) {
|
|
381
|
-
return new
|
|
389
|
+
return new chunkCHM43IJO_js.ParsedEnvSpecKeyValuePair({ key, val });
|
|
382
390
|
}
|
|
383
|
-
|
|
391
|
+
chunkCHM43IJO_js.__name(peg$f9, "peg$f9");
|
|
384
392
|
function peg$f10(values) {
|
|
385
|
-
return new
|
|
393
|
+
return new chunkCHM43IJO_js.ParsedEnvSpecFunctionArgs({
|
|
386
394
|
values: values || [],
|
|
387
395
|
_location: location()
|
|
388
396
|
});
|
|
389
397
|
}
|
|
390
|
-
|
|
398
|
+
chunkCHM43IJO_js.__name(peg$f10, "peg$f10");
|
|
391
399
|
function peg$f11() {
|
|
392
|
-
return new
|
|
400
|
+
return new chunkCHM43IJO_js.ParsedEnvSpecStaticValue({ rawValue: text(), _location: location() });
|
|
393
401
|
}
|
|
394
|
-
|
|
402
|
+
chunkCHM43IJO_js.__name(peg$f11, "peg$f11");
|
|
395
403
|
function peg$f12(name, args) {
|
|
396
|
-
return new
|
|
404
|
+
return new chunkCHM43IJO_js.ParsedEnvSpecFunctionCall({
|
|
397
405
|
name,
|
|
398
406
|
args,
|
|
399
407
|
_location: location()
|
|
400
408
|
});
|
|
401
409
|
}
|
|
402
|
-
|
|
410
|
+
chunkCHM43IJO_js.__name(peg$f12, "peg$f12");
|
|
403
411
|
function peg$f13(key, val) {
|
|
404
|
-
return new
|
|
412
|
+
return new chunkCHM43IJO_js.ParsedEnvSpecKeyValuePair({ key, val });
|
|
405
413
|
}
|
|
406
|
-
|
|
414
|
+
chunkCHM43IJO_js.__name(peg$f13, "peg$f13");
|
|
407
415
|
function peg$f14(values) {
|
|
408
|
-
return new
|
|
416
|
+
return new chunkCHM43IJO_js.ParsedEnvSpecFunctionArgs({
|
|
409
417
|
values: values || [],
|
|
410
418
|
_location: location()
|
|
411
419
|
});
|
|
412
420
|
}
|
|
413
|
-
|
|
421
|
+
chunkCHM43IJO_js.__name(peg$f14, "peg$f14");
|
|
414
422
|
function peg$f15() {
|
|
415
|
-
return new
|
|
423
|
+
return new chunkCHM43IJO_js.ParsedEnvSpecStaticValue({ rawValue: text(), _location: location() });
|
|
416
424
|
}
|
|
417
|
-
|
|
425
|
+
chunkCHM43IJO_js.__name(peg$f15, "peg$f15");
|
|
418
426
|
function peg$f16(leadingSpace, contents) {
|
|
419
|
-
return new
|
|
427
|
+
return new chunkCHM43IJO_js.ParsedEnvSpecDivider({
|
|
420
428
|
contents,
|
|
421
429
|
leadingSpace,
|
|
422
430
|
_location: location()
|
|
423
431
|
});
|
|
424
432
|
}
|
|
425
|
-
|
|
426
|
-
function peg$f17() {
|
|
427
|
-
return new
|
|
433
|
+
chunkCHM43IJO_js.__name(peg$f16, "peg$f16");
|
|
434
|
+
function peg$f17(pattern, flags) {
|
|
435
|
+
return new chunkCHM43IJO_js.ParsedEnvSpecRegexLiteral({
|
|
436
|
+
rawValue: text(),
|
|
437
|
+
pattern: pattern.replaceAll("\\/", "/"),
|
|
438
|
+
flags,
|
|
439
|
+
_location: location()
|
|
440
|
+
});
|
|
428
441
|
}
|
|
429
|
-
|
|
442
|
+
chunkCHM43IJO_js.__name(peg$f17, "peg$f17");
|
|
430
443
|
function peg$f18() {
|
|
431
|
-
return new
|
|
444
|
+
return new chunkCHM43IJO_js.ParsedEnvSpecStaticValue({ rawValue: text(), _location: location() });
|
|
432
445
|
}
|
|
433
|
-
|
|
434
|
-
function peg$f19(
|
|
435
|
-
return new
|
|
446
|
+
chunkCHM43IJO_js.__name(peg$f18, "peg$f18");
|
|
447
|
+
function peg$f19() {
|
|
448
|
+
return new chunkCHM43IJO_js.ParsedEnvSpecStaticValue({ rawValue: text(), _location: location() });
|
|
436
449
|
}
|
|
437
|
-
|
|
450
|
+
chunkCHM43IJO_js.__name(peg$f19, "peg$f19");
|
|
438
451
|
function peg$f20(quote) {
|
|
439
|
-
return new
|
|
452
|
+
return new chunkCHM43IJO_js.ParsedEnvSpecStaticValue({ quote, rawValue: text(), _location: location() });
|
|
440
453
|
}
|
|
441
|
-
|
|
454
|
+
chunkCHM43IJO_js.__name(peg$f20, "peg$f20");
|
|
442
455
|
function peg$f21(quote) {
|
|
443
|
-
return new
|
|
456
|
+
return new chunkCHM43IJO_js.ParsedEnvSpecStaticValue({ quote, rawValue: text(), _location: location() });
|
|
444
457
|
}
|
|
445
|
-
|
|
458
|
+
chunkCHM43IJO_js.__name(peg$f21, "peg$f21");
|
|
446
459
|
function peg$f22(quote) {
|
|
447
|
-
return new
|
|
460
|
+
return new chunkCHM43IJO_js.ParsedEnvSpecStaticValue({ quote, rawValue: text(), _location: location() });
|
|
448
461
|
}
|
|
449
|
-
|
|
462
|
+
chunkCHM43IJO_js.__name(peg$f22, "peg$f22");
|
|
450
463
|
function peg$f23(quote) {
|
|
451
|
-
return new
|
|
464
|
+
return new chunkCHM43IJO_js.ParsedEnvSpecStaticValue({ quote, isMultiLine: true, rawValue: text(), _location: location() });
|
|
452
465
|
}
|
|
453
|
-
|
|
466
|
+
chunkCHM43IJO_js.__name(peg$f23, "peg$f23");
|
|
454
467
|
function peg$f24(quote) {
|
|
455
|
-
return new
|
|
468
|
+
return new chunkCHM43IJO_js.ParsedEnvSpecStaticValue({ quote, isMultiLine: true, rawValue: text(), _location: location() });
|
|
456
469
|
}
|
|
457
|
-
|
|
470
|
+
chunkCHM43IJO_js.__name(peg$f24, "peg$f24");
|
|
458
471
|
function peg$f25(quote) {
|
|
459
|
-
return new
|
|
472
|
+
return new chunkCHM43IJO_js.ParsedEnvSpecStaticValue({ quote, isMultiLine: true, rawValue: text(), _location: location() });
|
|
473
|
+
}
|
|
474
|
+
chunkCHM43IJO_js.__name(peg$f25, "peg$f25");
|
|
475
|
+
function peg$f26(quote) {
|
|
476
|
+
return new chunkCHM43IJO_js.ParsedEnvSpecStaticValue({ quote, isMultiLine: true, rawValue: text(), _location: location() });
|
|
460
477
|
}
|
|
461
|
-
|
|
478
|
+
chunkCHM43IJO_js.__name(peg$f26, "peg$f26");
|
|
462
479
|
let peg$currPos = options.peg$currPos | 0;
|
|
463
480
|
let peg$savedPos = peg$currPos;
|
|
464
481
|
const peg$posDetailsCache = [{ line: 1, column: 1 }];
|
|
@@ -475,11 +492,11 @@ function peg$parse(input, options) {
|
|
|
475
492
|
function text() {
|
|
476
493
|
return input.substring(peg$savedPos, peg$currPos);
|
|
477
494
|
}
|
|
478
|
-
|
|
495
|
+
chunkCHM43IJO_js.__name(text, "text");
|
|
479
496
|
function offset() {
|
|
480
497
|
return peg$savedPos;
|
|
481
498
|
}
|
|
482
|
-
|
|
499
|
+
chunkCHM43IJO_js.__name(offset, "offset");
|
|
483
500
|
function range() {
|
|
484
501
|
return {
|
|
485
502
|
source: peg$source,
|
|
@@ -487,11 +504,11 @@ function peg$parse(input, options) {
|
|
|
487
504
|
end: peg$currPos
|
|
488
505
|
};
|
|
489
506
|
}
|
|
490
|
-
|
|
507
|
+
chunkCHM43IJO_js.__name(range, "range");
|
|
491
508
|
function location() {
|
|
492
509
|
return peg$computeLocation(peg$savedPos, peg$currPos);
|
|
493
510
|
}
|
|
494
|
-
|
|
511
|
+
chunkCHM43IJO_js.__name(location, "location");
|
|
495
512
|
function expected(description, location2) {
|
|
496
513
|
location2 = location2 !== void 0 ? location2 : peg$computeLocation(peg$savedPos, peg$currPos);
|
|
497
514
|
throw peg$buildStructuredError(
|
|
@@ -500,12 +517,12 @@ function peg$parse(input, options) {
|
|
|
500
517
|
location2
|
|
501
518
|
);
|
|
502
519
|
}
|
|
503
|
-
|
|
520
|
+
chunkCHM43IJO_js.__name(expected, "expected");
|
|
504
521
|
function error(message, location2) {
|
|
505
522
|
location2 = location2 !== void 0 ? location2 : peg$computeLocation(peg$savedPos, peg$currPos);
|
|
506
523
|
throw peg$buildSimpleError(message, location2);
|
|
507
524
|
}
|
|
508
|
-
|
|
525
|
+
chunkCHM43IJO_js.__name(error, "error");
|
|
509
526
|
function peg$getUnicode(pos = peg$currPos) {
|
|
510
527
|
const cp = input.codePointAt(pos);
|
|
511
528
|
if (cp === void 0) {
|
|
@@ -513,27 +530,27 @@ function peg$parse(input, options) {
|
|
|
513
530
|
}
|
|
514
531
|
return String.fromCodePoint(cp);
|
|
515
532
|
}
|
|
516
|
-
|
|
533
|
+
chunkCHM43IJO_js.__name(peg$getUnicode, "peg$getUnicode");
|
|
517
534
|
function peg$literalExpectation(text2, ignoreCase) {
|
|
518
535
|
return { type: "literal", text: text2, ignoreCase };
|
|
519
536
|
}
|
|
520
|
-
|
|
537
|
+
chunkCHM43IJO_js.__name(peg$literalExpectation, "peg$literalExpectation");
|
|
521
538
|
function peg$classExpectation(parts, inverted, ignoreCase, unicode) {
|
|
522
539
|
return { type: "class", parts, inverted, ignoreCase, unicode };
|
|
523
540
|
}
|
|
524
|
-
|
|
541
|
+
chunkCHM43IJO_js.__name(peg$classExpectation, "peg$classExpectation");
|
|
525
542
|
function peg$anyExpectation() {
|
|
526
543
|
return { type: "any" };
|
|
527
544
|
}
|
|
528
|
-
|
|
545
|
+
chunkCHM43IJO_js.__name(peg$anyExpectation, "peg$anyExpectation");
|
|
529
546
|
function peg$endExpectation() {
|
|
530
547
|
return { type: "end" };
|
|
531
548
|
}
|
|
532
|
-
|
|
549
|
+
chunkCHM43IJO_js.__name(peg$endExpectation, "peg$endExpectation");
|
|
533
550
|
function peg$otherExpectation(description) {
|
|
534
551
|
return { type: "other", description };
|
|
535
552
|
}
|
|
536
|
-
|
|
553
|
+
chunkCHM43IJO_js.__name(peg$otherExpectation, "peg$otherExpectation");
|
|
537
554
|
function peg$computePosDetails(pos) {
|
|
538
555
|
let details = peg$posDetailsCache[pos];
|
|
539
556
|
let p;
|
|
@@ -565,7 +582,7 @@ function peg$parse(input, options) {
|
|
|
565
582
|
return details;
|
|
566
583
|
}
|
|
567
584
|
}
|
|
568
|
-
|
|
585
|
+
chunkCHM43IJO_js.__name(peg$computePosDetails, "peg$computePosDetails");
|
|
569
586
|
function peg$computeLocation(startPos, endPos, offset2) {
|
|
570
587
|
const startPosDetails = peg$computePosDetails(startPos);
|
|
571
588
|
const endPosDetails = peg$computePosDetails(endPos);
|
|
@@ -588,7 +605,7 @@ function peg$parse(input, options) {
|
|
|
588
605
|
}
|
|
589
606
|
return res;
|
|
590
607
|
}
|
|
591
|
-
|
|
608
|
+
chunkCHM43IJO_js.__name(peg$computeLocation, "peg$computeLocation");
|
|
592
609
|
function peg$fail(expected2) {
|
|
593
610
|
if (peg$currPos < peg$maxFailPos) {
|
|
594
611
|
return;
|
|
@@ -599,11 +616,11 @@ function peg$parse(input, options) {
|
|
|
599
616
|
}
|
|
600
617
|
peg$maxFailExpected.push(expected2);
|
|
601
618
|
}
|
|
602
|
-
|
|
619
|
+
chunkCHM43IJO_js.__name(peg$fail, "peg$fail");
|
|
603
620
|
function peg$buildSimpleError(message, location2) {
|
|
604
621
|
return new peg$SyntaxError(message, null, null, location2);
|
|
605
622
|
}
|
|
606
|
-
|
|
623
|
+
chunkCHM43IJO_js.__name(peg$buildSimpleError, "peg$buildSimpleError");
|
|
607
624
|
function peg$buildStructuredError(expected2, found, location2) {
|
|
608
625
|
return new peg$SyntaxError(
|
|
609
626
|
peg$SyntaxError.buildMessage(expected2, found),
|
|
@@ -612,7 +629,7 @@ function peg$parse(input, options) {
|
|
|
612
629
|
location2
|
|
613
630
|
);
|
|
614
631
|
}
|
|
615
|
-
|
|
632
|
+
chunkCHM43IJO_js.__name(peg$buildStructuredError, "peg$buildStructuredError");
|
|
616
633
|
function peg$parseEnvSpecFile() {
|
|
617
634
|
let s0, s1, s2, s3;
|
|
618
635
|
s0 = peg$currPos;
|
|
@@ -673,7 +690,7 @@ function peg$parse(input, options) {
|
|
|
673
690
|
s0 = s1;
|
|
674
691
|
return s0;
|
|
675
692
|
}
|
|
676
|
-
|
|
693
|
+
chunkCHM43IJO_js.__name(peg$parseEnvSpecFile, "peg$parseEnvSpecFile");
|
|
677
694
|
function peg$parseConfigItem() {
|
|
678
695
|
let s0, s1, s2, s3, s4, s5, s6, s7, s9, s10;
|
|
679
696
|
s0 = peg$currPos;
|
|
@@ -813,7 +830,7 @@ function peg$parse(input, options) {
|
|
|
813
830
|
}
|
|
814
831
|
return s0;
|
|
815
832
|
}
|
|
816
|
-
|
|
833
|
+
chunkCHM43IJO_js.__name(peg$parseConfigItem, "peg$parseConfigItem");
|
|
817
834
|
function peg$parseConfigItemKey() {
|
|
818
835
|
let s0, s1, s2, s3, s4;
|
|
819
836
|
s0 = peg$currPos;
|
|
@@ -863,22 +880,25 @@ function peg$parse(input, options) {
|
|
|
863
880
|
}
|
|
864
881
|
return s0;
|
|
865
882
|
}
|
|
866
|
-
|
|
883
|
+
chunkCHM43IJO_js.__name(peg$parseConfigItemKey, "peg$parseConfigItemKey");
|
|
867
884
|
function peg$parseConfigItemValue() {
|
|
868
885
|
let s0;
|
|
869
886
|
s0 = peg$parseFunctionCall();
|
|
870
887
|
if (s0 === peg$FAILED) {
|
|
871
|
-
s0 = peg$
|
|
888
|
+
s0 = peg$parseRegexLiteral();
|
|
872
889
|
if (s0 === peg$FAILED) {
|
|
873
|
-
s0 = peg$
|
|
890
|
+
s0 = peg$parsemultiLineString();
|
|
874
891
|
if (s0 === peg$FAILED) {
|
|
875
|
-
s0 = peg$
|
|
892
|
+
s0 = peg$parsequotedString();
|
|
893
|
+
if (s0 === peg$FAILED) {
|
|
894
|
+
s0 = peg$parseunquotedString();
|
|
895
|
+
}
|
|
876
896
|
}
|
|
877
897
|
}
|
|
878
898
|
}
|
|
879
899
|
return s0;
|
|
880
900
|
}
|
|
881
|
-
|
|
901
|
+
chunkCHM43IJO_js.__name(peg$parseConfigItemValue, "peg$parseConfigItemValue");
|
|
882
902
|
function peg$parseCommentBlock() {
|
|
883
903
|
let s0, s1, s2, s3, s4;
|
|
884
904
|
s0 = peg$currPos;
|
|
@@ -948,7 +968,7 @@ function peg$parse(input, options) {
|
|
|
948
968
|
}
|
|
949
969
|
return s0;
|
|
950
970
|
}
|
|
951
|
-
|
|
971
|
+
chunkCHM43IJO_js.__name(peg$parseCommentBlock, "peg$parseCommentBlock");
|
|
952
972
|
function peg$parseComment() {
|
|
953
973
|
let s0, s1, s2, s3, s4, s5, s6, s7, s8, s9;
|
|
954
974
|
s0 = peg$currPos;
|
|
@@ -1043,7 +1063,7 @@ function peg$parse(input, options) {
|
|
|
1043
1063
|
}
|
|
1044
1064
|
return s0;
|
|
1045
1065
|
}
|
|
1046
|
-
|
|
1066
|
+
chunkCHM43IJO_js.__name(peg$parseComment, "peg$parseComment");
|
|
1047
1067
|
function peg$parseIgnoredDecoratorComment() {
|
|
1048
1068
|
let s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10;
|
|
1049
1069
|
s0 = peg$currPos;
|
|
@@ -1264,7 +1284,7 @@ function peg$parse(input, options) {
|
|
|
1264
1284
|
}
|
|
1265
1285
|
return s0;
|
|
1266
1286
|
}
|
|
1267
|
-
|
|
1287
|
+
chunkCHM43IJO_js.__name(peg$parseIgnoredDecoratorComment, "peg$parseIgnoredDecoratorComment");
|
|
1268
1288
|
function peg$parseDecoratorComment() {
|
|
1269
1289
|
let s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10;
|
|
1270
1290
|
s0 = peg$currPos;
|
|
@@ -1372,7 +1392,7 @@ function peg$parse(input, options) {
|
|
|
1372
1392
|
}
|
|
1373
1393
|
return s0;
|
|
1374
1394
|
}
|
|
1375
|
-
|
|
1395
|
+
chunkCHM43IJO_js.__name(peg$parseDecoratorComment, "peg$parseDecoratorComment");
|
|
1376
1396
|
function peg$parseDecorator() {
|
|
1377
1397
|
let s0, s1, s2, s3, s4, s5;
|
|
1378
1398
|
s0 = peg$currPos;
|
|
@@ -1429,7 +1449,7 @@ function peg$parse(input, options) {
|
|
|
1429
1449
|
}
|
|
1430
1450
|
return s0;
|
|
1431
1451
|
}
|
|
1432
|
-
|
|
1452
|
+
chunkCHM43IJO_js.__name(peg$parseDecorator, "peg$parseDecorator");
|
|
1433
1453
|
function peg$parseDecoratorName() {
|
|
1434
1454
|
let s0, s1, s2, s3, s4;
|
|
1435
1455
|
s0 = peg$currPos;
|
|
@@ -1479,19 +1499,22 @@ function peg$parse(input, options) {
|
|
|
1479
1499
|
}
|
|
1480
1500
|
return s0;
|
|
1481
1501
|
}
|
|
1482
|
-
|
|
1502
|
+
chunkCHM43IJO_js.__name(peg$parseDecoratorName, "peg$parseDecoratorName");
|
|
1483
1503
|
function peg$parseDecoratorValue() {
|
|
1484
1504
|
let s0;
|
|
1485
1505
|
s0 = peg$parseDecoratorFunctionCall();
|
|
1486
1506
|
if (s0 === peg$FAILED) {
|
|
1487
|
-
s0 = peg$
|
|
1507
|
+
s0 = peg$parseRegexLiteral();
|
|
1488
1508
|
if (s0 === peg$FAILED) {
|
|
1489
|
-
s0 = peg$
|
|
1509
|
+
s0 = peg$parsequotedString();
|
|
1510
|
+
if (s0 === peg$FAILED) {
|
|
1511
|
+
s0 = peg$parseunquotedStringWithoutSpaces();
|
|
1512
|
+
}
|
|
1490
1513
|
}
|
|
1491
1514
|
}
|
|
1492
1515
|
return s0;
|
|
1493
1516
|
}
|
|
1494
|
-
|
|
1517
|
+
chunkCHM43IJO_js.__name(peg$parseDecoratorValue, "peg$parseDecoratorValue");
|
|
1495
1518
|
function peg$parseDecoratorFunctionCall() {
|
|
1496
1519
|
let s0, s1, s2;
|
|
1497
1520
|
s0 = peg$currPos;
|
|
@@ -1511,7 +1534,7 @@ function peg$parse(input, options) {
|
|
|
1511
1534
|
}
|
|
1512
1535
|
return s0;
|
|
1513
1536
|
}
|
|
1514
|
-
|
|
1537
|
+
chunkCHM43IJO_js.__name(peg$parseDecoratorFunctionCall, "peg$parseDecoratorFunctionCall");
|
|
1515
1538
|
function peg$parseDecoratorFunctionArgs() {
|
|
1516
1539
|
let s0, s1, s3, s4, s5, s6, s7, s8, s9;
|
|
1517
1540
|
s0 = peg$currPos;
|
|
@@ -1678,56 +1701,59 @@ function peg$parse(input, options) {
|
|
|
1678
1701
|
}
|
|
1679
1702
|
return s0;
|
|
1680
1703
|
}
|
|
1681
|
-
|
|
1704
|
+
chunkCHM43IJO_js.__name(peg$parseDecoratorFunctionArgs, "peg$parseDecoratorFunctionArgs");
|
|
1682
1705
|
function peg$parseDecoratorFunctionArgValue() {
|
|
1683
1706
|
let s0, s1, s2, s3;
|
|
1684
1707
|
s0 = peg$parseDecoratorFunctionCall();
|
|
1685
1708
|
if (s0 === peg$FAILED) {
|
|
1686
|
-
s0 = peg$
|
|
1709
|
+
s0 = peg$parseRegexLiteral();
|
|
1687
1710
|
if (s0 === peg$FAILED) {
|
|
1688
|
-
s0 = peg$
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
peg$currPos
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
peg$
|
|
1711
|
+
s0 = peg$parsequotedString();
|
|
1712
|
+
if (s0 === peg$FAILED) {
|
|
1713
|
+
s0 = peg$currPos;
|
|
1714
|
+
s1 = peg$currPos;
|
|
1715
|
+
s2 = [];
|
|
1716
|
+
s3 = input.charAt(peg$currPos);
|
|
1717
|
+
if (peg$r6.test(s3)) {
|
|
1718
|
+
peg$currPos++;
|
|
1719
|
+
} else {
|
|
1720
|
+
s3 = peg$FAILED;
|
|
1721
|
+
if (peg$silentFails === 0) {
|
|
1722
|
+
peg$fail(peg$e15);
|
|
1723
|
+
}
|
|
1698
1724
|
}
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1725
|
+
if (s3 !== peg$FAILED) {
|
|
1726
|
+
while (s3 !== peg$FAILED) {
|
|
1727
|
+
s2.push(s3);
|
|
1728
|
+
s3 = input.charAt(peg$currPos);
|
|
1729
|
+
if (peg$r6.test(s3)) {
|
|
1730
|
+
peg$currPos++;
|
|
1731
|
+
} else {
|
|
1732
|
+
s3 = peg$FAILED;
|
|
1733
|
+
if (peg$silentFails === 0) {
|
|
1734
|
+
peg$fail(peg$e15);
|
|
1735
|
+
}
|
|
1710
1736
|
}
|
|
1711
1737
|
}
|
|
1738
|
+
} else {
|
|
1739
|
+
s2 = peg$FAILED;
|
|
1712
1740
|
}
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
s1 = peg$f11();
|
|
1741
|
+
if (s2 !== peg$FAILED) {
|
|
1742
|
+
s1 = input.substring(s1, peg$currPos);
|
|
1743
|
+
} else {
|
|
1744
|
+
s1 = s2;
|
|
1745
|
+
}
|
|
1746
|
+
if (s1 !== peg$FAILED) {
|
|
1747
|
+
peg$savedPos = s0;
|
|
1748
|
+
s1 = peg$f11();
|
|
1749
|
+
}
|
|
1750
|
+
s0 = s1;
|
|
1724
1751
|
}
|
|
1725
|
-
s0 = s1;
|
|
1726
1752
|
}
|
|
1727
1753
|
}
|
|
1728
1754
|
return s0;
|
|
1729
1755
|
}
|
|
1730
|
-
|
|
1756
|
+
chunkCHM43IJO_js.__name(peg$parseDecoratorFunctionArgValue, "peg$parseDecoratorFunctionArgValue");
|
|
1731
1757
|
function peg$parse_decWs() {
|
|
1732
1758
|
let s0, s1, s2, s3, s4, s5, s6;
|
|
1733
1759
|
s0 = [];
|
|
@@ -1908,7 +1934,7 @@ function peg$parse(input, options) {
|
|
|
1908
1934
|
}
|
|
1909
1935
|
return s0;
|
|
1910
1936
|
}
|
|
1911
|
-
|
|
1937
|
+
chunkCHM43IJO_js.__name(peg$parse_decWs, "peg$parse_decWs");
|
|
1912
1938
|
function peg$parseFunctionCall() {
|
|
1913
1939
|
let s0, s1, s2;
|
|
1914
1940
|
s0 = peg$currPos;
|
|
@@ -1928,7 +1954,7 @@ function peg$parse(input, options) {
|
|
|
1928
1954
|
}
|
|
1929
1955
|
return s0;
|
|
1930
1956
|
}
|
|
1931
|
-
|
|
1957
|
+
chunkCHM43IJO_js.__name(peg$parseFunctionCall, "peg$parseFunctionCall");
|
|
1932
1958
|
function peg$parseFunctionName() {
|
|
1933
1959
|
let s0, s1, s2, s3, s4;
|
|
1934
1960
|
s0 = peg$currPos;
|
|
@@ -1978,7 +2004,7 @@ function peg$parse(input, options) {
|
|
|
1978
2004
|
}
|
|
1979
2005
|
return s0;
|
|
1980
2006
|
}
|
|
1981
|
-
|
|
2007
|
+
chunkCHM43IJO_js.__name(peg$parseFunctionName, "peg$parseFunctionName");
|
|
1982
2008
|
function peg$parseFunctionArgs() {
|
|
1983
2009
|
let s0, s1, s3, s4, s5, s6, s7, s8, s9;
|
|
1984
2010
|
s0 = peg$currPos;
|
|
@@ -2145,7 +2171,7 @@ function peg$parse(input, options) {
|
|
|
2145
2171
|
}
|
|
2146
2172
|
return s0;
|
|
2147
2173
|
}
|
|
2148
|
-
|
|
2174
|
+
chunkCHM43IJO_js.__name(peg$parseFunctionArgs, "peg$parseFunctionArgs");
|
|
2149
2175
|
function peg$parseFunctionArgKeyName() {
|
|
2150
2176
|
let s0, s1, s2, s3, s4;
|
|
2151
2177
|
s0 = peg$currPos;
|
|
@@ -2195,56 +2221,59 @@ function peg$parse(input, options) {
|
|
|
2195
2221
|
}
|
|
2196
2222
|
return s0;
|
|
2197
2223
|
}
|
|
2198
|
-
|
|
2224
|
+
chunkCHM43IJO_js.__name(peg$parseFunctionArgKeyName, "peg$parseFunctionArgKeyName");
|
|
2199
2225
|
function peg$parseFunctionArgValue() {
|
|
2200
2226
|
let s0, s1, s2, s3;
|
|
2201
2227
|
s0 = peg$parseFunctionCall();
|
|
2202
2228
|
if (s0 === peg$FAILED) {
|
|
2203
|
-
s0 = peg$
|
|
2229
|
+
s0 = peg$parseRegexLiteral();
|
|
2204
2230
|
if (s0 === peg$FAILED) {
|
|
2205
|
-
s0 = peg$
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
peg$currPos
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
peg$
|
|
2231
|
+
s0 = peg$parsequotedString();
|
|
2232
|
+
if (s0 === peg$FAILED) {
|
|
2233
|
+
s0 = peg$currPos;
|
|
2234
|
+
s1 = peg$currPos;
|
|
2235
|
+
s2 = [];
|
|
2236
|
+
s3 = input.charAt(peg$currPos);
|
|
2237
|
+
if (peg$r6.test(s3)) {
|
|
2238
|
+
peg$currPos++;
|
|
2239
|
+
} else {
|
|
2240
|
+
s3 = peg$FAILED;
|
|
2241
|
+
if (peg$silentFails === 0) {
|
|
2242
|
+
peg$fail(peg$e15);
|
|
2243
|
+
}
|
|
2215
2244
|
}
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2245
|
+
if (s3 !== peg$FAILED) {
|
|
2246
|
+
while (s3 !== peg$FAILED) {
|
|
2247
|
+
s2.push(s3);
|
|
2248
|
+
s3 = input.charAt(peg$currPos);
|
|
2249
|
+
if (peg$r6.test(s3)) {
|
|
2250
|
+
peg$currPos++;
|
|
2251
|
+
} else {
|
|
2252
|
+
s3 = peg$FAILED;
|
|
2253
|
+
if (peg$silentFails === 0) {
|
|
2254
|
+
peg$fail(peg$e15);
|
|
2255
|
+
}
|
|
2227
2256
|
}
|
|
2228
2257
|
}
|
|
2258
|
+
} else {
|
|
2259
|
+
s2 = peg$FAILED;
|
|
2229
2260
|
}
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
s1 = peg$f15();
|
|
2261
|
+
if (s2 !== peg$FAILED) {
|
|
2262
|
+
s1 = input.substring(s1, peg$currPos);
|
|
2263
|
+
} else {
|
|
2264
|
+
s1 = s2;
|
|
2265
|
+
}
|
|
2266
|
+
if (s1 !== peg$FAILED) {
|
|
2267
|
+
peg$savedPos = s0;
|
|
2268
|
+
s1 = peg$f15();
|
|
2269
|
+
}
|
|
2270
|
+
s0 = s1;
|
|
2241
2271
|
}
|
|
2242
|
-
s0 = s1;
|
|
2243
2272
|
}
|
|
2244
2273
|
}
|
|
2245
2274
|
return s0;
|
|
2246
2275
|
}
|
|
2247
|
-
|
|
2276
|
+
chunkCHM43IJO_js.__name(peg$parseFunctionArgValue, "peg$parseFunctionArgValue");
|
|
2248
2277
|
function peg$parse_valWs() {
|
|
2249
2278
|
let s0, s1;
|
|
2250
2279
|
s0 = [];
|
|
@@ -2271,7 +2300,7 @@ function peg$parse(input, options) {
|
|
|
2271
2300
|
}
|
|
2272
2301
|
return s0;
|
|
2273
2302
|
}
|
|
2274
|
-
|
|
2303
|
+
chunkCHM43IJO_js.__name(peg$parse_valWs, "peg$parse_valWs");
|
|
2275
2304
|
function peg$parseDivider() {
|
|
2276
2305
|
let s0, s1, s2, s3, s4, s5, s6, s7;
|
|
2277
2306
|
s0 = peg$currPos;
|
|
@@ -2372,7 +2401,113 @@ function peg$parse(input, options) {
|
|
|
2372
2401
|
}
|
|
2373
2402
|
return s0;
|
|
2374
2403
|
}
|
|
2375
|
-
|
|
2404
|
+
chunkCHM43IJO_js.__name(peg$parseDivider, "peg$parseDivider");
|
|
2405
|
+
function peg$parseRegexLiteral() {
|
|
2406
|
+
let s0, s1, s2, s3, s4, s5, s6;
|
|
2407
|
+
s0 = peg$currPos;
|
|
2408
|
+
if (input.charCodeAt(peg$currPos) === 47) {
|
|
2409
|
+
s1 = peg$c9;
|
|
2410
|
+
peg$currPos++;
|
|
2411
|
+
} else {
|
|
2412
|
+
s1 = peg$FAILED;
|
|
2413
|
+
if (peg$silentFails === 0) {
|
|
2414
|
+
peg$fail(peg$e19);
|
|
2415
|
+
}
|
|
2416
|
+
}
|
|
2417
|
+
if (s1 !== peg$FAILED) {
|
|
2418
|
+
s2 = peg$currPos;
|
|
2419
|
+
s3 = [];
|
|
2420
|
+
if (input.substr(peg$currPos, 2) === peg$c10) {
|
|
2421
|
+
s4 = peg$c10;
|
|
2422
|
+
peg$currPos += 2;
|
|
2423
|
+
} else {
|
|
2424
|
+
s4 = peg$FAILED;
|
|
2425
|
+
if (peg$silentFails === 0) {
|
|
2426
|
+
peg$fail(peg$e20);
|
|
2427
|
+
}
|
|
2428
|
+
}
|
|
2429
|
+
if (s4 === peg$FAILED) {
|
|
2430
|
+
s4 = input.charAt(peg$currPos);
|
|
2431
|
+
if (peg$r10.test(s4)) {
|
|
2432
|
+
peg$currPos++;
|
|
2433
|
+
} else {
|
|
2434
|
+
s4 = peg$FAILED;
|
|
2435
|
+
if (peg$silentFails === 0) {
|
|
2436
|
+
peg$fail(peg$e21);
|
|
2437
|
+
}
|
|
2438
|
+
}
|
|
2439
|
+
}
|
|
2440
|
+
while (s4 !== peg$FAILED) {
|
|
2441
|
+
s3.push(s4);
|
|
2442
|
+
if (input.substr(peg$currPos, 2) === peg$c10) {
|
|
2443
|
+
s4 = peg$c10;
|
|
2444
|
+
peg$currPos += 2;
|
|
2445
|
+
} else {
|
|
2446
|
+
s4 = peg$FAILED;
|
|
2447
|
+
if (peg$silentFails === 0) {
|
|
2448
|
+
peg$fail(peg$e20);
|
|
2449
|
+
}
|
|
2450
|
+
}
|
|
2451
|
+
if (s4 === peg$FAILED) {
|
|
2452
|
+
s4 = input.charAt(peg$currPos);
|
|
2453
|
+
if (peg$r10.test(s4)) {
|
|
2454
|
+
peg$currPos++;
|
|
2455
|
+
} else {
|
|
2456
|
+
s4 = peg$FAILED;
|
|
2457
|
+
if (peg$silentFails === 0) {
|
|
2458
|
+
peg$fail(peg$e21);
|
|
2459
|
+
}
|
|
2460
|
+
}
|
|
2461
|
+
}
|
|
2462
|
+
}
|
|
2463
|
+
s2 = input.substring(s2, peg$currPos);
|
|
2464
|
+
if (input.charCodeAt(peg$currPos) === 47) {
|
|
2465
|
+
s3 = peg$c9;
|
|
2466
|
+
peg$currPos++;
|
|
2467
|
+
} else {
|
|
2468
|
+
s3 = peg$FAILED;
|
|
2469
|
+
if (peg$silentFails === 0) {
|
|
2470
|
+
peg$fail(peg$e19);
|
|
2471
|
+
}
|
|
2472
|
+
}
|
|
2473
|
+
if (s3 !== peg$FAILED) {
|
|
2474
|
+
s4 = peg$currPos;
|
|
2475
|
+
s5 = [];
|
|
2476
|
+
s6 = input.charAt(peg$currPos);
|
|
2477
|
+
if (peg$r11.test(s6)) {
|
|
2478
|
+
peg$currPos++;
|
|
2479
|
+
} else {
|
|
2480
|
+
s6 = peg$FAILED;
|
|
2481
|
+
if (peg$silentFails === 0) {
|
|
2482
|
+
peg$fail(peg$e22);
|
|
2483
|
+
}
|
|
2484
|
+
}
|
|
2485
|
+
while (s6 !== peg$FAILED) {
|
|
2486
|
+
s5.push(s6);
|
|
2487
|
+
s6 = input.charAt(peg$currPos);
|
|
2488
|
+
if (peg$r11.test(s6)) {
|
|
2489
|
+
peg$currPos++;
|
|
2490
|
+
} else {
|
|
2491
|
+
s6 = peg$FAILED;
|
|
2492
|
+
if (peg$silentFails === 0) {
|
|
2493
|
+
peg$fail(peg$e22);
|
|
2494
|
+
}
|
|
2495
|
+
}
|
|
2496
|
+
}
|
|
2497
|
+
s4 = input.substring(s4, peg$currPos);
|
|
2498
|
+
peg$savedPos = s0;
|
|
2499
|
+
s0 = peg$f17(s2, s4);
|
|
2500
|
+
} else {
|
|
2501
|
+
peg$currPos = s0;
|
|
2502
|
+
s0 = peg$FAILED;
|
|
2503
|
+
}
|
|
2504
|
+
} else {
|
|
2505
|
+
peg$currPos = s0;
|
|
2506
|
+
s0 = peg$FAILED;
|
|
2507
|
+
}
|
|
2508
|
+
return s0;
|
|
2509
|
+
}
|
|
2510
|
+
chunkCHM43IJO_js.__name(peg$parseRegexLiteral, "peg$parseRegexLiteral");
|
|
2376
2511
|
function peg$parseunquotedString() {
|
|
2377
2512
|
let s0, s1, s2, s3, s4, s5, s6;
|
|
2378
2513
|
s0 = peg$currPos;
|
|
@@ -2382,12 +2517,12 @@ function peg$parse(input, options) {
|
|
|
2382
2517
|
s4 = peg$currPos;
|
|
2383
2518
|
peg$silentFails++;
|
|
2384
2519
|
s5 = input.charAt(peg$currPos);
|
|
2385
|
-
if (peg$
|
|
2520
|
+
if (peg$r12.test(s5)) {
|
|
2386
2521
|
peg$currPos++;
|
|
2387
2522
|
} else {
|
|
2388
2523
|
s5 = peg$FAILED;
|
|
2389
2524
|
if (peg$silentFails === 0) {
|
|
2390
|
-
peg$fail(peg$
|
|
2525
|
+
peg$fail(peg$e23);
|
|
2391
2526
|
}
|
|
2392
2527
|
}
|
|
2393
2528
|
peg$silentFails--;
|
|
@@ -2400,24 +2535,24 @@ function peg$parse(input, options) {
|
|
|
2400
2535
|
if (s4 !== peg$FAILED) {
|
|
2401
2536
|
s5 = [];
|
|
2402
2537
|
s6 = input.charAt(peg$currPos);
|
|
2403
|
-
if (peg$
|
|
2538
|
+
if (peg$r13.test(s6)) {
|
|
2404
2539
|
peg$currPos++;
|
|
2405
2540
|
} else {
|
|
2406
2541
|
s6 = peg$FAILED;
|
|
2407
2542
|
if (peg$silentFails === 0) {
|
|
2408
|
-
peg$fail(peg$
|
|
2543
|
+
peg$fail(peg$e24);
|
|
2409
2544
|
}
|
|
2410
2545
|
}
|
|
2411
2546
|
if (s6 !== peg$FAILED) {
|
|
2412
2547
|
while (s6 !== peg$FAILED) {
|
|
2413
2548
|
s5.push(s6);
|
|
2414
2549
|
s6 = input.charAt(peg$currPos);
|
|
2415
|
-
if (peg$
|
|
2550
|
+
if (peg$r13.test(s6)) {
|
|
2416
2551
|
peg$currPos++;
|
|
2417
2552
|
} else {
|
|
2418
2553
|
s6 = peg$FAILED;
|
|
2419
2554
|
if (peg$silentFails === 0) {
|
|
2420
|
-
peg$fail(peg$
|
|
2555
|
+
peg$fail(peg$e24);
|
|
2421
2556
|
}
|
|
2422
2557
|
}
|
|
2423
2558
|
}
|
|
@@ -2442,12 +2577,12 @@ function peg$parse(input, options) {
|
|
|
2442
2577
|
}
|
|
2443
2578
|
if (s1 !== peg$FAILED) {
|
|
2444
2579
|
peg$savedPos = s0;
|
|
2445
|
-
s1 = peg$
|
|
2580
|
+
s1 = peg$f18();
|
|
2446
2581
|
}
|
|
2447
2582
|
s0 = s1;
|
|
2448
2583
|
return s0;
|
|
2449
2584
|
}
|
|
2450
|
-
|
|
2585
|
+
chunkCHM43IJO_js.__name(peg$parseunquotedString, "peg$parseunquotedString");
|
|
2451
2586
|
function peg$parseunquotedStringWithoutSpaces() {
|
|
2452
2587
|
let s0, s1, s2, s3, s4, s5;
|
|
2453
2588
|
s0 = peg$currPos;
|
|
@@ -2456,12 +2591,12 @@ function peg$parse(input, options) {
|
|
|
2456
2591
|
s3 = peg$currPos;
|
|
2457
2592
|
peg$silentFails++;
|
|
2458
2593
|
s4 = input.charAt(peg$currPos);
|
|
2459
|
-
if (peg$
|
|
2594
|
+
if (peg$r12.test(s4)) {
|
|
2460
2595
|
peg$currPos++;
|
|
2461
2596
|
} else {
|
|
2462
2597
|
s4 = peg$FAILED;
|
|
2463
2598
|
if (peg$silentFails === 0) {
|
|
2464
|
-
peg$fail(peg$
|
|
2599
|
+
peg$fail(peg$e23);
|
|
2465
2600
|
}
|
|
2466
2601
|
}
|
|
2467
2602
|
peg$silentFails--;
|
|
@@ -2474,24 +2609,24 @@ function peg$parse(input, options) {
|
|
|
2474
2609
|
if (s3 !== peg$FAILED) {
|
|
2475
2610
|
s4 = [];
|
|
2476
2611
|
s5 = input.charAt(peg$currPos);
|
|
2477
|
-
if (peg$
|
|
2612
|
+
if (peg$r14.test(s5)) {
|
|
2478
2613
|
peg$currPos++;
|
|
2479
2614
|
} else {
|
|
2480
2615
|
s5 = peg$FAILED;
|
|
2481
2616
|
if (peg$silentFails === 0) {
|
|
2482
|
-
peg$fail(peg$
|
|
2617
|
+
peg$fail(peg$e25);
|
|
2483
2618
|
}
|
|
2484
2619
|
}
|
|
2485
2620
|
if (s5 !== peg$FAILED) {
|
|
2486
2621
|
while (s5 !== peg$FAILED) {
|
|
2487
2622
|
s4.push(s5);
|
|
2488
2623
|
s5 = input.charAt(peg$currPos);
|
|
2489
|
-
if (peg$
|
|
2624
|
+
if (peg$r14.test(s5)) {
|
|
2490
2625
|
peg$currPos++;
|
|
2491
2626
|
} else {
|
|
2492
2627
|
s5 = peg$FAILED;
|
|
2493
2628
|
if (peg$silentFails === 0) {
|
|
2494
|
-
peg$fail(peg$
|
|
2629
|
+
peg$fail(peg$e25);
|
|
2495
2630
|
}
|
|
2496
2631
|
}
|
|
2497
2632
|
}
|
|
@@ -2516,12 +2651,12 @@ function peg$parse(input, options) {
|
|
|
2516
2651
|
}
|
|
2517
2652
|
if (s1 !== peg$FAILED) {
|
|
2518
2653
|
peg$savedPos = s0;
|
|
2519
|
-
s1 = peg$
|
|
2654
|
+
s1 = peg$f19();
|
|
2520
2655
|
}
|
|
2521
2656
|
s0 = s1;
|
|
2522
2657
|
return s0;
|
|
2523
2658
|
}
|
|
2524
|
-
|
|
2659
|
+
chunkCHM43IJO_js.__name(peg$parseunquotedStringWithoutSpaces, "peg$parseunquotedStringWithoutSpaces");
|
|
2525
2660
|
function peg$parsequotedString() {
|
|
2526
2661
|
let s0;
|
|
2527
2662
|
s0 = peg$parseDQuotedString();
|
|
@@ -2533,76 +2668,76 @@ function peg$parse(input, options) {
|
|
|
2533
2668
|
}
|
|
2534
2669
|
return s0;
|
|
2535
2670
|
}
|
|
2536
|
-
|
|
2671
|
+
chunkCHM43IJO_js.__name(peg$parsequotedString, "peg$parsequotedString");
|
|
2537
2672
|
function peg$parseDQuotedString() {
|
|
2538
2673
|
let s0, s1, s2, s3;
|
|
2539
2674
|
s0 = peg$currPos;
|
|
2540
2675
|
s1 = input.charAt(peg$currPos);
|
|
2541
|
-
if (peg$
|
|
2676
|
+
if (peg$r15.test(s1)) {
|
|
2542
2677
|
peg$currPos++;
|
|
2543
2678
|
} else {
|
|
2544
2679
|
s1 = peg$FAILED;
|
|
2545
2680
|
if (peg$silentFails === 0) {
|
|
2546
|
-
peg$fail(peg$
|
|
2681
|
+
peg$fail(peg$e26);
|
|
2547
2682
|
}
|
|
2548
2683
|
}
|
|
2549
2684
|
if (s1 !== peg$FAILED) {
|
|
2550
2685
|
s2 = [];
|
|
2551
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
2552
|
-
s3 = peg$
|
|
2686
|
+
if (input.substr(peg$currPos, 2) === peg$c11) {
|
|
2687
|
+
s3 = peg$c11;
|
|
2553
2688
|
peg$currPos += 2;
|
|
2554
2689
|
} else {
|
|
2555
2690
|
s3 = peg$FAILED;
|
|
2556
2691
|
if (peg$silentFails === 0) {
|
|
2557
|
-
peg$fail(peg$
|
|
2692
|
+
peg$fail(peg$e27);
|
|
2558
2693
|
}
|
|
2559
2694
|
}
|
|
2560
2695
|
if (s3 === peg$FAILED) {
|
|
2561
2696
|
s3 = input.charAt(peg$currPos);
|
|
2562
|
-
if (peg$
|
|
2697
|
+
if (peg$r16.test(s3)) {
|
|
2563
2698
|
peg$currPos++;
|
|
2564
2699
|
} else {
|
|
2565
2700
|
s3 = peg$FAILED;
|
|
2566
2701
|
if (peg$silentFails === 0) {
|
|
2567
|
-
peg$fail(peg$
|
|
2702
|
+
peg$fail(peg$e28);
|
|
2568
2703
|
}
|
|
2569
2704
|
}
|
|
2570
2705
|
}
|
|
2571
2706
|
while (s3 !== peg$FAILED) {
|
|
2572
2707
|
s2.push(s3);
|
|
2573
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
2574
|
-
s3 = peg$
|
|
2708
|
+
if (input.substr(peg$currPos, 2) === peg$c11) {
|
|
2709
|
+
s3 = peg$c11;
|
|
2575
2710
|
peg$currPos += 2;
|
|
2576
2711
|
} else {
|
|
2577
2712
|
s3 = peg$FAILED;
|
|
2578
2713
|
if (peg$silentFails === 0) {
|
|
2579
|
-
peg$fail(peg$
|
|
2714
|
+
peg$fail(peg$e27);
|
|
2580
2715
|
}
|
|
2581
2716
|
}
|
|
2582
2717
|
if (s3 === peg$FAILED) {
|
|
2583
2718
|
s3 = input.charAt(peg$currPos);
|
|
2584
|
-
if (peg$
|
|
2719
|
+
if (peg$r16.test(s3)) {
|
|
2585
2720
|
peg$currPos++;
|
|
2586
2721
|
} else {
|
|
2587
2722
|
s3 = peg$FAILED;
|
|
2588
2723
|
if (peg$silentFails === 0) {
|
|
2589
|
-
peg$fail(peg$
|
|
2724
|
+
peg$fail(peg$e28);
|
|
2590
2725
|
}
|
|
2591
2726
|
}
|
|
2592
2727
|
}
|
|
2593
2728
|
}
|
|
2594
2729
|
s3 = input.charAt(peg$currPos);
|
|
2595
|
-
if (peg$
|
|
2730
|
+
if (peg$r15.test(s3)) {
|
|
2596
2731
|
peg$currPos++;
|
|
2597
2732
|
} else {
|
|
2598
2733
|
s3 = peg$FAILED;
|
|
2599
2734
|
if (peg$silentFails === 0) {
|
|
2600
|
-
peg$fail(peg$
|
|
2735
|
+
peg$fail(peg$e26);
|
|
2601
2736
|
}
|
|
2602
2737
|
}
|
|
2603
2738
|
if (s3 !== peg$FAILED) {
|
|
2604
2739
|
peg$savedPos = s0;
|
|
2605
|
-
s0 = peg$
|
|
2740
|
+
s0 = peg$f20(s1);
|
|
2606
2741
|
} else {
|
|
2607
2742
|
peg$currPos = s0;
|
|
2608
2743
|
s0 = peg$FAILED;
|
|
@@ -2613,76 +2748,76 @@ function peg$parse(input, options) {
|
|
|
2613
2748
|
}
|
|
2614
2749
|
return s0;
|
|
2615
2750
|
}
|
|
2616
|
-
|
|
2751
|
+
chunkCHM43IJO_js.__name(peg$parseDQuotedString, "peg$parseDQuotedString");
|
|
2617
2752
|
function peg$parseSQuotedString() {
|
|
2618
2753
|
let s0, s1, s2, s3;
|
|
2619
2754
|
s0 = peg$currPos;
|
|
2620
2755
|
s1 = input.charAt(peg$currPos);
|
|
2621
|
-
if (peg$
|
|
2756
|
+
if (peg$r17.test(s1)) {
|
|
2622
2757
|
peg$currPos++;
|
|
2623
2758
|
} else {
|
|
2624
2759
|
s1 = peg$FAILED;
|
|
2625
2760
|
if (peg$silentFails === 0) {
|
|
2626
|
-
peg$fail(peg$
|
|
2761
|
+
peg$fail(peg$e29);
|
|
2627
2762
|
}
|
|
2628
2763
|
}
|
|
2629
2764
|
if (s1 !== peg$FAILED) {
|
|
2630
2765
|
s2 = [];
|
|
2631
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
2632
|
-
s3 = peg$
|
|
2766
|
+
if (input.substr(peg$currPos, 2) === peg$c12) {
|
|
2767
|
+
s3 = peg$c12;
|
|
2633
2768
|
peg$currPos += 2;
|
|
2634
2769
|
} else {
|
|
2635
2770
|
s3 = peg$FAILED;
|
|
2636
2771
|
if (peg$silentFails === 0) {
|
|
2637
|
-
peg$fail(peg$
|
|
2772
|
+
peg$fail(peg$e30);
|
|
2638
2773
|
}
|
|
2639
2774
|
}
|
|
2640
2775
|
if (s3 === peg$FAILED) {
|
|
2641
2776
|
s3 = input.charAt(peg$currPos);
|
|
2642
|
-
if (peg$
|
|
2777
|
+
if (peg$r18.test(s3)) {
|
|
2643
2778
|
peg$currPos++;
|
|
2644
2779
|
} else {
|
|
2645
2780
|
s3 = peg$FAILED;
|
|
2646
2781
|
if (peg$silentFails === 0) {
|
|
2647
|
-
peg$fail(peg$
|
|
2782
|
+
peg$fail(peg$e31);
|
|
2648
2783
|
}
|
|
2649
2784
|
}
|
|
2650
2785
|
}
|
|
2651
2786
|
while (s3 !== peg$FAILED) {
|
|
2652
2787
|
s2.push(s3);
|
|
2653
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
2654
|
-
s3 = peg$
|
|
2788
|
+
if (input.substr(peg$currPos, 2) === peg$c12) {
|
|
2789
|
+
s3 = peg$c12;
|
|
2655
2790
|
peg$currPos += 2;
|
|
2656
2791
|
} else {
|
|
2657
2792
|
s3 = peg$FAILED;
|
|
2658
2793
|
if (peg$silentFails === 0) {
|
|
2659
|
-
peg$fail(peg$
|
|
2794
|
+
peg$fail(peg$e30);
|
|
2660
2795
|
}
|
|
2661
2796
|
}
|
|
2662
2797
|
if (s3 === peg$FAILED) {
|
|
2663
2798
|
s3 = input.charAt(peg$currPos);
|
|
2664
|
-
if (peg$
|
|
2799
|
+
if (peg$r18.test(s3)) {
|
|
2665
2800
|
peg$currPos++;
|
|
2666
2801
|
} else {
|
|
2667
2802
|
s3 = peg$FAILED;
|
|
2668
2803
|
if (peg$silentFails === 0) {
|
|
2669
|
-
peg$fail(peg$
|
|
2804
|
+
peg$fail(peg$e31);
|
|
2670
2805
|
}
|
|
2671
2806
|
}
|
|
2672
2807
|
}
|
|
2673
2808
|
}
|
|
2674
2809
|
s3 = input.charAt(peg$currPos);
|
|
2675
|
-
if (peg$
|
|
2810
|
+
if (peg$r17.test(s3)) {
|
|
2676
2811
|
peg$currPos++;
|
|
2677
2812
|
} else {
|
|
2678
2813
|
s3 = peg$FAILED;
|
|
2679
2814
|
if (peg$silentFails === 0) {
|
|
2680
|
-
peg$fail(peg$
|
|
2815
|
+
peg$fail(peg$e29);
|
|
2681
2816
|
}
|
|
2682
2817
|
}
|
|
2683
2818
|
if (s3 !== peg$FAILED) {
|
|
2684
2819
|
peg$savedPos = s0;
|
|
2685
|
-
s0 = peg$
|
|
2820
|
+
s0 = peg$f21(s1);
|
|
2686
2821
|
} else {
|
|
2687
2822
|
peg$currPos = s0;
|
|
2688
2823
|
s0 = peg$FAILED;
|
|
@@ -2693,76 +2828,76 @@ function peg$parse(input, options) {
|
|
|
2693
2828
|
}
|
|
2694
2829
|
return s0;
|
|
2695
2830
|
}
|
|
2696
|
-
|
|
2831
|
+
chunkCHM43IJO_js.__name(peg$parseSQuotedString, "peg$parseSQuotedString");
|
|
2697
2832
|
function peg$parseBQuotedString() {
|
|
2698
2833
|
let s0, s1, s2, s3;
|
|
2699
2834
|
s0 = peg$currPos;
|
|
2700
2835
|
s1 = input.charAt(peg$currPos);
|
|
2701
|
-
if (peg$
|
|
2836
|
+
if (peg$r19.test(s1)) {
|
|
2702
2837
|
peg$currPos++;
|
|
2703
2838
|
} else {
|
|
2704
2839
|
s1 = peg$FAILED;
|
|
2705
2840
|
if (peg$silentFails === 0) {
|
|
2706
|
-
peg$fail(peg$
|
|
2841
|
+
peg$fail(peg$e32);
|
|
2707
2842
|
}
|
|
2708
2843
|
}
|
|
2709
2844
|
if (s1 !== peg$FAILED) {
|
|
2710
2845
|
s2 = [];
|
|
2711
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
2712
|
-
s3 = peg$
|
|
2846
|
+
if (input.substr(peg$currPos, 2) === peg$c13) {
|
|
2847
|
+
s3 = peg$c13;
|
|
2713
2848
|
peg$currPos += 2;
|
|
2714
2849
|
} else {
|
|
2715
2850
|
s3 = peg$FAILED;
|
|
2716
2851
|
if (peg$silentFails === 0) {
|
|
2717
|
-
peg$fail(peg$
|
|
2852
|
+
peg$fail(peg$e33);
|
|
2718
2853
|
}
|
|
2719
2854
|
}
|
|
2720
2855
|
if (s3 === peg$FAILED) {
|
|
2721
2856
|
s3 = input.charAt(peg$currPos);
|
|
2722
|
-
if (peg$
|
|
2857
|
+
if (peg$r20.test(s3)) {
|
|
2723
2858
|
peg$currPos++;
|
|
2724
2859
|
} else {
|
|
2725
2860
|
s3 = peg$FAILED;
|
|
2726
2861
|
if (peg$silentFails === 0) {
|
|
2727
|
-
peg$fail(peg$
|
|
2862
|
+
peg$fail(peg$e34);
|
|
2728
2863
|
}
|
|
2729
2864
|
}
|
|
2730
2865
|
}
|
|
2731
2866
|
while (s3 !== peg$FAILED) {
|
|
2732
2867
|
s2.push(s3);
|
|
2733
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
2734
|
-
s3 = peg$
|
|
2868
|
+
if (input.substr(peg$currPos, 2) === peg$c13) {
|
|
2869
|
+
s3 = peg$c13;
|
|
2735
2870
|
peg$currPos += 2;
|
|
2736
2871
|
} else {
|
|
2737
2872
|
s3 = peg$FAILED;
|
|
2738
2873
|
if (peg$silentFails === 0) {
|
|
2739
|
-
peg$fail(peg$
|
|
2874
|
+
peg$fail(peg$e33);
|
|
2740
2875
|
}
|
|
2741
2876
|
}
|
|
2742
2877
|
if (s3 === peg$FAILED) {
|
|
2743
2878
|
s3 = input.charAt(peg$currPos);
|
|
2744
|
-
if (peg$
|
|
2879
|
+
if (peg$r20.test(s3)) {
|
|
2745
2880
|
peg$currPos++;
|
|
2746
2881
|
} else {
|
|
2747
2882
|
s3 = peg$FAILED;
|
|
2748
2883
|
if (peg$silentFails === 0) {
|
|
2749
|
-
peg$fail(peg$
|
|
2884
|
+
peg$fail(peg$e34);
|
|
2750
2885
|
}
|
|
2751
2886
|
}
|
|
2752
2887
|
}
|
|
2753
2888
|
}
|
|
2754
2889
|
s3 = input.charAt(peg$currPos);
|
|
2755
|
-
if (peg$
|
|
2890
|
+
if (peg$r19.test(s3)) {
|
|
2756
2891
|
peg$currPos++;
|
|
2757
2892
|
} else {
|
|
2758
2893
|
s3 = peg$FAILED;
|
|
2759
2894
|
if (peg$silentFails === 0) {
|
|
2760
|
-
peg$fail(peg$
|
|
2895
|
+
peg$fail(peg$e32);
|
|
2761
2896
|
}
|
|
2762
2897
|
}
|
|
2763
2898
|
if (s3 !== peg$FAILED) {
|
|
2764
2899
|
peg$savedPos = s0;
|
|
2765
|
-
s0 = peg$
|
|
2900
|
+
s0 = peg$f22(s1);
|
|
2766
2901
|
} else {
|
|
2767
2902
|
peg$currPos = s0;
|
|
2768
2903
|
s0 = peg$FAILED;
|
|
@@ -2773,7 +2908,7 @@ function peg$parse(input, options) {
|
|
|
2773
2908
|
}
|
|
2774
2909
|
return s0;
|
|
2775
2910
|
}
|
|
2776
|
-
|
|
2911
|
+
chunkCHM43IJO_js.__name(peg$parseBQuotedString, "peg$parseBQuotedString");
|
|
2777
2912
|
function peg$parsemultiLineString() {
|
|
2778
2913
|
let s0;
|
|
2779
2914
|
s0 = peg$parsesingleSQuotedMultiLineString();
|
|
@@ -2788,62 +2923,62 @@ function peg$parse(input, options) {
|
|
|
2788
2923
|
}
|
|
2789
2924
|
return s0;
|
|
2790
2925
|
}
|
|
2791
|
-
|
|
2926
|
+
chunkCHM43IJO_js.__name(peg$parsemultiLineString, "peg$parsemultiLineString");
|
|
2792
2927
|
function peg$parsesingleSQuotedMultiLineString() {
|
|
2793
2928
|
let s0, s1, s2, s3, s4, s5;
|
|
2794
2929
|
s0 = peg$currPos;
|
|
2795
2930
|
s1 = input.charAt(peg$currPos);
|
|
2796
|
-
if (peg$
|
|
2931
|
+
if (peg$r17.test(s1)) {
|
|
2797
2932
|
peg$currPos++;
|
|
2798
2933
|
} else {
|
|
2799
2934
|
s1 = peg$FAILED;
|
|
2800
2935
|
if (peg$silentFails === 0) {
|
|
2801
|
-
peg$fail(peg$
|
|
2936
|
+
peg$fail(peg$e29);
|
|
2802
2937
|
}
|
|
2803
2938
|
}
|
|
2804
2939
|
if (s1 !== peg$FAILED) {
|
|
2805
2940
|
s2 = [];
|
|
2806
2941
|
s3 = peg$currPos;
|
|
2807
2942
|
s4 = [];
|
|
2808
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
2809
|
-
s5 = peg$
|
|
2943
|
+
if (input.substr(peg$currPos, 2) === peg$c12) {
|
|
2944
|
+
s5 = peg$c12;
|
|
2810
2945
|
peg$currPos += 2;
|
|
2811
2946
|
} else {
|
|
2812
2947
|
s5 = peg$FAILED;
|
|
2813
2948
|
if (peg$silentFails === 0) {
|
|
2814
|
-
peg$fail(peg$
|
|
2949
|
+
peg$fail(peg$e30);
|
|
2815
2950
|
}
|
|
2816
2951
|
}
|
|
2817
2952
|
if (s5 === peg$FAILED) {
|
|
2818
2953
|
s5 = input.charAt(peg$currPos);
|
|
2819
|
-
if (peg$
|
|
2954
|
+
if (peg$r18.test(s5)) {
|
|
2820
2955
|
peg$currPos++;
|
|
2821
2956
|
} else {
|
|
2822
2957
|
s5 = peg$FAILED;
|
|
2823
2958
|
if (peg$silentFails === 0) {
|
|
2824
|
-
peg$fail(peg$
|
|
2959
|
+
peg$fail(peg$e31);
|
|
2825
2960
|
}
|
|
2826
2961
|
}
|
|
2827
2962
|
}
|
|
2828
2963
|
while (s5 !== peg$FAILED) {
|
|
2829
2964
|
s4.push(s5);
|
|
2830
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
2831
|
-
s5 = peg$
|
|
2965
|
+
if (input.substr(peg$currPos, 2) === peg$c12) {
|
|
2966
|
+
s5 = peg$c12;
|
|
2832
2967
|
peg$currPos += 2;
|
|
2833
2968
|
} else {
|
|
2834
2969
|
s5 = peg$FAILED;
|
|
2835
2970
|
if (peg$silentFails === 0) {
|
|
2836
|
-
peg$fail(peg$
|
|
2971
|
+
peg$fail(peg$e30);
|
|
2837
2972
|
}
|
|
2838
2973
|
}
|
|
2839
2974
|
if (s5 === peg$FAILED) {
|
|
2840
2975
|
s5 = input.charAt(peg$currPos);
|
|
2841
|
-
if (peg$
|
|
2976
|
+
if (peg$r18.test(s5)) {
|
|
2842
2977
|
peg$currPos++;
|
|
2843
2978
|
} else {
|
|
2844
2979
|
s5 = peg$FAILED;
|
|
2845
2980
|
if (peg$silentFails === 0) {
|
|
2846
|
-
peg$fail(peg$
|
|
2981
|
+
peg$fail(peg$e31);
|
|
2847
2982
|
}
|
|
2848
2983
|
}
|
|
2849
2984
|
}
|
|
@@ -2869,45 +3004,45 @@ function peg$parse(input, options) {
|
|
|
2869
3004
|
s2.push(s3);
|
|
2870
3005
|
s3 = peg$currPos;
|
|
2871
3006
|
s4 = [];
|
|
2872
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
2873
|
-
s5 = peg$
|
|
3007
|
+
if (input.substr(peg$currPos, 2) === peg$c12) {
|
|
3008
|
+
s5 = peg$c12;
|
|
2874
3009
|
peg$currPos += 2;
|
|
2875
3010
|
} else {
|
|
2876
3011
|
s5 = peg$FAILED;
|
|
2877
3012
|
if (peg$silentFails === 0) {
|
|
2878
|
-
peg$fail(peg$
|
|
3013
|
+
peg$fail(peg$e30);
|
|
2879
3014
|
}
|
|
2880
3015
|
}
|
|
2881
3016
|
if (s5 === peg$FAILED) {
|
|
2882
3017
|
s5 = input.charAt(peg$currPos);
|
|
2883
|
-
if (peg$
|
|
3018
|
+
if (peg$r18.test(s5)) {
|
|
2884
3019
|
peg$currPos++;
|
|
2885
3020
|
} else {
|
|
2886
3021
|
s5 = peg$FAILED;
|
|
2887
3022
|
if (peg$silentFails === 0) {
|
|
2888
|
-
peg$fail(peg$
|
|
3023
|
+
peg$fail(peg$e31);
|
|
2889
3024
|
}
|
|
2890
3025
|
}
|
|
2891
3026
|
}
|
|
2892
3027
|
while (s5 !== peg$FAILED) {
|
|
2893
3028
|
s4.push(s5);
|
|
2894
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
2895
|
-
s5 = peg$
|
|
3029
|
+
if (input.substr(peg$currPos, 2) === peg$c12) {
|
|
3030
|
+
s5 = peg$c12;
|
|
2896
3031
|
peg$currPos += 2;
|
|
2897
3032
|
} else {
|
|
2898
3033
|
s5 = peg$FAILED;
|
|
2899
3034
|
if (peg$silentFails === 0) {
|
|
2900
|
-
peg$fail(peg$
|
|
3035
|
+
peg$fail(peg$e30);
|
|
2901
3036
|
}
|
|
2902
3037
|
}
|
|
2903
3038
|
if (s5 === peg$FAILED) {
|
|
2904
3039
|
s5 = input.charAt(peg$currPos);
|
|
2905
|
-
if (peg$
|
|
3040
|
+
if (peg$r18.test(s5)) {
|
|
2906
3041
|
peg$currPos++;
|
|
2907
3042
|
} else {
|
|
2908
3043
|
s5 = peg$FAILED;
|
|
2909
3044
|
if (peg$silentFails === 0) {
|
|
2910
|
-
peg$fail(peg$
|
|
3045
|
+
peg$fail(peg$e31);
|
|
2911
3046
|
}
|
|
2912
3047
|
}
|
|
2913
3048
|
}
|
|
@@ -2934,61 +3069,61 @@ function peg$parse(input, options) {
|
|
|
2934
3069
|
}
|
|
2935
3070
|
if (s2 !== peg$FAILED) {
|
|
2936
3071
|
s3 = [];
|
|
2937
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
2938
|
-
s4 = peg$
|
|
3072
|
+
if (input.substr(peg$currPos, 2) === peg$c12) {
|
|
3073
|
+
s4 = peg$c12;
|
|
2939
3074
|
peg$currPos += 2;
|
|
2940
3075
|
} else {
|
|
2941
3076
|
s4 = peg$FAILED;
|
|
2942
3077
|
if (peg$silentFails === 0) {
|
|
2943
|
-
peg$fail(peg$
|
|
3078
|
+
peg$fail(peg$e30);
|
|
2944
3079
|
}
|
|
2945
3080
|
}
|
|
2946
3081
|
if (s4 === peg$FAILED) {
|
|
2947
3082
|
s4 = input.charAt(peg$currPos);
|
|
2948
|
-
if (peg$
|
|
3083
|
+
if (peg$r18.test(s4)) {
|
|
2949
3084
|
peg$currPos++;
|
|
2950
3085
|
} else {
|
|
2951
3086
|
s4 = peg$FAILED;
|
|
2952
3087
|
if (peg$silentFails === 0) {
|
|
2953
|
-
peg$fail(peg$
|
|
3088
|
+
peg$fail(peg$e31);
|
|
2954
3089
|
}
|
|
2955
3090
|
}
|
|
2956
3091
|
}
|
|
2957
3092
|
while (s4 !== peg$FAILED) {
|
|
2958
3093
|
s3.push(s4);
|
|
2959
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
2960
|
-
s4 = peg$
|
|
3094
|
+
if (input.substr(peg$currPos, 2) === peg$c12) {
|
|
3095
|
+
s4 = peg$c12;
|
|
2961
3096
|
peg$currPos += 2;
|
|
2962
3097
|
} else {
|
|
2963
3098
|
s4 = peg$FAILED;
|
|
2964
3099
|
if (peg$silentFails === 0) {
|
|
2965
|
-
peg$fail(peg$
|
|
3100
|
+
peg$fail(peg$e30);
|
|
2966
3101
|
}
|
|
2967
3102
|
}
|
|
2968
3103
|
if (s4 === peg$FAILED) {
|
|
2969
3104
|
s4 = input.charAt(peg$currPos);
|
|
2970
|
-
if (peg$
|
|
3105
|
+
if (peg$r18.test(s4)) {
|
|
2971
3106
|
peg$currPos++;
|
|
2972
3107
|
} else {
|
|
2973
3108
|
s4 = peg$FAILED;
|
|
2974
3109
|
if (peg$silentFails === 0) {
|
|
2975
|
-
peg$fail(peg$
|
|
3110
|
+
peg$fail(peg$e31);
|
|
2976
3111
|
}
|
|
2977
3112
|
}
|
|
2978
3113
|
}
|
|
2979
3114
|
}
|
|
2980
3115
|
s4 = input.charAt(peg$currPos);
|
|
2981
|
-
if (peg$
|
|
3116
|
+
if (peg$r17.test(s4)) {
|
|
2982
3117
|
peg$currPos++;
|
|
2983
3118
|
} else {
|
|
2984
3119
|
s4 = peg$FAILED;
|
|
2985
3120
|
if (peg$silentFails === 0) {
|
|
2986
|
-
peg$fail(peg$
|
|
3121
|
+
peg$fail(peg$e29);
|
|
2987
3122
|
}
|
|
2988
3123
|
}
|
|
2989
3124
|
if (s4 !== peg$FAILED) {
|
|
2990
3125
|
peg$savedPos = s0;
|
|
2991
|
-
s0 = peg$
|
|
3126
|
+
s0 = peg$f23(s1);
|
|
2992
3127
|
} else {
|
|
2993
3128
|
peg$currPos = s0;
|
|
2994
3129
|
s0 = peg$FAILED;
|
|
@@ -3003,62 +3138,62 @@ function peg$parse(input, options) {
|
|
|
3003
3138
|
}
|
|
3004
3139
|
return s0;
|
|
3005
3140
|
}
|
|
3006
|
-
|
|
3141
|
+
chunkCHM43IJO_js.__name(peg$parsesingleSQuotedMultiLineString, "peg$parsesingleSQuotedMultiLineString");
|
|
3007
3142
|
function peg$parsesingleDQuotedMultiLineString() {
|
|
3008
3143
|
let s0, s1, s2, s3, s4, s5;
|
|
3009
3144
|
s0 = peg$currPos;
|
|
3010
3145
|
s1 = input.charAt(peg$currPos);
|
|
3011
|
-
if (peg$
|
|
3146
|
+
if (peg$r15.test(s1)) {
|
|
3012
3147
|
peg$currPos++;
|
|
3013
3148
|
} else {
|
|
3014
3149
|
s1 = peg$FAILED;
|
|
3015
3150
|
if (peg$silentFails === 0) {
|
|
3016
|
-
peg$fail(peg$
|
|
3151
|
+
peg$fail(peg$e26);
|
|
3017
3152
|
}
|
|
3018
3153
|
}
|
|
3019
3154
|
if (s1 !== peg$FAILED) {
|
|
3020
3155
|
s2 = [];
|
|
3021
3156
|
s3 = peg$currPos;
|
|
3022
3157
|
s4 = [];
|
|
3023
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
3024
|
-
s5 = peg$
|
|
3158
|
+
if (input.substr(peg$currPos, 2) === peg$c11) {
|
|
3159
|
+
s5 = peg$c11;
|
|
3025
3160
|
peg$currPos += 2;
|
|
3026
3161
|
} else {
|
|
3027
3162
|
s5 = peg$FAILED;
|
|
3028
3163
|
if (peg$silentFails === 0) {
|
|
3029
|
-
peg$fail(peg$
|
|
3164
|
+
peg$fail(peg$e27);
|
|
3030
3165
|
}
|
|
3031
3166
|
}
|
|
3032
3167
|
if (s5 === peg$FAILED) {
|
|
3033
3168
|
s5 = input.charAt(peg$currPos);
|
|
3034
|
-
if (peg$
|
|
3169
|
+
if (peg$r16.test(s5)) {
|
|
3035
3170
|
peg$currPos++;
|
|
3036
3171
|
} else {
|
|
3037
3172
|
s5 = peg$FAILED;
|
|
3038
3173
|
if (peg$silentFails === 0) {
|
|
3039
|
-
peg$fail(peg$
|
|
3174
|
+
peg$fail(peg$e28);
|
|
3040
3175
|
}
|
|
3041
3176
|
}
|
|
3042
3177
|
}
|
|
3043
3178
|
while (s5 !== peg$FAILED) {
|
|
3044
3179
|
s4.push(s5);
|
|
3045
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
3046
|
-
s5 = peg$
|
|
3180
|
+
if (input.substr(peg$currPos, 2) === peg$c11) {
|
|
3181
|
+
s5 = peg$c11;
|
|
3047
3182
|
peg$currPos += 2;
|
|
3048
3183
|
} else {
|
|
3049
3184
|
s5 = peg$FAILED;
|
|
3050
3185
|
if (peg$silentFails === 0) {
|
|
3051
|
-
peg$fail(peg$
|
|
3186
|
+
peg$fail(peg$e27);
|
|
3052
3187
|
}
|
|
3053
3188
|
}
|
|
3054
3189
|
if (s5 === peg$FAILED) {
|
|
3055
3190
|
s5 = input.charAt(peg$currPos);
|
|
3056
|
-
if (peg$
|
|
3191
|
+
if (peg$r16.test(s5)) {
|
|
3057
3192
|
peg$currPos++;
|
|
3058
3193
|
} else {
|
|
3059
3194
|
s5 = peg$FAILED;
|
|
3060
3195
|
if (peg$silentFails === 0) {
|
|
3061
|
-
peg$fail(peg$
|
|
3196
|
+
peg$fail(peg$e28);
|
|
3062
3197
|
}
|
|
3063
3198
|
}
|
|
3064
3199
|
}
|
|
@@ -3084,45 +3219,45 @@ function peg$parse(input, options) {
|
|
|
3084
3219
|
s2.push(s3);
|
|
3085
3220
|
s3 = peg$currPos;
|
|
3086
3221
|
s4 = [];
|
|
3087
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
3088
|
-
s5 = peg$
|
|
3222
|
+
if (input.substr(peg$currPos, 2) === peg$c11) {
|
|
3223
|
+
s5 = peg$c11;
|
|
3089
3224
|
peg$currPos += 2;
|
|
3090
3225
|
} else {
|
|
3091
3226
|
s5 = peg$FAILED;
|
|
3092
3227
|
if (peg$silentFails === 0) {
|
|
3093
|
-
peg$fail(peg$
|
|
3228
|
+
peg$fail(peg$e27);
|
|
3094
3229
|
}
|
|
3095
3230
|
}
|
|
3096
3231
|
if (s5 === peg$FAILED) {
|
|
3097
3232
|
s5 = input.charAt(peg$currPos);
|
|
3098
|
-
if (peg$
|
|
3233
|
+
if (peg$r16.test(s5)) {
|
|
3099
3234
|
peg$currPos++;
|
|
3100
3235
|
} else {
|
|
3101
3236
|
s5 = peg$FAILED;
|
|
3102
3237
|
if (peg$silentFails === 0) {
|
|
3103
|
-
peg$fail(peg$
|
|
3238
|
+
peg$fail(peg$e28);
|
|
3104
3239
|
}
|
|
3105
3240
|
}
|
|
3106
3241
|
}
|
|
3107
3242
|
while (s5 !== peg$FAILED) {
|
|
3108
3243
|
s4.push(s5);
|
|
3109
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
3110
|
-
s5 = peg$
|
|
3244
|
+
if (input.substr(peg$currPos, 2) === peg$c11) {
|
|
3245
|
+
s5 = peg$c11;
|
|
3111
3246
|
peg$currPos += 2;
|
|
3112
3247
|
} else {
|
|
3113
3248
|
s5 = peg$FAILED;
|
|
3114
3249
|
if (peg$silentFails === 0) {
|
|
3115
|
-
peg$fail(peg$
|
|
3250
|
+
peg$fail(peg$e27);
|
|
3116
3251
|
}
|
|
3117
3252
|
}
|
|
3118
3253
|
if (s5 === peg$FAILED) {
|
|
3119
3254
|
s5 = input.charAt(peg$currPos);
|
|
3120
|
-
if (peg$
|
|
3255
|
+
if (peg$r16.test(s5)) {
|
|
3121
3256
|
peg$currPos++;
|
|
3122
3257
|
} else {
|
|
3123
3258
|
s5 = peg$FAILED;
|
|
3124
3259
|
if (peg$silentFails === 0) {
|
|
3125
|
-
peg$fail(peg$
|
|
3260
|
+
peg$fail(peg$e28);
|
|
3126
3261
|
}
|
|
3127
3262
|
}
|
|
3128
3263
|
}
|
|
@@ -3149,61 +3284,61 @@ function peg$parse(input, options) {
|
|
|
3149
3284
|
}
|
|
3150
3285
|
if (s2 !== peg$FAILED) {
|
|
3151
3286
|
s3 = [];
|
|
3152
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
3153
|
-
s4 = peg$
|
|
3287
|
+
if (input.substr(peg$currPos, 2) === peg$c11) {
|
|
3288
|
+
s4 = peg$c11;
|
|
3154
3289
|
peg$currPos += 2;
|
|
3155
3290
|
} else {
|
|
3156
3291
|
s4 = peg$FAILED;
|
|
3157
3292
|
if (peg$silentFails === 0) {
|
|
3158
|
-
peg$fail(peg$
|
|
3293
|
+
peg$fail(peg$e27);
|
|
3159
3294
|
}
|
|
3160
3295
|
}
|
|
3161
3296
|
if (s4 === peg$FAILED) {
|
|
3162
3297
|
s4 = input.charAt(peg$currPos);
|
|
3163
|
-
if (peg$
|
|
3298
|
+
if (peg$r16.test(s4)) {
|
|
3164
3299
|
peg$currPos++;
|
|
3165
3300
|
} else {
|
|
3166
3301
|
s4 = peg$FAILED;
|
|
3167
3302
|
if (peg$silentFails === 0) {
|
|
3168
|
-
peg$fail(peg$
|
|
3303
|
+
peg$fail(peg$e28);
|
|
3169
3304
|
}
|
|
3170
3305
|
}
|
|
3171
3306
|
}
|
|
3172
3307
|
while (s4 !== peg$FAILED) {
|
|
3173
3308
|
s3.push(s4);
|
|
3174
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
3175
|
-
s4 = peg$
|
|
3309
|
+
if (input.substr(peg$currPos, 2) === peg$c11) {
|
|
3310
|
+
s4 = peg$c11;
|
|
3176
3311
|
peg$currPos += 2;
|
|
3177
3312
|
} else {
|
|
3178
3313
|
s4 = peg$FAILED;
|
|
3179
3314
|
if (peg$silentFails === 0) {
|
|
3180
|
-
peg$fail(peg$
|
|
3315
|
+
peg$fail(peg$e27);
|
|
3181
3316
|
}
|
|
3182
3317
|
}
|
|
3183
3318
|
if (s4 === peg$FAILED) {
|
|
3184
3319
|
s4 = input.charAt(peg$currPos);
|
|
3185
|
-
if (peg$
|
|
3320
|
+
if (peg$r16.test(s4)) {
|
|
3186
3321
|
peg$currPos++;
|
|
3187
3322
|
} else {
|
|
3188
3323
|
s4 = peg$FAILED;
|
|
3189
3324
|
if (peg$silentFails === 0) {
|
|
3190
|
-
peg$fail(peg$
|
|
3325
|
+
peg$fail(peg$e28);
|
|
3191
3326
|
}
|
|
3192
3327
|
}
|
|
3193
3328
|
}
|
|
3194
3329
|
}
|
|
3195
3330
|
s4 = input.charAt(peg$currPos);
|
|
3196
|
-
if (peg$
|
|
3331
|
+
if (peg$r15.test(s4)) {
|
|
3197
3332
|
peg$currPos++;
|
|
3198
3333
|
} else {
|
|
3199
3334
|
s4 = peg$FAILED;
|
|
3200
3335
|
if (peg$silentFails === 0) {
|
|
3201
|
-
peg$fail(peg$
|
|
3336
|
+
peg$fail(peg$e26);
|
|
3202
3337
|
}
|
|
3203
3338
|
}
|
|
3204
3339
|
if (s4 !== peg$FAILED) {
|
|
3205
3340
|
peg$savedPos = s0;
|
|
3206
|
-
s0 = peg$
|
|
3341
|
+
s0 = peg$f24(s1);
|
|
3207
3342
|
} else {
|
|
3208
3343
|
peg$currPos = s0;
|
|
3209
3344
|
s0 = peg$FAILED;
|
|
@@ -3218,43 +3353,43 @@ function peg$parse(input, options) {
|
|
|
3218
3353
|
}
|
|
3219
3354
|
return s0;
|
|
3220
3355
|
}
|
|
3221
|
-
|
|
3356
|
+
chunkCHM43IJO_js.__name(peg$parsesingleDQuotedMultiLineString, "peg$parsesingleDQuotedMultiLineString");
|
|
3222
3357
|
function peg$parsetripleDQuotedMultiLineString() {
|
|
3223
3358
|
let s0, s1, s2, s3, s4, s5, s6, s7;
|
|
3224
3359
|
s0 = peg$currPos;
|
|
3225
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
3226
|
-
s1 = peg$
|
|
3360
|
+
if (input.substr(peg$currPos, 3) === peg$c14) {
|
|
3361
|
+
s1 = peg$c14;
|
|
3227
3362
|
peg$currPos += 3;
|
|
3228
3363
|
} else {
|
|
3229
3364
|
s1 = peg$FAILED;
|
|
3230
3365
|
if (peg$silentFails === 0) {
|
|
3231
|
-
peg$fail(peg$
|
|
3366
|
+
peg$fail(peg$e35);
|
|
3232
3367
|
}
|
|
3233
3368
|
}
|
|
3234
3369
|
if (s1 !== peg$FAILED) {
|
|
3235
3370
|
s2 = [];
|
|
3236
3371
|
s3 = peg$currPos;
|
|
3237
3372
|
s4 = [];
|
|
3238
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
3239
|
-
s5 = peg$
|
|
3373
|
+
if (input.substr(peg$currPos, 4) === peg$c15) {
|
|
3374
|
+
s5 = peg$c15;
|
|
3240
3375
|
peg$currPos += 4;
|
|
3241
3376
|
} else {
|
|
3242
3377
|
s5 = peg$FAILED;
|
|
3243
3378
|
if (peg$silentFails === 0) {
|
|
3244
|
-
peg$fail(peg$
|
|
3379
|
+
peg$fail(peg$e36);
|
|
3245
3380
|
}
|
|
3246
3381
|
}
|
|
3247
3382
|
if (s5 === peg$FAILED) {
|
|
3248
3383
|
s5 = peg$currPos;
|
|
3249
3384
|
s6 = peg$currPos;
|
|
3250
3385
|
peg$silentFails++;
|
|
3251
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
3252
|
-
s7 = peg$
|
|
3386
|
+
if (input.substr(peg$currPos, 3) === peg$c14) {
|
|
3387
|
+
s7 = peg$c14;
|
|
3253
3388
|
peg$currPos += 3;
|
|
3254
3389
|
} else {
|
|
3255
3390
|
s7 = peg$FAILED;
|
|
3256
3391
|
if (peg$silentFails === 0) {
|
|
3257
|
-
peg$fail(peg$
|
|
3392
|
+
peg$fail(peg$e35);
|
|
3258
3393
|
}
|
|
3259
3394
|
}
|
|
3260
3395
|
peg$silentFails--;
|
|
@@ -3288,26 +3423,26 @@ function peg$parse(input, options) {
|
|
|
3288
3423
|
}
|
|
3289
3424
|
while (s5 !== peg$FAILED) {
|
|
3290
3425
|
s4.push(s5);
|
|
3291
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
3292
|
-
s5 = peg$
|
|
3426
|
+
if (input.substr(peg$currPos, 4) === peg$c15) {
|
|
3427
|
+
s5 = peg$c15;
|
|
3293
3428
|
peg$currPos += 4;
|
|
3294
3429
|
} else {
|
|
3295
3430
|
s5 = peg$FAILED;
|
|
3296
3431
|
if (peg$silentFails === 0) {
|
|
3297
|
-
peg$fail(peg$
|
|
3432
|
+
peg$fail(peg$e36);
|
|
3298
3433
|
}
|
|
3299
3434
|
}
|
|
3300
3435
|
if (s5 === peg$FAILED) {
|
|
3301
3436
|
s5 = peg$currPos;
|
|
3302
3437
|
s6 = peg$currPos;
|
|
3303
3438
|
peg$silentFails++;
|
|
3304
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
3305
|
-
s7 = peg$
|
|
3439
|
+
if (input.substr(peg$currPos, 3) === peg$c14) {
|
|
3440
|
+
s7 = peg$c14;
|
|
3306
3441
|
peg$currPos += 3;
|
|
3307
3442
|
} else {
|
|
3308
3443
|
s7 = peg$FAILED;
|
|
3309
3444
|
if (peg$silentFails === 0) {
|
|
3310
|
-
peg$fail(peg$
|
|
3445
|
+
peg$fail(peg$e35);
|
|
3311
3446
|
}
|
|
3312
3447
|
}
|
|
3313
3448
|
peg$silentFails--;
|
|
@@ -3361,26 +3496,26 @@ function peg$parse(input, options) {
|
|
|
3361
3496
|
s2.push(s3);
|
|
3362
3497
|
s3 = peg$currPos;
|
|
3363
3498
|
s4 = [];
|
|
3364
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
3365
|
-
s5 = peg$
|
|
3499
|
+
if (input.substr(peg$currPos, 4) === peg$c15) {
|
|
3500
|
+
s5 = peg$c15;
|
|
3366
3501
|
peg$currPos += 4;
|
|
3367
3502
|
} else {
|
|
3368
3503
|
s5 = peg$FAILED;
|
|
3369
3504
|
if (peg$silentFails === 0) {
|
|
3370
|
-
peg$fail(peg$
|
|
3505
|
+
peg$fail(peg$e36);
|
|
3371
3506
|
}
|
|
3372
3507
|
}
|
|
3373
3508
|
if (s5 === peg$FAILED) {
|
|
3374
3509
|
s5 = peg$currPos;
|
|
3375
3510
|
s6 = peg$currPos;
|
|
3376
3511
|
peg$silentFails++;
|
|
3377
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
3378
|
-
s7 = peg$
|
|
3512
|
+
if (input.substr(peg$currPos, 3) === peg$c14) {
|
|
3513
|
+
s7 = peg$c14;
|
|
3379
3514
|
peg$currPos += 3;
|
|
3380
3515
|
} else {
|
|
3381
3516
|
s7 = peg$FAILED;
|
|
3382
3517
|
if (peg$silentFails === 0) {
|
|
3383
|
-
peg$fail(peg$
|
|
3518
|
+
peg$fail(peg$e35);
|
|
3384
3519
|
}
|
|
3385
3520
|
}
|
|
3386
3521
|
peg$silentFails--;
|
|
@@ -3414,26 +3549,26 @@ function peg$parse(input, options) {
|
|
|
3414
3549
|
}
|
|
3415
3550
|
while (s5 !== peg$FAILED) {
|
|
3416
3551
|
s4.push(s5);
|
|
3417
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
3418
|
-
s5 = peg$
|
|
3552
|
+
if (input.substr(peg$currPos, 4) === peg$c15) {
|
|
3553
|
+
s5 = peg$c15;
|
|
3419
3554
|
peg$currPos += 4;
|
|
3420
3555
|
} else {
|
|
3421
3556
|
s5 = peg$FAILED;
|
|
3422
3557
|
if (peg$silentFails === 0) {
|
|
3423
|
-
peg$fail(peg$
|
|
3558
|
+
peg$fail(peg$e36);
|
|
3424
3559
|
}
|
|
3425
3560
|
}
|
|
3426
3561
|
if (s5 === peg$FAILED) {
|
|
3427
3562
|
s5 = peg$currPos;
|
|
3428
3563
|
s6 = peg$currPos;
|
|
3429
3564
|
peg$silentFails++;
|
|
3430
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
3431
|
-
s7 = peg$
|
|
3565
|
+
if (input.substr(peg$currPos, 3) === peg$c14) {
|
|
3566
|
+
s7 = peg$c14;
|
|
3432
3567
|
peg$currPos += 3;
|
|
3433
3568
|
} else {
|
|
3434
3569
|
s7 = peg$FAILED;
|
|
3435
3570
|
if (peg$silentFails === 0) {
|
|
3436
|
-
peg$fail(peg$
|
|
3571
|
+
peg$fail(peg$e35);
|
|
3437
3572
|
}
|
|
3438
3573
|
}
|
|
3439
3574
|
peg$silentFails--;
|
|
@@ -3488,26 +3623,26 @@ function peg$parse(input, options) {
|
|
|
3488
3623
|
}
|
|
3489
3624
|
if (s2 !== peg$FAILED) {
|
|
3490
3625
|
s3 = [];
|
|
3491
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
3492
|
-
s4 = peg$
|
|
3626
|
+
if (input.substr(peg$currPos, 4) === peg$c15) {
|
|
3627
|
+
s4 = peg$c15;
|
|
3493
3628
|
peg$currPos += 4;
|
|
3494
3629
|
} else {
|
|
3495
3630
|
s4 = peg$FAILED;
|
|
3496
3631
|
if (peg$silentFails === 0) {
|
|
3497
|
-
peg$fail(peg$
|
|
3632
|
+
peg$fail(peg$e36);
|
|
3498
3633
|
}
|
|
3499
3634
|
}
|
|
3500
3635
|
if (s4 === peg$FAILED) {
|
|
3501
3636
|
s4 = peg$currPos;
|
|
3502
3637
|
s5 = peg$currPos;
|
|
3503
3638
|
peg$silentFails++;
|
|
3504
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
3505
|
-
s6 = peg$
|
|
3639
|
+
if (input.substr(peg$currPos, 3) === peg$c14) {
|
|
3640
|
+
s6 = peg$c14;
|
|
3506
3641
|
peg$currPos += 3;
|
|
3507
3642
|
} else {
|
|
3508
3643
|
s6 = peg$FAILED;
|
|
3509
3644
|
if (peg$silentFails === 0) {
|
|
3510
|
-
peg$fail(peg$
|
|
3645
|
+
peg$fail(peg$e35);
|
|
3511
3646
|
}
|
|
3512
3647
|
}
|
|
3513
3648
|
peg$silentFails--;
|
|
@@ -3541,26 +3676,26 @@ function peg$parse(input, options) {
|
|
|
3541
3676
|
}
|
|
3542
3677
|
while (s4 !== peg$FAILED) {
|
|
3543
3678
|
s3.push(s4);
|
|
3544
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
3545
|
-
s4 = peg$
|
|
3679
|
+
if (input.substr(peg$currPos, 4) === peg$c15) {
|
|
3680
|
+
s4 = peg$c15;
|
|
3546
3681
|
peg$currPos += 4;
|
|
3547
3682
|
} else {
|
|
3548
3683
|
s4 = peg$FAILED;
|
|
3549
3684
|
if (peg$silentFails === 0) {
|
|
3550
|
-
peg$fail(peg$
|
|
3685
|
+
peg$fail(peg$e36);
|
|
3551
3686
|
}
|
|
3552
3687
|
}
|
|
3553
3688
|
if (s4 === peg$FAILED) {
|
|
3554
3689
|
s4 = peg$currPos;
|
|
3555
3690
|
s5 = peg$currPos;
|
|
3556
3691
|
peg$silentFails++;
|
|
3557
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
3558
|
-
s6 = peg$
|
|
3692
|
+
if (input.substr(peg$currPos, 3) === peg$c14) {
|
|
3693
|
+
s6 = peg$c14;
|
|
3559
3694
|
peg$currPos += 3;
|
|
3560
3695
|
} else {
|
|
3561
3696
|
s6 = peg$FAILED;
|
|
3562
3697
|
if (peg$silentFails === 0) {
|
|
3563
|
-
peg$fail(peg$
|
|
3698
|
+
peg$fail(peg$e35);
|
|
3564
3699
|
}
|
|
3565
3700
|
}
|
|
3566
3701
|
peg$silentFails--;
|
|
@@ -3593,18 +3728,18 @@ function peg$parse(input, options) {
|
|
|
3593
3728
|
}
|
|
3594
3729
|
}
|
|
3595
3730
|
}
|
|
3596
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
3597
|
-
s4 = peg$
|
|
3731
|
+
if (input.substr(peg$currPos, 3) === peg$c14) {
|
|
3732
|
+
s4 = peg$c14;
|
|
3598
3733
|
peg$currPos += 3;
|
|
3599
3734
|
} else {
|
|
3600
3735
|
s4 = peg$FAILED;
|
|
3601
3736
|
if (peg$silentFails === 0) {
|
|
3602
|
-
peg$fail(peg$
|
|
3737
|
+
peg$fail(peg$e35);
|
|
3603
3738
|
}
|
|
3604
3739
|
}
|
|
3605
3740
|
if (s4 !== peg$FAILED) {
|
|
3606
3741
|
peg$savedPos = s0;
|
|
3607
|
-
s0 = peg$
|
|
3742
|
+
s0 = peg$f25(s1);
|
|
3608
3743
|
} else {
|
|
3609
3744
|
peg$currPos = s0;
|
|
3610
3745
|
s0 = peg$FAILED;
|
|
@@ -3619,43 +3754,43 @@ function peg$parse(input, options) {
|
|
|
3619
3754
|
}
|
|
3620
3755
|
return s0;
|
|
3621
3756
|
}
|
|
3622
|
-
|
|
3757
|
+
chunkCHM43IJO_js.__name(peg$parsetripleDQuotedMultiLineString, "peg$parsetripleDQuotedMultiLineString");
|
|
3623
3758
|
function peg$parsetripleBQuotedMultiLineString() {
|
|
3624
3759
|
let s0, s1, s2, s3, s4, s5, s6, s7;
|
|
3625
3760
|
s0 = peg$currPos;
|
|
3626
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
3627
|
-
s1 = peg$
|
|
3761
|
+
if (input.substr(peg$currPos, 3) === peg$c16) {
|
|
3762
|
+
s1 = peg$c16;
|
|
3628
3763
|
peg$currPos += 3;
|
|
3629
3764
|
} else {
|
|
3630
3765
|
s1 = peg$FAILED;
|
|
3631
3766
|
if (peg$silentFails === 0) {
|
|
3632
|
-
peg$fail(peg$
|
|
3767
|
+
peg$fail(peg$e37);
|
|
3633
3768
|
}
|
|
3634
3769
|
}
|
|
3635
3770
|
if (s1 !== peg$FAILED) {
|
|
3636
3771
|
s2 = [];
|
|
3637
3772
|
s3 = peg$currPos;
|
|
3638
3773
|
s4 = [];
|
|
3639
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
3640
|
-
s5 = peg$
|
|
3774
|
+
if (input.substr(peg$currPos, 4) === peg$c17) {
|
|
3775
|
+
s5 = peg$c17;
|
|
3641
3776
|
peg$currPos += 4;
|
|
3642
3777
|
} else {
|
|
3643
3778
|
s5 = peg$FAILED;
|
|
3644
3779
|
if (peg$silentFails === 0) {
|
|
3645
|
-
peg$fail(peg$
|
|
3780
|
+
peg$fail(peg$e38);
|
|
3646
3781
|
}
|
|
3647
3782
|
}
|
|
3648
3783
|
if (s5 === peg$FAILED) {
|
|
3649
3784
|
s5 = peg$currPos;
|
|
3650
3785
|
s6 = peg$currPos;
|
|
3651
3786
|
peg$silentFails++;
|
|
3652
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
3653
|
-
s7 = peg$
|
|
3787
|
+
if (input.substr(peg$currPos, 3) === peg$c16) {
|
|
3788
|
+
s7 = peg$c16;
|
|
3654
3789
|
peg$currPos += 3;
|
|
3655
3790
|
} else {
|
|
3656
3791
|
s7 = peg$FAILED;
|
|
3657
3792
|
if (peg$silentFails === 0) {
|
|
3658
|
-
peg$fail(peg$
|
|
3793
|
+
peg$fail(peg$e37);
|
|
3659
3794
|
}
|
|
3660
3795
|
}
|
|
3661
3796
|
peg$silentFails--;
|
|
@@ -3689,26 +3824,26 @@ function peg$parse(input, options) {
|
|
|
3689
3824
|
}
|
|
3690
3825
|
while (s5 !== peg$FAILED) {
|
|
3691
3826
|
s4.push(s5);
|
|
3692
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
3693
|
-
s5 = peg$
|
|
3827
|
+
if (input.substr(peg$currPos, 4) === peg$c17) {
|
|
3828
|
+
s5 = peg$c17;
|
|
3694
3829
|
peg$currPos += 4;
|
|
3695
3830
|
} else {
|
|
3696
3831
|
s5 = peg$FAILED;
|
|
3697
3832
|
if (peg$silentFails === 0) {
|
|
3698
|
-
peg$fail(peg$
|
|
3833
|
+
peg$fail(peg$e38);
|
|
3699
3834
|
}
|
|
3700
3835
|
}
|
|
3701
3836
|
if (s5 === peg$FAILED) {
|
|
3702
3837
|
s5 = peg$currPos;
|
|
3703
3838
|
s6 = peg$currPos;
|
|
3704
3839
|
peg$silentFails++;
|
|
3705
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
3706
|
-
s7 = peg$
|
|
3840
|
+
if (input.substr(peg$currPos, 3) === peg$c16) {
|
|
3841
|
+
s7 = peg$c16;
|
|
3707
3842
|
peg$currPos += 3;
|
|
3708
3843
|
} else {
|
|
3709
3844
|
s7 = peg$FAILED;
|
|
3710
3845
|
if (peg$silentFails === 0) {
|
|
3711
|
-
peg$fail(peg$
|
|
3846
|
+
peg$fail(peg$e37);
|
|
3712
3847
|
}
|
|
3713
3848
|
}
|
|
3714
3849
|
peg$silentFails--;
|
|
@@ -3762,26 +3897,26 @@ function peg$parse(input, options) {
|
|
|
3762
3897
|
s2.push(s3);
|
|
3763
3898
|
s3 = peg$currPos;
|
|
3764
3899
|
s4 = [];
|
|
3765
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
3766
|
-
s5 = peg$
|
|
3900
|
+
if (input.substr(peg$currPos, 4) === peg$c17) {
|
|
3901
|
+
s5 = peg$c17;
|
|
3767
3902
|
peg$currPos += 4;
|
|
3768
3903
|
} else {
|
|
3769
3904
|
s5 = peg$FAILED;
|
|
3770
3905
|
if (peg$silentFails === 0) {
|
|
3771
|
-
peg$fail(peg$
|
|
3906
|
+
peg$fail(peg$e38);
|
|
3772
3907
|
}
|
|
3773
3908
|
}
|
|
3774
3909
|
if (s5 === peg$FAILED) {
|
|
3775
3910
|
s5 = peg$currPos;
|
|
3776
3911
|
s6 = peg$currPos;
|
|
3777
3912
|
peg$silentFails++;
|
|
3778
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
3779
|
-
s7 = peg$
|
|
3913
|
+
if (input.substr(peg$currPos, 3) === peg$c16) {
|
|
3914
|
+
s7 = peg$c16;
|
|
3780
3915
|
peg$currPos += 3;
|
|
3781
3916
|
} else {
|
|
3782
3917
|
s7 = peg$FAILED;
|
|
3783
3918
|
if (peg$silentFails === 0) {
|
|
3784
|
-
peg$fail(peg$
|
|
3919
|
+
peg$fail(peg$e37);
|
|
3785
3920
|
}
|
|
3786
3921
|
}
|
|
3787
3922
|
peg$silentFails--;
|
|
@@ -3815,26 +3950,26 @@ function peg$parse(input, options) {
|
|
|
3815
3950
|
}
|
|
3816
3951
|
while (s5 !== peg$FAILED) {
|
|
3817
3952
|
s4.push(s5);
|
|
3818
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
3819
|
-
s5 = peg$
|
|
3953
|
+
if (input.substr(peg$currPos, 4) === peg$c17) {
|
|
3954
|
+
s5 = peg$c17;
|
|
3820
3955
|
peg$currPos += 4;
|
|
3821
3956
|
} else {
|
|
3822
3957
|
s5 = peg$FAILED;
|
|
3823
3958
|
if (peg$silentFails === 0) {
|
|
3824
|
-
peg$fail(peg$
|
|
3959
|
+
peg$fail(peg$e38);
|
|
3825
3960
|
}
|
|
3826
3961
|
}
|
|
3827
3962
|
if (s5 === peg$FAILED) {
|
|
3828
3963
|
s5 = peg$currPos;
|
|
3829
3964
|
s6 = peg$currPos;
|
|
3830
3965
|
peg$silentFails++;
|
|
3831
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
3832
|
-
s7 = peg$
|
|
3966
|
+
if (input.substr(peg$currPos, 3) === peg$c16) {
|
|
3967
|
+
s7 = peg$c16;
|
|
3833
3968
|
peg$currPos += 3;
|
|
3834
3969
|
} else {
|
|
3835
3970
|
s7 = peg$FAILED;
|
|
3836
3971
|
if (peg$silentFails === 0) {
|
|
3837
|
-
peg$fail(peg$
|
|
3972
|
+
peg$fail(peg$e37);
|
|
3838
3973
|
}
|
|
3839
3974
|
}
|
|
3840
3975
|
peg$silentFails--;
|
|
@@ -3889,26 +4024,26 @@ function peg$parse(input, options) {
|
|
|
3889
4024
|
}
|
|
3890
4025
|
if (s2 !== peg$FAILED) {
|
|
3891
4026
|
s3 = [];
|
|
3892
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
3893
|
-
s4 = peg$
|
|
4027
|
+
if (input.substr(peg$currPos, 4) === peg$c17) {
|
|
4028
|
+
s4 = peg$c17;
|
|
3894
4029
|
peg$currPos += 4;
|
|
3895
4030
|
} else {
|
|
3896
4031
|
s4 = peg$FAILED;
|
|
3897
4032
|
if (peg$silentFails === 0) {
|
|
3898
|
-
peg$fail(peg$
|
|
4033
|
+
peg$fail(peg$e38);
|
|
3899
4034
|
}
|
|
3900
4035
|
}
|
|
3901
4036
|
if (s4 === peg$FAILED) {
|
|
3902
4037
|
s4 = peg$currPos;
|
|
3903
4038
|
s5 = peg$currPos;
|
|
3904
4039
|
peg$silentFails++;
|
|
3905
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
3906
|
-
s6 = peg$
|
|
4040
|
+
if (input.substr(peg$currPos, 3) === peg$c16) {
|
|
4041
|
+
s6 = peg$c16;
|
|
3907
4042
|
peg$currPos += 3;
|
|
3908
4043
|
} else {
|
|
3909
4044
|
s6 = peg$FAILED;
|
|
3910
4045
|
if (peg$silentFails === 0) {
|
|
3911
|
-
peg$fail(peg$
|
|
4046
|
+
peg$fail(peg$e37);
|
|
3912
4047
|
}
|
|
3913
4048
|
}
|
|
3914
4049
|
peg$silentFails--;
|
|
@@ -3942,26 +4077,26 @@ function peg$parse(input, options) {
|
|
|
3942
4077
|
}
|
|
3943
4078
|
while (s4 !== peg$FAILED) {
|
|
3944
4079
|
s3.push(s4);
|
|
3945
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
3946
|
-
s4 = peg$
|
|
4080
|
+
if (input.substr(peg$currPos, 4) === peg$c17) {
|
|
4081
|
+
s4 = peg$c17;
|
|
3947
4082
|
peg$currPos += 4;
|
|
3948
4083
|
} else {
|
|
3949
4084
|
s4 = peg$FAILED;
|
|
3950
4085
|
if (peg$silentFails === 0) {
|
|
3951
|
-
peg$fail(peg$
|
|
4086
|
+
peg$fail(peg$e38);
|
|
3952
4087
|
}
|
|
3953
4088
|
}
|
|
3954
4089
|
if (s4 === peg$FAILED) {
|
|
3955
4090
|
s4 = peg$currPos;
|
|
3956
4091
|
s5 = peg$currPos;
|
|
3957
4092
|
peg$silentFails++;
|
|
3958
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
3959
|
-
s6 = peg$
|
|
4093
|
+
if (input.substr(peg$currPos, 3) === peg$c16) {
|
|
4094
|
+
s6 = peg$c16;
|
|
3960
4095
|
peg$currPos += 3;
|
|
3961
4096
|
} else {
|
|
3962
4097
|
s6 = peg$FAILED;
|
|
3963
4098
|
if (peg$silentFails === 0) {
|
|
3964
|
-
peg$fail(peg$
|
|
4099
|
+
peg$fail(peg$e37);
|
|
3965
4100
|
}
|
|
3966
4101
|
}
|
|
3967
4102
|
peg$silentFails--;
|
|
@@ -3994,18 +4129,18 @@ function peg$parse(input, options) {
|
|
|
3994
4129
|
}
|
|
3995
4130
|
}
|
|
3996
4131
|
}
|
|
3997
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
3998
|
-
s4 = peg$
|
|
4132
|
+
if (input.substr(peg$currPos, 3) === peg$c16) {
|
|
4133
|
+
s4 = peg$c16;
|
|
3999
4134
|
peg$currPos += 3;
|
|
4000
4135
|
} else {
|
|
4001
4136
|
s4 = peg$FAILED;
|
|
4002
4137
|
if (peg$silentFails === 0) {
|
|
4003
|
-
peg$fail(peg$
|
|
4138
|
+
peg$fail(peg$e37);
|
|
4004
4139
|
}
|
|
4005
4140
|
}
|
|
4006
4141
|
if (s4 !== peg$FAILED) {
|
|
4007
4142
|
peg$savedPos = s0;
|
|
4008
|
-
s0 = peg$
|
|
4143
|
+
s0 = peg$f26(s1);
|
|
4009
4144
|
} else {
|
|
4010
4145
|
peg$currPos = s0;
|
|
4011
4146
|
s0 = peg$FAILED;
|
|
@@ -4020,7 +4155,7 @@ function peg$parse(input, options) {
|
|
|
4020
4155
|
}
|
|
4021
4156
|
return s0;
|
|
4022
4157
|
}
|
|
4023
|
-
|
|
4158
|
+
chunkCHM43IJO_js.__name(peg$parsetripleBQuotedMultiLineString, "peg$parsetripleBQuotedMultiLineString");
|
|
4024
4159
|
function peg$parse_n() {
|
|
4025
4160
|
let s0, s1;
|
|
4026
4161
|
if (input.charCodeAt(peg$currPos) === 10) {
|
|
@@ -4041,7 +4176,7 @@ function peg$parse(input, options) {
|
|
|
4041
4176
|
} else {
|
|
4042
4177
|
s1 = peg$FAILED;
|
|
4043
4178
|
if (peg$silentFails === 0) {
|
|
4044
|
-
peg$fail(peg$
|
|
4179
|
+
peg$fail(peg$e39);
|
|
4045
4180
|
}
|
|
4046
4181
|
}
|
|
4047
4182
|
peg$silentFails--;
|
|
@@ -4054,7 +4189,7 @@ function peg$parse(input, options) {
|
|
|
4054
4189
|
}
|
|
4055
4190
|
return s0;
|
|
4056
4191
|
}
|
|
4057
|
-
|
|
4192
|
+
chunkCHM43IJO_js.__name(peg$parse_n, "peg$parse_n");
|
|
4058
4193
|
function peg$parse_() {
|
|
4059
4194
|
let s0, s1;
|
|
4060
4195
|
s0 = [];
|
|
@@ -4081,7 +4216,7 @@ function peg$parse(input, options) {
|
|
|
4081
4216
|
}
|
|
4082
4217
|
return s0;
|
|
4083
4218
|
}
|
|
4084
|
-
|
|
4219
|
+
chunkCHM43IJO_js.__name(peg$parse_, "peg$parse_");
|
|
4085
4220
|
function peg$parse__() {
|
|
4086
4221
|
let s0, s1;
|
|
4087
4222
|
s0 = [];
|
|
@@ -4112,7 +4247,7 @@ function peg$parse(input, options) {
|
|
|
4112
4247
|
}
|
|
4113
4248
|
return s0;
|
|
4114
4249
|
}
|
|
4115
|
-
|
|
4250
|
+
chunkCHM43IJO_js.__name(peg$parse__, "peg$parse__");
|
|
4116
4251
|
peg$result = peg$startRuleFunction();
|
|
4117
4252
|
const peg$success = peg$result !== peg$FAILED && peg$currPos === input.length;
|
|
4118
4253
|
function peg$throw() {
|
|
@@ -4125,7 +4260,7 @@ function peg$parse(input, options) {
|
|
|
4125
4260
|
peg$maxFailPos < input.length ? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1) : peg$computeLocation(peg$maxFailPos, peg$maxFailPos)
|
|
4126
4261
|
);
|
|
4127
4262
|
}
|
|
4128
|
-
|
|
4263
|
+
chunkCHM43IJO_js.__name(peg$throw, "peg$throw");
|
|
4129
4264
|
if (options.peg$library) {
|
|
4130
4265
|
return (
|
|
4131
4266
|
/** @type {any} */
|
|
@@ -4146,65 +4281,69 @@ function peg$parse(input, options) {
|
|
|
4146
4281
|
peg$throw();
|
|
4147
4282
|
}
|
|
4148
4283
|
}
|
|
4149
|
-
|
|
4284
|
+
chunkCHM43IJO_js.__name(peg$parse, "peg$parse");
|
|
4150
4285
|
|
|
4151
4286
|
// src/index.ts
|
|
4152
4287
|
function parseEnvSpecDotEnvFile(source) {
|
|
4153
4288
|
return peg$parse(source.replaceAll("\r\n", "\n"));
|
|
4154
4289
|
}
|
|
4155
|
-
|
|
4290
|
+
chunkCHM43IJO_js.__name(parseEnvSpecDotEnvFile, "parseEnvSpecDotEnvFile");
|
|
4156
4291
|
|
|
4157
4292
|
Object.defineProperty(exports, "ParsedEnvSpecBlankLine", {
|
|
4158
4293
|
enumerable: true,
|
|
4159
|
-
get: function () { return
|
|
4294
|
+
get: function () { return chunkCHM43IJO_js.ParsedEnvSpecBlankLine; }
|
|
4160
4295
|
});
|
|
4161
4296
|
Object.defineProperty(exports, "ParsedEnvSpecComment", {
|
|
4162
4297
|
enumerable: true,
|
|
4163
|
-
get: function () { return
|
|
4298
|
+
get: function () { return chunkCHM43IJO_js.ParsedEnvSpecComment; }
|
|
4164
4299
|
});
|
|
4165
4300
|
Object.defineProperty(exports, "ParsedEnvSpecCommentBlock", {
|
|
4166
4301
|
enumerable: true,
|
|
4167
|
-
get: function () { return
|
|
4302
|
+
get: function () { return chunkCHM43IJO_js.ParsedEnvSpecCommentBlock; }
|
|
4168
4303
|
});
|
|
4169
4304
|
Object.defineProperty(exports, "ParsedEnvSpecConfigItem", {
|
|
4170
4305
|
enumerable: true,
|
|
4171
|
-
get: function () { return
|
|
4306
|
+
get: function () { return chunkCHM43IJO_js.ParsedEnvSpecConfigItem; }
|
|
4172
4307
|
});
|
|
4173
4308
|
Object.defineProperty(exports, "ParsedEnvSpecDecorator", {
|
|
4174
4309
|
enumerable: true,
|
|
4175
|
-
get: function () { return
|
|
4310
|
+
get: function () { return chunkCHM43IJO_js.ParsedEnvSpecDecorator; }
|
|
4176
4311
|
});
|
|
4177
4312
|
Object.defineProperty(exports, "ParsedEnvSpecDecoratorComment", {
|
|
4178
4313
|
enumerable: true,
|
|
4179
|
-
get: function () { return
|
|
4314
|
+
get: function () { return chunkCHM43IJO_js.ParsedEnvSpecDecoratorComment; }
|
|
4180
4315
|
});
|
|
4181
4316
|
Object.defineProperty(exports, "ParsedEnvSpecDivider", {
|
|
4182
4317
|
enumerable: true,
|
|
4183
|
-
get: function () { return
|
|
4318
|
+
get: function () { return chunkCHM43IJO_js.ParsedEnvSpecDivider; }
|
|
4184
4319
|
});
|
|
4185
4320
|
Object.defineProperty(exports, "ParsedEnvSpecFile", {
|
|
4186
4321
|
enumerable: true,
|
|
4187
|
-
get: function () { return
|
|
4322
|
+
get: function () { return chunkCHM43IJO_js.ParsedEnvSpecFile; }
|
|
4188
4323
|
});
|
|
4189
4324
|
Object.defineProperty(exports, "ParsedEnvSpecFunctionArgs", {
|
|
4190
4325
|
enumerable: true,
|
|
4191
|
-
get: function () { return
|
|
4326
|
+
get: function () { return chunkCHM43IJO_js.ParsedEnvSpecFunctionArgs; }
|
|
4192
4327
|
});
|
|
4193
4328
|
Object.defineProperty(exports, "ParsedEnvSpecFunctionCall", {
|
|
4194
4329
|
enumerable: true,
|
|
4195
|
-
get: function () { return
|
|
4330
|
+
get: function () { return chunkCHM43IJO_js.ParsedEnvSpecFunctionCall; }
|
|
4196
4331
|
});
|
|
4197
4332
|
Object.defineProperty(exports, "ParsedEnvSpecKeyValuePair", {
|
|
4198
4333
|
enumerable: true,
|
|
4199
|
-
get: function () { return
|
|
4334
|
+
get: function () { return chunkCHM43IJO_js.ParsedEnvSpecKeyValuePair; }
|
|
4335
|
+
});
|
|
4336
|
+
Object.defineProperty(exports, "ParsedEnvSpecRegexLiteral", {
|
|
4337
|
+
enumerable: true,
|
|
4338
|
+
get: function () { return chunkCHM43IJO_js.ParsedEnvSpecRegexLiteral; }
|
|
4200
4339
|
});
|
|
4201
4340
|
Object.defineProperty(exports, "ParsedEnvSpecStaticValue", {
|
|
4202
4341
|
enumerable: true,
|
|
4203
|
-
get: function () { return
|
|
4342
|
+
get: function () { return chunkCHM43IJO_js.ParsedEnvSpecStaticValue; }
|
|
4204
4343
|
});
|
|
4205
4344
|
Object.defineProperty(exports, "expand", {
|
|
4206
4345
|
enumerable: true,
|
|
4207
|
-
get: function () { return
|
|
4346
|
+
get: function () { return chunkCHM43IJO_js.expand; }
|
|
4208
4347
|
});
|
|
4209
4348
|
exports.envSpecUpdater = envSpecUpdater;
|
|
4210
4349
|
exports.parseEnvSpecDotEnvFile = parseEnvSpecDotEnvFile;
|