yini-parser 1.4.3-beta → 1.5.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/CHANGELOG.md +22 -0
- package/README.md +68 -144
- package/dist/YINI.d.ts +9 -13
- package/dist/YINI.js +3 -3
- package/dist/YINI.js.map +1 -1
- package/dist/core/astBuilder.d.ts +3 -6
- package/dist/core/astBuilder.js +80 -49
- package/dist/core/astBuilder.js.map +1 -1
- package/dist/core/objectBuilder.d.ts +8 -4
- package/dist/core/objectBuilder.js +31 -61
- package/dist/core/objectBuilder.js.map +1 -1
- package/dist/core/options/defaultParserOptions.js +9 -1
- package/dist/core/options/defaultParserOptions.js.map +1 -1
- package/dist/core/options/optionsFunctions.js +1 -3
- package/dist/core/options/optionsFunctions.js.map +1 -1
- package/dist/core/parsingRules/modeFromRulesMatcher.d.ts +1 -1
- package/dist/core/parsingRules/modeFromRulesMatcher.js +22 -13
- package/dist/core/parsingRules/modeFromRulesMatcher.js.map +1 -1
- package/dist/core/pipeline/pipeline.js +4 -0
- package/dist/core/pipeline/pipeline.js.map +1 -1
- package/dist/dev/main.js +55 -84
- package/dist/dev/main.js.map +1 -1
- package/dist/grammar/generated/YiniLexer.d.ts +43 -49
- package/dist/grammar/generated/YiniLexer.js +320 -332
- package/dist/grammar/generated/YiniLexer.js.map +1 -1
- package/dist/grammar/generated/YiniParser.d.ts +60 -82
- package/dist/grammar/generated/YiniParser.js +461 -726
- package/dist/grammar/generated/YiniParser.js.map +1 -1
- package/dist/grammar/generated/YiniParserVisitor.d.ts +7 -7
- package/dist/grammar/generated/YiniParserVisitor.js +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +3 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Generated from ./grammar/v1.0.0-rc.
|
|
2
|
+
// Generated from ./grammar/v1.0.0-rc.5/YiniParser.g4 by ANTLR 4.13.2
|
|
3
3
|
// noinspection ES6UnusedImports,JSUnusedGlobalSymbols,JSUnusedLocalSymbols
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.Bad_memberContext = exports.Bad_meta_textContext = exports.Boolean_literalContext = exports.String_concatContext = exports.String_literalContext = exports.Null_literalContext = exports.Number_literalContext = exports.ElementsContext = exports.List_literalContext = exports.Object_memberContext = exports.Object_membersContext = exports.Object_literalContext = exports.ValueContext = exports.
|
|
5
|
+
exports.Bad_memberContext = exports.Bad_meta_textContext = exports.Boolean_literalContext = exports.String_concatContext = exports.String_literalContext = exports.Null_literalContext = exports.Number_literalContext = exports.ElementsContext = exports.List_literalContext = exports.Object_memberContext = exports.Object_membersContext = exports.Object_literalContext = exports.ValueContext = exports.MemberContext = exports.AssignmentContext = exports.EolContext = exports.AnnotationContext = exports.DirectiveContext = exports.Meta_stmtContext = exports.Invalid_section_stmtContext = exports.StmtContext = exports.Terminal_stmtContext = exports.PrologContext = exports.YiniContext = void 0;
|
|
6
6
|
const antlr4_1 = require("antlr4");
|
|
7
7
|
class YiniParser extends antlr4_1.Parser {
|
|
8
8
|
get grammarFileName() { return "YiniParser.g4"; }
|
|
@@ -38,7 +38,7 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
38
38
|
this.state = 54;
|
|
39
39
|
this._errHandler.sync(this);
|
|
40
40
|
_la = this._input.LA(1);
|
|
41
|
-
while ((((_la) & ~0x1F) === 0 && ((1 << _la) &
|
|
41
|
+
while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 679755740) !== 0) || ((((_la - 36)) & ~0x1F) === 0 && ((1 << (_la - 36)) & 417) !== 0)) {
|
|
42
42
|
{
|
|
43
43
|
{
|
|
44
44
|
this.state = 51;
|
|
@@ -86,7 +86,7 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
86
86
|
this.state = 74;
|
|
87
87
|
this._errHandler.sync(this);
|
|
88
88
|
switch (this._input.LA(1)) {
|
|
89
|
-
case
|
|
89
|
+
case 1:
|
|
90
90
|
this.enterOuterAlt(localctx, 1);
|
|
91
91
|
{
|
|
92
92
|
this.state = 62;
|
|
@@ -109,8 +109,7 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
break;
|
|
112
|
-
case
|
|
113
|
-
case 47:
|
|
112
|
+
case 36:
|
|
114
113
|
this.enterOuterAlt(localctx, 2);
|
|
115
114
|
{
|
|
116
115
|
this.state = 70;
|
|
@@ -164,33 +163,17 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
164
163
|
{
|
|
165
164
|
this.state = 76;
|
|
166
165
|
this.match(YiniParser.TERMINAL_TOKEN);
|
|
167
|
-
this.state =
|
|
168
|
-
this._errHandler.sync(this);
|
|
169
|
-
switch (this._interp.adaptivePredict(this._input, 6, this._ctx)) {
|
|
170
|
-
case 1:
|
|
171
|
-
{
|
|
172
|
-
this.state = 77;
|
|
173
|
-
this.eol();
|
|
174
|
-
}
|
|
175
|
-
break;
|
|
176
|
-
case 2:
|
|
177
|
-
{
|
|
178
|
-
this.state = 78;
|
|
179
|
-
this.match(YiniParser.INLINE_COMMENT);
|
|
180
|
-
}
|
|
181
|
-
break;
|
|
182
|
-
}
|
|
183
|
-
this.state = 84;
|
|
166
|
+
this.state = 80;
|
|
184
167
|
this._errHandler.sync(this);
|
|
185
168
|
_la = this._input.LA(1);
|
|
186
|
-
while (_la ===
|
|
169
|
+
while (_la === 36) {
|
|
187
170
|
{
|
|
188
171
|
{
|
|
189
|
-
this.state =
|
|
190
|
-
this.
|
|
172
|
+
this.state = 77;
|
|
173
|
+
this.eol();
|
|
191
174
|
}
|
|
192
175
|
}
|
|
193
|
-
this.state =
|
|
176
|
+
this.state = 82;
|
|
194
177
|
this._errHandler.sync(this);
|
|
195
178
|
_la = this._input.LA(1);
|
|
196
179
|
}
|
|
@@ -216,51 +199,92 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
216
199
|
let localctx = new StmtContext(this, this._ctx, this.state);
|
|
217
200
|
this.enterRule(localctx, 6, YiniParser.RULE_stmt);
|
|
218
201
|
try {
|
|
219
|
-
this.state =
|
|
202
|
+
this.state = 89;
|
|
220
203
|
this._errHandler.sync(this);
|
|
221
|
-
switch (this.
|
|
222
|
-
case
|
|
204
|
+
switch (this._input.LA(1)) {
|
|
205
|
+
case 36:
|
|
223
206
|
this.enterOuterAlt(localctx, 1);
|
|
224
207
|
{
|
|
225
|
-
this.state =
|
|
208
|
+
this.state = 83;
|
|
226
209
|
this.eol();
|
|
227
210
|
}
|
|
228
211
|
break;
|
|
229
|
-
case
|
|
212
|
+
case 6:
|
|
230
213
|
this.enterOuterAlt(localctx, 2);
|
|
231
214
|
{
|
|
232
|
-
this.state =
|
|
215
|
+
this.state = 84;
|
|
233
216
|
this.match(YiniParser.SECTION_HEAD);
|
|
234
217
|
}
|
|
235
218
|
break;
|
|
236
|
-
case
|
|
219
|
+
case 7:
|
|
237
220
|
this.enterOuterAlt(localctx, 3);
|
|
238
221
|
{
|
|
239
|
-
this.state =
|
|
240
|
-
this.
|
|
222
|
+
this.state = 85;
|
|
223
|
+
this.invalid_section_stmt();
|
|
241
224
|
}
|
|
242
225
|
break;
|
|
243
|
-
case
|
|
226
|
+
case 41:
|
|
244
227
|
this.enterOuterAlt(localctx, 4);
|
|
245
228
|
{
|
|
246
|
-
this.state =
|
|
247
|
-
this.
|
|
229
|
+
this.state = 86;
|
|
230
|
+
this.assignment();
|
|
248
231
|
}
|
|
249
232
|
break;
|
|
250
|
-
case
|
|
233
|
+
case 2:
|
|
234
|
+
case 3:
|
|
235
|
+
case 4:
|
|
236
|
+
case 44:
|
|
251
237
|
this.enterOuterAlt(localctx, 5);
|
|
252
238
|
{
|
|
253
|
-
this.state =
|
|
239
|
+
this.state = 87;
|
|
254
240
|
this.meta_stmt();
|
|
255
241
|
}
|
|
256
242
|
break;
|
|
257
|
-
case
|
|
243
|
+
case 8:
|
|
244
|
+
case 9:
|
|
245
|
+
case 10:
|
|
246
|
+
case 11:
|
|
247
|
+
case 12:
|
|
248
|
+
case 13:
|
|
249
|
+
case 18:
|
|
250
|
+
case 23:
|
|
251
|
+
case 27:
|
|
252
|
+
case 29:
|
|
253
|
+
case 43:
|
|
258
254
|
this.enterOuterAlt(localctx, 6);
|
|
259
255
|
{
|
|
260
|
-
this.state =
|
|
256
|
+
this.state = 88;
|
|
261
257
|
this.bad_member();
|
|
262
258
|
}
|
|
263
259
|
break;
|
|
260
|
+
default:
|
|
261
|
+
throw new antlr4_1.NoViableAltException(this);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
catch (re) {
|
|
265
|
+
if (re instanceof antlr4_1.RecognitionException) {
|
|
266
|
+
localctx.exception = re;
|
|
267
|
+
this._errHandler.reportError(this, re);
|
|
268
|
+
this._errHandler.recover(this, re);
|
|
269
|
+
}
|
|
270
|
+
else {
|
|
271
|
+
throw re;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
finally {
|
|
275
|
+
this.exitRule();
|
|
276
|
+
}
|
|
277
|
+
return localctx;
|
|
278
|
+
}
|
|
279
|
+
// @RuleVersion(0)
|
|
280
|
+
invalid_section_stmt() {
|
|
281
|
+
let localctx = new Invalid_section_stmtContext(this, this._ctx, this.state);
|
|
282
|
+
this.enterRule(localctx, 8, YiniParser.RULE_invalid_section_stmt);
|
|
283
|
+
try {
|
|
284
|
+
this.enterOuterAlt(localctx, 1);
|
|
285
|
+
{
|
|
286
|
+
this.state = 91;
|
|
287
|
+
this.match(YiniParser.INVALID_SECTION_HEAD);
|
|
264
288
|
}
|
|
265
289
|
}
|
|
266
290
|
catch (re) {
|
|
@@ -281,32 +305,32 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
281
305
|
// @RuleVersion(0)
|
|
282
306
|
meta_stmt() {
|
|
283
307
|
let localctx = new Meta_stmtContext(this, this._ctx, this.state);
|
|
284
|
-
this.enterRule(localctx,
|
|
308
|
+
this.enterRule(localctx, 10, YiniParser.RULE_meta_stmt);
|
|
285
309
|
try {
|
|
286
|
-
this.state =
|
|
310
|
+
this.state = 98;
|
|
287
311
|
this._errHandler.sync(this);
|
|
288
312
|
switch (this._input.LA(1)) {
|
|
289
|
-
case 1:
|
|
290
313
|
case 2:
|
|
314
|
+
case 3:
|
|
291
315
|
this.enterOuterAlt(localctx, 1);
|
|
292
316
|
{
|
|
293
|
-
this.state =
|
|
317
|
+
this.state = 93;
|
|
294
318
|
this.directive();
|
|
295
319
|
}
|
|
296
320
|
break;
|
|
297
|
-
case
|
|
321
|
+
case 4:
|
|
298
322
|
this.enterOuterAlt(localctx, 2);
|
|
299
323
|
{
|
|
300
|
-
this.state =
|
|
324
|
+
this.state = 94;
|
|
301
325
|
this.annotation();
|
|
302
326
|
}
|
|
303
327
|
break;
|
|
304
|
-
case
|
|
328
|
+
case 44:
|
|
305
329
|
this.enterOuterAlt(localctx, 3);
|
|
306
330
|
{
|
|
307
|
-
this.state =
|
|
331
|
+
this.state = 95;
|
|
308
332
|
this.bad_meta_text();
|
|
309
|
-
this.state =
|
|
333
|
+
this.state = 96;
|
|
310
334
|
this.eol();
|
|
311
335
|
}
|
|
312
336
|
break;
|
|
@@ -332,50 +356,36 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
332
356
|
// @RuleVersion(0)
|
|
333
357
|
directive() {
|
|
334
358
|
let localctx = new DirectiveContext(this, this._ctx, this.state);
|
|
335
|
-
this.enterRule(localctx,
|
|
359
|
+
this.enterRule(localctx, 12, YiniParser.RULE_directive);
|
|
336
360
|
let _la;
|
|
337
361
|
try {
|
|
338
|
-
this.state =
|
|
362
|
+
this.state = 107;
|
|
339
363
|
this._errHandler.sync(this);
|
|
340
364
|
switch (this._input.LA(1)) {
|
|
341
|
-
case
|
|
365
|
+
case 2:
|
|
342
366
|
this.enterOuterAlt(localctx, 1);
|
|
343
367
|
{
|
|
344
|
-
this.state =
|
|
368
|
+
this.state = 100;
|
|
345
369
|
this.match(YiniParser.YINI_TOKEN);
|
|
346
|
-
this.state =
|
|
370
|
+
this.state = 101;
|
|
347
371
|
this.eol();
|
|
348
372
|
}
|
|
349
373
|
break;
|
|
350
|
-
case
|
|
374
|
+
case 3:
|
|
351
375
|
this.enterOuterAlt(localctx, 2);
|
|
352
376
|
{
|
|
353
|
-
this.state =
|
|
377
|
+
this.state = 102;
|
|
354
378
|
this.match(YiniParser.INCLUDE_TOKEN);
|
|
355
|
-
this.state =
|
|
356
|
-
this._errHandler.sync(this);
|
|
357
|
-
_la = this._input.LA(1);
|
|
358
|
-
while (_la === 43) {
|
|
359
|
-
{
|
|
360
|
-
{
|
|
361
|
-
this.state = 105;
|
|
362
|
-
this.match(YiniParser.WS);
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
this.state = 110;
|
|
366
|
-
this._errHandler.sync(this);
|
|
367
|
-
_la = this._input.LA(1);
|
|
368
|
-
}
|
|
369
|
-
this.state = 112;
|
|
379
|
+
this.state = 104;
|
|
370
380
|
this._errHandler.sync(this);
|
|
371
381
|
_la = this._input.LA(1);
|
|
372
|
-
if (_la ===
|
|
382
|
+
if (_la === 13) {
|
|
373
383
|
{
|
|
374
|
-
this.state =
|
|
384
|
+
this.state = 103;
|
|
375
385
|
this.string_literal();
|
|
376
386
|
}
|
|
377
387
|
}
|
|
378
|
-
this.state =
|
|
388
|
+
this.state = 106;
|
|
379
389
|
this.eol();
|
|
380
390
|
}
|
|
381
391
|
break;
|
|
@@ -401,13 +411,13 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
401
411
|
// @RuleVersion(0)
|
|
402
412
|
annotation() {
|
|
403
413
|
let localctx = new AnnotationContext(this, this._ctx, this.state);
|
|
404
|
-
this.enterRule(localctx,
|
|
414
|
+
this.enterRule(localctx, 14, YiniParser.RULE_annotation);
|
|
405
415
|
try {
|
|
406
416
|
this.enterOuterAlt(localctx, 1);
|
|
407
417
|
{
|
|
408
|
-
this.state =
|
|
418
|
+
this.state = 109;
|
|
409
419
|
this.match(YiniParser.DEPRECATED_TOKEN);
|
|
410
|
-
this.state =
|
|
420
|
+
this.state = 110;
|
|
411
421
|
this.eol();
|
|
412
422
|
}
|
|
413
423
|
}
|
|
@@ -429,22 +439,12 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
429
439
|
// @RuleVersion(0)
|
|
430
440
|
eol() {
|
|
431
441
|
let localctx = new EolContext(this, this._ctx, this.state);
|
|
432
|
-
this.enterRule(localctx,
|
|
433
|
-
let _la;
|
|
442
|
+
this.enterRule(localctx, 16, YiniParser.RULE_eol);
|
|
434
443
|
try {
|
|
435
444
|
let _alt;
|
|
436
445
|
this.enterOuterAlt(localctx, 1);
|
|
437
446
|
{
|
|
438
|
-
this.state =
|
|
439
|
-
this._errHandler.sync(this);
|
|
440
|
-
_la = this._input.LA(1);
|
|
441
|
-
if (_la === 47) {
|
|
442
|
-
{
|
|
443
|
-
this.state = 120;
|
|
444
|
-
this.match(YiniParser.INLINE_COMMENT);
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
this.state = 124;
|
|
447
|
+
this.state = 113;
|
|
448
448
|
this._errHandler.sync(this);
|
|
449
449
|
_alt = 1;
|
|
450
450
|
do {
|
|
@@ -452,7 +452,7 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
452
452
|
case 1:
|
|
453
453
|
{
|
|
454
454
|
{
|
|
455
|
-
this.state =
|
|
455
|
+
this.state = 112;
|
|
456
456
|
this.match(YiniParser.NL);
|
|
457
457
|
}
|
|
458
458
|
}
|
|
@@ -460,9 +460,9 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
460
460
|
default:
|
|
461
461
|
throw new antlr4_1.NoViableAltException(this);
|
|
462
462
|
}
|
|
463
|
-
this.state =
|
|
463
|
+
this.state = 115;
|
|
464
464
|
this._errHandler.sync(this);
|
|
465
|
-
_alt = this._interp.adaptivePredict(this._input,
|
|
465
|
+
_alt = this._interp.adaptivePredict(this._input, 11, this._ctx);
|
|
466
466
|
} while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
@@ -484,13 +484,13 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
484
484
|
// @RuleVersion(0)
|
|
485
485
|
assignment() {
|
|
486
486
|
let localctx = new AssignmentContext(this, this._ctx, this.state);
|
|
487
|
-
this.enterRule(localctx,
|
|
487
|
+
this.enterRule(localctx, 18, YiniParser.RULE_assignment);
|
|
488
488
|
try {
|
|
489
489
|
this.enterOuterAlt(localctx, 1);
|
|
490
490
|
{
|
|
491
|
-
this.state =
|
|
491
|
+
this.state = 117;
|
|
492
492
|
this.member();
|
|
493
|
-
this.state =
|
|
493
|
+
this.state = 118;
|
|
494
494
|
this.eol();
|
|
495
495
|
}
|
|
496
496
|
}
|
|
@@ -512,39 +512,21 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
512
512
|
// @RuleVersion(0)
|
|
513
513
|
member() {
|
|
514
514
|
let localctx = new MemberContext(this, this._ctx, this.state);
|
|
515
|
-
this.enterRule(localctx,
|
|
515
|
+
this.enterRule(localctx, 20, YiniParser.RULE_member);
|
|
516
516
|
let _la;
|
|
517
517
|
try {
|
|
518
518
|
this.enterOuterAlt(localctx, 1);
|
|
519
519
|
{
|
|
520
|
-
this.state =
|
|
520
|
+
this.state = 120;
|
|
521
521
|
this.match(YiniParser.KEY);
|
|
522
|
-
this.state =
|
|
523
|
-
this._errHandler.sync(this);
|
|
524
|
-
_la = this._input.LA(1);
|
|
525
|
-
if (_la === 43) {
|
|
526
|
-
{
|
|
527
|
-
this.state = 132;
|
|
528
|
-
this.match(YiniParser.WS);
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
this.state = 135;
|
|
522
|
+
this.state = 121;
|
|
532
523
|
this.match(YiniParser.EQ);
|
|
533
|
-
this.state =
|
|
524
|
+
this.state = 123;
|
|
534
525
|
this._errHandler.sync(this);
|
|
535
526
|
_la = this._input.LA(1);
|
|
536
|
-
if (_la ===
|
|
527
|
+
if ((((_la) & ~0x1F) === 0 && ((1 << _la) & 671366912) !== 0)) {
|
|
537
528
|
{
|
|
538
|
-
this.state =
|
|
539
|
-
this.match(YiniParser.WS);
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
this.state = 140;
|
|
543
|
-
this._errHandler.sync(this);
|
|
544
|
-
_la = this._input.LA(1);
|
|
545
|
-
if (((((_la - 15)) & ~0x1F) === 0 && ((1 << (_la - 15)) & 572933) !== 0)) {
|
|
546
|
-
{
|
|
547
|
-
this.state = 139;
|
|
529
|
+
this.state = 122;
|
|
548
530
|
this.value();
|
|
549
531
|
}
|
|
550
532
|
}
|
|
@@ -566,194 +548,55 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
566
548
|
return localctx;
|
|
567
549
|
}
|
|
568
550
|
// @RuleVersion(0)
|
|
569
|
-
colon_list_decl() {
|
|
570
|
-
let localctx = new Colon_list_declContext(this, this._ctx, this.state);
|
|
571
|
-
this.enterRule(localctx, 20, YiniParser.RULE_colon_list_decl);
|
|
572
|
-
let _la;
|
|
573
|
-
try {
|
|
574
|
-
let _alt;
|
|
575
|
-
this.enterOuterAlt(localctx, 1);
|
|
576
|
-
{
|
|
577
|
-
this.state = 142;
|
|
578
|
-
this.match(YiniParser.KEY);
|
|
579
|
-
this.state = 144;
|
|
580
|
-
this._errHandler.sync(this);
|
|
581
|
-
_la = this._input.LA(1);
|
|
582
|
-
if (_la === 43) {
|
|
583
|
-
{
|
|
584
|
-
this.state = 143;
|
|
585
|
-
this.match(YiniParser.WS);
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
this.state = 146;
|
|
589
|
-
this.match(YiniParser.COLON);
|
|
590
|
-
this.state = 155;
|
|
591
|
-
this._errHandler.sync(this);
|
|
592
|
-
_la = this._input.LA(1);
|
|
593
|
-
while (((((_la - 41)) & ~0x1F) === 0 && ((1 << (_la - 41)) & 69) !== 0)) {
|
|
594
|
-
{
|
|
595
|
-
this.state = 153;
|
|
596
|
-
this._errHandler.sync(this);
|
|
597
|
-
switch (this._input.LA(1)) {
|
|
598
|
-
case 41:
|
|
599
|
-
case 47:
|
|
600
|
-
{
|
|
601
|
-
this.state = 147;
|
|
602
|
-
this.eol();
|
|
603
|
-
}
|
|
604
|
-
break;
|
|
605
|
-
case 43:
|
|
606
|
-
{
|
|
607
|
-
this.state = 149;
|
|
608
|
-
this._errHandler.sync(this);
|
|
609
|
-
_alt = 1;
|
|
610
|
-
do {
|
|
611
|
-
switch (_alt) {
|
|
612
|
-
case 1:
|
|
613
|
-
{
|
|
614
|
-
{
|
|
615
|
-
this.state = 148;
|
|
616
|
-
this.match(YiniParser.WS);
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
|
-
break;
|
|
620
|
-
default:
|
|
621
|
-
throw new antlr4_1.NoViableAltException(this);
|
|
622
|
-
}
|
|
623
|
-
this.state = 151;
|
|
624
|
-
this._errHandler.sync(this);
|
|
625
|
-
_alt = this._interp.adaptivePredict(this._input, 19, this._ctx);
|
|
626
|
-
} while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER);
|
|
627
|
-
}
|
|
628
|
-
break;
|
|
629
|
-
default:
|
|
630
|
-
throw new antlr4_1.NoViableAltException(this);
|
|
631
|
-
}
|
|
632
|
-
}
|
|
633
|
-
this.state = 157;
|
|
634
|
-
this._errHandler.sync(this);
|
|
635
|
-
_la = this._input.LA(1);
|
|
636
|
-
}
|
|
637
|
-
this.state = 158;
|
|
638
|
-
this.elements();
|
|
639
|
-
this.state = 167;
|
|
640
|
-
this._errHandler.sync(this);
|
|
641
|
-
_alt = this._interp.adaptivePredict(this._input, 24, this._ctx);
|
|
642
|
-
while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
|
|
643
|
-
if (_alt === 1) {
|
|
644
|
-
{
|
|
645
|
-
this.state = 165;
|
|
646
|
-
this._errHandler.sync(this);
|
|
647
|
-
switch (this._input.LA(1)) {
|
|
648
|
-
case 41:
|
|
649
|
-
case 47:
|
|
650
|
-
{
|
|
651
|
-
this.state = 159;
|
|
652
|
-
this.eol();
|
|
653
|
-
}
|
|
654
|
-
break;
|
|
655
|
-
case 43:
|
|
656
|
-
{
|
|
657
|
-
this.state = 161;
|
|
658
|
-
this._errHandler.sync(this);
|
|
659
|
-
_alt = 1;
|
|
660
|
-
do {
|
|
661
|
-
switch (_alt) {
|
|
662
|
-
case 1:
|
|
663
|
-
{
|
|
664
|
-
{
|
|
665
|
-
this.state = 160;
|
|
666
|
-
this.match(YiniParser.WS);
|
|
667
|
-
}
|
|
668
|
-
}
|
|
669
|
-
break;
|
|
670
|
-
default:
|
|
671
|
-
throw new antlr4_1.NoViableAltException(this);
|
|
672
|
-
}
|
|
673
|
-
this.state = 163;
|
|
674
|
-
this._errHandler.sync(this);
|
|
675
|
-
_alt = this._interp.adaptivePredict(this._input, 22, this._ctx);
|
|
676
|
-
} while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER);
|
|
677
|
-
}
|
|
678
|
-
break;
|
|
679
|
-
default:
|
|
680
|
-
throw new antlr4_1.NoViableAltException(this);
|
|
681
|
-
}
|
|
682
|
-
}
|
|
683
|
-
}
|
|
684
|
-
this.state = 169;
|
|
685
|
-
this._errHandler.sync(this);
|
|
686
|
-
_alt = this._interp.adaptivePredict(this._input, 24, this._ctx);
|
|
687
|
-
}
|
|
688
|
-
this.state = 170;
|
|
689
|
-
this.eol();
|
|
690
|
-
}
|
|
691
|
-
}
|
|
692
|
-
catch (re) {
|
|
693
|
-
if (re instanceof antlr4_1.RecognitionException) {
|
|
694
|
-
localctx.exception = re;
|
|
695
|
-
this._errHandler.reportError(this, re);
|
|
696
|
-
this._errHandler.recover(this, re);
|
|
697
|
-
}
|
|
698
|
-
else {
|
|
699
|
-
throw re;
|
|
700
|
-
}
|
|
701
|
-
}
|
|
702
|
-
finally {
|
|
703
|
-
this.exitRule();
|
|
704
|
-
}
|
|
705
|
-
return localctx;
|
|
706
|
-
}
|
|
707
|
-
// @RuleVersion(0)
|
|
708
551
|
value() {
|
|
709
552
|
let localctx = new ValueContext(this, this._ctx, this.state);
|
|
710
553
|
this.enterRule(localctx, 22, YiniParser.RULE_value);
|
|
711
554
|
try {
|
|
712
|
-
this.state =
|
|
555
|
+
this.state = 131;
|
|
713
556
|
this._errHandler.sync(this);
|
|
714
557
|
switch (this._input.LA(1)) {
|
|
715
|
-
case
|
|
558
|
+
case 10:
|
|
716
559
|
this.enterOuterAlt(localctx, 1);
|
|
717
560
|
{
|
|
718
|
-
this.state =
|
|
561
|
+
this.state = 125;
|
|
719
562
|
this.null_literal();
|
|
720
563
|
}
|
|
721
564
|
break;
|
|
722
|
-
case
|
|
565
|
+
case 13:
|
|
723
566
|
this.enterOuterAlt(localctx, 2);
|
|
724
567
|
{
|
|
725
|
-
this.state =
|
|
568
|
+
this.state = 126;
|
|
726
569
|
this.string_literal();
|
|
727
570
|
}
|
|
728
571
|
break;
|
|
729
|
-
case
|
|
572
|
+
case 18:
|
|
730
573
|
this.enterOuterAlt(localctx, 3);
|
|
731
574
|
{
|
|
732
|
-
this.state =
|
|
575
|
+
this.state = 127;
|
|
733
576
|
this.number_literal();
|
|
734
577
|
}
|
|
735
578
|
break;
|
|
736
|
-
case
|
|
737
|
-
case
|
|
579
|
+
case 8:
|
|
580
|
+
case 9:
|
|
738
581
|
this.enterOuterAlt(localctx, 4);
|
|
739
582
|
{
|
|
740
|
-
this.state =
|
|
583
|
+
this.state = 128;
|
|
741
584
|
this.boolean_literal();
|
|
742
585
|
}
|
|
743
586
|
break;
|
|
744
|
-
case
|
|
745
|
-
case
|
|
587
|
+
case 12:
|
|
588
|
+
case 27:
|
|
746
589
|
this.enterOuterAlt(localctx, 5);
|
|
747
590
|
{
|
|
748
|
-
this.state =
|
|
591
|
+
this.state = 129;
|
|
749
592
|
this.list_literal();
|
|
750
593
|
}
|
|
751
594
|
break;
|
|
752
|
-
case
|
|
753
|
-
case
|
|
595
|
+
case 11:
|
|
596
|
+
case 29:
|
|
754
597
|
this.enterOuterAlt(localctx, 6);
|
|
755
598
|
{
|
|
756
|
-
this.state =
|
|
599
|
+
this.state = 130;
|
|
757
600
|
this.object_literal();
|
|
758
601
|
}
|
|
759
602
|
break;
|
|
@@ -783,93 +626,93 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
783
626
|
let _la;
|
|
784
627
|
try {
|
|
785
628
|
let _alt;
|
|
786
|
-
this.state =
|
|
629
|
+
this.state = 163;
|
|
787
630
|
this._errHandler.sync(this);
|
|
788
631
|
switch (this._input.LA(1)) {
|
|
789
|
-
case
|
|
632
|
+
case 29:
|
|
790
633
|
this.enterOuterAlt(localctx, 1);
|
|
791
634
|
{
|
|
792
|
-
this.state =
|
|
635
|
+
this.state = 133;
|
|
793
636
|
this.match(YiniParser.OC);
|
|
794
|
-
this.state =
|
|
637
|
+
this.state = 137;
|
|
795
638
|
this._errHandler.sync(this);
|
|
796
|
-
_alt = this._interp.adaptivePredict(this._input,
|
|
639
|
+
_alt = this._interp.adaptivePredict(this._input, 14, this._ctx);
|
|
797
640
|
while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
|
|
798
641
|
if (_alt === 1) {
|
|
799
642
|
{
|
|
800
643
|
{
|
|
801
|
-
this.state =
|
|
644
|
+
this.state = 134;
|
|
802
645
|
this.match(YiniParser.NL);
|
|
803
646
|
}
|
|
804
647
|
}
|
|
805
648
|
}
|
|
806
|
-
this.state =
|
|
649
|
+
this.state = 139;
|
|
807
650
|
this._errHandler.sync(this);
|
|
808
|
-
_alt = this._interp.adaptivePredict(this._input,
|
|
651
|
+
_alt = this._interp.adaptivePredict(this._input, 14, this._ctx);
|
|
809
652
|
}
|
|
810
|
-
this.state =
|
|
653
|
+
this.state = 141;
|
|
811
654
|
this._errHandler.sync(this);
|
|
812
655
|
_la = this._input.LA(1);
|
|
813
|
-
if (_la ===
|
|
656
|
+
if (_la === 41) {
|
|
814
657
|
{
|
|
815
|
-
this.state =
|
|
658
|
+
this.state = 140;
|
|
816
659
|
this.object_members();
|
|
817
660
|
}
|
|
818
661
|
}
|
|
819
|
-
this.state =
|
|
662
|
+
this.state = 146;
|
|
820
663
|
this._errHandler.sync(this);
|
|
821
664
|
_la = this._input.LA(1);
|
|
822
|
-
while (_la ===
|
|
665
|
+
while (_la === 36) {
|
|
823
666
|
{
|
|
824
667
|
{
|
|
825
|
-
this.state =
|
|
668
|
+
this.state = 143;
|
|
826
669
|
this.match(YiniParser.NL);
|
|
827
670
|
}
|
|
828
671
|
}
|
|
829
|
-
this.state =
|
|
672
|
+
this.state = 148;
|
|
830
673
|
this._errHandler.sync(this);
|
|
831
674
|
_la = this._input.LA(1);
|
|
832
675
|
}
|
|
833
|
-
this.state =
|
|
676
|
+
this.state = 149;
|
|
834
677
|
this.match(YiniParser.CC);
|
|
835
|
-
this.state =
|
|
678
|
+
this.state = 153;
|
|
836
679
|
this._errHandler.sync(this);
|
|
837
|
-
_alt = this._interp.adaptivePredict(this._input,
|
|
680
|
+
_alt = this._interp.adaptivePredict(this._input, 17, this._ctx);
|
|
838
681
|
while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
|
|
839
682
|
if (_alt === 1) {
|
|
840
683
|
{
|
|
841
684
|
{
|
|
842
|
-
this.state =
|
|
685
|
+
this.state = 150;
|
|
843
686
|
this.match(YiniParser.NL);
|
|
844
687
|
}
|
|
845
688
|
}
|
|
846
689
|
}
|
|
847
|
-
this.state =
|
|
690
|
+
this.state = 155;
|
|
848
691
|
this._errHandler.sync(this);
|
|
849
|
-
_alt = this._interp.adaptivePredict(this._input,
|
|
692
|
+
_alt = this._interp.adaptivePredict(this._input, 17, this._ctx);
|
|
850
693
|
}
|
|
851
694
|
}
|
|
852
695
|
break;
|
|
853
|
-
case
|
|
696
|
+
case 11:
|
|
854
697
|
this.enterOuterAlt(localctx, 2);
|
|
855
698
|
{
|
|
856
|
-
this.state =
|
|
699
|
+
this.state = 156;
|
|
857
700
|
this.match(YiniParser.EMPTY_OBJECT);
|
|
858
|
-
this.state =
|
|
701
|
+
this.state = 160;
|
|
859
702
|
this._errHandler.sync(this);
|
|
860
|
-
_alt = this._interp.adaptivePredict(this._input,
|
|
703
|
+
_alt = this._interp.adaptivePredict(this._input, 18, this._ctx);
|
|
861
704
|
while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
|
|
862
705
|
if (_alt === 1) {
|
|
863
706
|
{
|
|
864
707
|
{
|
|
865
|
-
this.state =
|
|
708
|
+
this.state = 157;
|
|
866
709
|
this.match(YiniParser.NL);
|
|
867
710
|
}
|
|
868
711
|
}
|
|
869
712
|
}
|
|
870
|
-
this.state =
|
|
713
|
+
this.state = 162;
|
|
871
714
|
this._errHandler.sync(this);
|
|
872
|
-
_alt = this._interp.adaptivePredict(this._input,
|
|
715
|
+
_alt = this._interp.adaptivePredict(this._input, 18, this._ctx);
|
|
873
716
|
}
|
|
874
717
|
}
|
|
875
718
|
break;
|
|
@@ -901,46 +744,46 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
901
744
|
let _alt;
|
|
902
745
|
this.enterOuterAlt(localctx, 1);
|
|
903
746
|
{
|
|
904
|
-
this.state =
|
|
747
|
+
this.state = 165;
|
|
905
748
|
this.object_member();
|
|
906
|
-
this.state =
|
|
749
|
+
this.state = 176;
|
|
907
750
|
this._errHandler.sync(this);
|
|
908
|
-
_alt = this._interp.adaptivePredict(this._input,
|
|
751
|
+
_alt = this._interp.adaptivePredict(this._input, 21, this._ctx);
|
|
909
752
|
while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
|
|
910
753
|
if (_alt === 1) {
|
|
911
754
|
{
|
|
912
755
|
{
|
|
913
|
-
this.state =
|
|
756
|
+
this.state = 166;
|
|
914
757
|
this.match(YiniParser.COMMA);
|
|
915
|
-
this.state =
|
|
758
|
+
this.state = 170;
|
|
916
759
|
this._errHandler.sync(this);
|
|
917
760
|
_la = this._input.LA(1);
|
|
918
|
-
while (_la ===
|
|
761
|
+
while (_la === 36) {
|
|
919
762
|
{
|
|
920
763
|
{
|
|
921
|
-
this.state =
|
|
764
|
+
this.state = 167;
|
|
922
765
|
this.match(YiniParser.NL);
|
|
923
766
|
}
|
|
924
767
|
}
|
|
925
|
-
this.state =
|
|
768
|
+
this.state = 172;
|
|
926
769
|
this._errHandler.sync(this);
|
|
927
770
|
_la = this._input.LA(1);
|
|
928
771
|
}
|
|
929
|
-
this.state =
|
|
772
|
+
this.state = 173;
|
|
930
773
|
this.object_member();
|
|
931
774
|
}
|
|
932
775
|
}
|
|
933
776
|
}
|
|
934
|
-
this.state =
|
|
777
|
+
this.state = 178;
|
|
935
778
|
this._errHandler.sync(this);
|
|
936
|
-
_alt = this._interp.adaptivePredict(this._input,
|
|
779
|
+
_alt = this._interp.adaptivePredict(this._input, 21, this._ctx);
|
|
937
780
|
}
|
|
938
|
-
this.state =
|
|
781
|
+
this.state = 180;
|
|
939
782
|
this._errHandler.sync(this);
|
|
940
783
|
_la = this._input.LA(1);
|
|
941
|
-
if (_la ===
|
|
784
|
+
if (_la === 25) {
|
|
942
785
|
{
|
|
943
|
-
this.state =
|
|
786
|
+
this.state = 179;
|
|
944
787
|
this.match(YiniParser.COMMA);
|
|
945
788
|
}
|
|
946
789
|
}
|
|
@@ -969,34 +812,25 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
969
812
|
try {
|
|
970
813
|
this.enterOuterAlt(localctx, 1);
|
|
971
814
|
{
|
|
972
|
-
this.state =
|
|
815
|
+
this.state = 182;
|
|
973
816
|
this.match(YiniParser.KEY);
|
|
974
|
-
this.state =
|
|
975
|
-
this._errHandler.sync(this);
|
|
976
|
-
_la = this._input.LA(1);
|
|
977
|
-
if (_la === 43) {
|
|
978
|
-
{
|
|
979
|
-
this.state = 230;
|
|
980
|
-
this.match(YiniParser.WS);
|
|
981
|
-
}
|
|
982
|
-
}
|
|
983
|
-
this.state = 233;
|
|
817
|
+
this.state = 183;
|
|
984
818
|
this.match(YiniParser.COLON);
|
|
985
|
-
this.state =
|
|
819
|
+
this.state = 187;
|
|
986
820
|
this._errHandler.sync(this);
|
|
987
821
|
_la = this._input.LA(1);
|
|
988
|
-
while (_la ===
|
|
822
|
+
while (_la === 36) {
|
|
989
823
|
{
|
|
990
824
|
{
|
|
991
|
-
this.state =
|
|
825
|
+
this.state = 184;
|
|
992
826
|
this.match(YiniParser.NL);
|
|
993
827
|
}
|
|
994
828
|
}
|
|
995
|
-
this.state =
|
|
829
|
+
this.state = 189;
|
|
996
830
|
this._errHandler.sync(this);
|
|
997
831
|
_la = this._input.LA(1);
|
|
998
832
|
}
|
|
999
|
-
this.state =
|
|
833
|
+
this.state = 190;
|
|
1000
834
|
this.value();
|
|
1001
835
|
}
|
|
1002
836
|
}
|
|
@@ -1022,93 +856,93 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
1022
856
|
let _la;
|
|
1023
857
|
try {
|
|
1024
858
|
let _alt;
|
|
1025
|
-
this.state =
|
|
859
|
+
this.state = 222;
|
|
1026
860
|
this._errHandler.sync(this);
|
|
1027
861
|
switch (this._input.LA(1)) {
|
|
1028
|
-
case
|
|
862
|
+
case 27:
|
|
1029
863
|
this.enterOuterAlt(localctx, 1);
|
|
1030
864
|
{
|
|
1031
|
-
this.state =
|
|
865
|
+
this.state = 192;
|
|
1032
866
|
this.match(YiniParser.OB);
|
|
1033
|
-
this.state =
|
|
867
|
+
this.state = 196;
|
|
1034
868
|
this._errHandler.sync(this);
|
|
1035
|
-
_alt = this._interp.adaptivePredict(this._input,
|
|
869
|
+
_alt = this._interp.adaptivePredict(this._input, 24, this._ctx);
|
|
1036
870
|
while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
|
|
1037
871
|
if (_alt === 1) {
|
|
1038
872
|
{
|
|
1039
873
|
{
|
|
1040
|
-
this.state =
|
|
874
|
+
this.state = 193;
|
|
1041
875
|
this.match(YiniParser.NL);
|
|
1042
876
|
}
|
|
1043
877
|
}
|
|
1044
878
|
}
|
|
1045
|
-
this.state =
|
|
879
|
+
this.state = 198;
|
|
1046
880
|
this._errHandler.sync(this);
|
|
1047
|
-
_alt = this._interp.adaptivePredict(this._input,
|
|
881
|
+
_alt = this._interp.adaptivePredict(this._input, 24, this._ctx);
|
|
1048
882
|
}
|
|
1049
|
-
this.state =
|
|
883
|
+
this.state = 200;
|
|
1050
884
|
this._errHandler.sync(this);
|
|
1051
885
|
_la = this._input.LA(1);
|
|
1052
|
-
if ((((
|
|
886
|
+
if ((((_la) & ~0x1F) === 0 && ((1 << _la) & 671366912) !== 0)) {
|
|
1053
887
|
{
|
|
1054
|
-
this.state =
|
|
888
|
+
this.state = 199;
|
|
1055
889
|
this.elements();
|
|
1056
890
|
}
|
|
1057
891
|
}
|
|
1058
|
-
this.state =
|
|
892
|
+
this.state = 205;
|
|
1059
893
|
this._errHandler.sync(this);
|
|
1060
894
|
_la = this._input.LA(1);
|
|
1061
|
-
while (_la ===
|
|
895
|
+
while (_la === 36) {
|
|
1062
896
|
{
|
|
1063
897
|
{
|
|
1064
|
-
this.state =
|
|
898
|
+
this.state = 202;
|
|
1065
899
|
this.match(YiniParser.NL);
|
|
1066
900
|
}
|
|
1067
901
|
}
|
|
1068
|
-
this.state =
|
|
902
|
+
this.state = 207;
|
|
1069
903
|
this._errHandler.sync(this);
|
|
1070
904
|
_la = this._input.LA(1);
|
|
1071
905
|
}
|
|
1072
|
-
this.state =
|
|
906
|
+
this.state = 208;
|
|
1073
907
|
this.match(YiniParser.CB);
|
|
1074
|
-
this.state =
|
|
908
|
+
this.state = 212;
|
|
1075
909
|
this._errHandler.sync(this);
|
|
1076
|
-
_alt = this._interp.adaptivePredict(this._input,
|
|
910
|
+
_alt = this._interp.adaptivePredict(this._input, 27, this._ctx);
|
|
1077
911
|
while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
|
|
1078
912
|
if (_alt === 1) {
|
|
1079
913
|
{
|
|
1080
914
|
{
|
|
1081
|
-
this.state =
|
|
915
|
+
this.state = 209;
|
|
1082
916
|
this.match(YiniParser.NL);
|
|
1083
917
|
}
|
|
1084
918
|
}
|
|
1085
919
|
}
|
|
1086
|
-
this.state =
|
|
920
|
+
this.state = 214;
|
|
1087
921
|
this._errHandler.sync(this);
|
|
1088
|
-
_alt = this._interp.adaptivePredict(this._input,
|
|
922
|
+
_alt = this._interp.adaptivePredict(this._input, 27, this._ctx);
|
|
1089
923
|
}
|
|
1090
924
|
}
|
|
1091
925
|
break;
|
|
1092
|
-
case
|
|
926
|
+
case 12:
|
|
1093
927
|
this.enterOuterAlt(localctx, 2);
|
|
1094
928
|
{
|
|
1095
|
-
this.state =
|
|
929
|
+
this.state = 215;
|
|
1096
930
|
this.match(YiniParser.EMPTY_LIST);
|
|
1097
|
-
this.state =
|
|
931
|
+
this.state = 219;
|
|
1098
932
|
this._errHandler.sync(this);
|
|
1099
|
-
_alt = this._interp.adaptivePredict(this._input,
|
|
933
|
+
_alt = this._interp.adaptivePredict(this._input, 28, this._ctx);
|
|
1100
934
|
while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
|
|
1101
935
|
if (_alt === 1) {
|
|
1102
936
|
{
|
|
1103
937
|
{
|
|
1104
|
-
this.state =
|
|
938
|
+
this.state = 216;
|
|
1105
939
|
this.match(YiniParser.NL);
|
|
1106
940
|
}
|
|
1107
941
|
}
|
|
1108
942
|
}
|
|
1109
|
-
this.state =
|
|
943
|
+
this.state = 221;
|
|
1110
944
|
this._errHandler.sync(this);
|
|
1111
|
-
_alt = this._interp.adaptivePredict(this._input,
|
|
945
|
+
_alt = this._interp.adaptivePredict(this._input, 28, this._ctx);
|
|
1112
946
|
}
|
|
1113
947
|
}
|
|
1114
948
|
break;
|
|
@@ -1140,60 +974,60 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
1140
974
|
let _alt;
|
|
1141
975
|
this.enterOuterAlt(localctx, 1);
|
|
1142
976
|
{
|
|
1143
|
-
this.state =
|
|
977
|
+
this.state = 224;
|
|
1144
978
|
this.value();
|
|
1145
|
-
this.state =
|
|
979
|
+
this.state = 241;
|
|
1146
980
|
this._errHandler.sync(this);
|
|
1147
|
-
_alt = this._interp.adaptivePredict(this._input,
|
|
981
|
+
_alt = this._interp.adaptivePredict(this._input, 32, this._ctx);
|
|
1148
982
|
while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
|
|
1149
983
|
if (_alt === 1) {
|
|
1150
984
|
{
|
|
1151
985
|
{
|
|
1152
|
-
this.state =
|
|
986
|
+
this.state = 228;
|
|
1153
987
|
this._errHandler.sync(this);
|
|
1154
988
|
_la = this._input.LA(1);
|
|
1155
|
-
while (_la ===
|
|
989
|
+
while (_la === 36) {
|
|
1156
990
|
{
|
|
1157
991
|
{
|
|
1158
|
-
this.state =
|
|
992
|
+
this.state = 225;
|
|
1159
993
|
this.match(YiniParser.NL);
|
|
1160
994
|
}
|
|
1161
995
|
}
|
|
1162
|
-
this.state =
|
|
996
|
+
this.state = 230;
|
|
1163
997
|
this._errHandler.sync(this);
|
|
1164
998
|
_la = this._input.LA(1);
|
|
1165
999
|
}
|
|
1166
|
-
this.state =
|
|
1000
|
+
this.state = 231;
|
|
1167
1001
|
this.match(YiniParser.COMMA);
|
|
1168
|
-
this.state =
|
|
1002
|
+
this.state = 235;
|
|
1169
1003
|
this._errHandler.sync(this);
|
|
1170
1004
|
_la = this._input.LA(1);
|
|
1171
|
-
while (_la ===
|
|
1005
|
+
while (_la === 36) {
|
|
1172
1006
|
{
|
|
1173
1007
|
{
|
|
1174
|
-
this.state =
|
|
1008
|
+
this.state = 232;
|
|
1175
1009
|
this.match(YiniParser.NL);
|
|
1176
1010
|
}
|
|
1177
1011
|
}
|
|
1178
|
-
this.state =
|
|
1012
|
+
this.state = 237;
|
|
1179
1013
|
this._errHandler.sync(this);
|
|
1180
1014
|
_la = this._input.LA(1);
|
|
1181
1015
|
}
|
|
1182
|
-
this.state =
|
|
1016
|
+
this.state = 238;
|
|
1183
1017
|
this.value();
|
|
1184
1018
|
}
|
|
1185
1019
|
}
|
|
1186
1020
|
}
|
|
1187
|
-
this.state =
|
|
1021
|
+
this.state = 243;
|
|
1188
1022
|
this._errHandler.sync(this);
|
|
1189
|
-
_alt = this._interp.adaptivePredict(this._input,
|
|
1023
|
+
_alt = this._interp.adaptivePredict(this._input, 32, this._ctx);
|
|
1190
1024
|
}
|
|
1191
|
-
this.state =
|
|
1025
|
+
this.state = 245;
|
|
1192
1026
|
this._errHandler.sync(this);
|
|
1193
1027
|
_la = this._input.LA(1);
|
|
1194
|
-
if (_la ===
|
|
1028
|
+
if (_la === 25) {
|
|
1195
1029
|
{
|
|
1196
|
-
this.state =
|
|
1030
|
+
this.state = 244;
|
|
1197
1031
|
this.match(YiniParser.COMMA);
|
|
1198
1032
|
}
|
|
1199
1033
|
}
|
|
@@ -1221,7 +1055,7 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
1221
1055
|
try {
|
|
1222
1056
|
this.enterOuterAlt(localctx, 1);
|
|
1223
1057
|
{
|
|
1224
|
-
this.state =
|
|
1058
|
+
this.state = 247;
|
|
1225
1059
|
this.match(YiniParser.NUMBER);
|
|
1226
1060
|
}
|
|
1227
1061
|
}
|
|
@@ -1247,7 +1081,7 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
1247
1081
|
try {
|
|
1248
1082
|
this.enterOuterAlt(localctx, 1);
|
|
1249
1083
|
{
|
|
1250
|
-
this.state =
|
|
1084
|
+
this.state = 249;
|
|
1251
1085
|
this.match(YiniParser.NULL);
|
|
1252
1086
|
}
|
|
1253
1087
|
}
|
|
@@ -1274,23 +1108,23 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
1274
1108
|
let _alt;
|
|
1275
1109
|
this.enterOuterAlt(localctx, 1);
|
|
1276
1110
|
{
|
|
1277
|
-
this.state =
|
|
1111
|
+
this.state = 251;
|
|
1278
1112
|
this.match(YiniParser.STRING);
|
|
1279
|
-
this.state =
|
|
1113
|
+
this.state = 255;
|
|
1280
1114
|
this._errHandler.sync(this);
|
|
1281
|
-
_alt = this._interp.adaptivePredict(this._input,
|
|
1115
|
+
_alt = this._interp.adaptivePredict(this._input, 34, this._ctx);
|
|
1282
1116
|
while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
|
|
1283
1117
|
if (_alt === 1) {
|
|
1284
1118
|
{
|
|
1285
1119
|
{
|
|
1286
|
-
this.state =
|
|
1120
|
+
this.state = 252;
|
|
1287
1121
|
this.string_concat();
|
|
1288
1122
|
}
|
|
1289
1123
|
}
|
|
1290
1124
|
}
|
|
1291
|
-
this.state =
|
|
1125
|
+
this.state = 257;
|
|
1292
1126
|
this._errHandler.sync(this);
|
|
1293
|
-
_alt = this._interp.adaptivePredict(this._input,
|
|
1127
|
+
_alt = this._interp.adaptivePredict(this._input, 34, this._ctx);
|
|
1294
1128
|
}
|
|
1295
1129
|
}
|
|
1296
1130
|
}
|
|
@@ -1317,37 +1151,37 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
1317
1151
|
try {
|
|
1318
1152
|
this.enterOuterAlt(localctx, 1);
|
|
1319
1153
|
{
|
|
1320
|
-
this.state =
|
|
1154
|
+
this.state = 261;
|
|
1321
1155
|
this._errHandler.sync(this);
|
|
1322
1156
|
_la = this._input.LA(1);
|
|
1323
|
-
while (_la ===
|
|
1157
|
+
while (_la === 36) {
|
|
1324
1158
|
{
|
|
1325
1159
|
{
|
|
1326
|
-
this.state =
|
|
1160
|
+
this.state = 258;
|
|
1327
1161
|
this.match(YiniParser.NL);
|
|
1328
1162
|
}
|
|
1329
1163
|
}
|
|
1330
|
-
this.state =
|
|
1164
|
+
this.state = 263;
|
|
1331
1165
|
this._errHandler.sync(this);
|
|
1332
1166
|
_la = this._input.LA(1);
|
|
1333
1167
|
}
|
|
1334
|
-
this.state =
|
|
1168
|
+
this.state = 264;
|
|
1335
1169
|
this.match(YiniParser.PLUS);
|
|
1336
|
-
this.state =
|
|
1170
|
+
this.state = 268;
|
|
1337
1171
|
this._errHandler.sync(this);
|
|
1338
1172
|
_la = this._input.LA(1);
|
|
1339
|
-
while (_la ===
|
|
1173
|
+
while (_la === 36) {
|
|
1340
1174
|
{
|
|
1341
1175
|
{
|
|
1342
|
-
this.state =
|
|
1176
|
+
this.state = 265;
|
|
1343
1177
|
this.match(YiniParser.NL);
|
|
1344
1178
|
}
|
|
1345
1179
|
}
|
|
1346
|
-
this.state =
|
|
1180
|
+
this.state = 270;
|
|
1347
1181
|
this._errHandler.sync(this);
|
|
1348
1182
|
_la = this._input.LA(1);
|
|
1349
1183
|
}
|
|
1350
|
-
this.state =
|
|
1184
|
+
this.state = 271;
|
|
1351
1185
|
this.match(YiniParser.STRING);
|
|
1352
1186
|
}
|
|
1353
1187
|
}
|
|
@@ -1374,9 +1208,9 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
1374
1208
|
try {
|
|
1375
1209
|
this.enterOuterAlt(localctx, 1);
|
|
1376
1210
|
{
|
|
1377
|
-
this.state =
|
|
1211
|
+
this.state = 273;
|
|
1378
1212
|
_la = this._input.LA(1);
|
|
1379
|
-
if (!(_la ===
|
|
1213
|
+
if (!(_la === 8 || _la === 9)) {
|
|
1380
1214
|
this._errHandler.recoverInline(this);
|
|
1381
1215
|
}
|
|
1382
1216
|
else {
|
|
@@ -1407,7 +1241,7 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
1407
1241
|
try {
|
|
1408
1242
|
this.enterOuterAlt(localctx, 1);
|
|
1409
1243
|
{
|
|
1410
|
-
this.state =
|
|
1244
|
+
this.state = 275;
|
|
1411
1245
|
this.match(YiniParser.META_INVALID);
|
|
1412
1246
|
}
|
|
1413
1247
|
}
|
|
@@ -1430,92 +1264,71 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
1430
1264
|
bad_member() {
|
|
1431
1265
|
let localctx = new Bad_memberContext(this, this._ctx, this.state);
|
|
1432
1266
|
this.enterRule(localctx, 46, YiniParser.RULE_bad_member);
|
|
1433
|
-
let _la;
|
|
1434
1267
|
try {
|
|
1435
1268
|
this.enterOuterAlt(localctx, 1);
|
|
1436
1269
|
{
|
|
1437
|
-
this.state =
|
|
1438
|
-
this._errHandler.sync(this);
|
|
1439
|
-
switch (this._interp.adaptivePredict(this._input, 50, this._ctx)) {
|
|
1440
|
-
case 1:
|
|
1441
|
-
{
|
|
1442
|
-
this.state = 327;
|
|
1443
|
-
this.match(YiniParser.WS);
|
|
1444
|
-
}
|
|
1445
|
-
break;
|
|
1446
|
-
}
|
|
1447
|
-
this.state = 332;
|
|
1270
|
+
this.state = 279;
|
|
1448
1271
|
this._errHandler.sync(this);
|
|
1449
1272
|
switch (this._input.LA(1)) {
|
|
1450
|
-
case
|
|
1273
|
+
case 43:
|
|
1451
1274
|
{
|
|
1452
|
-
this.state =
|
|
1275
|
+
this.state = 277;
|
|
1453
1276
|
this.match(YiniParser.REST);
|
|
1454
1277
|
}
|
|
1455
1278
|
break;
|
|
1456
|
-
case
|
|
1457
|
-
case
|
|
1458
|
-
case
|
|
1459
|
-
case
|
|
1460
|
-
case
|
|
1279
|
+
case 8:
|
|
1280
|
+
case 9:
|
|
1281
|
+
case 10:
|
|
1282
|
+
case 11:
|
|
1283
|
+
case 12:
|
|
1284
|
+
case 13:
|
|
1285
|
+
case 18:
|
|
1461
1286
|
case 27:
|
|
1462
|
-
case
|
|
1463
|
-
case 30:
|
|
1464
|
-
case 34:
|
|
1287
|
+
case 29:
|
|
1465
1288
|
{
|
|
1466
|
-
this.state =
|
|
1289
|
+
this.state = 278;
|
|
1467
1290
|
this.value();
|
|
1468
1291
|
}
|
|
1469
1292
|
break;
|
|
1470
|
-
case
|
|
1471
|
-
case 43:
|
|
1293
|
+
case 23:
|
|
1472
1294
|
break;
|
|
1473
1295
|
default:
|
|
1474
1296
|
break;
|
|
1475
1297
|
}
|
|
1476
|
-
this.state =
|
|
1477
|
-
this._errHandler.sync(this);
|
|
1478
|
-
_la = this._input.LA(1);
|
|
1479
|
-
if (_la === 43) {
|
|
1480
|
-
{
|
|
1481
|
-
this.state = 334;
|
|
1482
|
-
this.match(YiniParser.WS);
|
|
1483
|
-
}
|
|
1484
|
-
}
|
|
1485
|
-
this.state = 337;
|
|
1298
|
+
this.state = 281;
|
|
1486
1299
|
this.match(YiniParser.EQ);
|
|
1487
|
-
this.state =
|
|
1300
|
+
this.state = 284;
|
|
1488
1301
|
this._errHandler.sync(this);
|
|
1489
1302
|
switch (this._input.LA(1)) {
|
|
1490
|
-
case
|
|
1491
|
-
case
|
|
1492
|
-
case
|
|
1493
|
-
case
|
|
1494
|
-
case
|
|
1303
|
+
case 8:
|
|
1304
|
+
case 9:
|
|
1305
|
+
case 10:
|
|
1306
|
+
case 11:
|
|
1307
|
+
case 12:
|
|
1308
|
+
case 13:
|
|
1309
|
+
case 18:
|
|
1495
1310
|
case 27:
|
|
1496
|
-
case
|
|
1497
|
-
case 30:
|
|
1498
|
-
case 34:
|
|
1311
|
+
case 29:
|
|
1499
1312
|
{
|
|
1500
|
-
this.state =
|
|
1313
|
+
this.state = 282;
|
|
1501
1314
|
this.value();
|
|
1502
1315
|
}
|
|
1503
1316
|
break;
|
|
1504
|
-
case
|
|
1317
|
+
case 43:
|
|
1505
1318
|
{
|
|
1506
|
-
this.state =
|
|
1319
|
+
this.state = 283;
|
|
1507
1320
|
this.match(YiniParser.REST);
|
|
1508
1321
|
}
|
|
1509
1322
|
break;
|
|
1510
1323
|
default:
|
|
1511
1324
|
throw new antlr4_1.NoViableAltException(this);
|
|
1512
1325
|
}
|
|
1513
|
-
this.state =
|
|
1326
|
+
this.state = 287;
|
|
1514
1327
|
this._errHandler.sync(this);
|
|
1515
|
-
switch (this._interp.adaptivePredict(this._input,
|
|
1328
|
+
switch (this._interp.adaptivePredict(this._input, 39, this._ctx)) {
|
|
1516
1329
|
case 1:
|
|
1517
1330
|
{
|
|
1518
|
-
this.state =
|
|
1331
|
+
this.state = 286;
|
|
1519
1332
|
this.eol();
|
|
1520
1333
|
}
|
|
1521
1334
|
break;
|
|
@@ -1544,68 +1357,62 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
1544
1357
|
return YiniParser.__ATN;
|
|
1545
1358
|
}
|
|
1546
1359
|
}
|
|
1547
|
-
YiniParser.
|
|
1548
|
-
YiniParser.
|
|
1549
|
-
YiniParser.
|
|
1550
|
-
YiniParser.
|
|
1360
|
+
YiniParser.SHEBANG = 1;
|
|
1361
|
+
YiniParser.YINI_TOKEN = 2;
|
|
1362
|
+
YiniParser.INCLUDE_TOKEN = 3;
|
|
1363
|
+
YiniParser.DEPRECATED_TOKEN = 4;
|
|
1551
1364
|
YiniParser.TERMINAL_TOKEN = 5;
|
|
1552
|
-
YiniParser.
|
|
1553
|
-
YiniParser.
|
|
1554
|
-
YiniParser.
|
|
1555
|
-
YiniParser.
|
|
1556
|
-
YiniParser.
|
|
1557
|
-
YiniParser.
|
|
1558
|
-
YiniParser.
|
|
1559
|
-
YiniParser.
|
|
1560
|
-
YiniParser.
|
|
1561
|
-
YiniParser.
|
|
1562
|
-
YiniParser.
|
|
1563
|
-
YiniParser.
|
|
1564
|
-
YiniParser.
|
|
1565
|
-
YiniParser.
|
|
1566
|
-
YiniParser.
|
|
1567
|
-
YiniParser.
|
|
1568
|
-
YiniParser.
|
|
1569
|
-
YiniParser.
|
|
1570
|
-
YiniParser.
|
|
1571
|
-
YiniParser.
|
|
1572
|
-
YiniParser.
|
|
1573
|
-
YiniParser.
|
|
1574
|
-
YiniParser.
|
|
1575
|
-
YiniParser.
|
|
1576
|
-
YiniParser.
|
|
1577
|
-
YiniParser.
|
|
1578
|
-
YiniParser.
|
|
1579
|
-
YiniParser.
|
|
1580
|
-
YiniParser.
|
|
1581
|
-
YiniParser.
|
|
1582
|
-
YiniParser.
|
|
1583
|
-
YiniParser.
|
|
1584
|
-
YiniParser.
|
|
1585
|
-
YiniParser.
|
|
1586
|
-
YiniParser.
|
|
1587
|
-
YiniParser.
|
|
1588
|
-
YiniParser.
|
|
1589
|
-
YiniParser.
|
|
1590
|
-
YiniParser.
|
|
1591
|
-
YiniParser.COMMENT = 45;
|
|
1592
|
-
YiniParser.LINE_COMMENT = 46;
|
|
1593
|
-
YiniParser.INLINE_COMMENT = 47;
|
|
1594
|
-
YiniParser.IDENT_INVALID = 48;
|
|
1595
|
-
YiniParser.REST = 49;
|
|
1596
|
-
YiniParser.META_INVALID = 50;
|
|
1365
|
+
YiniParser.SECTION_HEAD = 6;
|
|
1366
|
+
YiniParser.INVALID_SECTION_HEAD = 7;
|
|
1367
|
+
YiniParser.BOOLEAN_FALSE = 8;
|
|
1368
|
+
YiniParser.BOOLEAN_TRUE = 9;
|
|
1369
|
+
YiniParser.NULL = 10;
|
|
1370
|
+
YiniParser.EMPTY_OBJECT = 11;
|
|
1371
|
+
YiniParser.EMPTY_LIST = 12;
|
|
1372
|
+
YiniParser.STRING = 13;
|
|
1373
|
+
YiniParser.TRIPLE_QUOTED_STRING = 14;
|
|
1374
|
+
YiniParser.SINGLE_OR_DOUBLE = 15;
|
|
1375
|
+
YiniParser.R_AND_C_STRING = 16;
|
|
1376
|
+
YiniParser.HYPER_STRING = 17;
|
|
1377
|
+
YiniParser.NUMBER = 18;
|
|
1378
|
+
YiniParser.SS = 19;
|
|
1379
|
+
YiniParser.CARET = 20;
|
|
1380
|
+
YiniParser.GT = 21;
|
|
1381
|
+
YiniParser.LT = 22;
|
|
1382
|
+
YiniParser.EQ = 23;
|
|
1383
|
+
YiniParser.HASH = 24;
|
|
1384
|
+
YiniParser.COMMA = 25;
|
|
1385
|
+
YiniParser.COLON = 26;
|
|
1386
|
+
YiniParser.OB = 27;
|
|
1387
|
+
YiniParser.CB = 28;
|
|
1388
|
+
YiniParser.OC = 29;
|
|
1389
|
+
YiniParser.CC = 30;
|
|
1390
|
+
YiniParser.PLUS = 31;
|
|
1391
|
+
YiniParser.DOLLAR = 32;
|
|
1392
|
+
YiniParser.PC = 33;
|
|
1393
|
+
YiniParser.AT = 34;
|
|
1394
|
+
YiniParser.SEMICOLON = 35;
|
|
1395
|
+
YiniParser.NL = 36;
|
|
1396
|
+
YiniParser.WS = 37;
|
|
1397
|
+
YiniParser.BLOCK_COMMENT = 38;
|
|
1398
|
+
YiniParser.LINE_COMMENT = 39;
|
|
1399
|
+
YiniParser.INLINE_COMMENT = 40;
|
|
1400
|
+
YiniParser.KEY = 41;
|
|
1401
|
+
YiniParser.IDENT_INVALID = 42;
|
|
1402
|
+
YiniParser.REST = 43;
|
|
1403
|
+
YiniParser.META_INVALID = 44;
|
|
1597
1404
|
YiniParser.EOF = antlr4_1.Token.EOF;
|
|
1598
1405
|
YiniParser.RULE_yini = 0;
|
|
1599
1406
|
YiniParser.RULE_prolog = 1;
|
|
1600
1407
|
YiniParser.RULE_terminal_stmt = 2;
|
|
1601
1408
|
YiniParser.RULE_stmt = 3;
|
|
1602
|
-
YiniParser.
|
|
1603
|
-
YiniParser.
|
|
1604
|
-
YiniParser.
|
|
1605
|
-
YiniParser.
|
|
1606
|
-
YiniParser.
|
|
1607
|
-
YiniParser.
|
|
1608
|
-
YiniParser.
|
|
1409
|
+
YiniParser.RULE_invalid_section_stmt = 4;
|
|
1410
|
+
YiniParser.RULE_meta_stmt = 5;
|
|
1411
|
+
YiniParser.RULE_directive = 6;
|
|
1412
|
+
YiniParser.RULE_annotation = 7;
|
|
1413
|
+
YiniParser.RULE_eol = 8;
|
|
1414
|
+
YiniParser.RULE_assignment = 9;
|
|
1415
|
+
YiniParser.RULE_member = 10;
|
|
1609
1416
|
YiniParser.RULE_value = 11;
|
|
1610
1417
|
YiniParser.RULE_object_literal = 12;
|
|
1611
1418
|
YiniParser.RULE_object_members = 13;
|
|
@@ -1622,8 +1429,13 @@ YiniParser.RULE_bad_member = 23;
|
|
|
1622
1429
|
YiniParser.literalNames = [null, null,
|
|
1623
1430
|
null, null,
|
|
1624
1431
|
null, null,
|
|
1625
|
-
|
|
1626
|
-
|
|
1432
|
+
null, null,
|
|
1433
|
+
null, null,
|
|
1434
|
+
null, "'{}'",
|
|
1435
|
+
"'[]'", null,
|
|
1436
|
+
null, null,
|
|
1437
|
+
null, null,
|
|
1438
|
+
null, "'\\u00A7'",
|
|
1627
1439
|
"'^'", "'>'",
|
|
1628
1440
|
"'<'", "'='",
|
|
1629
1441
|
"'#'", "','",
|
|
@@ -1631,170 +1443,141 @@ YiniParser.literalNames = [null, null,
|
|
|
1631
1443
|
"']'", "'{'",
|
|
1632
1444
|
"'}'", "'+'",
|
|
1633
1445
|
"'$'", "'%'",
|
|
1634
|
-
"'@'", "';'"
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
"'[]'"];
|
|
1638
|
-
YiniParser.symbolicNames = [null, "YINI_TOKEN",
|
|
1446
|
+
"'@'", "';'"];
|
|
1447
|
+
YiniParser.symbolicNames = [null, "SHEBANG",
|
|
1448
|
+
"YINI_TOKEN",
|
|
1639
1449
|
"INCLUDE_TOKEN",
|
|
1640
1450
|
"DEPRECATED_TOKEN",
|
|
1641
|
-
"SECTION_HEAD",
|
|
1642
1451
|
"TERMINAL_TOKEN",
|
|
1643
|
-
"
|
|
1644
|
-
"
|
|
1645
|
-
"LT", "EQ",
|
|
1646
|
-
"HASH", "COMMA",
|
|
1647
|
-
"COLON", "OB",
|
|
1648
|
-
"CB", "OC",
|
|
1649
|
-
"CC", "PLUS",
|
|
1650
|
-
"DOLLAR", "PC",
|
|
1651
|
-
"AT", "SEMICOLON",
|
|
1452
|
+
"SECTION_HEAD",
|
|
1453
|
+
"INVALID_SECTION_HEAD",
|
|
1652
1454
|
"BOOLEAN_FALSE",
|
|
1653
1455
|
"BOOLEAN_TRUE",
|
|
1654
1456
|
"NULL", "EMPTY_OBJECT",
|
|
1655
1457
|
"EMPTY_LIST",
|
|
1656
|
-
"SHEBANG",
|
|
1657
|
-
"NUMBER", "KEY",
|
|
1658
|
-
"IDENT", "IDENT_BACKTICKED",
|
|
1659
1458
|
"STRING", "TRIPLE_QUOTED_STRING",
|
|
1660
1459
|
"SINGLE_OR_DOUBLE",
|
|
1661
1460
|
"R_AND_C_STRING",
|
|
1662
1461
|
"HYPER_STRING",
|
|
1663
|
-
"
|
|
1664
|
-
"
|
|
1665
|
-
"
|
|
1666
|
-
"
|
|
1667
|
-
"
|
|
1462
|
+
"NUMBER", "SS",
|
|
1463
|
+
"CARET", "GT",
|
|
1464
|
+
"LT", "EQ",
|
|
1465
|
+
"HASH", "COMMA",
|
|
1466
|
+
"COLON", "OB",
|
|
1467
|
+
"CB", "OC",
|
|
1468
|
+
"CC", "PLUS",
|
|
1469
|
+
"DOLLAR", "PC",
|
|
1470
|
+
"AT", "SEMICOLON",
|
|
1471
|
+
"NL", "WS",
|
|
1472
|
+
"BLOCK_COMMENT",
|
|
1668
1473
|
"LINE_COMMENT",
|
|
1669
1474
|
"INLINE_COMMENT",
|
|
1670
|
-
"IDENT_INVALID",
|
|
1475
|
+
"KEY", "IDENT_INVALID",
|
|
1671
1476
|
"REST", "META_INVALID"];
|
|
1672
1477
|
// tslint:disable:no-trailing-whitespace
|
|
1673
1478
|
YiniParser.ruleNames = [
|
|
1674
|
-
"yini", "prolog", "terminal_stmt", "stmt", "
|
|
1675
|
-
"
|
|
1479
|
+
"yini", "prolog", "terminal_stmt", "stmt", "invalid_section_stmt", "meta_stmt",
|
|
1480
|
+
"directive", "annotation", "eol", "assignment", "member", "value", "object_literal",
|
|
1676
1481
|
"object_members", "object_member", "list_literal", "elements", "number_literal",
|
|
1677
1482
|
"null_literal", "string_literal", "string_concat", "boolean_literal",
|
|
1678
1483
|
"bad_meta_text", "bad_member",
|
|
1679
1484
|
];
|
|
1680
|
-
YiniParser._serializedATN = [4, 1,
|
|
1485
|
+
YiniParser._serializedATN = [4, 1, 44, 290, 2, 0, 7, 0, 2,
|
|
1681
1486
|
1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2,
|
|
1682
1487
|
10, 7, 10, 2, 11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7, 16, 2, 17,
|
|
1683
1488
|
7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20, 7, 20, 2, 21, 7, 21, 2, 22, 7, 22, 2, 23, 7, 23, 1, 0, 3,
|
|
1684
1489
|
0, 50, 8, 0, 1, 0, 5, 0, 53, 8, 0, 10, 0, 12, 0, 56, 9, 0, 1, 0, 3, 0, 59, 8, 0, 1, 0, 1, 0, 1, 1, 1, 1,
|
|
1685
1490
|
5, 1, 65, 8, 1, 10, 1, 12, 1, 68, 9, 1, 1, 1, 4, 1, 71, 8, 1, 11, 1, 12, 1, 72, 3, 1, 75, 8, 1, 1, 2,
|
|
1686
|
-
1, 2,
|
|
1687
|
-
1,
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
10,
|
|
1692
|
-
1,
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
5,
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
8,
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
0,
|
|
1718
|
-
|
|
1719
|
-
0,
|
|
1720
|
-
0,
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
0,
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
1, 0, 0, 0,
|
|
1733
|
-
|
|
1734
|
-
1, 0, 0, 0,
|
|
1735
|
-
0,
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
1, 0, 0, 0,
|
|
1740
|
-
0,
|
|
1741
|
-
|
|
1742
|
-
0, 0, 0,
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
0,
|
|
1751
|
-
|
|
1752
|
-
0,
|
|
1753
|
-
|
|
1754
|
-
0, 0,
|
|
1755
|
-
|
|
1756
|
-
0, 0,
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
0, 0,
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
41, 0, 0, 276, 275, 1, 0, 0, 0, 277, 280, 1, 0, 0, 0, 278, 276, 1, 0, 0, 0, 278, 279, 1, 0, 0, 0,
|
|
1777
|
-
279, 281, 1, 0, 0, 0, 280, 278, 1, 0, 0, 0, 281, 285, 5, 13, 0, 0, 282, 284, 5, 41, 0, 0, 283, 282,
|
|
1778
|
-
1, 0, 0, 0, 284, 287, 1, 0, 0, 0, 285, 283, 1, 0, 0, 0, 285, 286, 1, 0, 0, 0, 286, 288, 1, 0, 0, 0,
|
|
1779
|
-
287, 285, 1, 0, 0, 0, 288, 290, 3, 22, 11, 0, 289, 278, 1, 0, 0, 0, 290, 293, 1, 0, 0, 0, 291, 289,
|
|
1780
|
-
1, 0, 0, 0, 291, 292, 1, 0, 0, 0, 292, 295, 1, 0, 0, 0, 293, 291, 1, 0, 0, 0, 294, 296, 5, 13, 0,
|
|
1781
|
-
0, 295, 294, 1, 0, 0, 0, 295, 296, 1, 0, 0, 0, 296, 33, 1, 0, 0, 0, 297, 298, 5, 30, 0, 0, 298, 35,
|
|
1782
|
-
1, 0, 0, 0, 299, 300, 5, 26, 0, 0, 300, 37, 1, 0, 0, 0, 301, 305, 5, 34, 0, 0, 302, 304, 3, 40, 20,
|
|
1783
|
-
0, 303, 302, 1, 0, 0, 0, 304, 307, 1, 0, 0, 0, 305, 303, 1, 0, 0, 0, 305, 306, 1, 0, 0, 0, 306, 39,
|
|
1784
|
-
1, 0, 0, 0, 307, 305, 1, 0, 0, 0, 308, 310, 5, 41, 0, 0, 309, 308, 1, 0, 0, 0, 310, 313, 1, 0, 0,
|
|
1785
|
-
0, 311, 309, 1, 0, 0, 0, 311, 312, 1, 0, 0, 0, 312, 314, 1, 0, 0, 0, 313, 311, 1, 0, 0, 0, 314, 318,
|
|
1786
|
-
5, 19, 0, 0, 315, 317, 5, 41, 0, 0, 316, 315, 1, 0, 0, 0, 317, 320, 1, 0, 0, 0, 318, 316, 1, 0, 0,
|
|
1787
|
-
0, 318, 319, 1, 0, 0, 0, 319, 321, 1, 0, 0, 0, 320, 318, 1, 0, 0, 0, 321, 322, 5, 34, 0, 0, 322,
|
|
1788
|
-
41, 1, 0, 0, 0, 323, 324, 7, 0, 0, 0, 324, 43, 1, 0, 0, 0, 325, 326, 5, 50, 0, 0, 326, 45, 1, 0, 0,
|
|
1789
|
-
0, 327, 329, 5, 43, 0, 0, 328, 327, 1, 0, 0, 0, 328, 329, 1, 0, 0, 0, 329, 332, 1, 0, 0, 0, 330,
|
|
1790
|
-
333, 5, 49, 0, 0, 331, 333, 3, 22, 11, 0, 332, 330, 1, 0, 0, 0, 332, 331, 1, 0, 0, 0, 332, 333,
|
|
1791
|
-
1, 0, 0, 0, 333, 335, 1, 0, 0, 0, 334, 336, 5, 43, 0, 0, 335, 334, 1, 0, 0, 0, 335, 336, 1, 0, 0,
|
|
1792
|
-
0, 336, 337, 1, 0, 0, 0, 337, 340, 5, 11, 0, 0, 338, 341, 3, 22, 11, 0, 339, 341, 5, 49, 0, 0, 340,
|
|
1793
|
-
338, 1, 0, 0, 0, 340, 339, 1, 0, 0, 0, 341, 343, 1, 0, 0, 0, 342, 344, 3, 14, 7, 0, 343, 342, 1,
|
|
1794
|
-
0, 0, 0, 343, 344, 1, 0, 0, 0, 344, 47, 1, 0, 0, 0, 55, 49, 54, 58, 66, 72, 74, 79, 84, 93, 100,
|
|
1795
|
-
108, 112, 115, 121, 126, 133, 137, 140, 144, 151, 153, 155, 163, 165, 167, 178, 184, 188,
|
|
1796
|
-
193, 200, 207, 210, 217, 223, 227, 231, 237, 246, 250, 255, 262, 269, 272, 278, 285, 291,
|
|
1797
|
-
295, 305, 311, 318, 328, 332, 335, 340, 343];
|
|
1491
|
+
1, 2, 5, 2, 79, 8, 2, 10, 2, 12, 2, 82, 9, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 3, 3, 90, 8, 3, 1, 4,
|
|
1492
|
+
1, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 3, 5, 99, 8, 5, 1, 6, 1, 6, 1, 6, 1, 6, 3, 6, 105, 8, 6, 1, 6, 3, 6,
|
|
1493
|
+
108, 8, 6, 1, 7, 1, 7, 1, 7, 1, 8, 4, 8, 114, 8, 8, 11, 8, 12, 8, 115, 1, 9, 1, 9, 1, 9, 1, 10, 1, 10,
|
|
1494
|
+
1, 10, 3, 10, 124, 8, 10, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 3, 11, 132, 8, 11, 1, 12, 1, 12,
|
|
1495
|
+
5, 12, 136, 8, 12, 10, 12, 12, 12, 139, 9, 12, 1, 12, 3, 12, 142, 8, 12, 1, 12, 5, 12, 145, 8, 12,
|
|
1496
|
+
10, 12, 12, 12, 148, 9, 12, 1, 12, 1, 12, 5, 12, 152, 8, 12, 10, 12, 12, 12, 155, 9, 12, 1, 12,
|
|
1497
|
+
1, 12, 5, 12, 159, 8, 12, 10, 12, 12, 12, 162, 9, 12, 3, 12, 164, 8, 12, 1, 13, 1, 13, 1, 13, 5,
|
|
1498
|
+
13, 169, 8, 13, 10, 13, 12, 13, 172, 9, 13, 1, 13, 5, 13, 175, 8, 13, 10, 13, 12, 13, 178, 9, 13,
|
|
1499
|
+
1, 13, 3, 13, 181, 8, 13, 1, 14, 1, 14, 1, 14, 5, 14, 186, 8, 14, 10, 14, 12, 14, 189, 9, 14, 1,
|
|
1500
|
+
14, 1, 14, 1, 15, 1, 15, 5, 15, 195, 8, 15, 10, 15, 12, 15, 198, 9, 15, 1, 15, 3, 15, 201, 8, 15,
|
|
1501
|
+
1, 15, 5, 15, 204, 8, 15, 10, 15, 12, 15, 207, 9, 15, 1, 15, 1, 15, 5, 15, 211, 8, 15, 10, 15, 12,
|
|
1502
|
+
15, 214, 9, 15, 1, 15, 1, 15, 5, 15, 218, 8, 15, 10, 15, 12, 15, 221, 9, 15, 3, 15, 223, 8, 15,
|
|
1503
|
+
1, 16, 1, 16, 5, 16, 227, 8, 16, 10, 16, 12, 16, 230, 9, 16, 1, 16, 1, 16, 5, 16, 234, 8, 16, 10,
|
|
1504
|
+
16, 12, 16, 237, 9, 16, 1, 16, 5, 16, 240, 8, 16, 10, 16, 12, 16, 243, 9, 16, 1, 16, 3, 16, 246,
|
|
1505
|
+
8, 16, 1, 17, 1, 17, 1, 18, 1, 18, 1, 19, 1, 19, 5, 19, 254, 8, 19, 10, 19, 12, 19, 257, 9, 19, 1,
|
|
1506
|
+
20, 5, 20, 260, 8, 20, 10, 20, 12, 20, 263, 9, 20, 1, 20, 1, 20, 5, 20, 267, 8, 20, 10, 20, 12,
|
|
1507
|
+
20, 270, 9, 20, 1, 20, 1, 20, 1, 21, 1, 21, 1, 22, 1, 22, 1, 23, 1, 23, 3, 23, 280, 8, 23, 1, 23,
|
|
1508
|
+
1, 23, 1, 23, 3, 23, 285, 8, 23, 1, 23, 3, 23, 288, 8, 23, 1, 23, 0, 0, 24, 0, 2, 4, 6, 8, 10, 12,
|
|
1509
|
+
14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 0, 1, 1, 0, 8, 9, 315, 0, 49,
|
|
1510
|
+
1, 0, 0, 0, 2, 74, 1, 0, 0, 0, 4, 76, 1, 0, 0, 0, 6, 89, 1, 0, 0, 0, 8, 91, 1, 0, 0, 0, 10, 98, 1, 0, 0,
|
|
1511
|
+
0, 12, 107, 1, 0, 0, 0, 14, 109, 1, 0, 0, 0, 16, 113, 1, 0, 0, 0, 18, 117, 1, 0, 0, 0, 20, 120, 1,
|
|
1512
|
+
0, 0, 0, 22, 131, 1, 0, 0, 0, 24, 163, 1, 0, 0, 0, 26, 165, 1, 0, 0, 0, 28, 182, 1, 0, 0, 0, 30, 222,
|
|
1513
|
+
1, 0, 0, 0, 32, 224, 1, 0, 0, 0, 34, 247, 1, 0, 0, 0, 36, 249, 1, 0, 0, 0, 38, 251, 1, 0, 0, 0, 40,
|
|
1514
|
+
261, 1, 0, 0, 0, 42, 273, 1, 0, 0, 0, 44, 275, 1, 0, 0, 0, 46, 279, 1, 0, 0, 0, 48, 50, 3, 2, 1, 0,
|
|
1515
|
+
49, 48, 1, 0, 0, 0, 49, 50, 1, 0, 0, 0, 50, 54, 1, 0, 0, 0, 51, 53, 3, 6, 3, 0, 52, 51, 1, 0, 0, 0, 53,
|
|
1516
|
+
56, 1, 0, 0, 0, 54, 52, 1, 0, 0, 0, 54, 55, 1, 0, 0, 0, 55, 58, 1, 0, 0, 0, 56, 54, 1, 0, 0, 0, 57, 59,
|
|
1517
|
+
3, 4, 2, 0, 58, 57, 1, 0, 0, 0, 58, 59, 1, 0, 0, 0, 59, 60, 1, 0, 0, 0, 60, 61, 5, 0, 0, 1, 61, 1, 1,
|
|
1518
|
+
0, 0, 0, 62, 66, 5, 1, 0, 0, 63, 65, 3, 16, 8, 0, 64, 63, 1, 0, 0, 0, 65, 68, 1, 0, 0, 0, 66, 64, 1,
|
|
1519
|
+
0, 0, 0, 66, 67, 1, 0, 0, 0, 67, 75, 1, 0, 0, 0, 68, 66, 1, 0, 0, 0, 69, 71, 3, 16, 8, 0, 70, 69, 1,
|
|
1520
|
+
0, 0, 0, 71, 72, 1, 0, 0, 0, 72, 70, 1, 0, 0, 0, 72, 73, 1, 0, 0, 0, 73, 75, 1, 0, 0, 0, 74, 62, 1, 0,
|
|
1521
|
+
0, 0, 74, 70, 1, 0, 0, 0, 75, 3, 1, 0, 0, 0, 76, 80, 5, 5, 0, 0, 77, 79, 3, 16, 8, 0, 78, 77, 1, 0, 0,
|
|
1522
|
+
0, 79, 82, 1, 0, 0, 0, 80, 78, 1, 0, 0, 0, 80, 81, 1, 0, 0, 0, 81, 5, 1, 0, 0, 0, 82, 80, 1, 0, 0, 0,
|
|
1523
|
+
83, 90, 3, 16, 8, 0, 84, 90, 5, 6, 0, 0, 85, 90, 3, 8, 4, 0, 86, 90, 3, 18, 9, 0, 87, 90, 3, 10, 5,
|
|
1524
|
+
0, 88, 90, 3, 46, 23, 0, 89, 83, 1, 0, 0, 0, 89, 84, 1, 0, 0, 0, 89, 85, 1, 0, 0, 0, 89, 86, 1, 0, 0,
|
|
1525
|
+
0, 89, 87, 1, 0, 0, 0, 89, 88, 1, 0, 0, 0, 90, 7, 1, 0, 0, 0, 91, 92, 5, 7, 0, 0, 92, 9, 1, 0, 0, 0, 93,
|
|
1526
|
+
99, 3, 12, 6, 0, 94, 99, 3, 14, 7, 0, 95, 96, 3, 44, 22, 0, 96, 97, 3, 16, 8, 0, 97, 99, 1, 0, 0, 0,
|
|
1527
|
+
98, 93, 1, 0, 0, 0, 98, 94, 1, 0, 0, 0, 98, 95, 1, 0, 0, 0, 99, 11, 1, 0, 0, 0, 100, 101, 5, 2, 0, 0,
|
|
1528
|
+
101, 108, 3, 16, 8, 0, 102, 104, 5, 3, 0, 0, 103, 105, 3, 38, 19, 0, 104, 103, 1, 0, 0, 0, 104,
|
|
1529
|
+
105, 1, 0, 0, 0, 105, 106, 1, 0, 0, 0, 106, 108, 3, 16, 8, 0, 107, 100, 1, 0, 0, 0, 107, 102, 1,
|
|
1530
|
+
0, 0, 0, 108, 13, 1, 0, 0, 0, 109, 110, 5, 4, 0, 0, 110, 111, 3, 16, 8, 0, 111, 15, 1, 0, 0, 0, 112,
|
|
1531
|
+
114, 5, 36, 0, 0, 113, 112, 1, 0, 0, 0, 114, 115, 1, 0, 0, 0, 115, 113, 1, 0, 0, 0, 115, 116, 1,
|
|
1532
|
+
0, 0, 0, 116, 17, 1, 0, 0, 0, 117, 118, 3, 20, 10, 0, 118, 119, 3, 16, 8, 0, 119, 19, 1, 0, 0, 0,
|
|
1533
|
+
120, 121, 5, 41, 0, 0, 121, 123, 5, 23, 0, 0, 122, 124, 3, 22, 11, 0, 123, 122, 1, 0, 0, 0, 123,
|
|
1534
|
+
124, 1, 0, 0, 0, 124, 21, 1, 0, 0, 0, 125, 132, 3, 36, 18, 0, 126, 132, 3, 38, 19, 0, 127, 132,
|
|
1535
|
+
3, 34, 17, 0, 128, 132, 3, 42, 21, 0, 129, 132, 3, 30, 15, 0, 130, 132, 3, 24, 12, 0, 131, 125,
|
|
1536
|
+
1, 0, 0, 0, 131, 126, 1, 0, 0, 0, 131, 127, 1, 0, 0, 0, 131, 128, 1, 0, 0, 0, 131, 129, 1, 0, 0, 0,
|
|
1537
|
+
131, 130, 1, 0, 0, 0, 132, 23, 1, 0, 0, 0, 133, 137, 5, 29, 0, 0, 134, 136, 5, 36, 0, 0, 135, 134,
|
|
1538
|
+
1, 0, 0, 0, 136, 139, 1, 0, 0, 0, 137, 135, 1, 0, 0, 0, 137, 138, 1, 0, 0, 0, 138, 141, 1, 0, 0, 0,
|
|
1539
|
+
139, 137, 1, 0, 0, 0, 140, 142, 3, 26, 13, 0, 141, 140, 1, 0, 0, 0, 141, 142, 1, 0, 0, 0, 142, 146,
|
|
1540
|
+
1, 0, 0, 0, 143, 145, 5, 36, 0, 0, 144, 143, 1, 0, 0, 0, 145, 148, 1, 0, 0, 0, 146, 144, 1, 0, 0,
|
|
1541
|
+
0, 146, 147, 1, 0, 0, 0, 147, 149, 1, 0, 0, 0, 148, 146, 1, 0, 0, 0, 149, 153, 5, 30, 0, 0, 150,
|
|
1542
|
+
152, 5, 36, 0, 0, 151, 150, 1, 0, 0, 0, 152, 155, 1, 0, 0, 0, 153, 151, 1, 0, 0, 0, 153, 154, 1,
|
|
1543
|
+
0, 0, 0, 154, 164, 1, 0, 0, 0, 155, 153, 1, 0, 0, 0, 156, 160, 5, 11, 0, 0, 157, 159, 5, 36, 0, 0,
|
|
1544
|
+
158, 157, 1, 0, 0, 0, 159, 162, 1, 0, 0, 0, 160, 158, 1, 0, 0, 0, 160, 161, 1, 0, 0, 0, 161, 164,
|
|
1545
|
+
1, 0, 0, 0, 162, 160, 1, 0, 0, 0, 163, 133, 1, 0, 0, 0, 163, 156, 1, 0, 0, 0, 164, 25, 1, 0, 0, 0,
|
|
1546
|
+
165, 176, 3, 28, 14, 0, 166, 170, 5, 25, 0, 0, 167, 169, 5, 36, 0, 0, 168, 167, 1, 0, 0, 0, 169,
|
|
1547
|
+
172, 1, 0, 0, 0, 170, 168, 1, 0, 0, 0, 170, 171, 1, 0, 0, 0, 171, 173, 1, 0, 0, 0, 172, 170, 1, 0,
|
|
1548
|
+
0, 0, 173, 175, 3, 28, 14, 0, 174, 166, 1, 0, 0, 0, 175, 178, 1, 0, 0, 0, 176, 174, 1, 0, 0, 0, 176,
|
|
1549
|
+
177, 1, 0, 0, 0, 177, 180, 1, 0, 0, 0, 178, 176, 1, 0, 0, 0, 179, 181, 5, 25, 0, 0, 180, 179, 1,
|
|
1550
|
+
0, 0, 0, 180, 181, 1, 0, 0, 0, 181, 27, 1, 0, 0, 0, 182, 183, 5, 41, 0, 0, 183, 187, 5, 26, 0, 0,
|
|
1551
|
+
184, 186, 5, 36, 0, 0, 185, 184, 1, 0, 0, 0, 186, 189, 1, 0, 0, 0, 187, 185, 1, 0, 0, 0, 187, 188,
|
|
1552
|
+
1, 0, 0, 0, 188, 190, 1, 0, 0, 0, 189, 187, 1, 0, 0, 0, 190, 191, 3, 22, 11, 0, 191, 29, 1, 0, 0,
|
|
1553
|
+
0, 192, 196, 5, 27, 0, 0, 193, 195, 5, 36, 0, 0, 194, 193, 1, 0, 0, 0, 195, 198, 1, 0, 0, 0, 196,
|
|
1554
|
+
194, 1, 0, 0, 0, 196, 197, 1, 0, 0, 0, 197, 200, 1, 0, 0, 0, 198, 196, 1, 0, 0, 0, 199, 201, 3, 32,
|
|
1555
|
+
16, 0, 200, 199, 1, 0, 0, 0, 200, 201, 1, 0, 0, 0, 201, 205, 1, 0, 0, 0, 202, 204, 5, 36, 0, 0, 203,
|
|
1556
|
+
202, 1, 0, 0, 0, 204, 207, 1, 0, 0, 0, 205, 203, 1, 0, 0, 0, 205, 206, 1, 0, 0, 0, 206, 208, 1, 0,
|
|
1557
|
+
0, 0, 207, 205, 1, 0, 0, 0, 208, 212, 5, 28, 0, 0, 209, 211, 5, 36, 0, 0, 210, 209, 1, 0, 0, 0, 211,
|
|
1558
|
+
214, 1, 0, 0, 0, 212, 210, 1, 0, 0, 0, 212, 213, 1, 0, 0, 0, 213, 223, 1, 0, 0, 0, 214, 212, 1, 0,
|
|
1559
|
+
0, 0, 215, 219, 5, 12, 0, 0, 216, 218, 5, 36, 0, 0, 217, 216, 1, 0, 0, 0, 218, 221, 1, 0, 0, 0, 219,
|
|
1560
|
+
217, 1, 0, 0, 0, 219, 220, 1, 0, 0, 0, 220, 223, 1, 0, 0, 0, 221, 219, 1, 0, 0, 0, 222, 192, 1, 0,
|
|
1561
|
+
0, 0, 222, 215, 1, 0, 0, 0, 223, 31, 1, 0, 0, 0, 224, 241, 3, 22, 11, 0, 225, 227, 5, 36, 0, 0, 226,
|
|
1562
|
+
225, 1, 0, 0, 0, 227, 230, 1, 0, 0, 0, 228, 226, 1, 0, 0, 0, 228, 229, 1, 0, 0, 0, 229, 231, 1, 0,
|
|
1563
|
+
0, 0, 230, 228, 1, 0, 0, 0, 231, 235, 5, 25, 0, 0, 232, 234, 5, 36, 0, 0, 233, 232, 1, 0, 0, 0, 234,
|
|
1564
|
+
237, 1, 0, 0, 0, 235, 233, 1, 0, 0, 0, 235, 236, 1, 0, 0, 0, 236, 238, 1, 0, 0, 0, 237, 235, 1, 0,
|
|
1565
|
+
0, 0, 238, 240, 3, 22, 11, 0, 239, 228, 1, 0, 0, 0, 240, 243, 1, 0, 0, 0, 241, 239, 1, 0, 0, 0, 241,
|
|
1566
|
+
242, 1, 0, 0, 0, 242, 245, 1, 0, 0, 0, 243, 241, 1, 0, 0, 0, 244, 246, 5, 25, 0, 0, 245, 244, 1,
|
|
1567
|
+
0, 0, 0, 245, 246, 1, 0, 0, 0, 246, 33, 1, 0, 0, 0, 247, 248, 5, 18, 0, 0, 248, 35, 1, 0, 0, 0, 249,
|
|
1568
|
+
250, 5, 10, 0, 0, 250, 37, 1, 0, 0, 0, 251, 255, 5, 13, 0, 0, 252, 254, 3, 40, 20, 0, 253, 252,
|
|
1569
|
+
1, 0, 0, 0, 254, 257, 1, 0, 0, 0, 255, 253, 1, 0, 0, 0, 255, 256, 1, 0, 0, 0, 256, 39, 1, 0, 0, 0,
|
|
1570
|
+
257, 255, 1, 0, 0, 0, 258, 260, 5, 36, 0, 0, 259, 258, 1, 0, 0, 0, 260, 263, 1, 0, 0, 0, 261, 259,
|
|
1571
|
+
1, 0, 0, 0, 261, 262, 1, 0, 0, 0, 262, 264, 1, 0, 0, 0, 263, 261, 1, 0, 0, 0, 264, 268, 5, 31, 0,
|
|
1572
|
+
0, 265, 267, 5, 36, 0, 0, 266, 265, 1, 0, 0, 0, 267, 270, 1, 0, 0, 0, 268, 266, 1, 0, 0, 0, 268,
|
|
1573
|
+
269, 1, 0, 0, 0, 269, 271, 1, 0, 0, 0, 270, 268, 1, 0, 0, 0, 271, 272, 5, 13, 0, 0, 272, 41, 1, 0,
|
|
1574
|
+
0, 0, 273, 274, 7, 0, 0, 0, 274, 43, 1, 0, 0, 0, 275, 276, 5, 44, 0, 0, 276, 45, 1, 0, 0, 0, 277,
|
|
1575
|
+
280, 5, 43, 0, 0, 278, 280, 3, 22, 11, 0, 279, 277, 1, 0, 0, 0, 279, 278, 1, 0, 0, 0, 279, 280,
|
|
1576
|
+
1, 0, 0, 0, 280, 281, 1, 0, 0, 0, 281, 284, 5, 23, 0, 0, 282, 285, 3, 22, 11, 0, 283, 285, 5, 43,
|
|
1577
|
+
0, 0, 284, 282, 1, 0, 0, 0, 284, 283, 1, 0, 0, 0, 285, 287, 1, 0, 0, 0, 286, 288, 3, 16, 8, 0, 287,
|
|
1578
|
+
286, 1, 0, 0, 0, 287, 288, 1, 0, 0, 0, 288, 47, 1, 0, 0, 0, 40, 49, 54, 58, 66, 72, 74, 80, 89, 98,
|
|
1579
|
+
104, 107, 115, 123, 131, 137, 141, 146, 153, 160, 163, 170, 176, 180, 187, 196, 200, 205,
|
|
1580
|
+
212, 219, 222, 228, 235, 241, 245, 255, 261, 268, 279, 284, 287];
|
|
1798
1581
|
YiniParser.DecisionsToDFA = YiniParser._ATN.decisionToState.map((ds, index) => new antlr4_1.DFA(ds, index));
|
|
1799
1582
|
exports.default = YiniParser;
|
|
1800
1583
|
class YiniContext extends antlr4_1.ParserRuleContext {
|
|
@@ -1867,17 +1650,11 @@ class Terminal_stmtContext extends antlr4_1.ParserRuleContext {
|
|
|
1867
1650
|
TERMINAL_TOKEN() {
|
|
1868
1651
|
return this.getToken(YiniParser.TERMINAL_TOKEN, 0);
|
|
1869
1652
|
}
|
|
1870
|
-
|
|
1871
|
-
return this.
|
|
1872
|
-
}
|
|
1873
|
-
INLINE_COMMENT() {
|
|
1874
|
-
return this.getToken(YiniParser.INLINE_COMMENT, 0);
|
|
1875
|
-
}
|
|
1876
|
-
NL_list() {
|
|
1877
|
-
return this.getTokens(YiniParser.NL);
|
|
1653
|
+
eol_list() {
|
|
1654
|
+
return this.getTypedRuleContexts(EolContext);
|
|
1878
1655
|
}
|
|
1879
|
-
|
|
1880
|
-
return this.
|
|
1656
|
+
eol(i) {
|
|
1657
|
+
return this.getTypedRuleContext(EolContext, i);
|
|
1881
1658
|
}
|
|
1882
1659
|
get ruleIndex() {
|
|
1883
1660
|
return YiniParser.RULE_terminal_stmt;
|
|
@@ -1904,12 +1681,12 @@ class StmtContext extends antlr4_1.ParserRuleContext {
|
|
|
1904
1681
|
SECTION_HEAD() {
|
|
1905
1682
|
return this.getToken(YiniParser.SECTION_HEAD, 0);
|
|
1906
1683
|
}
|
|
1684
|
+
invalid_section_stmt() {
|
|
1685
|
+
return this.getTypedRuleContext(Invalid_section_stmtContext, 0);
|
|
1686
|
+
}
|
|
1907
1687
|
assignment() {
|
|
1908
1688
|
return this.getTypedRuleContext(AssignmentContext, 0);
|
|
1909
1689
|
}
|
|
1910
|
-
colon_list_decl() {
|
|
1911
|
-
return this.getTypedRuleContext(Colon_list_declContext, 0);
|
|
1912
|
-
}
|
|
1913
1690
|
meta_stmt() {
|
|
1914
1691
|
return this.getTypedRuleContext(Meta_stmtContext, 0);
|
|
1915
1692
|
}
|
|
@@ -1930,6 +1707,28 @@ class StmtContext extends antlr4_1.ParserRuleContext {
|
|
|
1930
1707
|
}
|
|
1931
1708
|
}
|
|
1932
1709
|
exports.StmtContext = StmtContext;
|
|
1710
|
+
class Invalid_section_stmtContext extends antlr4_1.ParserRuleContext {
|
|
1711
|
+
constructor(parser, parent, invokingState) {
|
|
1712
|
+
super(parent, invokingState);
|
|
1713
|
+
this.parser = parser;
|
|
1714
|
+
}
|
|
1715
|
+
INVALID_SECTION_HEAD() {
|
|
1716
|
+
return this.getToken(YiniParser.INVALID_SECTION_HEAD, 0);
|
|
1717
|
+
}
|
|
1718
|
+
get ruleIndex() {
|
|
1719
|
+
return YiniParser.RULE_invalid_section_stmt;
|
|
1720
|
+
}
|
|
1721
|
+
// @Override
|
|
1722
|
+
accept(visitor) {
|
|
1723
|
+
if (visitor.visitInvalid_section_stmt) {
|
|
1724
|
+
return visitor.visitInvalid_section_stmt(this);
|
|
1725
|
+
}
|
|
1726
|
+
else {
|
|
1727
|
+
return visitor.visitChildren(this);
|
|
1728
|
+
}
|
|
1729
|
+
}
|
|
1730
|
+
}
|
|
1731
|
+
exports.Invalid_section_stmtContext = Invalid_section_stmtContext;
|
|
1933
1732
|
class Meta_stmtContext extends antlr4_1.ParserRuleContext {
|
|
1934
1733
|
constructor(parser, parent, invokingState) {
|
|
1935
1734
|
super(parent, invokingState);
|
|
@@ -1975,12 +1774,6 @@ class DirectiveContext extends antlr4_1.ParserRuleContext {
|
|
|
1975
1774
|
INCLUDE_TOKEN() {
|
|
1976
1775
|
return this.getToken(YiniParser.INCLUDE_TOKEN, 0);
|
|
1977
1776
|
}
|
|
1978
|
-
WS_list() {
|
|
1979
|
-
return this.getTokens(YiniParser.WS);
|
|
1980
|
-
}
|
|
1981
|
-
WS(i) {
|
|
1982
|
-
return this.getToken(YiniParser.WS, i);
|
|
1983
|
-
}
|
|
1984
1777
|
string_literal() {
|
|
1985
1778
|
return this.getTypedRuleContext(String_literalContext, 0);
|
|
1986
1779
|
}
|
|
@@ -2028,9 +1821,6 @@ class EolContext extends antlr4_1.ParserRuleContext {
|
|
|
2028
1821
|
super(parent, invokingState);
|
|
2029
1822
|
this.parser = parser;
|
|
2030
1823
|
}
|
|
2031
|
-
INLINE_COMMENT() {
|
|
2032
|
-
return this.getToken(YiniParser.INLINE_COMMENT, 0);
|
|
2033
|
-
}
|
|
2034
1824
|
NL_list() {
|
|
2035
1825
|
return this.getTokens(YiniParser.NL);
|
|
2036
1826
|
}
|
|
@@ -2087,12 +1877,6 @@ class MemberContext extends antlr4_1.ParserRuleContext {
|
|
|
2087
1877
|
EQ() {
|
|
2088
1878
|
return this.getToken(YiniParser.EQ, 0);
|
|
2089
1879
|
}
|
|
2090
|
-
WS_list() {
|
|
2091
|
-
return this.getTokens(YiniParser.WS);
|
|
2092
|
-
}
|
|
2093
|
-
WS(i) {
|
|
2094
|
-
return this.getToken(YiniParser.WS, i);
|
|
2095
|
-
}
|
|
2096
1880
|
value() {
|
|
2097
1881
|
return this.getTypedRuleContext(ValueContext, 0);
|
|
2098
1882
|
}
|
|
@@ -2110,46 +1894,6 @@ class MemberContext extends antlr4_1.ParserRuleContext {
|
|
|
2110
1894
|
}
|
|
2111
1895
|
}
|
|
2112
1896
|
exports.MemberContext = MemberContext;
|
|
2113
|
-
class Colon_list_declContext extends antlr4_1.ParserRuleContext {
|
|
2114
|
-
constructor(parser, parent, invokingState) {
|
|
2115
|
-
super(parent, invokingState);
|
|
2116
|
-
this.parser = parser;
|
|
2117
|
-
}
|
|
2118
|
-
KEY() {
|
|
2119
|
-
return this.getToken(YiniParser.KEY, 0);
|
|
2120
|
-
}
|
|
2121
|
-
COLON() {
|
|
2122
|
-
return this.getToken(YiniParser.COLON, 0);
|
|
2123
|
-
}
|
|
2124
|
-
elements() {
|
|
2125
|
-
return this.getTypedRuleContext(ElementsContext, 0);
|
|
2126
|
-
}
|
|
2127
|
-
eol_list() {
|
|
2128
|
-
return this.getTypedRuleContexts(EolContext);
|
|
2129
|
-
}
|
|
2130
|
-
eol(i) {
|
|
2131
|
-
return this.getTypedRuleContext(EolContext, i);
|
|
2132
|
-
}
|
|
2133
|
-
WS_list() {
|
|
2134
|
-
return this.getTokens(YiniParser.WS);
|
|
2135
|
-
}
|
|
2136
|
-
WS(i) {
|
|
2137
|
-
return this.getToken(YiniParser.WS, i);
|
|
2138
|
-
}
|
|
2139
|
-
get ruleIndex() {
|
|
2140
|
-
return YiniParser.RULE_colon_list_decl;
|
|
2141
|
-
}
|
|
2142
|
-
// @Override
|
|
2143
|
-
accept(visitor) {
|
|
2144
|
-
if (visitor.visitColon_list_decl) {
|
|
2145
|
-
return visitor.visitColon_list_decl(this);
|
|
2146
|
-
}
|
|
2147
|
-
else {
|
|
2148
|
-
return visitor.visitChildren(this);
|
|
2149
|
-
}
|
|
2150
|
-
}
|
|
2151
|
-
}
|
|
2152
|
-
exports.Colon_list_declContext = Colon_list_declContext;
|
|
2153
1897
|
class ValueContext extends antlr4_1.ParserRuleContext {
|
|
2154
1898
|
constructor(parser, parent, invokingState) {
|
|
2155
1899
|
super(parent, invokingState);
|
|
@@ -2275,9 +2019,6 @@ class Object_memberContext extends antlr4_1.ParserRuleContext {
|
|
|
2275
2019
|
value() {
|
|
2276
2020
|
return this.getTypedRuleContext(ValueContext, 0);
|
|
2277
2021
|
}
|
|
2278
|
-
WS() {
|
|
2279
|
-
return this.getToken(YiniParser.WS, 0);
|
|
2280
|
-
}
|
|
2281
2022
|
NL_list() {
|
|
2282
2023
|
return this.getTokens(YiniParser.NL);
|
|
2283
2024
|
}
|
|
@@ -2542,12 +2283,6 @@ class Bad_memberContext extends antlr4_1.ParserRuleContext {
|
|
|
2542
2283
|
REST(i) {
|
|
2543
2284
|
return this.getToken(YiniParser.REST, i);
|
|
2544
2285
|
}
|
|
2545
|
-
WS_list() {
|
|
2546
|
-
return this.getTokens(YiniParser.WS);
|
|
2547
|
-
}
|
|
2548
|
-
WS(i) {
|
|
2549
|
-
return this.getToken(YiniParser.WS, i);
|
|
2550
|
-
}
|
|
2551
2286
|
eol() {
|
|
2552
2287
|
return this.getTypedRuleContext(EolContext, 0);
|
|
2553
2288
|
}
|