@env-spec/parser 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/{chunk-FWOHTEQS.mjs → chunk-RQYYQO3M.mjs} +2 -2
- package/dist/chunk-RQYYQO3M.mjs.map +1 -0
- package/dist/{chunk-JU4IPIOA.js → chunk-YM4E5JVI.js} +2 -2
- package/dist/chunk-YM4E5JVI.js.map +1 -0
- package/dist/{classes-BGrn6GBW.d.mts → classes-DuGa2utt.d.mts} +1 -1
- package/dist/{classes-BGrn6GBW.d.ts → classes-DuGa2utt.d.ts} +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +427 -449
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +326 -348
- 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 +20 -8
- package/dist/simple-resolver.js.map +1 -1
- package/dist/simple-resolver.mjs +13 -1
- package/dist/simple-resolver.mjs.map +1 -1
- package/package.json +7 -2
- package/dist/chunk-FWOHTEQS.mjs.map +0 -1
- package/dist/chunk-JU4IPIOA.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkYM4E5JVI_js = require('./chunk-YM4E5JVI.js');
|
|
4
4
|
|
|
5
5
|
// src/updater.ts
|
|
6
6
|
function ensureHeader(file, newHeaderContents) {
|
|
@@ -8,17 +8,17 @@ function ensureHeader(file, newHeaderContents) {
|
|
|
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
10
|
// header is a comment block at the beginning of the file and must end with a divider
|
|
11
|
-
new
|
|
11
|
+
new chunkYM4E5JVI_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 chunkYM4E5JVI_js.ParsedEnvSpecComment({ contents: line, leadingSpace: " " })),
|
|
14
|
+
divider: new chunkYM4E5JVI_js.ParsedEnvSpecDivider({ contents: "----------", leadingSpace: " " })
|
|
15
15
|
}),
|
|
16
|
-
new
|
|
16
|
+
new chunkYM4E5JVI_js.ParsedEnvSpecBlankLine({})
|
|
17
17
|
// add extra blank line after header
|
|
18
18
|
);
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
chunkYM4E5JVI_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
|
+
chunkYM4E5JVI_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 chunkYM4E5JVI_js.ParsedEnvSpecDecoratorComment && lastComment.toString().length < 40) {
|
|
46
46
|
decCommentLine = lastComment;
|
|
47
47
|
} else {
|
|
48
|
-
decCommentLine = new
|
|
48
|
+
decCommentLine = new chunkYM4E5JVI_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
|
+
chunkYM4E5JVI_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 chunkYM4E5JVI_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 chunkYM4E5JVI_js.ParsedEnvSpecDecoratorComment && lastComment.toString().length < 40) {
|
|
78
78
|
decCommentLine = lastComment;
|
|
79
79
|
} else {
|
|
80
|
-
decCommentLine = new
|
|
80
|
+
decCommentLine = new chunkYM4E5JVI_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
|
+
chunkYM4E5JVI_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
|
+
chunkYM4E5JVI_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
|
+
chunkYM4E5JVI_js.__name(deleteItem, "deleteItem");
|
|
118
118
|
var envSpecUpdater = {
|
|
119
119
|
ensureHeader,
|
|
120
120
|
setRootDecorator,
|
|
@@ -124,326 +124,328 @@ var envSpecUpdater = {
|
|
|
124
124
|
};
|
|
125
125
|
|
|
126
126
|
// src/grammar.js
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
this
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
127
|
+
var peg$SyntaxError = class extends SyntaxError {
|
|
128
|
+
static {
|
|
129
|
+
chunkYM4E5JVI_js.__name(this, "peg$SyntaxError");
|
|
130
|
+
}
|
|
131
|
+
constructor(message, expected, found, location) {
|
|
132
|
+
super(message);
|
|
133
|
+
this.expected = expected;
|
|
134
|
+
this.found = found;
|
|
135
|
+
this.location = location;
|
|
136
|
+
this.name = "SyntaxError";
|
|
137
|
+
}
|
|
138
|
+
format(sources) {
|
|
139
|
+
let str = "Error: " + this.message;
|
|
140
|
+
if (this.location) {
|
|
141
|
+
let src = null;
|
|
142
|
+
const st = sources.find((s2) => s2.source === this.location.source);
|
|
143
|
+
if (st) {
|
|
144
|
+
src = st.text.split(/\r\n|\n|\r/g);
|
|
145
|
+
}
|
|
146
|
+
const s = this.location.start;
|
|
147
|
+
const offset_s = this.location.source && typeof this.location.source.offset === "function" ? this.location.source.offset(s) : s;
|
|
148
|
+
const loc = this.location.source + ":" + offset_s.line + ":" + offset_s.column;
|
|
149
|
+
if (src) {
|
|
150
|
+
const e = this.location.end;
|
|
151
|
+
const filler = "".padEnd(offset_s.line.toString().length, " ");
|
|
152
|
+
const line = src[s.line - 1];
|
|
153
|
+
const last = s.line === e.line ? e.column : line.length + 1;
|
|
154
|
+
const hatLen = last - s.column || 1;
|
|
155
|
+
str += "\n --> " + loc + "\n" + filler + " |\n" + offset_s.line + " | " + line + "\n" + filler + " | " + "".padEnd(s.column - 1, " ") + "".padEnd(hatLen, "^");
|
|
156
|
+
} else {
|
|
157
|
+
str += "\n at " + loc;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
152
160
|
return str;
|
|
153
161
|
}
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
}
|
|
158
|
-
chunkJU4IPIOA_js.__name(peg$padEnd, "peg$padEnd");
|
|
159
|
-
peg$SyntaxError.prototype.format = function(sources) {
|
|
160
|
-
var str = "Error: " + this.message;
|
|
161
|
-
if (this.location) {
|
|
162
|
-
var src = null;
|
|
163
|
-
var k;
|
|
164
|
-
for (k = 0; k < sources.length; k++) {
|
|
165
|
-
if (sources[k].source === this.location.source) {
|
|
166
|
-
src = sources[k].text.split(/\r\n|\n|\r/g);
|
|
167
|
-
break;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
var s = this.location.start;
|
|
171
|
-
var offset_s = this.location.source && typeof this.location.source.offset === "function" ? this.location.source.offset(s) : s;
|
|
172
|
-
var loc = this.location.source + ":" + offset_s.line + ":" + offset_s.column;
|
|
173
|
-
if (src) {
|
|
174
|
-
var e = this.location.end;
|
|
175
|
-
var filler = peg$padEnd("", offset_s.line.toString().length, " ");
|
|
176
|
-
var line = src[s.line - 1];
|
|
177
|
-
var last = s.line === e.line ? e.column : line.length + 1;
|
|
178
|
-
var hatLen = last - s.column || 1;
|
|
179
|
-
str += "\n --> " + loc + "\n" + filler + " |\n" + offset_s.line + " | " + line + "\n" + filler + " | " + peg$padEnd("", s.column - 1, " ") + peg$padEnd("", hatLen, "^");
|
|
180
|
-
} else {
|
|
181
|
-
str += "\n at " + loc;
|
|
162
|
+
static buildMessage(expected, found) {
|
|
163
|
+
function hex(ch) {
|
|
164
|
+
return ch.codePointAt(0).toString(16).toUpperCase();
|
|
182
165
|
}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
return
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
return
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
descriptions.sort();
|
|
235
|
-
if (descriptions.length > 0) {
|
|
236
|
-
for (i = 1, j = 1; i < descriptions.length; i++) {
|
|
237
|
-
if (descriptions[i - 1] !== descriptions[i]) {
|
|
238
|
-
descriptions[j] = descriptions[i];
|
|
239
|
-
j++;
|
|
166
|
+
chunkYM4E5JVI_js.__name(hex, "hex");
|
|
167
|
+
const nonPrintable = Object.prototype.hasOwnProperty.call(RegExp.prototype, "unicode") ? new RegExp("[\\p{C}\\p{Mn}\\p{Mc}]", "gu") : null;
|
|
168
|
+
function unicodeEscape(s) {
|
|
169
|
+
if (nonPrintable) {
|
|
170
|
+
return s.replace(nonPrintable, (ch) => "\\u{" + hex(ch) + "}");
|
|
171
|
+
}
|
|
172
|
+
return s;
|
|
173
|
+
}
|
|
174
|
+
chunkYM4E5JVI_js.__name(unicodeEscape, "unicodeEscape");
|
|
175
|
+
function literalEscape(s) {
|
|
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
|
+
}
|
|
178
|
+
chunkYM4E5JVI_js.__name(literalEscape, "literalEscape");
|
|
179
|
+
function classEscape(s) {
|
|
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
|
+
}
|
|
182
|
+
chunkYM4E5JVI_js.__name(classEscape, "classEscape");
|
|
183
|
+
const DESCRIBE_EXPECTATION_FNS = {
|
|
184
|
+
literal(expectation) {
|
|
185
|
+
return '"' + literalEscape(expectation.text) + '"';
|
|
186
|
+
},
|
|
187
|
+
class(expectation) {
|
|
188
|
+
const escapedParts = expectation.parts.map(
|
|
189
|
+
(part) => Array.isArray(part) ? classEscape(part[0]) + "-" + classEscape(part[1]) : classEscape(part)
|
|
190
|
+
);
|
|
191
|
+
return "[" + (expectation.inverted ? "^" : "") + escapedParts.join("") + "]" + (expectation.unicode ? "u" : "");
|
|
192
|
+
},
|
|
193
|
+
any() {
|
|
194
|
+
return "any character";
|
|
195
|
+
},
|
|
196
|
+
end() {
|
|
197
|
+
return "end of input";
|
|
198
|
+
},
|
|
199
|
+
other(expectation) {
|
|
200
|
+
return expectation.description;
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
function describeExpectation(expectation) {
|
|
204
|
+
return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation);
|
|
205
|
+
}
|
|
206
|
+
chunkYM4E5JVI_js.__name(describeExpectation, "describeExpectation");
|
|
207
|
+
function describeExpected(expected2) {
|
|
208
|
+
const descriptions = expected2.map(describeExpectation);
|
|
209
|
+
descriptions.sort();
|
|
210
|
+
if (descriptions.length > 0) {
|
|
211
|
+
let j = 1;
|
|
212
|
+
for (let i = 1; i < descriptions.length; i++) {
|
|
213
|
+
if (descriptions[i - 1] !== descriptions[i]) {
|
|
214
|
+
descriptions[j] = descriptions[i];
|
|
215
|
+
j++;
|
|
216
|
+
}
|
|
240
217
|
}
|
|
218
|
+
descriptions.length = j;
|
|
219
|
+
}
|
|
220
|
+
switch (descriptions.length) {
|
|
221
|
+
case 1:
|
|
222
|
+
return descriptions[0];
|
|
223
|
+
case 2:
|
|
224
|
+
return descriptions[0] + " or " + descriptions[1];
|
|
225
|
+
default:
|
|
226
|
+
return descriptions.slice(0, -1).join(", ") + ", or " + descriptions[descriptions.length - 1];
|
|
241
227
|
}
|
|
242
|
-
descriptions.length = j;
|
|
243
228
|
}
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
case 2:
|
|
248
|
-
return descriptions[0] + " or " + descriptions[1];
|
|
249
|
-
default:
|
|
250
|
-
return descriptions.slice(0, -1).join(", ") + ", or " + descriptions[descriptions.length - 1];
|
|
229
|
+
chunkYM4E5JVI_js.__name(describeExpected, "describeExpected");
|
|
230
|
+
function describeFound(found2) {
|
|
231
|
+
return found2 ? '"' + literalEscape(found2) + '"' : "end of input";
|
|
251
232
|
}
|
|
233
|
+
chunkYM4E5JVI_js.__name(describeFound, "describeFound");
|
|
234
|
+
return "Expected " + describeExpected(expected) + " but " + describeFound(found) + " found.";
|
|
252
235
|
}
|
|
253
|
-
chunkJU4IPIOA_js.__name(describeExpected, "describeExpected");
|
|
254
|
-
function describeFound(found2) {
|
|
255
|
-
return found2 ? '"' + literalEscape(found2) + '"' : "end of input";
|
|
256
|
-
}
|
|
257
|
-
chunkJU4IPIOA_js.__name(describeFound, "describeFound");
|
|
258
|
-
return "Expected " + describeExpected(expected) + " but " + describeFound(found) + " found.";
|
|
259
236
|
};
|
|
260
237
|
function peg$parse(input, options) {
|
|
261
238
|
options = options !== void 0 ? options : {};
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
return new
|
|
239
|
+
const peg$FAILED = {};
|
|
240
|
+
const peg$source = options.grammarSource;
|
|
241
|
+
const peg$startRuleFunctions = {
|
|
242
|
+
EnvSpecFile: peg$parseEnvSpecFile
|
|
243
|
+
};
|
|
244
|
+
let peg$startRuleFunction = peg$parseEnvSpecFile;
|
|
245
|
+
const peg$c0 = "\n";
|
|
246
|
+
const peg$c1 = "export ";
|
|
247
|
+
const peg$c2 = "=";
|
|
248
|
+
const peg$c3 = "#";
|
|
249
|
+
const peg$c4 = "@";
|
|
250
|
+
const peg$c5 = ":";
|
|
251
|
+
const peg$c6 = "()";
|
|
252
|
+
const peg$c7 = "(";
|
|
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 = "```";
|
|
261
|
+
const peg$c16 = "\\```";
|
|
262
|
+
const peg$r0 = /^[a-zA-Z_]/;
|
|
263
|
+
const peg$r1 = /^[a-zA-Z0-9_.\-]/;
|
|
264
|
+
const peg$r2 = /^[^\n]/;
|
|
265
|
+
const peg$r3 = /^[a-zA-Z]/;
|
|
266
|
+
const peg$r4 = /^[@#]/;
|
|
267
|
+
const peg$r5 = /^[a-zA-Z0-9_]/;
|
|
268
|
+
const peg$r6 = /^[^ \n,)]/;
|
|
269
|
+
const peg$r7 = /^[\-=*#]/;
|
|
270
|
+
const peg$r8 = /^['"`]/;
|
|
271
|
+
const peg$r9 = /^[^#\n]/;
|
|
272
|
+
const peg$r10 = /^[^# \n]/;
|
|
273
|
+
const peg$r11 = /^["]/;
|
|
274
|
+
const peg$r12 = /^[^"\n]/;
|
|
275
|
+
const peg$r13 = /^[']/;
|
|
276
|
+
const peg$r14 = /^[^'\n]/;
|
|
277
|
+
const peg$r15 = /^[`]/;
|
|
278
|
+
const peg$r16 = /^[^`\n]/;
|
|
279
|
+
const peg$r17 = /^[ \t]/;
|
|
280
|
+
const peg$e0 = peg$literalExpectation("\n", false);
|
|
281
|
+
const peg$e1 = peg$literalExpectation("export ", false);
|
|
282
|
+
const peg$e2 = peg$literalExpectation("=", false);
|
|
283
|
+
const peg$e3 = peg$classExpectation([["a", "z"], ["A", "Z"], "_"], false, false, false);
|
|
284
|
+
const peg$e4 = peg$classExpectation([["a", "z"], ["A", "Z"], ["0", "9"], "_", ".", "-"], false, false, false);
|
|
285
|
+
const peg$e5 = peg$literalExpectation("#", false);
|
|
286
|
+
const peg$e6 = peg$literalExpectation("@", false);
|
|
287
|
+
const peg$e7 = peg$classExpectation(["\n"], true, false, false);
|
|
288
|
+
const peg$e8 = peg$classExpectation([["a", "z"], ["A", "Z"]], false, false, false);
|
|
289
|
+
const peg$e9 = peg$literalExpectation(":", false);
|
|
290
|
+
const peg$e10 = peg$classExpectation(["@", "#"], false, false, false);
|
|
291
|
+
const peg$e11 = peg$literalExpectation("()", false);
|
|
292
|
+
const peg$e12 = peg$literalExpectation("(", false);
|
|
293
|
+
const peg$e13 = peg$literalExpectation(")", false);
|
|
294
|
+
const peg$e14 = peg$classExpectation([["a", "z"], ["A", "Z"], ["0", "9"], "_"], false, false, false);
|
|
295
|
+
const peg$e15 = peg$literalExpectation(",", false);
|
|
296
|
+
const peg$e16 = peg$classExpectation([" ", "\n", ",", ")"], true, false, false);
|
|
297
|
+
const peg$e17 = peg$classExpectation(["-", "=", "*", "#"], false, false, false);
|
|
298
|
+
const peg$e18 = peg$classExpectation(["'", '"', "`"], false, false, false);
|
|
299
|
+
const peg$e19 = peg$classExpectation(["#", "\n"], true, false, false);
|
|
300
|
+
const peg$e20 = peg$classExpectation(["#", " ", "\n"], true, false, false);
|
|
301
|
+
const peg$e21 = peg$classExpectation(['"'], false, false, false);
|
|
302
|
+
const peg$e22 = peg$literalExpectation('\\"', false);
|
|
303
|
+
const peg$e23 = peg$classExpectation(['"', "\n"], true, false, false);
|
|
304
|
+
const peg$e24 = peg$classExpectation(["'"], false, false, false);
|
|
305
|
+
const peg$e25 = peg$literalExpectation("\\'", false);
|
|
306
|
+
const peg$e26 = peg$classExpectation(["'", "\n"], true, false, false);
|
|
307
|
+
const peg$e27 = peg$classExpectation(["`"], false, false, false);
|
|
308
|
+
const peg$e28 = peg$literalExpectation("\\`", false);
|
|
309
|
+
const peg$e29 = peg$classExpectation(["`", "\n"], true, false, false);
|
|
310
|
+
const peg$e30 = peg$literalExpectation('"""', false);
|
|
311
|
+
const peg$e31 = peg$literalExpectation('\\"""', false);
|
|
312
|
+
const peg$e32 = peg$literalExpectation("```", false);
|
|
313
|
+
const peg$e33 = peg$literalExpectation("\\```", false);
|
|
314
|
+
const peg$e34 = peg$anyExpectation();
|
|
315
|
+
const peg$e35 = peg$classExpectation([" ", " "], false, false, false);
|
|
316
|
+
function peg$f0() {
|
|
317
|
+
return new chunkYM4E5JVI_js.ParsedEnvSpecBlankLine({ _location: location() });
|
|
318
|
+
}
|
|
319
|
+
chunkYM4E5JVI_js.__name(peg$f0, "peg$f0");
|
|
320
|
+
function peg$f1(contents) {
|
|
321
|
+
return new chunkYM4E5JVI_js.ParsedEnvSpecFile(contents);
|
|
322
|
+
}
|
|
323
|
+
chunkYM4E5JVI_js.__name(peg$f1, "peg$f1");
|
|
324
|
+
function peg$f2(preComments, key, value, postComment) {
|
|
325
|
+
return new chunkYM4E5JVI_js.ParsedEnvSpecConfigItem({
|
|
345
326
|
key,
|
|
346
327
|
preComments,
|
|
347
328
|
postComment,
|
|
348
329
|
value,
|
|
349
330
|
_location: location()
|
|
350
331
|
});
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
|
|
332
|
+
}
|
|
333
|
+
chunkYM4E5JVI_js.__name(peg$f2, "peg$f2");
|
|
334
|
+
function peg$f3(comments, end) {
|
|
335
|
+
return new chunkYM4E5JVI_js.ParsedEnvSpecCommentBlock({
|
|
354
336
|
comments,
|
|
355
|
-
divider: end instanceof
|
|
337
|
+
divider: end instanceof chunkYM4E5JVI_js.ParsedEnvSpecDivider ? end : void 0,
|
|
356
338
|
_location: location()
|
|
357
339
|
});
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
|
|
340
|
+
}
|
|
341
|
+
chunkYM4E5JVI_js.__name(peg$f3, "peg$f3");
|
|
342
|
+
function peg$f4(leadingSpace, contents) {
|
|
343
|
+
return new chunkYM4E5JVI_js.ParsedEnvSpecComment({
|
|
361
344
|
contents,
|
|
362
345
|
leadingSpace,
|
|
363
346
|
_location: location()
|
|
364
347
|
});
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
348
|
+
}
|
|
349
|
+
chunkYM4E5JVI_js.__name(peg$f4, "peg$f4");
|
|
350
|
+
function peg$f5(leadingSpace, contents) {
|
|
351
|
+
return new chunkYM4E5JVI_js.ParsedEnvSpecComment({ contents, leadingSpace, _location: location() });
|
|
352
|
+
}
|
|
353
|
+
chunkYM4E5JVI_js.__name(peg$f5, "peg$f5");
|
|
354
|
+
function peg$f6(leadingSpace, first, rest, postComment) {
|
|
355
|
+
return new chunkYM4E5JVI_js.ParsedEnvSpecDecoratorComment({
|
|
371
356
|
decorators: [first, ...rest],
|
|
372
357
|
leadingSpace,
|
|
373
358
|
postComment,
|
|
374
359
|
_location: location()
|
|
375
360
|
});
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
361
|
+
}
|
|
362
|
+
chunkYM4E5JVI_js.__name(peg$f6, "peg$f6");
|
|
363
|
+
function peg$f7(name) {
|
|
364
|
+
return new chunkYM4E5JVI_js.ParsedEnvSpecFunctionArgs({ values: [] });
|
|
365
|
+
}
|
|
366
|
+
chunkYM4E5JVI_js.__name(peg$f7, "peg$f7");
|
|
367
|
+
function peg$f8(name, valueOrFnArgs) {
|
|
368
|
+
return new chunkYM4E5JVI_js.ParsedEnvSpecDecorator({
|
|
382
369
|
name,
|
|
383
370
|
valueOrFnArgs,
|
|
384
371
|
_location: location()
|
|
385
372
|
});
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
|
|
373
|
+
}
|
|
374
|
+
chunkYM4E5JVI_js.__name(peg$f8, "peg$f8");
|
|
375
|
+
function peg$f9(name, args) {
|
|
376
|
+
return new chunkYM4E5JVI_js.ParsedEnvSpecFunctionCall({
|
|
389
377
|
name,
|
|
390
|
-
args: args || new
|
|
378
|
+
args: args || new chunkYM4E5JVI_js.ParsedEnvSpecFunctionArgs({ values: [] }),
|
|
391
379
|
_location: location()
|
|
392
380
|
});
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
381
|
+
}
|
|
382
|
+
chunkYM4E5JVI_js.__name(peg$f9, "peg$f9");
|
|
383
|
+
function peg$f10(key, val) {
|
|
384
|
+
return new chunkYM4E5JVI_js.ParsedEnvSpecKeyValuePair({ key, val });
|
|
385
|
+
}
|
|
386
|
+
chunkYM4E5JVI_js.__name(peg$f10, "peg$f10");
|
|
387
|
+
function peg$f11(values) {
|
|
388
|
+
return new chunkYM4E5JVI_js.ParsedEnvSpecFunctionArgs({
|
|
399
389
|
values,
|
|
400
390
|
_location: location()
|
|
401
391
|
});
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
392
|
+
}
|
|
393
|
+
chunkYM4E5JVI_js.__name(peg$f11, "peg$f11");
|
|
394
|
+
function peg$f12() {
|
|
395
|
+
return new chunkYM4E5JVI_js.ParsedEnvSpecStaticValue({ rawValue: text(), _location: location() });
|
|
396
|
+
}
|
|
397
|
+
chunkYM4E5JVI_js.__name(peg$f12, "peg$f12");
|
|
398
|
+
function peg$f13(leadingSpace, contents) {
|
|
399
|
+
return new chunkYM4E5JVI_js.ParsedEnvSpecDivider({
|
|
408
400
|
contents,
|
|
409
401
|
leadingSpace,
|
|
410
402
|
_location: location()
|
|
411
403
|
});
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
return new
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
return new
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
404
|
+
}
|
|
405
|
+
chunkYM4E5JVI_js.__name(peg$f13, "peg$f13");
|
|
406
|
+
function peg$f14() {
|
|
407
|
+
return new chunkYM4E5JVI_js.ParsedEnvSpecStaticValue({ rawValue: text(), _location: location() });
|
|
408
|
+
}
|
|
409
|
+
chunkYM4E5JVI_js.__name(peg$f14, "peg$f14");
|
|
410
|
+
function peg$f15() {
|
|
411
|
+
return new chunkYM4E5JVI_js.ParsedEnvSpecStaticValue({ rawValue: text(), _location: location() });
|
|
412
|
+
}
|
|
413
|
+
chunkYM4E5JVI_js.__name(peg$f15, "peg$f15");
|
|
414
|
+
function peg$f16(quote) {
|
|
415
|
+
return new chunkYM4E5JVI_js.ParsedEnvSpecStaticValue({ quote, rawValue: text(), _location: location() });
|
|
416
|
+
}
|
|
417
|
+
chunkYM4E5JVI_js.__name(peg$f16, "peg$f16");
|
|
418
|
+
function peg$f17(quote) {
|
|
419
|
+
return new chunkYM4E5JVI_js.ParsedEnvSpecStaticValue({ quote, rawValue: text(), _location: location() });
|
|
420
|
+
}
|
|
421
|
+
chunkYM4E5JVI_js.__name(peg$f17, "peg$f17");
|
|
422
|
+
function peg$f18(quote) {
|
|
423
|
+
return new chunkYM4E5JVI_js.ParsedEnvSpecStaticValue({ quote, rawValue: text(), _location: location() });
|
|
424
|
+
}
|
|
425
|
+
chunkYM4E5JVI_js.__name(peg$f18, "peg$f18");
|
|
426
|
+
function peg$f19(quote) {
|
|
427
|
+
return new chunkYM4E5JVI_js.ParsedEnvSpecStaticValue({ quote, isMultiLine: true, rawValue: text(), _location: location() });
|
|
428
|
+
}
|
|
429
|
+
chunkYM4E5JVI_js.__name(peg$f19, "peg$f19");
|
|
430
|
+
function peg$f20(quote) {
|
|
431
|
+
return new chunkYM4E5JVI_js.ParsedEnvSpecStaticValue({ quote, isMultiLine: true, rawValue: text(), _location: location() });
|
|
432
|
+
}
|
|
433
|
+
chunkYM4E5JVI_js.__name(peg$f20, "peg$f20");
|
|
434
|
+
function peg$f21(quote) {
|
|
435
|
+
return new chunkYM4E5JVI_js.ParsedEnvSpecStaticValue({ quote, isMultiLine: true, rawValue: text(), _location: location() });
|
|
436
|
+
}
|
|
437
|
+
chunkYM4E5JVI_js.__name(peg$f21, "peg$f21");
|
|
438
|
+
function peg$f22(quote) {
|
|
439
|
+
return new chunkYM4E5JVI_js.ParsedEnvSpecStaticValue({ quote, isMultiLine: true, rawValue: text(), _location: location() });
|
|
440
|
+
}
|
|
441
|
+
chunkYM4E5JVI_js.__name(peg$f22, "peg$f22");
|
|
442
|
+
let peg$currPos = options.peg$currPos | 0;
|
|
443
|
+
let peg$savedPos = peg$currPos;
|
|
444
|
+
const peg$posDetailsCache = [{ line: 1, column: 1 }];
|
|
445
|
+
let peg$maxFailPos = peg$currPos;
|
|
446
|
+
let peg$maxFailExpected = options.peg$maxFailExpected || [];
|
|
447
|
+
let peg$silentFails = options.peg$silentFails | 0;
|
|
448
|
+
let peg$result;
|
|
447
449
|
if (options.startRule) {
|
|
448
450
|
if (!(options.startRule in peg$startRuleFunctions)) {
|
|
449
451
|
throw new Error(`Can't start parsing from rule "` + options.startRule + '".');
|
|
@@ -453,11 +455,11 @@ function peg$parse(input, options) {
|
|
|
453
455
|
function text() {
|
|
454
456
|
return input.substring(peg$savedPos, peg$currPos);
|
|
455
457
|
}
|
|
456
|
-
|
|
458
|
+
chunkYM4E5JVI_js.__name(text, "text");
|
|
457
459
|
function offset() {
|
|
458
460
|
return peg$savedPos;
|
|
459
461
|
}
|
|
460
|
-
|
|
462
|
+
chunkYM4E5JVI_js.__name(offset, "offset");
|
|
461
463
|
function range() {
|
|
462
464
|
return {
|
|
463
465
|
source: peg$source,
|
|
@@ -465,11 +467,11 @@ function peg$parse(input, options) {
|
|
|
465
467
|
end: peg$currPos
|
|
466
468
|
};
|
|
467
469
|
}
|
|
468
|
-
|
|
470
|
+
chunkYM4E5JVI_js.__name(range, "range");
|
|
469
471
|
function location() {
|
|
470
472
|
return peg$computeLocation(peg$savedPos, peg$currPos);
|
|
471
473
|
}
|
|
472
|
-
|
|
474
|
+
chunkYM4E5JVI_js.__name(location, "location");
|
|
473
475
|
function expected(description, location2) {
|
|
474
476
|
location2 = location2 !== void 0 ? location2 : peg$computeLocation(peg$savedPos, peg$currPos);
|
|
475
477
|
throw peg$buildStructuredError(
|
|
@@ -478,35 +480,43 @@ function peg$parse(input, options) {
|
|
|
478
480
|
location2
|
|
479
481
|
);
|
|
480
482
|
}
|
|
481
|
-
|
|
483
|
+
chunkYM4E5JVI_js.__name(expected, "expected");
|
|
482
484
|
function error(message, location2) {
|
|
483
485
|
location2 = location2 !== void 0 ? location2 : peg$computeLocation(peg$savedPos, peg$currPos);
|
|
484
486
|
throw peg$buildSimpleError(message, location2);
|
|
485
487
|
}
|
|
486
|
-
|
|
488
|
+
chunkYM4E5JVI_js.__name(error, "error");
|
|
489
|
+
function peg$getUnicode(pos = peg$currPos) {
|
|
490
|
+
const cp = input.codePointAt(pos);
|
|
491
|
+
if (cp === void 0) {
|
|
492
|
+
return "";
|
|
493
|
+
}
|
|
494
|
+
return String.fromCodePoint(cp);
|
|
495
|
+
}
|
|
496
|
+
chunkYM4E5JVI_js.__name(peg$getUnicode, "peg$getUnicode");
|
|
487
497
|
function peg$literalExpectation(text2, ignoreCase) {
|
|
488
498
|
return { type: "literal", text: text2, ignoreCase };
|
|
489
499
|
}
|
|
490
|
-
|
|
491
|
-
function peg$classExpectation(parts, inverted, ignoreCase) {
|
|
492
|
-
return { type: "class", parts, inverted, ignoreCase };
|
|
500
|
+
chunkYM4E5JVI_js.__name(peg$literalExpectation, "peg$literalExpectation");
|
|
501
|
+
function peg$classExpectation(parts, inverted, ignoreCase, unicode) {
|
|
502
|
+
return { type: "class", parts, inverted, ignoreCase, unicode };
|
|
493
503
|
}
|
|
494
|
-
|
|
504
|
+
chunkYM4E5JVI_js.__name(peg$classExpectation, "peg$classExpectation");
|
|
495
505
|
function peg$anyExpectation() {
|
|
496
506
|
return { type: "any" };
|
|
497
507
|
}
|
|
498
|
-
|
|
508
|
+
chunkYM4E5JVI_js.__name(peg$anyExpectation, "peg$anyExpectation");
|
|
499
509
|
function peg$endExpectation() {
|
|
500
510
|
return { type: "end" };
|
|
501
511
|
}
|
|
502
|
-
|
|
512
|
+
chunkYM4E5JVI_js.__name(peg$endExpectation, "peg$endExpectation");
|
|
503
513
|
function peg$otherExpectation(description) {
|
|
504
514
|
return { type: "other", description };
|
|
505
515
|
}
|
|
506
|
-
|
|
516
|
+
chunkYM4E5JVI_js.__name(peg$otherExpectation, "peg$otherExpectation");
|
|
507
517
|
function peg$computePosDetails(pos) {
|
|
508
|
-
|
|
509
|
-
|
|
518
|
+
let details = peg$posDetailsCache[pos];
|
|
519
|
+
let p;
|
|
510
520
|
if (details) {
|
|
511
521
|
return details;
|
|
512
522
|
} else {
|
|
@@ -535,11 +545,11 @@ function peg$parse(input, options) {
|
|
|
535
545
|
return details;
|
|
536
546
|
}
|
|
537
547
|
}
|
|
538
|
-
|
|
548
|
+
chunkYM4E5JVI_js.__name(peg$computePosDetails, "peg$computePosDetails");
|
|
539
549
|
function peg$computeLocation(startPos, endPos, offset2) {
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
550
|
+
const startPosDetails = peg$computePosDetails(startPos);
|
|
551
|
+
const endPosDetails = peg$computePosDetails(endPos);
|
|
552
|
+
const res = {
|
|
543
553
|
source: peg$source,
|
|
544
554
|
start: {
|
|
545
555
|
offset: startPos,
|
|
@@ -558,7 +568,7 @@ function peg$parse(input, options) {
|
|
|
558
568
|
}
|
|
559
569
|
return res;
|
|
560
570
|
}
|
|
561
|
-
|
|
571
|
+
chunkYM4E5JVI_js.__name(peg$computeLocation, "peg$computeLocation");
|
|
562
572
|
function peg$fail(expected2) {
|
|
563
573
|
if (peg$currPos < peg$maxFailPos) {
|
|
564
574
|
return;
|
|
@@ -569,11 +579,11 @@ function peg$parse(input, options) {
|
|
|
569
579
|
}
|
|
570
580
|
peg$maxFailExpected.push(expected2);
|
|
571
581
|
}
|
|
572
|
-
|
|
582
|
+
chunkYM4E5JVI_js.__name(peg$fail, "peg$fail");
|
|
573
583
|
function peg$buildSimpleError(message, location2) {
|
|
574
584
|
return new peg$SyntaxError(message, null, null, location2);
|
|
575
585
|
}
|
|
576
|
-
|
|
586
|
+
chunkYM4E5JVI_js.__name(peg$buildSimpleError, "peg$buildSimpleError");
|
|
577
587
|
function peg$buildStructuredError(expected2, found, location2) {
|
|
578
588
|
return new peg$SyntaxError(
|
|
579
589
|
peg$SyntaxError.buildMessage(expected2, found),
|
|
@@ -582,9 +592,9 @@ function peg$parse(input, options) {
|
|
|
582
592
|
location2
|
|
583
593
|
);
|
|
584
594
|
}
|
|
585
|
-
|
|
595
|
+
chunkYM4E5JVI_js.__name(peg$buildStructuredError, "peg$buildStructuredError");
|
|
586
596
|
function peg$parseEnvSpecFile() {
|
|
587
|
-
|
|
597
|
+
let s0, s1, s2, s3;
|
|
588
598
|
s0 = peg$currPos;
|
|
589
599
|
s1 = [];
|
|
590
600
|
s2 = peg$parseConfigItem();
|
|
@@ -643,9 +653,9 @@ function peg$parse(input, options) {
|
|
|
643
653
|
s0 = s1;
|
|
644
654
|
return s0;
|
|
645
655
|
}
|
|
646
|
-
|
|
656
|
+
chunkYM4E5JVI_js.__name(peg$parseEnvSpecFile, "peg$parseEnvSpecFile");
|
|
647
657
|
function peg$parseConfigItem() {
|
|
648
|
-
|
|
658
|
+
let s0, s1, s2, s3, s4, s5, s6, s7, s9, s10;
|
|
649
659
|
s0 = peg$currPos;
|
|
650
660
|
s1 = [];
|
|
651
661
|
s2 = peg$currPos;
|
|
@@ -783,9 +793,9 @@ function peg$parse(input, options) {
|
|
|
783
793
|
}
|
|
784
794
|
return s0;
|
|
785
795
|
}
|
|
786
|
-
|
|
796
|
+
chunkYM4E5JVI_js.__name(peg$parseConfigItem, "peg$parseConfigItem");
|
|
787
797
|
function peg$parseConfigItemKey() {
|
|
788
|
-
|
|
798
|
+
let s0, s1, s2, s3, s4;
|
|
789
799
|
s0 = peg$currPos;
|
|
790
800
|
s1 = peg$currPos;
|
|
791
801
|
s2 = input.charAt(peg$currPos);
|
|
@@ -833,9 +843,9 @@ function peg$parse(input, options) {
|
|
|
833
843
|
}
|
|
834
844
|
return s0;
|
|
835
845
|
}
|
|
836
|
-
|
|
846
|
+
chunkYM4E5JVI_js.__name(peg$parseConfigItemKey, "peg$parseConfigItemKey");
|
|
837
847
|
function peg$parseConfigItemValue() {
|
|
838
|
-
|
|
848
|
+
let s0;
|
|
839
849
|
s0 = peg$parseFunctionCall();
|
|
840
850
|
if (s0 === peg$FAILED) {
|
|
841
851
|
s0 = peg$parsemultiLineString();
|
|
@@ -848,9 +858,9 @@ function peg$parse(input, options) {
|
|
|
848
858
|
}
|
|
849
859
|
return s0;
|
|
850
860
|
}
|
|
851
|
-
|
|
861
|
+
chunkYM4E5JVI_js.__name(peg$parseConfigItemValue, "peg$parseConfigItemValue");
|
|
852
862
|
function peg$parseCommentBlock() {
|
|
853
|
-
|
|
863
|
+
let s0, s1, s2, s3, s4;
|
|
854
864
|
s0 = peg$currPos;
|
|
855
865
|
s1 = [];
|
|
856
866
|
s2 = peg$currPos;
|
|
@@ -918,9 +928,9 @@ function peg$parse(input, options) {
|
|
|
918
928
|
}
|
|
919
929
|
return s0;
|
|
920
930
|
}
|
|
921
|
-
|
|
931
|
+
chunkYM4E5JVI_js.__name(peg$parseCommentBlock, "peg$parseCommentBlock");
|
|
922
932
|
function peg$parseComment() {
|
|
923
|
-
|
|
933
|
+
let s0, s1, s2, s3, s4, s5, s6, s7, s8, s9;
|
|
924
934
|
s0 = peg$currPos;
|
|
925
935
|
s1 = peg$currPos;
|
|
926
936
|
peg$silentFails++;
|
|
@@ -1013,9 +1023,9 @@ function peg$parse(input, options) {
|
|
|
1013
1023
|
}
|
|
1014
1024
|
return s0;
|
|
1015
1025
|
}
|
|
1016
|
-
|
|
1026
|
+
chunkYM4E5JVI_js.__name(peg$parseComment, "peg$parseComment");
|
|
1017
1027
|
function peg$parseIgnoredDecoratorComment() {
|
|
1018
|
-
|
|
1028
|
+
let s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10;
|
|
1019
1029
|
s0 = peg$currPos;
|
|
1020
1030
|
if (input.charCodeAt(peg$currPos) === 35) {
|
|
1021
1031
|
s1 = peg$c3;
|
|
@@ -1234,9 +1244,9 @@ function peg$parse(input, options) {
|
|
|
1234
1244
|
}
|
|
1235
1245
|
return s0;
|
|
1236
1246
|
}
|
|
1237
|
-
|
|
1247
|
+
chunkYM4E5JVI_js.__name(peg$parseIgnoredDecoratorComment, "peg$parseIgnoredDecoratorComment");
|
|
1238
1248
|
function peg$parseDecoratorComment() {
|
|
1239
|
-
|
|
1249
|
+
let s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10;
|
|
1240
1250
|
s0 = peg$currPos;
|
|
1241
1251
|
if (input.charCodeAt(peg$currPos) === 35) {
|
|
1242
1252
|
s1 = peg$c3;
|
|
@@ -1342,9 +1352,9 @@ function peg$parse(input, options) {
|
|
|
1342
1352
|
}
|
|
1343
1353
|
return s0;
|
|
1344
1354
|
}
|
|
1345
|
-
|
|
1355
|
+
chunkYM4E5JVI_js.__name(peg$parseDecoratorComment, "peg$parseDecoratorComment");
|
|
1346
1356
|
function peg$parseDecorator() {
|
|
1347
|
-
|
|
1357
|
+
let s0, s1, s2, s3, s4, s5, s6;
|
|
1348
1358
|
s0 = peg$currPos;
|
|
1349
1359
|
if (input.charCodeAt(peg$currPos) === 64) {
|
|
1350
1360
|
s1 = peg$c4;
|
|
@@ -1370,7 +1380,7 @@ function peg$parse(input, options) {
|
|
|
1370
1380
|
}
|
|
1371
1381
|
if (s4 !== peg$FAILED) {
|
|
1372
1382
|
peg$savedPos = s3;
|
|
1373
|
-
s4 = peg$f7(
|
|
1383
|
+
s4 = peg$f7();
|
|
1374
1384
|
}
|
|
1375
1385
|
s3 = s4;
|
|
1376
1386
|
if (s3 === peg$FAILED) {
|
|
@@ -1448,9 +1458,9 @@ function peg$parse(input, options) {
|
|
|
1448
1458
|
}
|
|
1449
1459
|
return s0;
|
|
1450
1460
|
}
|
|
1451
|
-
|
|
1461
|
+
chunkYM4E5JVI_js.__name(peg$parseDecorator, "peg$parseDecorator");
|
|
1452
1462
|
function peg$parseDecoratorName() {
|
|
1453
|
-
|
|
1463
|
+
let s0, s1, s2, s3, s4;
|
|
1454
1464
|
s0 = peg$currPos;
|
|
1455
1465
|
s1 = peg$currPos;
|
|
1456
1466
|
s2 = input.charAt(peg$currPos);
|
|
@@ -1498,9 +1508,9 @@ function peg$parse(input, options) {
|
|
|
1498
1508
|
}
|
|
1499
1509
|
return s0;
|
|
1500
1510
|
}
|
|
1501
|
-
|
|
1511
|
+
chunkYM4E5JVI_js.__name(peg$parseDecoratorName, "peg$parseDecoratorName");
|
|
1502
1512
|
function peg$parseDecoratorValue() {
|
|
1503
|
-
|
|
1513
|
+
let s0;
|
|
1504
1514
|
s0 = peg$parseFunctionCall();
|
|
1505
1515
|
if (s0 === peg$FAILED) {
|
|
1506
1516
|
s0 = peg$parsequotedString();
|
|
@@ -1510,9 +1520,9 @@ function peg$parse(input, options) {
|
|
|
1510
1520
|
}
|
|
1511
1521
|
return s0;
|
|
1512
1522
|
}
|
|
1513
|
-
|
|
1523
|
+
chunkYM4E5JVI_js.__name(peg$parseDecoratorValue, "peg$parseDecoratorValue");
|
|
1514
1524
|
function peg$parseFunctionCall() {
|
|
1515
|
-
|
|
1525
|
+
let s0, s1, s2, s4, s6;
|
|
1516
1526
|
s0 = peg$currPos;
|
|
1517
1527
|
s1 = peg$parseFunctionName();
|
|
1518
1528
|
if (s1 !== peg$FAILED) {
|
|
@@ -1558,9 +1568,9 @@ function peg$parse(input, options) {
|
|
|
1558
1568
|
}
|
|
1559
1569
|
return s0;
|
|
1560
1570
|
}
|
|
1561
|
-
|
|
1571
|
+
chunkYM4E5JVI_js.__name(peg$parseFunctionCall, "peg$parseFunctionCall");
|
|
1562
1572
|
function peg$parseFunctionName() {
|
|
1563
|
-
|
|
1573
|
+
let s0, s1, s2, s3, s4;
|
|
1564
1574
|
s0 = peg$currPos;
|
|
1565
1575
|
s1 = peg$currPos;
|
|
1566
1576
|
s2 = input.charAt(peg$currPos);
|
|
@@ -1608,9 +1618,9 @@ function peg$parse(input, options) {
|
|
|
1608
1618
|
}
|
|
1609
1619
|
return s0;
|
|
1610
1620
|
}
|
|
1611
|
-
|
|
1621
|
+
chunkYM4E5JVI_js.__name(peg$parseFunctionName, "peg$parseFunctionName");
|
|
1612
1622
|
function peg$parseFunctionArgs() {
|
|
1613
|
-
|
|
1623
|
+
let s0, s1, s2, s3, s4, s5, s6, s7;
|
|
1614
1624
|
s0 = peg$currPos;
|
|
1615
1625
|
s1 = peg$currPos;
|
|
1616
1626
|
s2 = [];
|
|
@@ -1643,6 +1653,9 @@ function peg$parse(input, options) {
|
|
|
1643
1653
|
peg$currPos = s3;
|
|
1644
1654
|
s3 = peg$FAILED;
|
|
1645
1655
|
}
|
|
1656
|
+
if (s3 === peg$FAILED) {
|
|
1657
|
+
s3 = peg$parseFunctionArgValue();
|
|
1658
|
+
}
|
|
1646
1659
|
while (s3 !== peg$FAILED) {
|
|
1647
1660
|
s2.push(s3);
|
|
1648
1661
|
s3 = peg$currPos;
|
|
@@ -1695,6 +1708,9 @@ function peg$parse(input, options) {
|
|
|
1695
1708
|
peg$currPos = s4;
|
|
1696
1709
|
s4 = peg$FAILED;
|
|
1697
1710
|
}
|
|
1711
|
+
if (s4 === peg$FAILED) {
|
|
1712
|
+
s4 = peg$parseFunctionArgValue();
|
|
1713
|
+
}
|
|
1698
1714
|
if (s4 === peg$FAILED) {
|
|
1699
1715
|
peg$currPos = s3;
|
|
1700
1716
|
s3 = peg$FAILED;
|
|
@@ -1711,51 +1727,6 @@ function peg$parse(input, options) {
|
|
|
1711
1727
|
} else {
|
|
1712
1728
|
s1 = s2;
|
|
1713
1729
|
}
|
|
1714
|
-
if (s1 === peg$FAILED) {
|
|
1715
|
-
s1 = peg$currPos;
|
|
1716
|
-
s2 = [];
|
|
1717
|
-
s3 = peg$parseFunctionArgValue();
|
|
1718
|
-
while (s3 !== peg$FAILED) {
|
|
1719
|
-
s2.push(s3);
|
|
1720
|
-
s3 = peg$currPos;
|
|
1721
|
-
s4 = peg$currPos;
|
|
1722
|
-
s5 = peg$parse_();
|
|
1723
|
-
if (input.charCodeAt(peg$currPos) === 44) {
|
|
1724
|
-
s6 = peg$c9;
|
|
1725
|
-
peg$currPos++;
|
|
1726
|
-
} else {
|
|
1727
|
-
s6 = peg$FAILED;
|
|
1728
|
-
if (peg$silentFails === 0) {
|
|
1729
|
-
peg$fail(peg$e15);
|
|
1730
|
-
}
|
|
1731
|
-
}
|
|
1732
|
-
if (s6 !== peg$FAILED) {
|
|
1733
|
-
s7 = peg$parse_();
|
|
1734
|
-
s5 = [s5, s6, s7];
|
|
1735
|
-
s4 = s5;
|
|
1736
|
-
} else {
|
|
1737
|
-
peg$currPos = s4;
|
|
1738
|
-
s4 = peg$FAILED;
|
|
1739
|
-
}
|
|
1740
|
-
if (s4 !== peg$FAILED) {
|
|
1741
|
-
s4 = peg$parseFunctionArgValue();
|
|
1742
|
-
if (s4 === peg$FAILED) {
|
|
1743
|
-
peg$currPos = s3;
|
|
1744
|
-
s3 = peg$FAILED;
|
|
1745
|
-
} else {
|
|
1746
|
-
s3 = s4;
|
|
1747
|
-
}
|
|
1748
|
-
} else {
|
|
1749
|
-
s3 = s4;
|
|
1750
|
-
}
|
|
1751
|
-
}
|
|
1752
|
-
if (s2.length < 1) {
|
|
1753
|
-
peg$currPos = s1;
|
|
1754
|
-
s1 = peg$FAILED;
|
|
1755
|
-
} else {
|
|
1756
|
-
s1 = s2;
|
|
1757
|
-
}
|
|
1758
|
-
}
|
|
1759
1730
|
if (s1 !== peg$FAILED) {
|
|
1760
1731
|
peg$savedPos = s0;
|
|
1761
1732
|
s1 = peg$f11(s1);
|
|
@@ -1763,9 +1734,9 @@ function peg$parse(input, options) {
|
|
|
1763
1734
|
s0 = s1;
|
|
1764
1735
|
return s0;
|
|
1765
1736
|
}
|
|
1766
|
-
|
|
1737
|
+
chunkYM4E5JVI_js.__name(peg$parseFunctionArgs, "peg$parseFunctionArgs");
|
|
1767
1738
|
function peg$parseFunctionArgKeyName() {
|
|
1768
|
-
|
|
1739
|
+
let s0, s1, s2, s3, s4;
|
|
1769
1740
|
s0 = peg$currPos;
|
|
1770
1741
|
s1 = peg$currPos;
|
|
1771
1742
|
s2 = input.charAt(peg$currPos);
|
|
@@ -1813,9 +1784,9 @@ function peg$parse(input, options) {
|
|
|
1813
1784
|
}
|
|
1814
1785
|
return s0;
|
|
1815
1786
|
}
|
|
1816
|
-
|
|
1787
|
+
chunkYM4E5JVI_js.__name(peg$parseFunctionArgKeyName, "peg$parseFunctionArgKeyName");
|
|
1817
1788
|
function peg$parseFunctionArgValue() {
|
|
1818
|
-
|
|
1789
|
+
let s0, s1, s2, s3;
|
|
1819
1790
|
s0 = peg$parseFunctionCall();
|
|
1820
1791
|
if (s0 === peg$FAILED) {
|
|
1821
1792
|
s0 = peg$parsequotedString();
|
|
@@ -1862,9 +1833,9 @@ function peg$parse(input, options) {
|
|
|
1862
1833
|
}
|
|
1863
1834
|
return s0;
|
|
1864
1835
|
}
|
|
1865
|
-
|
|
1836
|
+
chunkYM4E5JVI_js.__name(peg$parseFunctionArgValue, "peg$parseFunctionArgValue");
|
|
1866
1837
|
function peg$parseDivider() {
|
|
1867
|
-
|
|
1838
|
+
let s0, s1, s2, s3, s4, s5, s6, s7;
|
|
1868
1839
|
s0 = peg$currPos;
|
|
1869
1840
|
if (input.charCodeAt(peg$currPos) === 35) {
|
|
1870
1841
|
s1 = peg$c3;
|
|
@@ -1963,9 +1934,9 @@ function peg$parse(input, options) {
|
|
|
1963
1934
|
}
|
|
1964
1935
|
return s0;
|
|
1965
1936
|
}
|
|
1966
|
-
|
|
1937
|
+
chunkYM4E5JVI_js.__name(peg$parseDivider, "peg$parseDivider");
|
|
1967
1938
|
function peg$parseunquotedString() {
|
|
1968
|
-
|
|
1939
|
+
let s0, s1, s2, s3, s4, s5, s6;
|
|
1969
1940
|
s0 = peg$currPos;
|
|
1970
1941
|
s1 = peg$currPos;
|
|
1971
1942
|
s2 = peg$currPos;
|
|
@@ -2038,9 +2009,9 @@ function peg$parse(input, options) {
|
|
|
2038
2009
|
s0 = s1;
|
|
2039
2010
|
return s0;
|
|
2040
2011
|
}
|
|
2041
|
-
|
|
2012
|
+
chunkYM4E5JVI_js.__name(peg$parseunquotedString, "peg$parseunquotedString");
|
|
2042
2013
|
function peg$parseunquotedStringWithoutSpaces() {
|
|
2043
|
-
|
|
2014
|
+
let s0, s1, s2, s3, s4, s5;
|
|
2044
2015
|
s0 = peg$currPos;
|
|
2045
2016
|
s1 = peg$currPos;
|
|
2046
2017
|
s2 = peg$currPos;
|
|
@@ -2112,9 +2083,9 @@ function peg$parse(input, options) {
|
|
|
2112
2083
|
s0 = s1;
|
|
2113
2084
|
return s0;
|
|
2114
2085
|
}
|
|
2115
|
-
|
|
2086
|
+
chunkYM4E5JVI_js.__name(peg$parseunquotedStringWithoutSpaces, "peg$parseunquotedStringWithoutSpaces");
|
|
2116
2087
|
function peg$parsequotedString() {
|
|
2117
|
-
|
|
2088
|
+
let s0;
|
|
2118
2089
|
s0 = peg$parseDQuotedString();
|
|
2119
2090
|
if (s0 === peg$FAILED) {
|
|
2120
2091
|
s0 = peg$parseSQuotedString();
|
|
@@ -2124,9 +2095,9 @@ function peg$parse(input, options) {
|
|
|
2124
2095
|
}
|
|
2125
2096
|
return s0;
|
|
2126
2097
|
}
|
|
2127
|
-
|
|
2098
|
+
chunkYM4E5JVI_js.__name(peg$parsequotedString, "peg$parsequotedString");
|
|
2128
2099
|
function peg$parseDQuotedString() {
|
|
2129
|
-
|
|
2100
|
+
let s0, s1, s2, s3;
|
|
2130
2101
|
s0 = peg$currPos;
|
|
2131
2102
|
s1 = input.charAt(peg$currPos);
|
|
2132
2103
|
if (peg$r11.test(s1)) {
|
|
@@ -2204,9 +2175,9 @@ function peg$parse(input, options) {
|
|
|
2204
2175
|
}
|
|
2205
2176
|
return s0;
|
|
2206
2177
|
}
|
|
2207
|
-
|
|
2178
|
+
chunkYM4E5JVI_js.__name(peg$parseDQuotedString, "peg$parseDQuotedString");
|
|
2208
2179
|
function peg$parseSQuotedString() {
|
|
2209
|
-
|
|
2180
|
+
let s0, s1, s2, s3;
|
|
2210
2181
|
s0 = peg$currPos;
|
|
2211
2182
|
s1 = input.charAt(peg$currPos);
|
|
2212
2183
|
if (peg$r13.test(s1)) {
|
|
@@ -2284,9 +2255,9 @@ function peg$parse(input, options) {
|
|
|
2284
2255
|
}
|
|
2285
2256
|
return s0;
|
|
2286
2257
|
}
|
|
2287
|
-
|
|
2258
|
+
chunkYM4E5JVI_js.__name(peg$parseSQuotedString, "peg$parseSQuotedString");
|
|
2288
2259
|
function peg$parseBQuotedString() {
|
|
2289
|
-
|
|
2260
|
+
let s0, s1, s2, s3;
|
|
2290
2261
|
s0 = peg$currPos;
|
|
2291
2262
|
s1 = input.charAt(peg$currPos);
|
|
2292
2263
|
if (peg$r15.test(s1)) {
|
|
@@ -2364,9 +2335,9 @@ function peg$parse(input, options) {
|
|
|
2364
2335
|
}
|
|
2365
2336
|
return s0;
|
|
2366
2337
|
}
|
|
2367
|
-
|
|
2338
|
+
chunkYM4E5JVI_js.__name(peg$parseBQuotedString, "peg$parseBQuotedString");
|
|
2368
2339
|
function peg$parsemultiLineString() {
|
|
2369
|
-
|
|
2340
|
+
let s0;
|
|
2370
2341
|
s0 = peg$parsesingleSQuotedMultiLineString();
|
|
2371
2342
|
if (s0 === peg$FAILED) {
|
|
2372
2343
|
s0 = peg$parsesingleDQuotedMultiLineString();
|
|
@@ -2379,9 +2350,9 @@ function peg$parse(input, options) {
|
|
|
2379
2350
|
}
|
|
2380
2351
|
return s0;
|
|
2381
2352
|
}
|
|
2382
|
-
|
|
2353
|
+
chunkYM4E5JVI_js.__name(peg$parsemultiLineString, "peg$parsemultiLineString");
|
|
2383
2354
|
function peg$parsesingleSQuotedMultiLineString() {
|
|
2384
|
-
|
|
2355
|
+
let s0, s1, s2, s3, s4, s5;
|
|
2385
2356
|
s0 = peg$currPos;
|
|
2386
2357
|
s1 = input.charAt(peg$currPos);
|
|
2387
2358
|
if (peg$r13.test(s1)) {
|
|
@@ -2594,9 +2565,9 @@ function peg$parse(input, options) {
|
|
|
2594
2565
|
}
|
|
2595
2566
|
return s0;
|
|
2596
2567
|
}
|
|
2597
|
-
|
|
2568
|
+
chunkYM4E5JVI_js.__name(peg$parsesingleSQuotedMultiLineString, "peg$parsesingleSQuotedMultiLineString");
|
|
2598
2569
|
function peg$parsesingleDQuotedMultiLineString() {
|
|
2599
|
-
|
|
2570
|
+
let s0, s1, s2, s3, s4, s5;
|
|
2600
2571
|
s0 = peg$currPos;
|
|
2601
2572
|
s1 = input.charAt(peg$currPos);
|
|
2602
2573
|
if (peg$r11.test(s1)) {
|
|
@@ -2809,9 +2780,9 @@ function peg$parse(input, options) {
|
|
|
2809
2780
|
}
|
|
2810
2781
|
return s0;
|
|
2811
2782
|
}
|
|
2812
|
-
|
|
2783
|
+
chunkYM4E5JVI_js.__name(peg$parsesingleDQuotedMultiLineString, "peg$parsesingleDQuotedMultiLineString");
|
|
2813
2784
|
function peg$parsetripleDQuotedMultiLineString() {
|
|
2814
|
-
|
|
2785
|
+
let s0, s1, s2, s3, s4, s5, s6, s7;
|
|
2815
2786
|
s0 = peg$currPos;
|
|
2816
2787
|
if (input.substr(peg$currPos, 3) === peg$c13) {
|
|
2817
2788
|
s1 = peg$c13;
|
|
@@ -3210,9 +3181,9 @@ function peg$parse(input, options) {
|
|
|
3210
3181
|
}
|
|
3211
3182
|
return s0;
|
|
3212
3183
|
}
|
|
3213
|
-
|
|
3184
|
+
chunkYM4E5JVI_js.__name(peg$parsetripleDQuotedMultiLineString, "peg$parsetripleDQuotedMultiLineString");
|
|
3214
3185
|
function peg$parsetripleBQuotedMultiLineString() {
|
|
3215
|
-
|
|
3186
|
+
let s0, s1, s2, s3, s4, s5, s6, s7;
|
|
3216
3187
|
s0 = peg$currPos;
|
|
3217
3188
|
if (input.substr(peg$currPos, 3) === peg$c15) {
|
|
3218
3189
|
s1 = peg$c15;
|
|
@@ -3611,9 +3582,9 @@ function peg$parse(input, options) {
|
|
|
3611
3582
|
}
|
|
3612
3583
|
return s0;
|
|
3613
3584
|
}
|
|
3614
|
-
|
|
3585
|
+
chunkYM4E5JVI_js.__name(peg$parsetripleBQuotedMultiLineString, "peg$parsetripleBQuotedMultiLineString");
|
|
3615
3586
|
function peg$parse_n() {
|
|
3616
|
-
|
|
3587
|
+
let s0, s1;
|
|
3617
3588
|
if (input.charCodeAt(peg$currPos) === 10) {
|
|
3618
3589
|
s0 = peg$c0;
|
|
3619
3590
|
peg$currPos++;
|
|
@@ -3645,9 +3616,9 @@ function peg$parse(input, options) {
|
|
|
3645
3616
|
}
|
|
3646
3617
|
return s0;
|
|
3647
3618
|
}
|
|
3648
|
-
|
|
3619
|
+
chunkYM4E5JVI_js.__name(peg$parse_n, "peg$parse_n");
|
|
3649
3620
|
function peg$parse_() {
|
|
3650
|
-
|
|
3621
|
+
let s0, s1;
|
|
3651
3622
|
s0 = [];
|
|
3652
3623
|
s1 = input.charAt(peg$currPos);
|
|
3653
3624
|
if (peg$r17.test(s1)) {
|
|
@@ -3672,9 +3643,9 @@ function peg$parse(input, options) {
|
|
|
3672
3643
|
}
|
|
3673
3644
|
return s0;
|
|
3674
3645
|
}
|
|
3675
|
-
|
|
3646
|
+
chunkYM4E5JVI_js.__name(peg$parse_, "peg$parse_");
|
|
3676
3647
|
function peg$parse__() {
|
|
3677
|
-
|
|
3648
|
+
let s0, s1;
|
|
3678
3649
|
s0 = [];
|
|
3679
3650
|
s1 = input.charAt(peg$currPos);
|
|
3680
3651
|
if (peg$r17.test(s1)) {
|
|
@@ -3703,8 +3674,20 @@ function peg$parse(input, options) {
|
|
|
3703
3674
|
}
|
|
3704
3675
|
return s0;
|
|
3705
3676
|
}
|
|
3706
|
-
|
|
3677
|
+
chunkYM4E5JVI_js.__name(peg$parse__, "peg$parse__");
|
|
3707
3678
|
peg$result = peg$startRuleFunction();
|
|
3679
|
+
const peg$success = peg$result !== peg$FAILED && peg$currPos === input.length;
|
|
3680
|
+
function peg$throw() {
|
|
3681
|
+
if (peg$result !== peg$FAILED && peg$currPos < input.length) {
|
|
3682
|
+
peg$fail(peg$endExpectation());
|
|
3683
|
+
}
|
|
3684
|
+
throw peg$buildStructuredError(
|
|
3685
|
+
peg$maxFailExpected,
|
|
3686
|
+
peg$maxFailPos < input.length ? peg$getUnicode(peg$maxFailPos) : null,
|
|
3687
|
+
peg$maxFailPos < input.length ? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1) : peg$computeLocation(peg$maxFailPos, peg$maxFailPos)
|
|
3688
|
+
);
|
|
3689
|
+
}
|
|
3690
|
+
chunkYM4E5JVI_js.__name(peg$throw, "peg$throw");
|
|
3708
3691
|
if (options.peg$library) {
|
|
3709
3692
|
return (
|
|
3710
3693
|
/** @type {any} */
|
|
@@ -3713,82 +3696,77 @@ function peg$parse(input, options) {
|
|
|
3713
3696
|
peg$currPos,
|
|
3714
3697
|
peg$FAILED,
|
|
3715
3698
|
peg$maxFailExpected,
|
|
3716
|
-
peg$maxFailPos
|
|
3699
|
+
peg$maxFailPos,
|
|
3700
|
+
peg$success,
|
|
3701
|
+
peg$throw: peg$success ? void 0 : peg$throw
|
|
3717
3702
|
}
|
|
3718
3703
|
);
|
|
3719
3704
|
}
|
|
3720
|
-
if (peg$
|
|
3705
|
+
if (peg$success) {
|
|
3721
3706
|
return peg$result;
|
|
3722
3707
|
} else {
|
|
3723
|
-
|
|
3724
|
-
peg$fail(peg$endExpectation());
|
|
3725
|
-
}
|
|
3726
|
-
throw peg$buildStructuredError(
|
|
3727
|
-
peg$maxFailExpected,
|
|
3728
|
-
peg$maxFailPos < input.length ? input.charAt(peg$maxFailPos) : null,
|
|
3729
|
-
peg$maxFailPos < input.length ? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1) : peg$computeLocation(peg$maxFailPos, peg$maxFailPos)
|
|
3730
|
-
);
|
|
3708
|
+
peg$throw();
|
|
3731
3709
|
}
|
|
3732
3710
|
}
|
|
3733
|
-
|
|
3711
|
+
chunkYM4E5JVI_js.__name(peg$parse, "peg$parse");
|
|
3734
3712
|
|
|
3735
3713
|
// src/index.ts
|
|
3736
3714
|
function parseEnvSpecDotEnvFile(source) {
|
|
3737
3715
|
return peg$parse(source);
|
|
3738
3716
|
}
|
|
3739
|
-
|
|
3717
|
+
chunkYM4E5JVI_js.__name(parseEnvSpecDotEnvFile, "parseEnvSpecDotEnvFile");
|
|
3740
3718
|
|
|
3741
3719
|
Object.defineProperty(exports, "ParsedEnvSpecBlankLine", {
|
|
3742
3720
|
enumerable: true,
|
|
3743
|
-
get: function () { return
|
|
3721
|
+
get: function () { return chunkYM4E5JVI_js.ParsedEnvSpecBlankLine; }
|
|
3744
3722
|
});
|
|
3745
3723
|
Object.defineProperty(exports, "ParsedEnvSpecComment", {
|
|
3746
3724
|
enumerable: true,
|
|
3747
|
-
get: function () { return
|
|
3725
|
+
get: function () { return chunkYM4E5JVI_js.ParsedEnvSpecComment; }
|
|
3748
3726
|
});
|
|
3749
3727
|
Object.defineProperty(exports, "ParsedEnvSpecCommentBlock", {
|
|
3750
3728
|
enumerable: true,
|
|
3751
|
-
get: function () { return
|
|
3729
|
+
get: function () { return chunkYM4E5JVI_js.ParsedEnvSpecCommentBlock; }
|
|
3752
3730
|
});
|
|
3753
3731
|
Object.defineProperty(exports, "ParsedEnvSpecConfigItem", {
|
|
3754
3732
|
enumerable: true,
|
|
3755
|
-
get: function () { return
|
|
3733
|
+
get: function () { return chunkYM4E5JVI_js.ParsedEnvSpecConfigItem; }
|
|
3756
3734
|
});
|
|
3757
3735
|
Object.defineProperty(exports, "ParsedEnvSpecDecorator", {
|
|
3758
3736
|
enumerable: true,
|
|
3759
|
-
get: function () { return
|
|
3737
|
+
get: function () { return chunkYM4E5JVI_js.ParsedEnvSpecDecorator; }
|
|
3760
3738
|
});
|
|
3761
3739
|
Object.defineProperty(exports, "ParsedEnvSpecDecoratorComment", {
|
|
3762
3740
|
enumerable: true,
|
|
3763
|
-
get: function () { return
|
|
3741
|
+
get: function () { return chunkYM4E5JVI_js.ParsedEnvSpecDecoratorComment; }
|
|
3764
3742
|
});
|
|
3765
3743
|
Object.defineProperty(exports, "ParsedEnvSpecDivider", {
|
|
3766
3744
|
enumerable: true,
|
|
3767
|
-
get: function () { return
|
|
3745
|
+
get: function () { return chunkYM4E5JVI_js.ParsedEnvSpecDivider; }
|
|
3768
3746
|
});
|
|
3769
3747
|
Object.defineProperty(exports, "ParsedEnvSpecFile", {
|
|
3770
3748
|
enumerable: true,
|
|
3771
|
-
get: function () { return
|
|
3749
|
+
get: function () { return chunkYM4E5JVI_js.ParsedEnvSpecFile; }
|
|
3772
3750
|
});
|
|
3773
3751
|
Object.defineProperty(exports, "ParsedEnvSpecFunctionArgs", {
|
|
3774
3752
|
enumerable: true,
|
|
3775
|
-
get: function () { return
|
|
3753
|
+
get: function () { return chunkYM4E5JVI_js.ParsedEnvSpecFunctionArgs; }
|
|
3776
3754
|
});
|
|
3777
3755
|
Object.defineProperty(exports, "ParsedEnvSpecFunctionCall", {
|
|
3778
3756
|
enumerable: true,
|
|
3779
|
-
get: function () { return
|
|
3757
|
+
get: function () { return chunkYM4E5JVI_js.ParsedEnvSpecFunctionCall; }
|
|
3780
3758
|
});
|
|
3781
3759
|
Object.defineProperty(exports, "ParsedEnvSpecKeyValuePair", {
|
|
3782
3760
|
enumerable: true,
|
|
3783
|
-
get: function () { return
|
|
3761
|
+
get: function () { return chunkYM4E5JVI_js.ParsedEnvSpecKeyValuePair; }
|
|
3784
3762
|
});
|
|
3785
3763
|
Object.defineProperty(exports, "ParsedEnvSpecStaticValue", {
|
|
3786
3764
|
enumerable: true,
|
|
3787
|
-
get: function () { return
|
|
3765
|
+
get: function () { return chunkYM4E5JVI_js.ParsedEnvSpecStaticValue; }
|
|
3788
3766
|
});
|
|
3789
3767
|
Object.defineProperty(exports, "expand", {
|
|
3790
3768
|
enumerable: true,
|
|
3791
|
-
get: function () { return
|
|
3769
|
+
get: function () { return chunkYM4E5JVI_js.expand; }
|
|
3792
3770
|
});
|
|
3793
3771
|
exports.envSpecUpdater = envSpecUpdater;
|
|
3794
3772
|
exports.parseEnvSpecDotEnvFile = parseEnvSpecDotEnvFile;
|