yini-parser 1.0.0-alpha.7x → 1.0.1-beta
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 +11 -1
- package/README.md +15 -1
- package/dist/YINI.js +17 -19
- package/dist/core/ErrorDataHandler.js +15 -15
- package/dist/core/YINIVisitor.d.ts +7 -1
- package/dist/core/YINIVisitor.js +184 -175
- package/dist/core/objectBuilder.js +39 -39
- package/dist/grammar/YiniLexer.d.ts +1 -0
- package/dist/grammar/YiniLexer.js +236 -228
- package/dist/grammar/YiniParser.d.ts +18 -1
- package/dist/grammar/YiniParser.js +480 -305
- package/dist/grammar/YiniParserVisitor.d.ts +7 -0
- package/dist/grammar/YiniParserVisitor.js +1 -1
- package/dist/index.js +24 -44
- package/dist/parseEntry.js +47 -27
- package/dist/parsers/extractHeaderParts.js +14 -14
- package/dist/parsers/extractSignificantYiniLine.js +18 -18
- package/dist/parsers/parseBoolean.js +2 -2
- package/dist/parsers/parseNull.js +2 -2
- package/dist/parsers/parseNumber.js +8 -8
- package/dist/parsers/parseSectionHeader.js +19 -19
- package/dist/parsers/parseString.js +9 -9
- package/dist/utils/string.js +3 -3
- package/dist/yiniHelpers.js +3 -3
- package/examples/basic-output.js +15 -0
- package/examples/nested-output.js +18 -0
- package/package.json +5 -1
- /package/dist/utils/{system.d.ts → print.d.ts} +0 -0
- /package/dist/utils/{system.js → print.js} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Generated from grammar/v1.0.0-
|
|
2
|
+
// Generated from grammar/v1.0.0-rc.2/YiniParser.g4 by ANTLR 4.13.2
|
|
3
3
|
// noinspection ES6UnusedImports,JSUnusedGlobalSymbols,JSUnusedLocalSymbols
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.Empty_listContext = exports.Empty_objectContext = exports.Boolean_literalContext = exports.String_concatContext = exports.String_literalContext = exports.Null_literalContext = exports.Number_literalContext = exports.ElementContext = exports.ElementsContext = exports.List_in_bracketsContext = exports.ListContext = exports.ObjectMemberContext = exports.ObjectMemberListContext = exports.Object_literalContext = exports.ValueContext = exports.Member_colon_listContext = exports.MemberContext = exports.Section_membersContext = exports.Terminal_lineContext = exports.SectionContext = exports.YiniContext = void 0;
|
|
5
|
+
exports.Bad_memberContext = exports.Empty_listContext = exports.Empty_objectContext = exports.Boolean_literalContext = exports.String_concatContext = exports.String_literalContext = exports.Null_literalContext = exports.Number_literalContext = exports.ElementContext = exports.ElementsContext = exports.List_in_bracketsContext = exports.ListContext = exports.ObjectMemberContext = exports.ObjectMemberListContext = exports.Object_literalContext = exports.ValueContext = exports.Member_colon_listContext = exports.MemberContext = exports.Section_membersContext = exports.Terminal_lineContext = exports.SectionContext = 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"; }
|
|
@@ -26,127 +26,127 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
26
26
|
let _alt;
|
|
27
27
|
this.enterOuterAlt(localctx, 1);
|
|
28
28
|
{
|
|
29
|
-
this.state =
|
|
29
|
+
this.state = 45;
|
|
30
30
|
this._errHandler.sync(this);
|
|
31
31
|
_la = this._input.LA(1);
|
|
32
32
|
if (_la === 27) {
|
|
33
33
|
{
|
|
34
|
-
this.state =
|
|
34
|
+
this.state = 44;
|
|
35
35
|
this.match(YiniParser.SHEBANG);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
this.state =
|
|
38
|
+
this.state = 50;
|
|
39
39
|
this._errHandler.sync(this);
|
|
40
40
|
_alt = this._interp.adaptivePredict(this._input, 1, this._ctx);
|
|
41
41
|
while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
|
|
42
42
|
if (_alt === 1) {
|
|
43
43
|
{
|
|
44
44
|
{
|
|
45
|
-
this.state =
|
|
45
|
+
this.state = 47;
|
|
46
46
|
this.match(YiniParser.INLINE_COMMENT);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
this.state =
|
|
50
|
+
this.state = 52;
|
|
51
51
|
this._errHandler.sync(this);
|
|
52
52
|
_alt = this._interp.adaptivePredict(this._input, 1, this._ctx);
|
|
53
53
|
}
|
|
54
|
-
this.state =
|
|
54
|
+
this.state = 56;
|
|
55
55
|
this._errHandler.sync(this);
|
|
56
56
|
_alt = this._interp.adaptivePredict(this._input, 2, this._ctx);
|
|
57
57
|
while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
|
|
58
58
|
if (_alt === 1) {
|
|
59
59
|
{
|
|
60
60
|
{
|
|
61
|
-
this.state =
|
|
61
|
+
this.state = 53;
|
|
62
62
|
this.match(YiniParser.NL);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
this.state =
|
|
66
|
+
this.state = 58;
|
|
67
67
|
this._errHandler.sync(this);
|
|
68
68
|
_alt = this._interp.adaptivePredict(this._input, 2, this._ctx);
|
|
69
69
|
}
|
|
70
|
-
this.state =
|
|
70
|
+
this.state = 60;
|
|
71
71
|
this._errHandler.sync(this);
|
|
72
72
|
_la = this._input.LA(1);
|
|
73
73
|
if (_la === 1) {
|
|
74
74
|
{
|
|
75
|
-
this.state =
|
|
75
|
+
this.state = 59;
|
|
76
76
|
this.match(YiniParser.YINI_MARKER);
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
this.state =
|
|
79
|
+
this.state = 65;
|
|
80
80
|
this._errHandler.sync(this);
|
|
81
81
|
_la = this._input.LA(1);
|
|
82
82
|
while (_la === 45) {
|
|
83
83
|
{
|
|
84
84
|
{
|
|
85
|
-
this.state =
|
|
85
|
+
this.state = 62;
|
|
86
86
|
this.match(YiniParser.INLINE_COMMENT);
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
this.state =
|
|
89
|
+
this.state = 67;
|
|
90
90
|
this._errHandler.sync(this);
|
|
91
91
|
_la = this._input.LA(1);
|
|
92
92
|
}
|
|
93
|
-
this.state =
|
|
93
|
+
this.state = 71;
|
|
94
94
|
this._errHandler.sync(this);
|
|
95
95
|
_la = this._input.LA(1);
|
|
96
96
|
while (_la === 39) {
|
|
97
97
|
{
|
|
98
98
|
{
|
|
99
|
-
this.state =
|
|
99
|
+
this.state = 68;
|
|
100
100
|
this.match(YiniParser.NL);
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
this.state =
|
|
103
|
+
this.state = 73;
|
|
104
104
|
this._errHandler.sync(this);
|
|
105
105
|
_la = this._input.LA(1);
|
|
106
106
|
}
|
|
107
|
-
this.state =
|
|
107
|
+
this.state = 75;
|
|
108
108
|
this._errHandler.sync(this);
|
|
109
109
|
_la = this._input.LA(1);
|
|
110
110
|
do {
|
|
111
111
|
{
|
|
112
112
|
{
|
|
113
|
-
this.state =
|
|
113
|
+
this.state = 74;
|
|
114
114
|
this.section();
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
this.state =
|
|
117
|
+
this.state = 77;
|
|
118
118
|
this._errHandler.sync(this);
|
|
119
119
|
_la = this._input.LA(1);
|
|
120
|
-
} while (_la ===
|
|
121
|
-
this.state =
|
|
120
|
+
} while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 935371268) !== 0) || ((((_la - 32)) & ~0x1F) === 0 && ((1 << (_la - 32)) & 33281) !== 0));
|
|
121
|
+
this.state = 82;
|
|
122
122
|
this._errHandler.sync(this);
|
|
123
123
|
_la = this._input.LA(1);
|
|
124
124
|
while (_la === 39) {
|
|
125
125
|
{
|
|
126
126
|
{
|
|
127
|
-
this.state =
|
|
127
|
+
this.state = 79;
|
|
128
128
|
this.match(YiniParser.NL);
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
|
-
this.state =
|
|
131
|
+
this.state = 84;
|
|
132
132
|
this._errHandler.sync(this);
|
|
133
133
|
_la = this._input.LA(1);
|
|
134
134
|
}
|
|
135
|
-
this.state =
|
|
135
|
+
this.state = 86;
|
|
136
136
|
this._errHandler.sync(this);
|
|
137
137
|
_la = this._input.LA(1);
|
|
138
138
|
if (_la === 3) {
|
|
139
139
|
{
|
|
140
|
-
this.state =
|
|
140
|
+
this.state = 85;
|
|
141
141
|
this.terminal_line();
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
|
-
this.state =
|
|
144
|
+
this.state = 89;
|
|
145
145
|
this._errHandler.sync(this);
|
|
146
146
|
switch (this._interp.adaptivePredict(this._input, 9, this._ctx)) {
|
|
147
147
|
case 1:
|
|
148
148
|
{
|
|
149
|
-
this.state =
|
|
149
|
+
this.state = 88;
|
|
150
150
|
this.match(YiniParser.EOF);
|
|
151
151
|
}
|
|
152
152
|
break;
|
|
@@ -175,17 +175,17 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
175
175
|
try {
|
|
176
176
|
this.enterOuterAlt(localctx, 1);
|
|
177
177
|
{
|
|
178
|
-
this.state =
|
|
178
|
+
this.state = 92;
|
|
179
179
|
this._errHandler.sync(this);
|
|
180
180
|
switch (this._interp.adaptivePredict(this._input, 10, this._ctx)) {
|
|
181
181
|
case 1:
|
|
182
182
|
{
|
|
183
|
-
this.state =
|
|
183
|
+
this.state = 91;
|
|
184
184
|
this.match(YiniParser.SECTION_HEAD);
|
|
185
185
|
}
|
|
186
186
|
break;
|
|
187
187
|
}
|
|
188
|
-
this.state =
|
|
188
|
+
this.state = 94;
|
|
189
189
|
this.section_members();
|
|
190
190
|
}
|
|
191
191
|
}
|
|
@@ -212,24 +212,24 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
212
212
|
try {
|
|
213
213
|
this.enterOuterAlt(localctx, 1);
|
|
214
214
|
{
|
|
215
|
-
this.state =
|
|
215
|
+
this.state = 96;
|
|
216
216
|
this.match(YiniParser.TERMINAL_TOKEN);
|
|
217
|
-
this.state =
|
|
217
|
+
this.state = 111;
|
|
218
218
|
this._errHandler.sync(this);
|
|
219
219
|
switch (this._interp.adaptivePredict(this._input, 14, this._ctx)) {
|
|
220
220
|
case 1:
|
|
221
221
|
{
|
|
222
|
-
this.state =
|
|
222
|
+
this.state = 98;
|
|
223
223
|
this._errHandler.sync(this);
|
|
224
224
|
_la = this._input.LA(1);
|
|
225
225
|
do {
|
|
226
226
|
{
|
|
227
227
|
{
|
|
228
|
-
this.state =
|
|
228
|
+
this.state = 97;
|
|
229
229
|
this.match(YiniParser.NL);
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
|
-
this.state =
|
|
232
|
+
this.state = 100;
|
|
233
233
|
this._errHandler.sync(this);
|
|
234
234
|
_la = this._input.LA(1);
|
|
235
235
|
} while (_la === 39);
|
|
@@ -237,26 +237,26 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
237
237
|
break;
|
|
238
238
|
case 2:
|
|
239
239
|
{
|
|
240
|
-
this.state =
|
|
240
|
+
this.state = 103;
|
|
241
241
|
this._errHandler.sync(this);
|
|
242
242
|
_la = this._input.LA(1);
|
|
243
243
|
if (_la === 45) {
|
|
244
244
|
{
|
|
245
|
-
this.state =
|
|
245
|
+
this.state = 102;
|
|
246
246
|
this.match(YiniParser.INLINE_COMMENT);
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
|
-
this.state =
|
|
249
|
+
this.state = 108;
|
|
250
250
|
this._errHandler.sync(this);
|
|
251
251
|
_la = this._input.LA(1);
|
|
252
252
|
while (_la === 39) {
|
|
253
253
|
{
|
|
254
254
|
{
|
|
255
|
-
this.state =
|
|
255
|
+
this.state = 105;
|
|
256
256
|
this.match(YiniParser.NL);
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
|
-
this.state =
|
|
259
|
+
this.state = 110;
|
|
260
260
|
this._errHandler.sync(this);
|
|
261
261
|
_la = this._input.LA(1);
|
|
262
262
|
}
|
|
@@ -288,7 +288,7 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
288
288
|
let _alt;
|
|
289
289
|
this.enterOuterAlt(localctx, 1);
|
|
290
290
|
{
|
|
291
|
-
this.state =
|
|
291
|
+
this.state = 114;
|
|
292
292
|
this._errHandler.sync(this);
|
|
293
293
|
_alt = 1;
|
|
294
294
|
do {
|
|
@@ -296,7 +296,7 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
296
296
|
case 1:
|
|
297
297
|
{
|
|
298
298
|
{
|
|
299
|
-
this.state =
|
|
299
|
+
this.state = 113;
|
|
300
300
|
this.member();
|
|
301
301
|
}
|
|
302
302
|
}
|
|
@@ -304,7 +304,7 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
304
304
|
default:
|
|
305
305
|
throw new antlr4_1.NoViableAltException(this);
|
|
306
306
|
}
|
|
307
|
-
this.state =
|
|
307
|
+
this.state = 116;
|
|
308
308
|
this._errHandler.sync(this);
|
|
309
309
|
_alt = this._interp.adaptivePredict(this._input, 15, this._ctx);
|
|
310
310
|
} while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER);
|
|
@@ -332,44 +332,44 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
332
332
|
let _la;
|
|
333
333
|
try {
|
|
334
334
|
let _alt;
|
|
335
|
-
this.state =
|
|
335
|
+
this.state = 140;
|
|
336
336
|
this._errHandler.sync(this);
|
|
337
337
|
switch (this._interp.adaptivePredict(this._input, 21, this._ctx)) {
|
|
338
338
|
case 1:
|
|
339
339
|
this.enterOuterAlt(localctx, 1);
|
|
340
340
|
{
|
|
341
|
-
this.state = 116;
|
|
342
|
-
this.match(YiniParser.KEY);
|
|
343
341
|
this.state = 118;
|
|
342
|
+
this.match(YiniParser.KEY);
|
|
343
|
+
this.state = 120;
|
|
344
344
|
this._errHandler.sync(this);
|
|
345
345
|
_la = this._input.LA(1);
|
|
346
346
|
if (_la === 41) {
|
|
347
347
|
{
|
|
348
|
-
this.state =
|
|
348
|
+
this.state = 119;
|
|
349
349
|
this.match(YiniParser.WS);
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
|
-
this.state = 120;
|
|
353
|
-
this.match(YiniParser.EQ);
|
|
354
352
|
this.state = 122;
|
|
353
|
+
this.match(YiniParser.EQ);
|
|
354
|
+
this.state = 124;
|
|
355
355
|
this._errHandler.sync(this);
|
|
356
356
|
_la = this._input.LA(1);
|
|
357
357
|
if (_la === 41) {
|
|
358
358
|
{
|
|
359
|
-
this.state =
|
|
359
|
+
this.state = 123;
|
|
360
360
|
this.match(YiniParser.WS);
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
|
-
this.state =
|
|
363
|
+
this.state = 127;
|
|
364
364
|
this._errHandler.sync(this);
|
|
365
365
|
_la = this._input.LA(1);
|
|
366
366
|
if (((((_la - 13)) & ~0x1F) === 0 && ((1 << (_la - 13)) & 572933) !== 0)) {
|
|
367
367
|
{
|
|
368
|
-
this.state =
|
|
368
|
+
this.state = 126;
|
|
369
369
|
this.value();
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
|
-
this.state =
|
|
372
|
+
this.state = 130;
|
|
373
373
|
this._errHandler.sync(this);
|
|
374
374
|
_alt = 1;
|
|
375
375
|
do {
|
|
@@ -377,7 +377,7 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
377
377
|
case 1:
|
|
378
378
|
{
|
|
379
379
|
{
|
|
380
|
-
this.state =
|
|
380
|
+
this.state = 129;
|
|
381
381
|
this.match(YiniParser.NL);
|
|
382
382
|
}
|
|
383
383
|
}
|
|
@@ -385,7 +385,7 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
385
385
|
default:
|
|
386
386
|
throw new antlr4_1.NoViableAltException(this);
|
|
387
387
|
}
|
|
388
|
-
this.state =
|
|
388
|
+
this.state = 132;
|
|
389
389
|
this._errHandler.sync(this);
|
|
390
390
|
_alt = this._interp.adaptivePredict(this._input, 19, this._ctx);
|
|
391
391
|
} while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER);
|
|
@@ -394,27 +394,34 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
394
394
|
case 2:
|
|
395
395
|
this.enterOuterAlt(localctx, 2);
|
|
396
396
|
{
|
|
397
|
-
this.state =
|
|
397
|
+
this.state = 134;
|
|
398
398
|
this.member_colon_list();
|
|
399
399
|
}
|
|
400
400
|
break;
|
|
401
401
|
case 3:
|
|
402
402
|
this.enterOuterAlt(localctx, 3);
|
|
403
403
|
{
|
|
404
|
-
this.state = 133;
|
|
405
|
-
this.match(YiniParser.SECTION_HEAD);
|
|
406
404
|
this.state = 135;
|
|
405
|
+
this.match(YiniParser.SECTION_HEAD);
|
|
406
|
+
this.state = 137;
|
|
407
407
|
this._errHandler.sync(this);
|
|
408
408
|
switch (this._interp.adaptivePredict(this._input, 20, this._ctx)) {
|
|
409
409
|
case 1:
|
|
410
410
|
{
|
|
411
|
-
this.state =
|
|
411
|
+
this.state = 136;
|
|
412
412
|
this.section_members();
|
|
413
413
|
}
|
|
414
414
|
break;
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
417
|
break;
|
|
418
|
+
case 4:
|
|
419
|
+
this.enterOuterAlt(localctx, 4);
|
|
420
|
+
{
|
|
421
|
+
this.state = 139;
|
|
422
|
+
this.bad_member();
|
|
423
|
+
}
|
|
424
|
+
break;
|
|
418
425
|
}
|
|
419
426
|
}
|
|
420
427
|
catch (re) {
|
|
@@ -441,30 +448,30 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
441
448
|
let _alt;
|
|
442
449
|
this.enterOuterAlt(localctx, 1);
|
|
443
450
|
{
|
|
444
|
-
this.state =
|
|
451
|
+
this.state = 142;
|
|
445
452
|
this.match(YiniParser.KEY);
|
|
446
|
-
this.state =
|
|
453
|
+
this.state = 143;
|
|
447
454
|
this.match(YiniParser.COLON);
|
|
448
|
-
this.state =
|
|
455
|
+
this.state = 145;
|
|
449
456
|
this._errHandler.sync(this);
|
|
450
457
|
_la = this._input.LA(1);
|
|
451
458
|
if (_la === 41) {
|
|
452
459
|
{
|
|
453
|
-
this.state =
|
|
460
|
+
this.state = 144;
|
|
454
461
|
this.match(YiniParser.WS);
|
|
455
462
|
}
|
|
456
463
|
}
|
|
457
|
-
this.state =
|
|
464
|
+
this.state = 148;
|
|
458
465
|
this._errHandler.sync(this);
|
|
459
466
|
switch (this._interp.adaptivePredict(this._input, 23, this._ctx)) {
|
|
460
467
|
case 1:
|
|
461
468
|
{
|
|
462
|
-
this.state =
|
|
469
|
+
this.state = 147;
|
|
463
470
|
this.elements();
|
|
464
471
|
}
|
|
465
472
|
break;
|
|
466
473
|
}
|
|
467
|
-
this.state =
|
|
474
|
+
this.state = 151;
|
|
468
475
|
this._errHandler.sync(this);
|
|
469
476
|
_alt = 1;
|
|
470
477
|
do {
|
|
@@ -472,7 +479,7 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
472
479
|
case 1:
|
|
473
480
|
{
|
|
474
481
|
{
|
|
475
|
-
this.state =
|
|
482
|
+
this.state = 150;
|
|
476
483
|
this.match(YiniParser.NL);
|
|
477
484
|
}
|
|
478
485
|
}
|
|
@@ -480,7 +487,7 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
480
487
|
default:
|
|
481
488
|
throw new antlr4_1.NoViableAltException(this);
|
|
482
489
|
}
|
|
483
|
-
this.state =
|
|
490
|
+
this.state = 153;
|
|
484
491
|
this._errHandler.sync(this);
|
|
485
492
|
_alt = this._interp.adaptivePredict(this._input, 24, this._ctx);
|
|
486
493
|
} while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER);
|
|
@@ -506,27 +513,27 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
506
513
|
let localctx = new ValueContext(this, this._ctx, this.state);
|
|
507
514
|
this.enterRule(localctx, 12, YiniParser.RULE_value);
|
|
508
515
|
try {
|
|
509
|
-
this.state =
|
|
516
|
+
this.state = 161;
|
|
510
517
|
this._errHandler.sync(this);
|
|
511
518
|
switch (this._input.LA(1)) {
|
|
512
519
|
case 24:
|
|
513
520
|
this.enterOuterAlt(localctx, 1);
|
|
514
521
|
{
|
|
515
|
-
this.state =
|
|
522
|
+
this.state = 155;
|
|
516
523
|
this.null_literal();
|
|
517
524
|
}
|
|
518
525
|
break;
|
|
519
526
|
case 32:
|
|
520
527
|
this.enterOuterAlt(localctx, 2);
|
|
521
528
|
{
|
|
522
|
-
this.state =
|
|
529
|
+
this.state = 156;
|
|
523
530
|
this.string_literal();
|
|
524
531
|
}
|
|
525
532
|
break;
|
|
526
533
|
case 28:
|
|
527
534
|
this.enterOuterAlt(localctx, 3);
|
|
528
535
|
{
|
|
529
|
-
this.state =
|
|
536
|
+
this.state = 157;
|
|
530
537
|
this.number_literal();
|
|
531
538
|
}
|
|
532
539
|
break;
|
|
@@ -534,7 +541,7 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
534
541
|
case 23:
|
|
535
542
|
this.enterOuterAlt(localctx, 4);
|
|
536
543
|
{
|
|
537
|
-
this.state =
|
|
544
|
+
this.state = 158;
|
|
538
545
|
this.boolean_literal();
|
|
539
546
|
}
|
|
540
547
|
break;
|
|
@@ -542,7 +549,7 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
542
549
|
case 26:
|
|
543
550
|
this.enterOuterAlt(localctx, 5);
|
|
544
551
|
{
|
|
545
|
-
this.state =
|
|
552
|
+
this.state = 159;
|
|
546
553
|
this.list_in_brackets();
|
|
547
554
|
}
|
|
548
555
|
break;
|
|
@@ -550,7 +557,7 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
550
557
|
case 25:
|
|
551
558
|
this.enterOuterAlt(localctx, 6);
|
|
552
559
|
{
|
|
553
|
-
this.state =
|
|
560
|
+
this.state = 160;
|
|
554
561
|
this.object_literal();
|
|
555
562
|
}
|
|
556
563
|
break;
|
|
@@ -580,59 +587,59 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
580
587
|
let _la;
|
|
581
588
|
try {
|
|
582
589
|
let _alt;
|
|
583
|
-
this.state =
|
|
590
|
+
this.state = 191;
|
|
584
591
|
this._errHandler.sync(this);
|
|
585
592
|
switch (this._interp.adaptivePredict(this._input, 30, this._ctx)) {
|
|
586
593
|
case 1:
|
|
587
594
|
this.enterOuterAlt(localctx, 1);
|
|
588
595
|
{
|
|
589
|
-
this.state =
|
|
596
|
+
this.state = 163;
|
|
590
597
|
this.match(YiniParser.OC);
|
|
591
|
-
this.state =
|
|
598
|
+
this.state = 167;
|
|
592
599
|
this._errHandler.sync(this);
|
|
593
600
|
_la = this._input.LA(1);
|
|
594
601
|
while (_la === 39) {
|
|
595
602
|
{
|
|
596
603
|
{
|
|
597
|
-
this.state =
|
|
604
|
+
this.state = 164;
|
|
598
605
|
this.match(YiniParser.NL);
|
|
599
606
|
}
|
|
600
607
|
}
|
|
601
|
-
this.state =
|
|
608
|
+
this.state = 169;
|
|
602
609
|
this._errHandler.sync(this);
|
|
603
610
|
_la = this._input.LA(1);
|
|
604
611
|
}
|
|
605
|
-
this.state =
|
|
612
|
+
this.state = 170;
|
|
606
613
|
this.objectMemberList();
|
|
607
|
-
this.state =
|
|
614
|
+
this.state = 174;
|
|
608
615
|
this._errHandler.sync(this);
|
|
609
616
|
_la = this._input.LA(1);
|
|
610
617
|
while (_la === 39) {
|
|
611
618
|
{
|
|
612
619
|
{
|
|
613
|
-
this.state =
|
|
620
|
+
this.state = 171;
|
|
614
621
|
this.match(YiniParser.NL);
|
|
615
622
|
}
|
|
616
623
|
}
|
|
617
|
-
this.state =
|
|
624
|
+
this.state = 176;
|
|
618
625
|
this._errHandler.sync(this);
|
|
619
626
|
_la = this._input.LA(1);
|
|
620
627
|
}
|
|
621
|
-
this.state =
|
|
628
|
+
this.state = 177;
|
|
622
629
|
this.match(YiniParser.CC);
|
|
623
|
-
this.state =
|
|
630
|
+
this.state = 181;
|
|
624
631
|
this._errHandler.sync(this);
|
|
625
632
|
_alt = this._interp.adaptivePredict(this._input, 28, this._ctx);
|
|
626
633
|
while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
|
|
627
634
|
if (_alt === 1) {
|
|
628
635
|
{
|
|
629
636
|
{
|
|
630
|
-
this.state =
|
|
637
|
+
this.state = 178;
|
|
631
638
|
this.match(YiniParser.NL);
|
|
632
639
|
}
|
|
633
640
|
}
|
|
634
641
|
}
|
|
635
|
-
this.state =
|
|
642
|
+
this.state = 183;
|
|
636
643
|
this._errHandler.sync(this);
|
|
637
644
|
_alt = this._interp.adaptivePredict(this._input, 28, this._ctx);
|
|
638
645
|
}
|
|
@@ -641,21 +648,21 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
641
648
|
case 2:
|
|
642
649
|
this.enterOuterAlt(localctx, 2);
|
|
643
650
|
{
|
|
644
|
-
this.state =
|
|
651
|
+
this.state = 184;
|
|
645
652
|
this.empty_object();
|
|
646
|
-
this.state =
|
|
653
|
+
this.state = 188;
|
|
647
654
|
this._errHandler.sync(this);
|
|
648
655
|
_alt = this._interp.adaptivePredict(this._input, 29, this._ctx);
|
|
649
656
|
while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
|
|
650
657
|
if (_alt === 1) {
|
|
651
658
|
{
|
|
652
659
|
{
|
|
653
|
-
this.state =
|
|
660
|
+
this.state = 185;
|
|
654
661
|
this.match(YiniParser.NL);
|
|
655
662
|
}
|
|
656
663
|
}
|
|
657
664
|
}
|
|
658
|
-
this.state =
|
|
665
|
+
this.state = 190;
|
|
659
666
|
this._errHandler.sync(this);
|
|
660
667
|
_alt = this._interp.adaptivePredict(this._input, 29, this._ctx);
|
|
661
668
|
}
|
|
@@ -685,52 +692,52 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
685
692
|
let _la;
|
|
686
693
|
try {
|
|
687
694
|
let _alt;
|
|
688
|
-
this.state =
|
|
695
|
+
this.state = 217;
|
|
689
696
|
this._errHandler.sync(this);
|
|
690
697
|
switch (this._input.LA(1)) {
|
|
691
698
|
case 29:
|
|
692
699
|
this.enterOuterAlt(localctx, 1);
|
|
693
700
|
{
|
|
694
|
-
this.state =
|
|
701
|
+
this.state = 193;
|
|
695
702
|
this.objectMember();
|
|
696
|
-
this.state =
|
|
703
|
+
this.state = 204;
|
|
697
704
|
this._errHandler.sync(this);
|
|
698
705
|
_alt = this._interp.adaptivePredict(this._input, 32, this._ctx);
|
|
699
706
|
while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
|
|
700
707
|
if (_alt === 1) {
|
|
701
708
|
{
|
|
702
709
|
{
|
|
703
|
-
this.state =
|
|
710
|
+
this.state = 194;
|
|
704
711
|
this.match(YiniParser.COMMA);
|
|
705
|
-
this.state =
|
|
712
|
+
this.state = 198;
|
|
706
713
|
this._errHandler.sync(this);
|
|
707
714
|
_la = this._input.LA(1);
|
|
708
715
|
while (_la === 39) {
|
|
709
716
|
{
|
|
710
717
|
{
|
|
711
|
-
this.state =
|
|
718
|
+
this.state = 195;
|
|
712
719
|
this.match(YiniParser.NL);
|
|
713
720
|
}
|
|
714
721
|
}
|
|
715
|
-
this.state =
|
|
722
|
+
this.state = 200;
|
|
716
723
|
this._errHandler.sync(this);
|
|
717
724
|
_la = this._input.LA(1);
|
|
718
725
|
}
|
|
719
|
-
this.state =
|
|
726
|
+
this.state = 201;
|
|
720
727
|
this.objectMember();
|
|
721
728
|
}
|
|
722
729
|
}
|
|
723
730
|
}
|
|
724
|
-
this.state =
|
|
731
|
+
this.state = 206;
|
|
725
732
|
this._errHandler.sync(this);
|
|
726
733
|
_alt = this._interp.adaptivePredict(this._input, 32, this._ctx);
|
|
727
734
|
}
|
|
728
|
-
this.state =
|
|
735
|
+
this.state = 208;
|
|
729
736
|
this._errHandler.sync(this);
|
|
730
737
|
_la = this._input.LA(1);
|
|
731
738
|
if (_la === 11) {
|
|
732
739
|
{
|
|
733
|
-
this.state =
|
|
740
|
+
this.state = 207;
|
|
734
741
|
this.match(YiniParser.COMMA);
|
|
735
742
|
}
|
|
736
743
|
}
|
|
@@ -740,21 +747,21 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
740
747
|
case 25:
|
|
741
748
|
this.enterOuterAlt(localctx, 2);
|
|
742
749
|
{
|
|
743
|
-
this.state =
|
|
750
|
+
this.state = 210;
|
|
744
751
|
this.empty_object();
|
|
745
|
-
this.state =
|
|
752
|
+
this.state = 214;
|
|
746
753
|
this._errHandler.sync(this);
|
|
747
754
|
_alt = this._interp.adaptivePredict(this._input, 34, this._ctx);
|
|
748
755
|
while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
|
|
749
756
|
if (_alt === 1) {
|
|
750
757
|
{
|
|
751
758
|
{
|
|
752
|
-
this.state =
|
|
759
|
+
this.state = 211;
|
|
753
760
|
this.match(YiniParser.NL);
|
|
754
761
|
}
|
|
755
762
|
}
|
|
756
763
|
}
|
|
757
|
-
this.state =
|
|
764
|
+
this.state = 216;
|
|
758
765
|
this._errHandler.sync(this);
|
|
759
766
|
_alt = this._interp.adaptivePredict(this._input, 34, this._ctx);
|
|
760
767
|
}
|
|
@@ -787,34 +794,34 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
787
794
|
try {
|
|
788
795
|
this.enterOuterAlt(localctx, 1);
|
|
789
796
|
{
|
|
790
|
-
this.state =
|
|
797
|
+
this.state = 219;
|
|
791
798
|
this.match(YiniParser.KEY);
|
|
792
|
-
this.state =
|
|
799
|
+
this.state = 221;
|
|
793
800
|
this._errHandler.sync(this);
|
|
794
801
|
_la = this._input.LA(1);
|
|
795
802
|
if (_la === 41) {
|
|
796
803
|
{
|
|
797
|
-
this.state =
|
|
804
|
+
this.state = 220;
|
|
798
805
|
this.match(YiniParser.WS);
|
|
799
806
|
}
|
|
800
807
|
}
|
|
801
|
-
this.state =
|
|
802
|
-
this.match(YiniParser.
|
|
803
|
-
this.state =
|
|
808
|
+
this.state = 223;
|
|
809
|
+
this.match(YiniParser.COLON);
|
|
810
|
+
this.state = 227;
|
|
804
811
|
this._errHandler.sync(this);
|
|
805
812
|
_la = this._input.LA(1);
|
|
806
813
|
while (_la === 39) {
|
|
807
814
|
{
|
|
808
815
|
{
|
|
809
|
-
this.state =
|
|
816
|
+
this.state = 224;
|
|
810
817
|
this.match(YiniParser.NL);
|
|
811
818
|
}
|
|
812
819
|
}
|
|
813
|
-
this.state =
|
|
820
|
+
this.state = 229;
|
|
814
821
|
this._errHandler.sync(this);
|
|
815
822
|
_la = this._input.LA(1);
|
|
816
823
|
}
|
|
817
|
-
this.state =
|
|
824
|
+
this.state = 230;
|
|
818
825
|
this.value();
|
|
819
826
|
}
|
|
820
827
|
}
|
|
@@ -838,20 +845,20 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
838
845
|
let localctx = new ListContext(this, this._ctx, this.state);
|
|
839
846
|
this.enterRule(localctx, 20, YiniParser.RULE_list);
|
|
840
847
|
try {
|
|
841
|
-
this.state =
|
|
848
|
+
this.state = 234;
|
|
842
849
|
this._errHandler.sync(this);
|
|
843
850
|
switch (this._interp.adaptivePredict(this._input, 38, this._ctx)) {
|
|
844
851
|
case 1:
|
|
845
852
|
this.enterOuterAlt(localctx, 1);
|
|
846
853
|
{
|
|
847
|
-
this.state =
|
|
854
|
+
this.state = 232;
|
|
848
855
|
this.elements();
|
|
849
856
|
}
|
|
850
857
|
break;
|
|
851
858
|
case 2:
|
|
852
859
|
this.enterOuterAlt(localctx, 2);
|
|
853
860
|
{
|
|
854
|
-
this.state =
|
|
861
|
+
this.state = 233;
|
|
855
862
|
this.list_in_brackets();
|
|
856
863
|
}
|
|
857
864
|
break;
|
|
@@ -879,68 +886,68 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
879
886
|
let _la;
|
|
880
887
|
try {
|
|
881
888
|
let _alt;
|
|
882
|
-
this.state =
|
|
889
|
+
this.state = 259;
|
|
883
890
|
this._errHandler.sync(this);
|
|
884
891
|
switch (this._interp.adaptivePredict(this._input, 42, this._ctx)) {
|
|
885
892
|
case 1:
|
|
886
893
|
this.enterOuterAlt(localctx, 1);
|
|
887
894
|
{
|
|
888
|
-
this.state =
|
|
895
|
+
this.state = 236;
|
|
889
896
|
this.match(YiniParser.OB);
|
|
890
|
-
this.state =
|
|
897
|
+
this.state = 240;
|
|
891
898
|
this._errHandler.sync(this);
|
|
892
899
|
_alt = this._interp.adaptivePredict(this._input, 39, this._ctx);
|
|
893
900
|
while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
|
|
894
901
|
if (_alt === 1) {
|
|
895
902
|
{
|
|
896
903
|
{
|
|
897
|
-
this.state =
|
|
904
|
+
this.state = 237;
|
|
898
905
|
this.match(YiniParser.NL);
|
|
899
906
|
}
|
|
900
907
|
}
|
|
901
908
|
}
|
|
902
|
-
this.state =
|
|
909
|
+
this.state = 242;
|
|
903
910
|
this._errHandler.sync(this);
|
|
904
911
|
_alt = this._interp.adaptivePredict(this._input, 39, this._ctx);
|
|
905
912
|
}
|
|
906
|
-
this.state =
|
|
913
|
+
this.state = 243;
|
|
907
914
|
this.elements();
|
|
908
|
-
this.state =
|
|
915
|
+
this.state = 247;
|
|
909
916
|
this._errHandler.sync(this);
|
|
910
917
|
_la = this._input.LA(1);
|
|
911
918
|
while (_la === 39) {
|
|
912
919
|
{
|
|
913
920
|
{
|
|
914
|
-
this.state =
|
|
921
|
+
this.state = 244;
|
|
915
922
|
this.match(YiniParser.NL);
|
|
916
923
|
}
|
|
917
924
|
}
|
|
918
|
-
this.state =
|
|
925
|
+
this.state = 249;
|
|
919
926
|
this._errHandler.sync(this);
|
|
920
927
|
_la = this._input.LA(1);
|
|
921
928
|
}
|
|
922
|
-
this.state =
|
|
929
|
+
this.state = 250;
|
|
923
930
|
this.match(YiniParser.CB);
|
|
924
931
|
}
|
|
925
932
|
break;
|
|
926
933
|
case 2:
|
|
927
934
|
this.enterOuterAlt(localctx, 2);
|
|
928
935
|
{
|
|
929
|
-
this.state =
|
|
936
|
+
this.state = 252;
|
|
930
937
|
this.empty_list();
|
|
931
|
-
this.state =
|
|
938
|
+
this.state = 256;
|
|
932
939
|
this._errHandler.sync(this);
|
|
933
940
|
_alt = this._interp.adaptivePredict(this._input, 41, this._ctx);
|
|
934
941
|
while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
|
|
935
942
|
if (_alt === 1) {
|
|
936
943
|
{
|
|
937
944
|
{
|
|
938
|
-
this.state =
|
|
945
|
+
this.state = 253;
|
|
939
946
|
this.match(YiniParser.NL);
|
|
940
947
|
}
|
|
941
948
|
}
|
|
942
949
|
}
|
|
943
|
-
this.state =
|
|
950
|
+
this.state = 258;
|
|
944
951
|
this._errHandler.sync(this);
|
|
945
952
|
_alt = this._interp.adaptivePredict(this._input, 41, this._ctx);
|
|
946
953
|
}
|
|
@@ -969,20 +976,20 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
969
976
|
this.enterRule(localctx, 24, YiniParser.RULE_elements);
|
|
970
977
|
let _la;
|
|
971
978
|
try {
|
|
972
|
-
this.state =
|
|
979
|
+
this.state = 269;
|
|
973
980
|
this._errHandler.sync(this);
|
|
974
981
|
switch (this._interp.adaptivePredict(this._input, 44, this._ctx)) {
|
|
975
982
|
case 1:
|
|
976
983
|
this.enterOuterAlt(localctx, 1);
|
|
977
984
|
{
|
|
978
|
-
this.state =
|
|
985
|
+
this.state = 261;
|
|
979
986
|
this.element();
|
|
980
|
-
this.state =
|
|
987
|
+
this.state = 263;
|
|
981
988
|
this._errHandler.sync(this);
|
|
982
989
|
_la = this._input.LA(1);
|
|
983
990
|
if (_la === 11) {
|
|
984
991
|
{
|
|
985
|
-
this.state =
|
|
992
|
+
this.state = 262;
|
|
986
993
|
this.match(YiniParser.COMMA);
|
|
987
994
|
}
|
|
988
995
|
}
|
|
@@ -991,11 +998,11 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
991
998
|
case 2:
|
|
992
999
|
this.enterOuterAlt(localctx, 2);
|
|
993
1000
|
{
|
|
994
|
-
this.state =
|
|
1001
|
+
this.state = 265;
|
|
995
1002
|
this.element();
|
|
996
|
-
this.state =
|
|
1003
|
+
this.state = 266;
|
|
997
1004
|
this.match(YiniParser.COMMA);
|
|
998
|
-
this.state =
|
|
1005
|
+
this.state = 267;
|
|
999
1006
|
this.elements();
|
|
1000
1007
|
}
|
|
1001
1008
|
break;
|
|
@@ -1023,41 +1030,41 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
1023
1030
|
let _la;
|
|
1024
1031
|
try {
|
|
1025
1032
|
let _alt;
|
|
1026
|
-
this.state =
|
|
1033
|
+
this.state = 297;
|
|
1027
1034
|
this._errHandler.sync(this);
|
|
1028
1035
|
switch (this._interp.adaptivePredict(this._input, 49, this._ctx)) {
|
|
1029
1036
|
case 1:
|
|
1030
1037
|
this.enterOuterAlt(localctx, 1);
|
|
1031
1038
|
{
|
|
1032
|
-
this.state =
|
|
1039
|
+
this.state = 274;
|
|
1033
1040
|
this._errHandler.sync(this);
|
|
1034
1041
|
_la = this._input.LA(1);
|
|
1035
1042
|
while (_la === 39) {
|
|
1036
1043
|
{
|
|
1037
1044
|
{
|
|
1038
|
-
this.state =
|
|
1045
|
+
this.state = 271;
|
|
1039
1046
|
this.match(YiniParser.NL);
|
|
1040
1047
|
}
|
|
1041
1048
|
}
|
|
1042
|
-
this.state =
|
|
1049
|
+
this.state = 276;
|
|
1043
1050
|
this._errHandler.sync(this);
|
|
1044
1051
|
_la = this._input.LA(1);
|
|
1045
1052
|
}
|
|
1046
|
-
this.state =
|
|
1053
|
+
this.state = 277;
|
|
1047
1054
|
this.value();
|
|
1048
|
-
this.state =
|
|
1055
|
+
this.state = 281;
|
|
1049
1056
|
this._errHandler.sync(this);
|
|
1050
1057
|
_alt = this._interp.adaptivePredict(this._input, 46, this._ctx);
|
|
1051
1058
|
while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
|
|
1052
1059
|
if (_alt === 1) {
|
|
1053
1060
|
{
|
|
1054
1061
|
{
|
|
1055
|
-
this.state =
|
|
1062
|
+
this.state = 278;
|
|
1056
1063
|
this.match(YiniParser.NL);
|
|
1057
1064
|
}
|
|
1058
1065
|
}
|
|
1059
1066
|
}
|
|
1060
|
-
this.state =
|
|
1067
|
+
this.state = 283;
|
|
1061
1068
|
this._errHandler.sync(this);
|
|
1062
1069
|
_alt = this._interp.adaptivePredict(this._input, 46, this._ctx);
|
|
1063
1070
|
}
|
|
@@ -1066,35 +1073,35 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
1066
1073
|
case 2:
|
|
1067
1074
|
this.enterOuterAlt(localctx, 2);
|
|
1068
1075
|
{
|
|
1069
|
-
this.state =
|
|
1076
|
+
this.state = 287;
|
|
1070
1077
|
this._errHandler.sync(this);
|
|
1071
1078
|
_la = this._input.LA(1);
|
|
1072
1079
|
while (_la === 39) {
|
|
1073
1080
|
{
|
|
1074
1081
|
{
|
|
1075
|
-
this.state =
|
|
1082
|
+
this.state = 284;
|
|
1076
1083
|
this.match(YiniParser.NL);
|
|
1077
1084
|
}
|
|
1078
1085
|
}
|
|
1079
|
-
this.state =
|
|
1086
|
+
this.state = 289;
|
|
1080
1087
|
this._errHandler.sync(this);
|
|
1081
1088
|
_la = this._input.LA(1);
|
|
1082
1089
|
}
|
|
1083
|
-
this.state =
|
|
1090
|
+
this.state = 290;
|
|
1084
1091
|
this.list_in_brackets();
|
|
1085
|
-
this.state =
|
|
1092
|
+
this.state = 294;
|
|
1086
1093
|
this._errHandler.sync(this);
|
|
1087
1094
|
_alt = this._interp.adaptivePredict(this._input, 48, this._ctx);
|
|
1088
1095
|
while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
|
|
1089
1096
|
if (_alt === 1) {
|
|
1090
1097
|
{
|
|
1091
1098
|
{
|
|
1092
|
-
this.state =
|
|
1099
|
+
this.state = 291;
|
|
1093
1100
|
this.match(YiniParser.NL);
|
|
1094
1101
|
}
|
|
1095
1102
|
}
|
|
1096
1103
|
}
|
|
1097
|
-
this.state =
|
|
1104
|
+
this.state = 296;
|
|
1098
1105
|
this._errHandler.sync(this);
|
|
1099
1106
|
_alt = this._interp.adaptivePredict(this._input, 48, this._ctx);
|
|
1100
1107
|
}
|
|
@@ -1124,7 +1131,7 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
1124
1131
|
try {
|
|
1125
1132
|
this.enterOuterAlt(localctx, 1);
|
|
1126
1133
|
{
|
|
1127
|
-
this.state =
|
|
1134
|
+
this.state = 299;
|
|
1128
1135
|
this.match(YiniParser.NUMBER);
|
|
1129
1136
|
}
|
|
1130
1137
|
}
|
|
@@ -1150,7 +1157,7 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
1150
1157
|
try {
|
|
1151
1158
|
this.enterOuterAlt(localctx, 1);
|
|
1152
1159
|
{
|
|
1153
|
-
this.state =
|
|
1160
|
+
this.state = 301;
|
|
1154
1161
|
this.match(YiniParser.NULL);
|
|
1155
1162
|
}
|
|
1156
1163
|
}
|
|
@@ -1177,21 +1184,21 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
1177
1184
|
let _alt;
|
|
1178
1185
|
this.enterOuterAlt(localctx, 1);
|
|
1179
1186
|
{
|
|
1180
|
-
this.state =
|
|
1187
|
+
this.state = 303;
|
|
1181
1188
|
this.match(YiniParser.STRING);
|
|
1182
|
-
this.state =
|
|
1189
|
+
this.state = 307;
|
|
1183
1190
|
this._errHandler.sync(this);
|
|
1184
1191
|
_alt = this._interp.adaptivePredict(this._input, 50, this._ctx);
|
|
1185
1192
|
while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
|
|
1186
1193
|
if (_alt === 1) {
|
|
1187
1194
|
{
|
|
1188
1195
|
{
|
|
1189
|
-
this.state =
|
|
1196
|
+
this.state = 304;
|
|
1190
1197
|
this.string_concat();
|
|
1191
1198
|
}
|
|
1192
1199
|
}
|
|
1193
1200
|
}
|
|
1194
|
-
this.state =
|
|
1201
|
+
this.state = 309;
|
|
1195
1202
|
this._errHandler.sync(this);
|
|
1196
1203
|
_alt = this._interp.adaptivePredict(this._input, 50, this._ctx);
|
|
1197
1204
|
}
|
|
@@ -1220,37 +1227,37 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
1220
1227
|
try {
|
|
1221
1228
|
this.enterOuterAlt(localctx, 1);
|
|
1222
1229
|
{
|
|
1223
|
-
this.state =
|
|
1230
|
+
this.state = 313;
|
|
1224
1231
|
this._errHandler.sync(this);
|
|
1225
1232
|
_la = this._input.LA(1);
|
|
1226
1233
|
while (_la === 39) {
|
|
1227
1234
|
{
|
|
1228
1235
|
{
|
|
1229
|
-
this.state =
|
|
1236
|
+
this.state = 310;
|
|
1230
1237
|
this.match(YiniParser.NL);
|
|
1231
1238
|
}
|
|
1232
1239
|
}
|
|
1233
|
-
this.state =
|
|
1240
|
+
this.state = 315;
|
|
1234
1241
|
this._errHandler.sync(this);
|
|
1235
1242
|
_la = this._input.LA(1);
|
|
1236
1243
|
}
|
|
1237
|
-
this.state =
|
|
1244
|
+
this.state = 316;
|
|
1238
1245
|
this.match(YiniParser.PLUS);
|
|
1239
|
-
this.state =
|
|
1246
|
+
this.state = 320;
|
|
1240
1247
|
this._errHandler.sync(this);
|
|
1241
1248
|
_la = this._input.LA(1);
|
|
1242
1249
|
while (_la === 39) {
|
|
1243
1250
|
{
|
|
1244
1251
|
{
|
|
1245
|
-
this.state =
|
|
1252
|
+
this.state = 317;
|
|
1246
1253
|
this.match(YiniParser.NL);
|
|
1247
1254
|
}
|
|
1248
1255
|
}
|
|
1249
|
-
this.state =
|
|
1256
|
+
this.state = 322;
|
|
1250
1257
|
this._errHandler.sync(this);
|
|
1251
1258
|
_la = this._input.LA(1);
|
|
1252
1259
|
}
|
|
1253
|
-
this.state =
|
|
1260
|
+
this.state = 323;
|
|
1254
1261
|
this.match(YiniParser.STRING);
|
|
1255
1262
|
}
|
|
1256
1263
|
}
|
|
@@ -1277,7 +1284,7 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
1277
1284
|
try {
|
|
1278
1285
|
this.enterOuterAlt(localctx, 1);
|
|
1279
1286
|
{
|
|
1280
|
-
this.state =
|
|
1287
|
+
this.state = 325;
|
|
1281
1288
|
_la = this._input.LA(1);
|
|
1282
1289
|
if (!(_la === 22 || _la === 23)) {
|
|
1283
1290
|
this._errHandler.recoverInline(this);
|
|
@@ -1309,36 +1316,36 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
1309
1316
|
this.enterRule(localctx, 38, YiniParser.RULE_empty_object);
|
|
1310
1317
|
let _la;
|
|
1311
1318
|
try {
|
|
1312
|
-
this.state =
|
|
1319
|
+
this.state = 336;
|
|
1313
1320
|
this._errHandler.sync(this);
|
|
1314
1321
|
switch (this._input.LA(1)) {
|
|
1315
1322
|
case 25:
|
|
1316
1323
|
this.enterOuterAlt(localctx, 1);
|
|
1317
1324
|
{
|
|
1318
|
-
this.state =
|
|
1325
|
+
this.state = 327;
|
|
1319
1326
|
this.match(YiniParser.EMPTY_OBJECT);
|
|
1320
1327
|
}
|
|
1321
1328
|
break;
|
|
1322
1329
|
case 15:
|
|
1323
1330
|
this.enterOuterAlt(localctx, 2);
|
|
1324
1331
|
{
|
|
1325
|
-
this.state =
|
|
1332
|
+
this.state = 328;
|
|
1326
1333
|
this.match(YiniParser.OC);
|
|
1327
|
-
this.state =
|
|
1334
|
+
this.state = 332;
|
|
1328
1335
|
this._errHandler.sync(this);
|
|
1329
1336
|
_la = this._input.LA(1);
|
|
1330
1337
|
while (_la === 39) {
|
|
1331
1338
|
{
|
|
1332
1339
|
{
|
|
1333
|
-
this.state =
|
|
1340
|
+
this.state = 329;
|
|
1334
1341
|
this.match(YiniParser.NL);
|
|
1335
1342
|
}
|
|
1336
1343
|
}
|
|
1337
|
-
this.state =
|
|
1344
|
+
this.state = 334;
|
|
1338
1345
|
this._errHandler.sync(this);
|
|
1339
1346
|
_la = this._input.LA(1);
|
|
1340
1347
|
}
|
|
1341
|
-
this.state =
|
|
1348
|
+
this.state = 335;
|
|
1342
1349
|
this.match(YiniParser.CC);
|
|
1343
1350
|
}
|
|
1344
1351
|
break;
|
|
@@ -1367,36 +1374,36 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
1367
1374
|
this.enterRule(localctx, 40, YiniParser.RULE_empty_list);
|
|
1368
1375
|
let _la;
|
|
1369
1376
|
try {
|
|
1370
|
-
this.state =
|
|
1377
|
+
this.state = 347;
|
|
1371
1378
|
this._errHandler.sync(this);
|
|
1372
1379
|
switch (this._input.LA(1)) {
|
|
1373
1380
|
case 26:
|
|
1374
1381
|
this.enterOuterAlt(localctx, 1);
|
|
1375
1382
|
{
|
|
1376
|
-
this.state =
|
|
1383
|
+
this.state = 338;
|
|
1377
1384
|
this.match(YiniParser.EMPTY_LIST);
|
|
1378
1385
|
}
|
|
1379
1386
|
break;
|
|
1380
1387
|
case 13:
|
|
1381
1388
|
this.enterOuterAlt(localctx, 2);
|
|
1382
1389
|
{
|
|
1383
|
-
this.state =
|
|
1390
|
+
this.state = 339;
|
|
1384
1391
|
this.match(YiniParser.OB);
|
|
1385
|
-
this.state =
|
|
1392
|
+
this.state = 343;
|
|
1386
1393
|
this._errHandler.sync(this);
|
|
1387
1394
|
_la = this._input.LA(1);
|
|
1388
1395
|
while (_la === 39) {
|
|
1389
1396
|
{
|
|
1390
1397
|
{
|
|
1391
|
-
this.state =
|
|
1398
|
+
this.state = 340;
|
|
1392
1399
|
this.match(YiniParser.NL);
|
|
1393
1400
|
}
|
|
1394
1401
|
}
|
|
1395
|
-
this.state =
|
|
1402
|
+
this.state = 345;
|
|
1396
1403
|
this._errHandler.sync(this);
|
|
1397
1404
|
_la = this._input.LA(1);
|
|
1398
1405
|
}
|
|
1399
|
-
this.state =
|
|
1406
|
+
this.state = 346;
|
|
1400
1407
|
this.match(YiniParser.CB);
|
|
1401
1408
|
}
|
|
1402
1409
|
break;
|
|
@@ -1419,6 +1426,117 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
1419
1426
|
}
|
|
1420
1427
|
return localctx;
|
|
1421
1428
|
}
|
|
1429
|
+
// @RuleVersion(0)
|
|
1430
|
+
bad_member() {
|
|
1431
|
+
let localctx = new Bad_memberContext(this, this._ctx, this.state);
|
|
1432
|
+
this.enterRule(localctx, 42, YiniParser.RULE_bad_member);
|
|
1433
|
+
let _la;
|
|
1434
|
+
try {
|
|
1435
|
+
this.enterOuterAlt(localctx, 1);
|
|
1436
|
+
{
|
|
1437
|
+
this.state = 350;
|
|
1438
|
+
this._errHandler.sync(this);
|
|
1439
|
+
switch (this._interp.adaptivePredict(this._input, 57, this._ctx)) {
|
|
1440
|
+
case 1:
|
|
1441
|
+
{
|
|
1442
|
+
this.state = 349;
|
|
1443
|
+
this.match(YiniParser.WS);
|
|
1444
|
+
}
|
|
1445
|
+
break;
|
|
1446
|
+
}
|
|
1447
|
+
this.state = 354;
|
|
1448
|
+
this._errHandler.sync(this);
|
|
1449
|
+
switch (this._input.LA(1)) {
|
|
1450
|
+
case 47:
|
|
1451
|
+
{
|
|
1452
|
+
this.state = 352;
|
|
1453
|
+
this.match(YiniParser.REST);
|
|
1454
|
+
}
|
|
1455
|
+
break;
|
|
1456
|
+
case 13:
|
|
1457
|
+
case 15:
|
|
1458
|
+
case 22:
|
|
1459
|
+
case 23:
|
|
1460
|
+
case 24:
|
|
1461
|
+
case 25:
|
|
1462
|
+
case 26:
|
|
1463
|
+
case 28:
|
|
1464
|
+
case 32:
|
|
1465
|
+
{
|
|
1466
|
+
this.state = 353;
|
|
1467
|
+
this.value();
|
|
1468
|
+
}
|
|
1469
|
+
break;
|
|
1470
|
+
case 9:
|
|
1471
|
+
case 41:
|
|
1472
|
+
break;
|
|
1473
|
+
default:
|
|
1474
|
+
break;
|
|
1475
|
+
}
|
|
1476
|
+
this.state = 357;
|
|
1477
|
+
this._errHandler.sync(this);
|
|
1478
|
+
_la = this._input.LA(1);
|
|
1479
|
+
if (_la === 41) {
|
|
1480
|
+
{
|
|
1481
|
+
this.state = 356;
|
|
1482
|
+
this.match(YiniParser.WS);
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1485
|
+
this.state = 359;
|
|
1486
|
+
this.match(YiniParser.EQ);
|
|
1487
|
+
this.state = 362;
|
|
1488
|
+
this._errHandler.sync(this);
|
|
1489
|
+
switch (this._input.LA(1)) {
|
|
1490
|
+
case 13:
|
|
1491
|
+
case 15:
|
|
1492
|
+
case 22:
|
|
1493
|
+
case 23:
|
|
1494
|
+
case 24:
|
|
1495
|
+
case 25:
|
|
1496
|
+
case 26:
|
|
1497
|
+
case 28:
|
|
1498
|
+
case 32:
|
|
1499
|
+
{
|
|
1500
|
+
this.state = 360;
|
|
1501
|
+
this.value();
|
|
1502
|
+
}
|
|
1503
|
+
break;
|
|
1504
|
+
case 47:
|
|
1505
|
+
{
|
|
1506
|
+
this.state = 361;
|
|
1507
|
+
this.match(YiniParser.REST);
|
|
1508
|
+
}
|
|
1509
|
+
break;
|
|
1510
|
+
default:
|
|
1511
|
+
throw new antlr4_1.NoViableAltException(this);
|
|
1512
|
+
}
|
|
1513
|
+
this.state = 365;
|
|
1514
|
+
this._errHandler.sync(this);
|
|
1515
|
+
switch (this._interp.adaptivePredict(this._input, 61, this._ctx)) {
|
|
1516
|
+
case 1:
|
|
1517
|
+
{
|
|
1518
|
+
this.state = 364;
|
|
1519
|
+
this.match(YiniParser.NL);
|
|
1520
|
+
}
|
|
1521
|
+
break;
|
|
1522
|
+
}
|
|
1523
|
+
}
|
|
1524
|
+
}
|
|
1525
|
+
catch (re) {
|
|
1526
|
+
if (re instanceof antlr4_1.RecognitionException) {
|
|
1527
|
+
localctx.exception = re;
|
|
1528
|
+
this._errHandler.reportError(this, re);
|
|
1529
|
+
this._errHandler.recover(this, re);
|
|
1530
|
+
}
|
|
1531
|
+
else {
|
|
1532
|
+
throw re;
|
|
1533
|
+
}
|
|
1534
|
+
}
|
|
1535
|
+
finally {
|
|
1536
|
+
this.exitRule();
|
|
1537
|
+
}
|
|
1538
|
+
return localctx;
|
|
1539
|
+
}
|
|
1422
1540
|
static get _ATN() {
|
|
1423
1541
|
if (!YiniParser.__ATN) {
|
|
1424
1542
|
YiniParser.__ATN = new antlr4_1.ATNDeserializer().deserialize(YiniParser._serializedATN);
|
|
@@ -1472,6 +1590,7 @@ YiniParser.COMMENT = 43;
|
|
|
1472
1590
|
YiniParser.LINE_COMMENT = 44;
|
|
1473
1591
|
YiniParser.INLINE_COMMENT = 45;
|
|
1474
1592
|
YiniParser.IDENT_INVALID = 46;
|
|
1593
|
+
YiniParser.REST = 47;
|
|
1475
1594
|
YiniParser.EOF = antlr4_1.Token.EOF;
|
|
1476
1595
|
YiniParser.RULE_yini = 0;
|
|
1477
1596
|
YiniParser.RULE_section = 1;
|
|
@@ -1494,6 +1613,7 @@ YiniParser.RULE_string_concat = 17;
|
|
|
1494
1613
|
YiniParser.RULE_boolean_literal = 18;
|
|
1495
1614
|
YiniParser.RULE_empty_object = 19;
|
|
1496
1615
|
YiniParser.RULE_empty_list = 20;
|
|
1616
|
+
YiniParser.RULE_bad_member = 21;
|
|
1497
1617
|
YiniParser.literalNames = [null, null,
|
|
1498
1618
|
null, null,
|
|
1499
1619
|
"'\\u00A7'",
|
|
@@ -1539,132 +1659,141 @@ YiniParser.symbolicNames = [null, "YINI_MARKER",
|
|
|
1539
1659
|
"COMMENT",
|
|
1540
1660
|
"LINE_COMMENT",
|
|
1541
1661
|
"INLINE_COMMENT",
|
|
1542
|
-
"IDENT_INVALID"
|
|
1662
|
+
"IDENT_INVALID",
|
|
1663
|
+
"REST"];
|
|
1543
1664
|
// tslint:disable:no-trailing-whitespace
|
|
1544
1665
|
YiniParser.ruleNames = [
|
|
1545
1666
|
"yini", "section", "terminal_line", "section_members", "member", "member_colon_list",
|
|
1546
1667
|
"value", "object_literal", "objectMemberList", "objectMember", "list",
|
|
1547
1668
|
"list_in_brackets", "elements", "element", "number_literal", "null_literal",
|
|
1548
1669
|
"string_literal", "string_concat", "boolean_literal", "empty_object",
|
|
1549
|
-
"empty_list",
|
|
1670
|
+
"empty_list", "bad_member",
|
|
1550
1671
|
];
|
|
1551
|
-
YiniParser._serializedATN = [4, 1,
|
|
1672
|
+
YiniParser._serializedATN = [4, 1, 47, 368, 2, 0, 7, 0, 2,
|
|
1552
1673
|
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,
|
|
1553
1674
|
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,
|
|
1554
|
-
7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20, 7, 20,
|
|
1555
|
-
0,
|
|
1556
|
-
10, 0, 12, 0,
|
|
1557
|
-
0,
|
|
1558
|
-
3, 1,
|
|
1559
|
-
5, 2,
|
|
1560
|
-
1, 4, 1, 4, 3, 4,
|
|
1561
|
-
|
|
1562
|
-
5, 1, 5, 3, 5, 146, 8, 5, 1, 5,
|
|
1563
|
-
|
|
1564
|
-
7,
|
|
1565
|
-
7,
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
9,
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
283,
|
|
1574
|
-
13, 3, 13,
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
19,
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
1, 0, 0, 0,
|
|
1590
|
-
1, 0, 0, 0,
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
0, 0, 0,
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
0,
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
0,
|
|
1617
|
-
1, 0, 0, 0,
|
|
1618
|
-
0,
|
|
1619
|
-
1, 0, 0, 0,
|
|
1620
|
-
0,
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
0,
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
0,
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
1, 0, 0, 0,
|
|
1639
|
-
0,
|
|
1640
|
-
|
|
1641
|
-
0, 0,
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
0,
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
0, 0, 0,
|
|
1649
|
-
|
|
1650
|
-
1, 0, 0, 0,
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
0,
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
1, 0, 0, 0,
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1675
|
+
7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20, 7, 20, 2, 21, 7, 21, 1, 0, 3, 0, 46, 8, 0, 1, 0, 5, 0, 49,
|
|
1676
|
+
8, 0, 10, 0, 12, 0, 52, 9, 0, 1, 0, 5, 0, 55, 8, 0, 10, 0, 12, 0, 58, 9, 0, 1, 0, 3, 0, 61, 8, 0, 1, 0,
|
|
1677
|
+
5, 0, 64, 8, 0, 10, 0, 12, 0, 67, 9, 0, 1, 0, 5, 0, 70, 8, 0, 10, 0, 12, 0, 73, 9, 0, 1, 0, 4, 0, 76,
|
|
1678
|
+
8, 0, 11, 0, 12, 0, 77, 1, 0, 5, 0, 81, 8, 0, 10, 0, 12, 0, 84, 9, 0, 1, 0, 3, 0, 87, 8, 0, 1, 0, 3, 0,
|
|
1679
|
+
90, 8, 0, 1, 1, 3, 1, 93, 8, 1, 1, 1, 1, 1, 1, 2, 1, 2, 4, 2, 99, 8, 2, 11, 2, 12, 2, 100, 1, 2, 3, 2,
|
|
1680
|
+
104, 8, 2, 1, 2, 5, 2, 107, 8, 2, 10, 2, 12, 2, 110, 9, 2, 3, 2, 112, 8, 2, 1, 3, 4, 3, 115, 8, 3, 11,
|
|
1681
|
+
3, 12, 3, 116, 1, 4, 1, 4, 3, 4, 121, 8, 4, 1, 4, 1, 4, 3, 4, 125, 8, 4, 1, 4, 3, 4, 128, 8, 4, 1, 4,
|
|
1682
|
+
4, 4, 131, 8, 4, 11, 4, 12, 4, 132, 1, 4, 1, 4, 1, 4, 3, 4, 138, 8, 4, 1, 4, 3, 4, 141, 8, 4, 1, 5, 1,
|
|
1683
|
+
5, 1, 5, 3, 5, 146, 8, 5, 1, 5, 3, 5, 149, 8, 5, 1, 5, 4, 5, 152, 8, 5, 11, 5, 12, 5, 153, 1, 6, 1, 6,
|
|
1684
|
+
1, 6, 1, 6, 1, 6, 1, 6, 3, 6, 162, 8, 6, 1, 7, 1, 7, 5, 7, 166, 8, 7, 10, 7, 12, 7, 169, 9, 7, 1, 7, 1,
|
|
1685
|
+
7, 5, 7, 173, 8, 7, 10, 7, 12, 7, 176, 9, 7, 1, 7, 1, 7, 5, 7, 180, 8, 7, 10, 7, 12, 7, 183, 9, 7, 1,
|
|
1686
|
+
7, 1, 7, 5, 7, 187, 8, 7, 10, 7, 12, 7, 190, 9, 7, 3, 7, 192, 8, 7, 1, 8, 1, 8, 1, 8, 5, 8, 197, 8, 8,
|
|
1687
|
+
10, 8, 12, 8, 200, 9, 8, 1, 8, 5, 8, 203, 8, 8, 10, 8, 12, 8, 206, 9, 8, 1, 8, 3, 8, 209, 8, 8, 1, 8,
|
|
1688
|
+
1, 8, 5, 8, 213, 8, 8, 10, 8, 12, 8, 216, 9, 8, 3, 8, 218, 8, 8, 1, 9, 1, 9, 3, 9, 222, 8, 9, 1, 9, 1,
|
|
1689
|
+
9, 5, 9, 226, 8, 9, 10, 9, 12, 9, 229, 9, 9, 1, 9, 1, 9, 1, 10, 1, 10, 3, 10, 235, 8, 10, 1, 11, 1,
|
|
1690
|
+
11, 5, 11, 239, 8, 11, 10, 11, 12, 11, 242, 9, 11, 1, 11, 1, 11, 5, 11, 246, 8, 11, 10, 11, 12,
|
|
1691
|
+
11, 249, 9, 11, 1, 11, 1, 11, 1, 11, 1, 11, 5, 11, 255, 8, 11, 10, 11, 12, 11, 258, 9, 11, 3, 11,
|
|
1692
|
+
260, 8, 11, 1, 12, 1, 12, 3, 12, 264, 8, 12, 1, 12, 1, 12, 1, 12, 1, 12, 3, 12, 270, 8, 12, 1, 13,
|
|
1693
|
+
5, 13, 273, 8, 13, 10, 13, 12, 13, 276, 9, 13, 1, 13, 1, 13, 5, 13, 280, 8, 13, 10, 13, 12, 13,
|
|
1694
|
+
283, 9, 13, 1, 13, 5, 13, 286, 8, 13, 10, 13, 12, 13, 289, 9, 13, 1, 13, 1, 13, 5, 13, 293, 8, 13,
|
|
1695
|
+
10, 13, 12, 13, 296, 9, 13, 3, 13, 298, 8, 13, 1, 14, 1, 14, 1, 15, 1, 15, 1, 16, 1, 16, 5, 16, 306,
|
|
1696
|
+
8, 16, 10, 16, 12, 16, 309, 9, 16, 1, 17, 5, 17, 312, 8, 17, 10, 17, 12, 17, 315, 9, 17, 1, 17,
|
|
1697
|
+
1, 17, 5, 17, 319, 8, 17, 10, 17, 12, 17, 322, 9, 17, 1, 17, 1, 17, 1, 18, 1, 18, 1, 19, 1, 19, 1,
|
|
1698
|
+
19, 5, 19, 331, 8, 19, 10, 19, 12, 19, 334, 9, 19, 1, 19, 3, 19, 337, 8, 19, 1, 20, 1, 20, 1, 20,
|
|
1699
|
+
5, 20, 342, 8, 20, 10, 20, 12, 20, 345, 9, 20, 1, 20, 3, 20, 348, 8, 20, 1, 21, 3, 21, 351, 8, 21,
|
|
1700
|
+
1, 21, 1, 21, 3, 21, 355, 8, 21, 1, 21, 3, 21, 358, 8, 21, 1, 21, 1, 21, 1, 21, 3, 21, 363, 8, 21,
|
|
1701
|
+
1, 21, 3, 21, 366, 8, 21, 1, 21, 0, 0, 22, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28,
|
|
1702
|
+
30, 32, 34, 36, 38, 40, 42, 0, 1, 1, 0, 22, 23, 414, 0, 45, 1, 0, 0, 0, 2, 92, 1, 0, 0, 0, 4, 96, 1,
|
|
1703
|
+
0, 0, 0, 6, 114, 1, 0, 0, 0, 8, 140, 1, 0, 0, 0, 10, 142, 1, 0, 0, 0, 12, 161, 1, 0, 0, 0, 14, 191,
|
|
1704
|
+
1, 0, 0, 0, 16, 217, 1, 0, 0, 0, 18, 219, 1, 0, 0, 0, 20, 234, 1, 0, 0, 0, 22, 259, 1, 0, 0, 0, 24,
|
|
1705
|
+
269, 1, 0, 0, 0, 26, 297, 1, 0, 0, 0, 28, 299, 1, 0, 0, 0, 30, 301, 1, 0, 0, 0, 32, 303, 1, 0, 0, 0,
|
|
1706
|
+
34, 313, 1, 0, 0, 0, 36, 325, 1, 0, 0, 0, 38, 336, 1, 0, 0, 0, 40, 347, 1, 0, 0, 0, 42, 350, 1, 0,
|
|
1707
|
+
0, 0, 44, 46, 5, 27, 0, 0, 45, 44, 1, 0, 0, 0, 45, 46, 1, 0, 0, 0, 46, 50, 1, 0, 0, 0, 47, 49, 5, 45,
|
|
1708
|
+
0, 0, 48, 47, 1, 0, 0, 0, 49, 52, 1, 0, 0, 0, 50, 48, 1, 0, 0, 0, 50, 51, 1, 0, 0, 0, 51, 56, 1, 0, 0,
|
|
1709
|
+
0, 52, 50, 1, 0, 0, 0, 53, 55, 5, 39, 0, 0, 54, 53, 1, 0, 0, 0, 55, 58, 1, 0, 0, 0, 56, 54, 1, 0, 0,
|
|
1710
|
+
0, 56, 57, 1, 0, 0, 0, 57, 60, 1, 0, 0, 0, 58, 56, 1, 0, 0, 0, 59, 61, 5, 1, 0, 0, 60, 59, 1, 0, 0, 0,
|
|
1711
|
+
60, 61, 1, 0, 0, 0, 61, 65, 1, 0, 0, 0, 62, 64, 5, 45, 0, 0, 63, 62, 1, 0, 0, 0, 64, 67, 1, 0, 0, 0,
|
|
1712
|
+
65, 63, 1, 0, 0, 0, 65, 66, 1, 0, 0, 0, 66, 71, 1, 0, 0, 0, 67, 65, 1, 0, 0, 0, 68, 70, 5, 39, 0, 0,
|
|
1713
|
+
69, 68, 1, 0, 0, 0, 70, 73, 1, 0, 0, 0, 71, 69, 1, 0, 0, 0, 71, 72, 1, 0, 0, 0, 72, 75, 1, 0, 0, 0, 73,
|
|
1714
|
+
71, 1, 0, 0, 0, 74, 76, 3, 2, 1, 0, 75, 74, 1, 0, 0, 0, 76, 77, 1, 0, 0, 0, 77, 75, 1, 0, 0, 0, 77, 78,
|
|
1715
|
+
1, 0, 0, 0, 78, 82, 1, 0, 0, 0, 79, 81, 5, 39, 0, 0, 80, 79, 1, 0, 0, 0, 81, 84, 1, 0, 0, 0, 82, 80,
|
|
1716
|
+
1, 0, 0, 0, 82, 83, 1, 0, 0, 0, 83, 86, 1, 0, 0, 0, 84, 82, 1, 0, 0, 0, 85, 87, 3, 4, 2, 0, 86, 85, 1,
|
|
1717
|
+
0, 0, 0, 86, 87, 1, 0, 0, 0, 87, 89, 1, 0, 0, 0, 88, 90, 5, 0, 0, 1, 89, 88, 1, 0, 0, 0, 89, 90, 1, 0,
|
|
1718
|
+
0, 0, 90, 1, 1, 0, 0, 0, 91, 93, 5, 2, 0, 0, 92, 91, 1, 0, 0, 0, 92, 93, 1, 0, 0, 0, 93, 94, 1, 0, 0,
|
|
1719
|
+
0, 94, 95, 3, 6, 3, 0, 95, 3, 1, 0, 0, 0, 96, 111, 5, 3, 0, 0, 97, 99, 5, 39, 0, 0, 98, 97, 1, 0, 0,
|
|
1720
|
+
0, 99, 100, 1, 0, 0, 0, 100, 98, 1, 0, 0, 0, 100, 101, 1, 0, 0, 0, 101, 112, 1, 0, 0, 0, 102, 104,
|
|
1721
|
+
5, 45, 0, 0, 103, 102, 1, 0, 0, 0, 103, 104, 1, 0, 0, 0, 104, 108, 1, 0, 0, 0, 105, 107, 5, 39, 0,
|
|
1722
|
+
0, 106, 105, 1, 0, 0, 0, 107, 110, 1, 0, 0, 0, 108, 106, 1, 0, 0, 0, 108, 109, 1, 0, 0, 0, 109, 112,
|
|
1723
|
+
1, 0, 0, 0, 110, 108, 1, 0, 0, 0, 111, 98, 1, 0, 0, 0, 111, 103, 1, 0, 0, 0, 112, 5, 1, 0, 0, 0, 113,
|
|
1724
|
+
115, 3, 8, 4, 0, 114, 113, 1, 0, 0, 0, 115, 116, 1, 0, 0, 0, 116, 114, 1, 0, 0, 0, 116, 117, 1, 0,
|
|
1725
|
+
0, 0, 117, 7, 1, 0, 0, 0, 118, 120, 5, 29, 0, 0, 119, 121, 5, 41, 0, 0, 120, 119, 1, 0, 0, 0, 120,
|
|
1726
|
+
121, 1, 0, 0, 0, 121, 122, 1, 0, 0, 0, 122, 124, 5, 9, 0, 0, 123, 125, 5, 41, 0, 0, 124, 123, 1,
|
|
1727
|
+
0, 0, 0, 124, 125, 1, 0, 0, 0, 125, 127, 1, 0, 0, 0, 126, 128, 3, 12, 6, 0, 127, 126, 1, 0, 0, 0,
|
|
1728
|
+
127, 128, 1, 0, 0, 0, 128, 130, 1, 0, 0, 0, 129, 131, 5, 39, 0, 0, 130, 129, 1, 0, 0, 0, 131, 132,
|
|
1729
|
+
1, 0, 0, 0, 132, 130, 1, 0, 0, 0, 132, 133, 1, 0, 0, 0, 133, 141, 1, 0, 0, 0, 134, 141, 3, 10, 5,
|
|
1730
|
+
0, 135, 137, 5, 2, 0, 0, 136, 138, 3, 6, 3, 0, 137, 136, 1, 0, 0, 0, 137, 138, 1, 0, 0, 0, 138, 141,
|
|
1731
|
+
1, 0, 0, 0, 139, 141, 3, 42, 21, 0, 140, 118, 1, 0, 0, 0, 140, 134, 1, 0, 0, 0, 140, 135, 1, 0, 0,
|
|
1732
|
+
0, 140, 139, 1, 0, 0, 0, 141, 9, 1, 0, 0, 0, 142, 143, 5, 29, 0, 0, 143, 145, 5, 12, 0, 0, 144, 146,
|
|
1733
|
+
5, 41, 0, 0, 145, 144, 1, 0, 0, 0, 145, 146, 1, 0, 0, 0, 146, 148, 1, 0, 0, 0, 147, 149, 3, 24, 12,
|
|
1734
|
+
0, 148, 147, 1, 0, 0, 0, 148, 149, 1, 0, 0, 0, 149, 151, 1, 0, 0, 0, 150, 152, 5, 39, 0, 0, 151,
|
|
1735
|
+
150, 1, 0, 0, 0, 152, 153, 1, 0, 0, 0, 153, 151, 1, 0, 0, 0, 153, 154, 1, 0, 0, 0, 154, 11, 1, 0,
|
|
1736
|
+
0, 0, 155, 162, 3, 30, 15, 0, 156, 162, 3, 32, 16, 0, 157, 162, 3, 28, 14, 0, 158, 162, 3, 36,
|
|
1737
|
+
18, 0, 159, 162, 3, 22, 11, 0, 160, 162, 3, 14, 7, 0, 161, 155, 1, 0, 0, 0, 161, 156, 1, 0, 0, 0,
|
|
1738
|
+
161, 157, 1, 0, 0, 0, 161, 158, 1, 0, 0, 0, 161, 159, 1, 0, 0, 0, 161, 160, 1, 0, 0, 0, 162, 13,
|
|
1739
|
+
1, 0, 0, 0, 163, 167, 5, 15, 0, 0, 164, 166, 5, 39, 0, 0, 165, 164, 1, 0, 0, 0, 166, 169, 1, 0, 0,
|
|
1740
|
+
0, 167, 165, 1, 0, 0, 0, 167, 168, 1, 0, 0, 0, 168, 170, 1, 0, 0, 0, 169, 167, 1, 0, 0, 0, 170, 174,
|
|
1741
|
+
3, 16, 8, 0, 171, 173, 5, 39, 0, 0, 172, 171, 1, 0, 0, 0, 173, 176, 1, 0, 0, 0, 174, 172, 1, 0, 0,
|
|
1742
|
+
0, 174, 175, 1, 0, 0, 0, 175, 177, 1, 0, 0, 0, 176, 174, 1, 0, 0, 0, 177, 181, 5, 16, 0, 0, 178,
|
|
1743
|
+
180, 5, 39, 0, 0, 179, 178, 1, 0, 0, 0, 180, 183, 1, 0, 0, 0, 181, 179, 1, 0, 0, 0, 181, 182, 1,
|
|
1744
|
+
0, 0, 0, 182, 192, 1, 0, 0, 0, 183, 181, 1, 0, 0, 0, 184, 188, 3, 38, 19, 0, 185, 187, 5, 39, 0,
|
|
1745
|
+
0, 186, 185, 1, 0, 0, 0, 187, 190, 1, 0, 0, 0, 188, 186, 1, 0, 0, 0, 188, 189, 1, 0, 0, 0, 189, 192,
|
|
1746
|
+
1, 0, 0, 0, 190, 188, 1, 0, 0, 0, 191, 163, 1, 0, 0, 0, 191, 184, 1, 0, 0, 0, 192, 15, 1, 0, 0, 0,
|
|
1747
|
+
193, 204, 3, 18, 9, 0, 194, 198, 5, 11, 0, 0, 195, 197, 5, 39, 0, 0, 196, 195, 1, 0, 0, 0, 197,
|
|
1748
|
+
200, 1, 0, 0, 0, 198, 196, 1, 0, 0, 0, 198, 199, 1, 0, 0, 0, 199, 201, 1, 0, 0, 0, 200, 198, 1, 0,
|
|
1749
|
+
0, 0, 201, 203, 3, 18, 9, 0, 202, 194, 1, 0, 0, 0, 203, 206, 1, 0, 0, 0, 204, 202, 1, 0, 0, 0, 204,
|
|
1750
|
+
205, 1, 0, 0, 0, 205, 208, 1, 0, 0, 0, 206, 204, 1, 0, 0, 0, 207, 209, 5, 11, 0, 0, 208, 207, 1,
|
|
1751
|
+
0, 0, 0, 208, 209, 1, 0, 0, 0, 209, 218, 1, 0, 0, 0, 210, 214, 3, 38, 19, 0, 211, 213, 5, 39, 0,
|
|
1752
|
+
0, 212, 211, 1, 0, 0, 0, 213, 216, 1, 0, 0, 0, 214, 212, 1, 0, 0, 0, 214, 215, 1, 0, 0, 0, 215, 218,
|
|
1753
|
+
1, 0, 0, 0, 216, 214, 1, 0, 0, 0, 217, 193, 1, 0, 0, 0, 217, 210, 1, 0, 0, 0, 218, 17, 1, 0, 0, 0,
|
|
1754
|
+
219, 221, 5, 29, 0, 0, 220, 222, 5, 41, 0, 0, 221, 220, 1, 0, 0, 0, 221, 222, 1, 0, 0, 0, 222, 223,
|
|
1755
|
+
1, 0, 0, 0, 223, 227, 5, 12, 0, 0, 224, 226, 5, 39, 0, 0, 225, 224, 1, 0, 0, 0, 226, 229, 1, 0, 0,
|
|
1756
|
+
0, 227, 225, 1, 0, 0, 0, 227, 228, 1, 0, 0, 0, 228, 230, 1, 0, 0, 0, 229, 227, 1, 0, 0, 0, 230, 231,
|
|
1757
|
+
3, 12, 6, 0, 231, 19, 1, 0, 0, 0, 232, 235, 3, 24, 12, 0, 233, 235, 3, 22, 11, 0, 234, 232, 1, 0,
|
|
1758
|
+
0, 0, 234, 233, 1, 0, 0, 0, 235, 21, 1, 0, 0, 0, 236, 240, 5, 13, 0, 0, 237, 239, 5, 39, 0, 0, 238,
|
|
1759
|
+
237, 1, 0, 0, 0, 239, 242, 1, 0, 0, 0, 240, 238, 1, 0, 0, 0, 240, 241, 1, 0, 0, 0, 241, 243, 1, 0,
|
|
1760
|
+
0, 0, 242, 240, 1, 0, 0, 0, 243, 247, 3, 24, 12, 0, 244, 246, 5, 39, 0, 0, 245, 244, 1, 0, 0, 0,
|
|
1761
|
+
246, 249, 1, 0, 0, 0, 247, 245, 1, 0, 0, 0, 247, 248, 1, 0, 0, 0, 248, 250, 1, 0, 0, 0, 249, 247,
|
|
1762
|
+
1, 0, 0, 0, 250, 251, 5, 14, 0, 0, 251, 260, 1, 0, 0, 0, 252, 256, 3, 40, 20, 0, 253, 255, 5, 39,
|
|
1763
|
+
0, 0, 254, 253, 1, 0, 0, 0, 255, 258, 1, 0, 0, 0, 256, 254, 1, 0, 0, 0, 256, 257, 1, 0, 0, 0, 257,
|
|
1764
|
+
260, 1, 0, 0, 0, 258, 256, 1, 0, 0, 0, 259, 236, 1, 0, 0, 0, 259, 252, 1, 0, 0, 0, 260, 23, 1, 0,
|
|
1765
|
+
0, 0, 261, 263, 3, 26, 13, 0, 262, 264, 5, 11, 0, 0, 263, 262, 1, 0, 0, 0, 263, 264, 1, 0, 0, 0,
|
|
1766
|
+
264, 270, 1, 0, 0, 0, 265, 266, 3, 26, 13, 0, 266, 267, 5, 11, 0, 0, 267, 268, 3, 24, 12, 0, 268,
|
|
1767
|
+
270, 1, 0, 0, 0, 269, 261, 1, 0, 0, 0, 269, 265, 1, 0, 0, 0, 270, 25, 1, 0, 0, 0, 271, 273, 5, 39,
|
|
1768
|
+
0, 0, 272, 271, 1, 0, 0, 0, 273, 276, 1, 0, 0, 0, 274, 272, 1, 0, 0, 0, 274, 275, 1, 0, 0, 0, 275,
|
|
1769
|
+
277, 1, 0, 0, 0, 276, 274, 1, 0, 0, 0, 277, 281, 3, 12, 6, 0, 278, 280, 5, 39, 0, 0, 279, 278, 1,
|
|
1770
|
+
0, 0, 0, 280, 283, 1, 0, 0, 0, 281, 279, 1, 0, 0, 0, 281, 282, 1, 0, 0, 0, 282, 298, 1, 0, 0, 0, 283,
|
|
1771
|
+
281, 1, 0, 0, 0, 284, 286, 5, 39, 0, 0, 285, 284, 1, 0, 0, 0, 286, 289, 1, 0, 0, 0, 287, 285, 1,
|
|
1772
|
+
0, 0, 0, 287, 288, 1, 0, 0, 0, 288, 290, 1, 0, 0, 0, 289, 287, 1, 0, 0, 0, 290, 294, 3, 22, 11, 0,
|
|
1773
|
+
291, 293, 5, 39, 0, 0, 292, 291, 1, 0, 0, 0, 293, 296, 1, 0, 0, 0, 294, 292, 1, 0, 0, 0, 294, 295,
|
|
1774
|
+
1, 0, 0, 0, 295, 298, 1, 0, 0, 0, 296, 294, 1, 0, 0, 0, 297, 274, 1, 0, 0, 0, 297, 287, 1, 0, 0, 0,
|
|
1775
|
+
298, 27, 1, 0, 0, 0, 299, 300, 5, 28, 0, 0, 300, 29, 1, 0, 0, 0, 301, 302, 5, 24, 0, 0, 302, 31,
|
|
1776
|
+
1, 0, 0, 0, 303, 307, 5, 32, 0, 0, 304, 306, 3, 34, 17, 0, 305, 304, 1, 0, 0, 0, 306, 309, 1, 0,
|
|
1777
|
+
0, 0, 307, 305, 1, 0, 0, 0, 307, 308, 1, 0, 0, 0, 308, 33, 1, 0, 0, 0, 309, 307, 1, 0, 0, 0, 310,
|
|
1778
|
+
312, 5, 39, 0, 0, 311, 310, 1, 0, 0, 0, 312, 315, 1, 0, 0, 0, 313, 311, 1, 0, 0, 0, 313, 314, 1,
|
|
1779
|
+
0, 0, 0, 314, 316, 1, 0, 0, 0, 315, 313, 1, 0, 0, 0, 316, 320, 5, 17, 0, 0, 317, 319, 5, 39, 0, 0,
|
|
1780
|
+
318, 317, 1, 0, 0, 0, 319, 322, 1, 0, 0, 0, 320, 318, 1, 0, 0, 0, 320, 321, 1, 0, 0, 0, 321, 323,
|
|
1781
|
+
1, 0, 0, 0, 322, 320, 1, 0, 0, 0, 323, 324, 5, 32, 0, 0, 324, 35, 1, 0, 0, 0, 325, 326, 7, 0, 0, 0,
|
|
1782
|
+
326, 37, 1, 0, 0, 0, 327, 337, 5, 25, 0, 0, 328, 332, 5, 15, 0, 0, 329, 331, 5, 39, 0, 0, 330, 329,
|
|
1783
|
+
1, 0, 0, 0, 331, 334, 1, 0, 0, 0, 332, 330, 1, 0, 0, 0, 332, 333, 1, 0, 0, 0, 333, 335, 1, 0, 0, 0,
|
|
1784
|
+
334, 332, 1, 0, 0, 0, 335, 337, 5, 16, 0, 0, 336, 327, 1, 0, 0, 0, 336, 328, 1, 0, 0, 0, 337, 39,
|
|
1785
|
+
1, 0, 0, 0, 338, 348, 5, 26, 0, 0, 339, 343, 5, 13, 0, 0, 340, 342, 5, 39, 0, 0, 341, 340, 1, 0,
|
|
1786
|
+
0, 0, 342, 345, 1, 0, 0, 0, 343, 341, 1, 0, 0, 0, 343, 344, 1, 0, 0, 0, 344, 346, 1, 0, 0, 0, 345,
|
|
1787
|
+
343, 1, 0, 0, 0, 346, 348, 5, 14, 0, 0, 347, 338, 1, 0, 0, 0, 347, 339, 1, 0, 0, 0, 348, 41, 1, 0,
|
|
1788
|
+
0, 0, 349, 351, 5, 41, 0, 0, 350, 349, 1, 0, 0, 0, 350, 351, 1, 0, 0, 0, 351, 354, 1, 0, 0, 0, 352,
|
|
1789
|
+
355, 5, 47, 0, 0, 353, 355, 3, 12, 6, 0, 354, 352, 1, 0, 0, 0, 354, 353, 1, 0, 0, 0, 354, 355, 1,
|
|
1790
|
+
0, 0, 0, 355, 357, 1, 0, 0, 0, 356, 358, 5, 41, 0, 0, 357, 356, 1, 0, 0, 0, 357, 358, 1, 0, 0, 0,
|
|
1791
|
+
358, 359, 1, 0, 0, 0, 359, 362, 5, 9, 0, 0, 360, 363, 3, 12, 6, 0, 361, 363, 5, 47, 0, 0, 362, 360,
|
|
1792
|
+
1, 0, 0, 0, 362, 361, 1, 0, 0, 0, 363, 365, 1, 0, 0, 0, 364, 366, 5, 39, 0, 0, 365, 364, 1, 0, 0,
|
|
1793
|
+
0, 365, 366, 1, 0, 0, 0, 366, 43, 1, 0, 0, 0, 62, 45, 50, 56, 60, 65, 71, 77, 82, 86, 89, 92, 100,
|
|
1794
|
+
103, 108, 111, 116, 120, 124, 127, 132, 137, 140, 145, 148, 153, 161, 167, 174, 181, 188,
|
|
1795
|
+
191, 198, 204, 208, 214, 217, 221, 227, 234, 240, 247, 256, 259, 263, 269, 274, 281, 287,
|
|
1796
|
+
294, 297, 307, 313, 320, 332, 336, 343, 347, 350, 354, 357, 362, 365];
|
|
1668
1797
|
YiniParser.DecisionsToDFA = YiniParser._ATN.decisionToState.map((ds, index) => new antlr4_1.DFA(ds, index));
|
|
1669
1798
|
exports.default = YiniParser;
|
|
1670
1799
|
class YiniContext extends antlr4_1.ParserRuleContext {
|
|
@@ -1832,6 +1961,9 @@ class MemberContext extends antlr4_1.ParserRuleContext {
|
|
|
1832
1961
|
section_members() {
|
|
1833
1962
|
return this.getTypedRuleContext(Section_membersContext, 0);
|
|
1834
1963
|
}
|
|
1964
|
+
bad_member() {
|
|
1965
|
+
return this.getTypedRuleContext(Bad_memberContext, 0);
|
|
1966
|
+
}
|
|
1835
1967
|
get ruleIndex() {
|
|
1836
1968
|
return YiniParser.RULE_member;
|
|
1837
1969
|
}
|
|
@@ -2005,8 +2137,8 @@ class ObjectMemberContext extends antlr4_1.ParserRuleContext {
|
|
|
2005
2137
|
KEY() {
|
|
2006
2138
|
return this.getToken(YiniParser.KEY, 0);
|
|
2007
2139
|
}
|
|
2008
|
-
|
|
2009
|
-
return this.getToken(YiniParser.
|
|
2140
|
+
COLON() {
|
|
2141
|
+
return this.getToken(YiniParser.COLON, 0);
|
|
2010
2142
|
}
|
|
2011
2143
|
value() {
|
|
2012
2144
|
return this.getTypedRuleContext(ValueContext, 0);
|
|
@@ -2351,3 +2483,46 @@ class Empty_listContext extends antlr4_1.ParserRuleContext {
|
|
|
2351
2483
|
}
|
|
2352
2484
|
}
|
|
2353
2485
|
exports.Empty_listContext = Empty_listContext;
|
|
2486
|
+
class Bad_memberContext extends antlr4_1.ParserRuleContext {
|
|
2487
|
+
constructor(parser, parent, invokingState) {
|
|
2488
|
+
super(parent, invokingState);
|
|
2489
|
+
this.parser = parser;
|
|
2490
|
+
}
|
|
2491
|
+
EQ() {
|
|
2492
|
+
return this.getToken(YiniParser.EQ, 0);
|
|
2493
|
+
}
|
|
2494
|
+
value_list() {
|
|
2495
|
+
return this.getTypedRuleContexts(ValueContext);
|
|
2496
|
+
}
|
|
2497
|
+
value(i) {
|
|
2498
|
+
return this.getTypedRuleContext(ValueContext, i);
|
|
2499
|
+
}
|
|
2500
|
+
REST_list() {
|
|
2501
|
+
return this.getTokens(YiniParser.REST);
|
|
2502
|
+
}
|
|
2503
|
+
REST(i) {
|
|
2504
|
+
return this.getToken(YiniParser.REST, i);
|
|
2505
|
+
}
|
|
2506
|
+
WS_list() {
|
|
2507
|
+
return this.getTokens(YiniParser.WS);
|
|
2508
|
+
}
|
|
2509
|
+
WS(i) {
|
|
2510
|
+
return this.getToken(YiniParser.WS, i);
|
|
2511
|
+
}
|
|
2512
|
+
NL() {
|
|
2513
|
+
return this.getToken(YiniParser.NL, 0);
|
|
2514
|
+
}
|
|
2515
|
+
get ruleIndex() {
|
|
2516
|
+
return YiniParser.RULE_bad_member;
|
|
2517
|
+
}
|
|
2518
|
+
// @Override
|
|
2519
|
+
accept(visitor) {
|
|
2520
|
+
if (visitor.visitBad_member) {
|
|
2521
|
+
return visitor.visitBad_member(this);
|
|
2522
|
+
}
|
|
2523
|
+
else {
|
|
2524
|
+
return visitor.visitChildren(this);
|
|
2525
|
+
}
|
|
2526
|
+
}
|
|
2527
|
+
}
|
|
2528
|
+
exports.Bad_memberContext = Bad_memberContext;
|