yini-parser 1.0.0-alpha.6 → 1.0.0-alpha.7x
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 +13 -1
- package/README.md +309 -156
- package/dist/YINI.d.ts +27 -5
- package/dist/YINI.js +27 -5
- package/dist/core/ErrorDataHandler.js +28 -32
- package/dist/core/YINIVisitor.d.ts +2 -2
- package/dist/core/YINIVisitor.js +99 -5
- package/dist/grammar/YiniLexer.js +4 -1
- package/dist/grammar/YiniParser.d.ts +27 -3
- package/dist/grammar/YiniParser.js +544 -294
- package/dist/grammar/YiniParserVisitor.d.ts +14 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.js +34 -15
- package/dist/parsers/extractSignificantYiniLine.js +2 -0
- package/examples/basic-with-comments.yini +15 -0
- package/examples/basic.yini +11 -0
- package/examples/compare-formats.md +89 -0
- package/examples/nested.yini +26 -0
- package/examples/parse-example.ts +22 -0
- package/package.json +3 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Generated from grammar/v1.0.0-beta.7x/YiniParser.g4 by ANTLR 4.13.2
|
|
3
3
|
// noinspection ES6UnusedImports,JSUnusedGlobalSymbols,JSUnusedLocalSymbols
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
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.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 = 43;
|
|
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 = 42;
|
|
35
35
|
this.match(YiniParser.SHEBANG);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
this.state =
|
|
38
|
+
this.state = 48;
|
|
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 = 45;
|
|
46
46
|
this.match(YiniParser.INLINE_COMMENT);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
this.state =
|
|
50
|
+
this.state = 50;
|
|
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 = 54;
|
|
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 = 51;
|
|
62
62
|
this.match(YiniParser.NL);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
this.state =
|
|
66
|
+
this.state = 56;
|
|
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 = 58;
|
|
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 = 57;
|
|
76
76
|
this.match(YiniParser.YINI_MARKER);
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
this.state =
|
|
79
|
+
this.state = 63;
|
|
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 = 60;
|
|
86
86
|
this.match(YiniParser.INLINE_COMMENT);
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
this.state =
|
|
89
|
+
this.state = 65;
|
|
90
90
|
this._errHandler.sync(this);
|
|
91
91
|
_la = this._input.LA(1);
|
|
92
92
|
}
|
|
93
|
-
this.state =
|
|
93
|
+
this.state = 69;
|
|
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 = 66;
|
|
100
100
|
this.match(YiniParser.NL);
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
this.state =
|
|
103
|
+
this.state = 71;
|
|
104
104
|
this._errHandler.sync(this);
|
|
105
105
|
_la = this._input.LA(1);
|
|
106
106
|
}
|
|
107
|
-
this.state =
|
|
107
|
+
this.state = 73;
|
|
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 = 72;
|
|
114
114
|
this.section();
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
this.state =
|
|
117
|
+
this.state = 75;
|
|
118
118
|
this._errHandler.sync(this);
|
|
119
119
|
_la = this._input.LA(1);
|
|
120
120
|
} while (_la === 2 || _la === 29);
|
|
121
|
-
this.state =
|
|
121
|
+
this.state = 80;
|
|
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 = 77;
|
|
128
128
|
this.match(YiniParser.NL);
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
|
-
this.state =
|
|
131
|
+
this.state = 82;
|
|
132
132
|
this._errHandler.sync(this);
|
|
133
133
|
_la = this._input.LA(1);
|
|
134
134
|
}
|
|
135
|
-
this.state =
|
|
135
|
+
this.state = 84;
|
|
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 = 83;
|
|
141
141
|
this.terminal_line();
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
|
-
this.state =
|
|
144
|
+
this.state = 87;
|
|
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 = 86;
|
|
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 = 90;
|
|
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 = 89;
|
|
184
184
|
this.match(YiniParser.SECTION_HEAD);
|
|
185
185
|
}
|
|
186
186
|
break;
|
|
187
187
|
}
|
|
188
|
-
this.state =
|
|
188
|
+
this.state = 92;
|
|
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 = 94;
|
|
216
216
|
this.match(YiniParser.TERMINAL_TOKEN);
|
|
217
|
-
this.state =
|
|
217
|
+
this.state = 109;
|
|
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 = 96;
|
|
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 = 95;
|
|
229
229
|
this.match(YiniParser.NL);
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
|
-
this.state =
|
|
232
|
+
this.state = 98;
|
|
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 = 101;
|
|
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 = 100;
|
|
246
246
|
this.match(YiniParser.INLINE_COMMENT);
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
|
-
this.state =
|
|
249
|
+
this.state = 106;
|
|
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 = 103;
|
|
256
256
|
this.match(YiniParser.NL);
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
|
-
this.state =
|
|
259
|
+
this.state = 108;
|
|
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 = 112;
|
|
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 = 111;
|
|
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 = 114;
|
|
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 = 137;
|
|
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 =
|
|
341
|
+
this.state = 116;
|
|
342
342
|
this.match(YiniParser.KEY);
|
|
343
|
-
this.state =
|
|
343
|
+
this.state = 118;
|
|
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 = 117;
|
|
349
349
|
this.match(YiniParser.WS);
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
|
-
this.state =
|
|
352
|
+
this.state = 120;
|
|
353
353
|
this.match(YiniParser.EQ);
|
|
354
|
-
this.state =
|
|
354
|
+
this.state = 122;
|
|
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 = 121;
|
|
360
360
|
this.match(YiniParser.WS);
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
|
-
this.state =
|
|
363
|
+
this.state = 125;
|
|
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 = 124;
|
|
369
369
|
this.value();
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
|
-
this.state =
|
|
372
|
+
this.state = 128;
|
|
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 = 127;
|
|
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 = 130;
|
|
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,21 +394,21 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
394
394
|
case 2:
|
|
395
395
|
this.enterOuterAlt(localctx, 2);
|
|
396
396
|
{
|
|
397
|
-
this.state =
|
|
397
|
+
this.state = 132;
|
|
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 =
|
|
404
|
+
this.state = 133;
|
|
405
405
|
this.match(YiniParser.SECTION_HEAD);
|
|
406
|
-
this.state =
|
|
406
|
+
this.state = 135;
|
|
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 = 134;
|
|
412
412
|
this.section_members();
|
|
413
413
|
}
|
|
414
414
|
break;
|
|
@@ -441,30 +441,30 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
441
441
|
let _alt;
|
|
442
442
|
this.enterOuterAlt(localctx, 1);
|
|
443
443
|
{
|
|
444
|
-
this.state =
|
|
444
|
+
this.state = 139;
|
|
445
445
|
this.match(YiniParser.KEY);
|
|
446
|
-
this.state =
|
|
446
|
+
this.state = 140;
|
|
447
447
|
this.match(YiniParser.COLON);
|
|
448
|
-
this.state =
|
|
448
|
+
this.state = 142;
|
|
449
449
|
this._errHandler.sync(this);
|
|
450
450
|
_la = this._input.LA(1);
|
|
451
451
|
if (_la === 41) {
|
|
452
452
|
{
|
|
453
|
-
this.state =
|
|
453
|
+
this.state = 141;
|
|
454
454
|
this.match(YiniParser.WS);
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
|
-
this.state =
|
|
457
|
+
this.state = 145;
|
|
458
458
|
this._errHandler.sync(this);
|
|
459
459
|
switch (this._interp.adaptivePredict(this._input, 23, this._ctx)) {
|
|
460
460
|
case 1:
|
|
461
461
|
{
|
|
462
|
-
this.state =
|
|
462
|
+
this.state = 144;
|
|
463
463
|
this.elements();
|
|
464
464
|
}
|
|
465
465
|
break;
|
|
466
466
|
}
|
|
467
|
-
this.state =
|
|
467
|
+
this.state = 148;
|
|
468
468
|
this._errHandler.sync(this);
|
|
469
469
|
_alt = 1;
|
|
470
470
|
do {
|
|
@@ -472,7 +472,7 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
472
472
|
case 1:
|
|
473
473
|
{
|
|
474
474
|
{
|
|
475
|
-
this.state =
|
|
475
|
+
this.state = 147;
|
|
476
476
|
this.match(YiniParser.NL);
|
|
477
477
|
}
|
|
478
478
|
}
|
|
@@ -480,7 +480,7 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
480
480
|
default:
|
|
481
481
|
throw new antlr4_1.NoViableAltException(this);
|
|
482
482
|
}
|
|
483
|
-
this.state =
|
|
483
|
+
this.state = 150;
|
|
484
484
|
this._errHandler.sync(this);
|
|
485
485
|
_alt = this._interp.adaptivePredict(this._input, 24, this._ctx);
|
|
486
486
|
} while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER);
|
|
@@ -506,27 +506,27 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
506
506
|
let localctx = new ValueContext(this, this._ctx, this.state);
|
|
507
507
|
this.enterRule(localctx, 12, YiniParser.RULE_value);
|
|
508
508
|
try {
|
|
509
|
-
this.state =
|
|
509
|
+
this.state = 158;
|
|
510
510
|
this._errHandler.sync(this);
|
|
511
511
|
switch (this._input.LA(1)) {
|
|
512
512
|
case 24:
|
|
513
513
|
this.enterOuterAlt(localctx, 1);
|
|
514
514
|
{
|
|
515
|
-
this.state =
|
|
515
|
+
this.state = 152;
|
|
516
516
|
this.null_literal();
|
|
517
517
|
}
|
|
518
518
|
break;
|
|
519
519
|
case 32:
|
|
520
520
|
this.enterOuterAlt(localctx, 2);
|
|
521
521
|
{
|
|
522
|
-
this.state =
|
|
522
|
+
this.state = 153;
|
|
523
523
|
this.string_literal();
|
|
524
524
|
}
|
|
525
525
|
break;
|
|
526
526
|
case 28:
|
|
527
527
|
this.enterOuterAlt(localctx, 3);
|
|
528
528
|
{
|
|
529
|
-
this.state =
|
|
529
|
+
this.state = 154;
|
|
530
530
|
this.number_literal();
|
|
531
531
|
}
|
|
532
532
|
break;
|
|
@@ -534,7 +534,7 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
534
534
|
case 23:
|
|
535
535
|
this.enterOuterAlt(localctx, 4);
|
|
536
536
|
{
|
|
537
|
-
this.state =
|
|
537
|
+
this.state = 155;
|
|
538
538
|
this.boolean_literal();
|
|
539
539
|
}
|
|
540
540
|
break;
|
|
@@ -542,7 +542,7 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
542
542
|
case 26:
|
|
543
543
|
this.enterOuterAlt(localctx, 5);
|
|
544
544
|
{
|
|
545
|
-
this.state =
|
|
545
|
+
this.state = 156;
|
|
546
546
|
this.list_in_brackets();
|
|
547
547
|
}
|
|
548
548
|
break;
|
|
@@ -550,7 +550,7 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
550
550
|
case 25:
|
|
551
551
|
this.enterOuterAlt(localctx, 6);
|
|
552
552
|
{
|
|
553
|
-
this.state =
|
|
553
|
+
this.state = 157;
|
|
554
554
|
this.object_literal();
|
|
555
555
|
}
|
|
556
556
|
break;
|
|
@@ -580,73 +580,87 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
580
580
|
let _la;
|
|
581
581
|
try {
|
|
582
582
|
let _alt;
|
|
583
|
-
this.state =
|
|
583
|
+
this.state = 188;
|
|
584
584
|
this._errHandler.sync(this);
|
|
585
|
-
switch (this._input.
|
|
586
|
-
case
|
|
585
|
+
switch (this._interp.adaptivePredict(this._input, 30, this._ctx)) {
|
|
586
|
+
case 1:
|
|
587
587
|
this.enterOuterAlt(localctx, 1);
|
|
588
588
|
{
|
|
589
|
-
this.state = 156;
|
|
590
|
-
this.match(YiniParser.OC);
|
|
591
589
|
this.state = 160;
|
|
590
|
+
this.match(YiniParser.OC);
|
|
591
|
+
this.state = 164;
|
|
592
592
|
this._errHandler.sync(this);
|
|
593
593
|
_la = this._input.LA(1);
|
|
594
594
|
while (_la === 39) {
|
|
595
595
|
{
|
|
596
596
|
{
|
|
597
|
-
this.state =
|
|
597
|
+
this.state = 161;
|
|
598
598
|
this.match(YiniParser.NL);
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
|
-
this.state =
|
|
601
|
+
this.state = 166;
|
|
602
602
|
this._errHandler.sync(this);
|
|
603
603
|
_la = this._input.LA(1);
|
|
604
604
|
}
|
|
605
|
-
this.state = 163;
|
|
606
|
-
this.objectMemberList();
|
|
607
605
|
this.state = 167;
|
|
606
|
+
this.objectMemberList();
|
|
607
|
+
this.state = 171;
|
|
608
608
|
this._errHandler.sync(this);
|
|
609
609
|
_la = this._input.LA(1);
|
|
610
610
|
while (_la === 39) {
|
|
611
611
|
{
|
|
612
612
|
{
|
|
613
|
-
this.state =
|
|
613
|
+
this.state = 168;
|
|
614
614
|
this.match(YiniParser.NL);
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
|
-
this.state =
|
|
617
|
+
this.state = 173;
|
|
618
618
|
this._errHandler.sync(this);
|
|
619
619
|
_la = this._input.LA(1);
|
|
620
620
|
}
|
|
621
|
-
this.state = 170;
|
|
622
|
-
this.match(YiniParser.CC);
|
|
623
621
|
this.state = 174;
|
|
622
|
+
this.match(YiniParser.CC);
|
|
623
|
+
this.state = 178;
|
|
624
624
|
this._errHandler.sync(this);
|
|
625
625
|
_alt = this._interp.adaptivePredict(this._input, 28, this._ctx);
|
|
626
626
|
while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
|
|
627
627
|
if (_alt === 1) {
|
|
628
628
|
{
|
|
629
629
|
{
|
|
630
|
-
this.state =
|
|
630
|
+
this.state = 175;
|
|
631
631
|
this.match(YiniParser.NL);
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
634
|
}
|
|
635
|
-
this.state =
|
|
635
|
+
this.state = 180;
|
|
636
636
|
this._errHandler.sync(this);
|
|
637
637
|
_alt = this._interp.adaptivePredict(this._input, 28, this._ctx);
|
|
638
638
|
}
|
|
639
639
|
}
|
|
640
640
|
break;
|
|
641
|
-
case
|
|
641
|
+
case 2:
|
|
642
642
|
this.enterOuterAlt(localctx, 2);
|
|
643
643
|
{
|
|
644
|
-
this.state =
|
|
645
|
-
this.
|
|
644
|
+
this.state = 181;
|
|
645
|
+
this.empty_object();
|
|
646
|
+
this.state = 185;
|
|
647
|
+
this._errHandler.sync(this);
|
|
648
|
+
_alt = this._interp.adaptivePredict(this._input, 29, this._ctx);
|
|
649
|
+
while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
|
|
650
|
+
if (_alt === 1) {
|
|
651
|
+
{
|
|
652
|
+
{
|
|
653
|
+
this.state = 182;
|
|
654
|
+
this.match(YiniParser.NL);
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
this.state = 187;
|
|
659
|
+
this._errHandler.sync(this);
|
|
660
|
+
_alt = this._interp.adaptivePredict(this._input, 29, this._ctx);
|
|
661
|
+
}
|
|
646
662
|
}
|
|
647
663
|
break;
|
|
648
|
-
default:
|
|
649
|
-
throw new antlr4_1.NoViableAltException(this);
|
|
650
664
|
}
|
|
651
665
|
}
|
|
652
666
|
catch (re) {
|
|
@@ -671,62 +685,79 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
671
685
|
let _la;
|
|
672
686
|
try {
|
|
673
687
|
let _alt;
|
|
674
|
-
this.state =
|
|
688
|
+
this.state = 214;
|
|
675
689
|
this._errHandler.sync(this);
|
|
676
690
|
switch (this._input.LA(1)) {
|
|
677
691
|
case 29:
|
|
678
692
|
this.enterOuterAlt(localctx, 1);
|
|
679
693
|
{
|
|
680
|
-
this.state =
|
|
694
|
+
this.state = 190;
|
|
681
695
|
this.objectMember();
|
|
682
|
-
this.state =
|
|
696
|
+
this.state = 201;
|
|
683
697
|
this._errHandler.sync(this);
|
|
684
|
-
_alt = this._interp.adaptivePredict(this._input,
|
|
698
|
+
_alt = this._interp.adaptivePredict(this._input, 32, this._ctx);
|
|
685
699
|
while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
|
|
686
700
|
if (_alt === 1) {
|
|
687
701
|
{
|
|
688
702
|
{
|
|
689
|
-
this.state =
|
|
703
|
+
this.state = 191;
|
|
690
704
|
this.match(YiniParser.COMMA);
|
|
691
|
-
this.state =
|
|
705
|
+
this.state = 195;
|
|
692
706
|
this._errHandler.sync(this);
|
|
693
707
|
_la = this._input.LA(1);
|
|
694
708
|
while (_la === 39) {
|
|
695
709
|
{
|
|
696
710
|
{
|
|
697
|
-
this.state =
|
|
711
|
+
this.state = 192;
|
|
698
712
|
this.match(YiniParser.NL);
|
|
699
713
|
}
|
|
700
714
|
}
|
|
701
|
-
this.state =
|
|
715
|
+
this.state = 197;
|
|
702
716
|
this._errHandler.sync(this);
|
|
703
717
|
_la = this._input.LA(1);
|
|
704
718
|
}
|
|
705
|
-
this.state =
|
|
719
|
+
this.state = 198;
|
|
706
720
|
this.objectMember();
|
|
707
721
|
}
|
|
708
722
|
}
|
|
709
723
|
}
|
|
710
|
-
this.state =
|
|
724
|
+
this.state = 203;
|
|
711
725
|
this._errHandler.sync(this);
|
|
712
|
-
_alt = this._interp.adaptivePredict(this._input,
|
|
726
|
+
_alt = this._interp.adaptivePredict(this._input, 32, this._ctx);
|
|
713
727
|
}
|
|
714
|
-
this.state =
|
|
728
|
+
this.state = 205;
|
|
715
729
|
this._errHandler.sync(this);
|
|
716
730
|
_la = this._input.LA(1);
|
|
717
731
|
if (_la === 11) {
|
|
718
732
|
{
|
|
719
|
-
this.state =
|
|
733
|
+
this.state = 204;
|
|
720
734
|
this.match(YiniParser.COMMA);
|
|
721
735
|
}
|
|
722
736
|
}
|
|
723
737
|
}
|
|
724
738
|
break;
|
|
739
|
+
case 15:
|
|
725
740
|
case 25:
|
|
726
741
|
this.enterOuterAlt(localctx, 2);
|
|
727
742
|
{
|
|
728
|
-
this.state =
|
|
729
|
-
this.
|
|
743
|
+
this.state = 207;
|
|
744
|
+
this.empty_object();
|
|
745
|
+
this.state = 211;
|
|
746
|
+
this._errHandler.sync(this);
|
|
747
|
+
_alt = this._interp.adaptivePredict(this._input, 34, this._ctx);
|
|
748
|
+
while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
|
|
749
|
+
if (_alt === 1) {
|
|
750
|
+
{
|
|
751
|
+
{
|
|
752
|
+
this.state = 208;
|
|
753
|
+
this.match(YiniParser.NL);
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
this.state = 213;
|
|
758
|
+
this._errHandler.sync(this);
|
|
759
|
+
_alt = this._interp.adaptivePredict(this._input, 34, this._ctx);
|
|
760
|
+
}
|
|
730
761
|
}
|
|
731
762
|
break;
|
|
732
763
|
default:
|
|
@@ -756,34 +787,34 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
756
787
|
try {
|
|
757
788
|
this.enterOuterAlt(localctx, 1);
|
|
758
789
|
{
|
|
759
|
-
this.state =
|
|
790
|
+
this.state = 216;
|
|
760
791
|
this.match(YiniParser.KEY);
|
|
761
|
-
this.state =
|
|
792
|
+
this.state = 218;
|
|
762
793
|
this._errHandler.sync(this);
|
|
763
794
|
_la = this._input.LA(1);
|
|
764
795
|
if (_la === 41) {
|
|
765
796
|
{
|
|
766
|
-
this.state =
|
|
797
|
+
this.state = 217;
|
|
767
798
|
this.match(YiniParser.WS);
|
|
768
799
|
}
|
|
769
800
|
}
|
|
770
|
-
this.state =
|
|
801
|
+
this.state = 220;
|
|
771
802
|
this.match(YiniParser.EQ);
|
|
772
|
-
this.state =
|
|
803
|
+
this.state = 224;
|
|
773
804
|
this._errHandler.sync(this);
|
|
774
805
|
_la = this._input.LA(1);
|
|
775
806
|
while (_la === 39) {
|
|
776
807
|
{
|
|
777
808
|
{
|
|
778
|
-
this.state =
|
|
809
|
+
this.state = 221;
|
|
779
810
|
this.match(YiniParser.NL);
|
|
780
811
|
}
|
|
781
812
|
}
|
|
782
|
-
this.state =
|
|
813
|
+
this.state = 226;
|
|
783
814
|
this._errHandler.sync(this);
|
|
784
815
|
_la = this._input.LA(1);
|
|
785
816
|
}
|
|
786
|
-
this.state =
|
|
817
|
+
this.state = 227;
|
|
787
818
|
this.value();
|
|
788
819
|
}
|
|
789
820
|
}
|
|
@@ -807,20 +838,20 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
807
838
|
let localctx = new ListContext(this, this._ctx, this.state);
|
|
808
839
|
this.enterRule(localctx, 20, YiniParser.RULE_list);
|
|
809
840
|
try {
|
|
810
|
-
this.state =
|
|
841
|
+
this.state = 231;
|
|
811
842
|
this._errHandler.sync(this);
|
|
812
|
-
switch (this._interp.adaptivePredict(this._input,
|
|
843
|
+
switch (this._interp.adaptivePredict(this._input, 38, this._ctx)) {
|
|
813
844
|
case 1:
|
|
814
845
|
this.enterOuterAlt(localctx, 1);
|
|
815
846
|
{
|
|
816
|
-
this.state =
|
|
847
|
+
this.state = 229;
|
|
817
848
|
this.elements();
|
|
818
849
|
}
|
|
819
850
|
break;
|
|
820
851
|
case 2:
|
|
821
852
|
this.enterOuterAlt(localctx, 2);
|
|
822
853
|
{
|
|
823
|
-
this.state =
|
|
854
|
+
this.state = 230;
|
|
824
855
|
this.list_in_brackets();
|
|
825
856
|
}
|
|
826
857
|
break;
|
|
@@ -848,59 +879,73 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
848
879
|
let _la;
|
|
849
880
|
try {
|
|
850
881
|
let _alt;
|
|
851
|
-
this.state =
|
|
882
|
+
this.state = 256;
|
|
852
883
|
this._errHandler.sync(this);
|
|
853
|
-
switch (this._input.
|
|
854
|
-
case
|
|
884
|
+
switch (this._interp.adaptivePredict(this._input, 42, this._ctx)) {
|
|
885
|
+
case 1:
|
|
855
886
|
this.enterOuterAlt(localctx, 1);
|
|
856
887
|
{
|
|
857
|
-
this.state =
|
|
888
|
+
this.state = 233;
|
|
858
889
|
this.match(YiniParser.OB);
|
|
859
|
-
this.state =
|
|
890
|
+
this.state = 237;
|
|
860
891
|
this._errHandler.sync(this);
|
|
861
|
-
_alt = this._interp.adaptivePredict(this._input,
|
|
892
|
+
_alt = this._interp.adaptivePredict(this._input, 39, this._ctx);
|
|
862
893
|
while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
|
|
863
894
|
if (_alt === 1) {
|
|
864
895
|
{
|
|
865
896
|
{
|
|
866
|
-
this.state =
|
|
897
|
+
this.state = 234;
|
|
867
898
|
this.match(YiniParser.NL);
|
|
868
899
|
}
|
|
869
900
|
}
|
|
870
901
|
}
|
|
871
|
-
this.state =
|
|
902
|
+
this.state = 239;
|
|
872
903
|
this._errHandler.sync(this);
|
|
873
|
-
_alt = this._interp.adaptivePredict(this._input,
|
|
904
|
+
_alt = this._interp.adaptivePredict(this._input, 39, this._ctx);
|
|
874
905
|
}
|
|
875
|
-
this.state =
|
|
906
|
+
this.state = 240;
|
|
876
907
|
this.elements();
|
|
877
|
-
this.state =
|
|
908
|
+
this.state = 244;
|
|
878
909
|
this._errHandler.sync(this);
|
|
879
910
|
_la = this._input.LA(1);
|
|
880
911
|
while (_la === 39) {
|
|
881
912
|
{
|
|
882
913
|
{
|
|
883
|
-
this.state =
|
|
914
|
+
this.state = 241;
|
|
884
915
|
this.match(YiniParser.NL);
|
|
885
916
|
}
|
|
886
917
|
}
|
|
887
|
-
this.state =
|
|
918
|
+
this.state = 246;
|
|
888
919
|
this._errHandler.sync(this);
|
|
889
920
|
_la = this._input.LA(1);
|
|
890
921
|
}
|
|
891
|
-
this.state =
|
|
922
|
+
this.state = 247;
|
|
892
923
|
this.match(YiniParser.CB);
|
|
893
924
|
}
|
|
894
925
|
break;
|
|
895
|
-
case
|
|
926
|
+
case 2:
|
|
896
927
|
this.enterOuterAlt(localctx, 2);
|
|
897
928
|
{
|
|
898
|
-
this.state =
|
|
899
|
-
this.
|
|
929
|
+
this.state = 249;
|
|
930
|
+
this.empty_list();
|
|
931
|
+
this.state = 253;
|
|
932
|
+
this._errHandler.sync(this);
|
|
933
|
+
_alt = this._interp.adaptivePredict(this._input, 41, this._ctx);
|
|
934
|
+
while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
|
|
935
|
+
if (_alt === 1) {
|
|
936
|
+
{
|
|
937
|
+
{
|
|
938
|
+
this.state = 250;
|
|
939
|
+
this.match(YiniParser.NL);
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
this.state = 255;
|
|
944
|
+
this._errHandler.sync(this);
|
|
945
|
+
_alt = this._interp.adaptivePredict(this._input, 41, this._ctx);
|
|
946
|
+
}
|
|
900
947
|
}
|
|
901
948
|
break;
|
|
902
|
-
default:
|
|
903
|
-
throw new antlr4_1.NoViableAltException(this);
|
|
904
949
|
}
|
|
905
950
|
}
|
|
906
951
|
catch (re) {
|
|
@@ -924,20 +969,20 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
924
969
|
this.enterRule(localctx, 24, YiniParser.RULE_elements);
|
|
925
970
|
let _la;
|
|
926
971
|
try {
|
|
927
|
-
this.state =
|
|
972
|
+
this.state = 266;
|
|
928
973
|
this._errHandler.sync(this);
|
|
929
|
-
switch (this._interp.adaptivePredict(this._input,
|
|
974
|
+
switch (this._interp.adaptivePredict(this._input, 44, this._ctx)) {
|
|
930
975
|
case 1:
|
|
931
976
|
this.enterOuterAlt(localctx, 1);
|
|
932
977
|
{
|
|
933
|
-
this.state =
|
|
978
|
+
this.state = 258;
|
|
934
979
|
this.element();
|
|
935
|
-
this.state =
|
|
980
|
+
this.state = 260;
|
|
936
981
|
this._errHandler.sync(this);
|
|
937
982
|
_la = this._input.LA(1);
|
|
938
983
|
if (_la === 11) {
|
|
939
984
|
{
|
|
940
|
-
this.state =
|
|
985
|
+
this.state = 259;
|
|
941
986
|
this.match(YiniParser.COMMA);
|
|
942
987
|
}
|
|
943
988
|
}
|
|
@@ -946,11 +991,11 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
946
991
|
case 2:
|
|
947
992
|
this.enterOuterAlt(localctx, 2);
|
|
948
993
|
{
|
|
949
|
-
this.state =
|
|
994
|
+
this.state = 262;
|
|
950
995
|
this.element();
|
|
951
|
-
this.state =
|
|
996
|
+
this.state = 263;
|
|
952
997
|
this.match(YiniParser.COMMA);
|
|
953
|
-
this.state =
|
|
998
|
+
this.state = 264;
|
|
954
999
|
this.elements();
|
|
955
1000
|
}
|
|
956
1001
|
break;
|
|
@@ -978,80 +1023,80 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
978
1023
|
let _la;
|
|
979
1024
|
try {
|
|
980
1025
|
let _alt;
|
|
981
|
-
this.state =
|
|
1026
|
+
this.state = 294;
|
|
982
1027
|
this._errHandler.sync(this);
|
|
983
|
-
switch (this._interp.adaptivePredict(this._input,
|
|
1028
|
+
switch (this._interp.adaptivePredict(this._input, 49, this._ctx)) {
|
|
984
1029
|
case 1:
|
|
985
1030
|
this.enterOuterAlt(localctx, 1);
|
|
986
1031
|
{
|
|
987
|
-
this.state =
|
|
1032
|
+
this.state = 271;
|
|
988
1033
|
this._errHandler.sync(this);
|
|
989
1034
|
_la = this._input.LA(1);
|
|
990
1035
|
while (_la === 39) {
|
|
991
1036
|
{
|
|
992
1037
|
{
|
|
993
|
-
this.state =
|
|
1038
|
+
this.state = 268;
|
|
994
1039
|
this.match(YiniParser.NL);
|
|
995
1040
|
}
|
|
996
1041
|
}
|
|
997
|
-
this.state =
|
|
1042
|
+
this.state = 273;
|
|
998
1043
|
this._errHandler.sync(this);
|
|
999
1044
|
_la = this._input.LA(1);
|
|
1000
1045
|
}
|
|
1001
|
-
this.state =
|
|
1046
|
+
this.state = 274;
|
|
1002
1047
|
this.value();
|
|
1003
|
-
this.state =
|
|
1048
|
+
this.state = 278;
|
|
1004
1049
|
this._errHandler.sync(this);
|
|
1005
|
-
_alt = this._interp.adaptivePredict(this._input,
|
|
1050
|
+
_alt = this._interp.adaptivePredict(this._input, 46, this._ctx);
|
|
1006
1051
|
while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
|
|
1007
1052
|
if (_alt === 1) {
|
|
1008
1053
|
{
|
|
1009
1054
|
{
|
|
1010
|
-
this.state =
|
|
1055
|
+
this.state = 275;
|
|
1011
1056
|
this.match(YiniParser.NL);
|
|
1012
1057
|
}
|
|
1013
1058
|
}
|
|
1014
1059
|
}
|
|
1015
|
-
this.state =
|
|
1060
|
+
this.state = 280;
|
|
1016
1061
|
this._errHandler.sync(this);
|
|
1017
|
-
_alt = this._interp.adaptivePredict(this._input,
|
|
1062
|
+
_alt = this._interp.adaptivePredict(this._input, 46, this._ctx);
|
|
1018
1063
|
}
|
|
1019
1064
|
}
|
|
1020
1065
|
break;
|
|
1021
1066
|
case 2:
|
|
1022
1067
|
this.enterOuterAlt(localctx, 2);
|
|
1023
1068
|
{
|
|
1024
|
-
this.state =
|
|
1069
|
+
this.state = 284;
|
|
1025
1070
|
this._errHandler.sync(this);
|
|
1026
1071
|
_la = this._input.LA(1);
|
|
1027
1072
|
while (_la === 39) {
|
|
1028
1073
|
{
|
|
1029
1074
|
{
|
|
1030
|
-
this.state =
|
|
1075
|
+
this.state = 281;
|
|
1031
1076
|
this.match(YiniParser.NL);
|
|
1032
1077
|
}
|
|
1033
1078
|
}
|
|
1034
|
-
this.state =
|
|
1079
|
+
this.state = 286;
|
|
1035
1080
|
this._errHandler.sync(this);
|
|
1036
1081
|
_la = this._input.LA(1);
|
|
1037
1082
|
}
|
|
1038
|
-
this.state =
|
|
1083
|
+
this.state = 287;
|
|
1039
1084
|
this.list_in_brackets();
|
|
1040
|
-
this.state =
|
|
1085
|
+
this.state = 291;
|
|
1041
1086
|
this._errHandler.sync(this);
|
|
1042
|
-
_alt = this._interp.adaptivePredict(this._input,
|
|
1087
|
+
_alt = this._interp.adaptivePredict(this._input, 48, this._ctx);
|
|
1043
1088
|
while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
|
|
1044
1089
|
if (_alt === 1) {
|
|
1045
1090
|
{
|
|
1046
1091
|
{
|
|
1047
|
-
this.state =
|
|
1092
|
+
this.state = 288;
|
|
1048
1093
|
this.match(YiniParser.NL);
|
|
1049
1094
|
}
|
|
1050
1095
|
}
|
|
1051
1096
|
}
|
|
1052
|
-
this.state =
|
|
1097
|
+
this.state = 293;
|
|
1053
1098
|
this._errHandler.sync(this);
|
|
1054
|
-
_alt = this._interp.adaptivePredict(this._input,
|
|
1099
|
+
_alt = this._interp.adaptivePredict(this._input, 48, this._ctx);
|
|
1055
1100
|
}
|
|
1056
1101
|
}
|
|
1057
1102
|
break;
|
|
@@ -1079,7 +1124,7 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
1079
1124
|
try {
|
|
1080
1125
|
this.enterOuterAlt(localctx, 1);
|
|
1081
1126
|
{
|
|
1082
|
-
this.state =
|
|
1127
|
+
this.state = 296;
|
|
1083
1128
|
this.match(YiniParser.NUMBER);
|
|
1084
1129
|
}
|
|
1085
1130
|
}
|
|
@@ -1105,7 +1150,7 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
1105
1150
|
try {
|
|
1106
1151
|
this.enterOuterAlt(localctx, 1);
|
|
1107
1152
|
{
|
|
1108
|
-
this.state =
|
|
1153
|
+
this.state = 298;
|
|
1109
1154
|
this.match(YiniParser.NULL);
|
|
1110
1155
|
}
|
|
1111
1156
|
}
|
|
@@ -1132,23 +1177,23 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
1132
1177
|
let _alt;
|
|
1133
1178
|
this.enterOuterAlt(localctx, 1);
|
|
1134
1179
|
{
|
|
1135
|
-
this.state =
|
|
1180
|
+
this.state = 300;
|
|
1136
1181
|
this.match(YiniParser.STRING);
|
|
1137
|
-
this.state =
|
|
1182
|
+
this.state = 304;
|
|
1138
1183
|
this._errHandler.sync(this);
|
|
1139
|
-
_alt = this._interp.adaptivePredict(this._input,
|
|
1184
|
+
_alt = this._interp.adaptivePredict(this._input, 50, this._ctx);
|
|
1140
1185
|
while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
|
|
1141
1186
|
if (_alt === 1) {
|
|
1142
1187
|
{
|
|
1143
1188
|
{
|
|
1144
|
-
this.state =
|
|
1189
|
+
this.state = 301;
|
|
1145
1190
|
this.string_concat();
|
|
1146
1191
|
}
|
|
1147
1192
|
}
|
|
1148
1193
|
}
|
|
1149
|
-
this.state =
|
|
1194
|
+
this.state = 306;
|
|
1150
1195
|
this._errHandler.sync(this);
|
|
1151
|
-
_alt = this._interp.adaptivePredict(this._input,
|
|
1196
|
+
_alt = this._interp.adaptivePredict(this._input, 50, this._ctx);
|
|
1152
1197
|
}
|
|
1153
1198
|
}
|
|
1154
1199
|
}
|
|
@@ -1175,37 +1220,37 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
1175
1220
|
try {
|
|
1176
1221
|
this.enterOuterAlt(localctx, 1);
|
|
1177
1222
|
{
|
|
1178
|
-
this.state =
|
|
1223
|
+
this.state = 310;
|
|
1179
1224
|
this._errHandler.sync(this);
|
|
1180
1225
|
_la = this._input.LA(1);
|
|
1181
1226
|
while (_la === 39) {
|
|
1182
1227
|
{
|
|
1183
1228
|
{
|
|
1184
|
-
this.state =
|
|
1229
|
+
this.state = 307;
|
|
1185
1230
|
this.match(YiniParser.NL);
|
|
1186
1231
|
}
|
|
1187
1232
|
}
|
|
1188
|
-
this.state =
|
|
1233
|
+
this.state = 312;
|
|
1189
1234
|
this._errHandler.sync(this);
|
|
1190
1235
|
_la = this._input.LA(1);
|
|
1191
1236
|
}
|
|
1192
|
-
this.state =
|
|
1237
|
+
this.state = 313;
|
|
1193
1238
|
this.match(YiniParser.PLUS);
|
|
1194
|
-
this.state =
|
|
1239
|
+
this.state = 317;
|
|
1195
1240
|
this._errHandler.sync(this);
|
|
1196
1241
|
_la = this._input.LA(1);
|
|
1197
1242
|
while (_la === 39) {
|
|
1198
1243
|
{
|
|
1199
1244
|
{
|
|
1200
|
-
this.state =
|
|
1245
|
+
this.state = 314;
|
|
1201
1246
|
this.match(YiniParser.NL);
|
|
1202
1247
|
}
|
|
1203
1248
|
}
|
|
1204
|
-
this.state =
|
|
1249
|
+
this.state = 319;
|
|
1205
1250
|
this._errHandler.sync(this);
|
|
1206
1251
|
_la = this._input.LA(1);
|
|
1207
1252
|
}
|
|
1208
|
-
this.state =
|
|
1253
|
+
this.state = 320;
|
|
1209
1254
|
this.match(YiniParser.STRING);
|
|
1210
1255
|
}
|
|
1211
1256
|
}
|
|
@@ -1232,7 +1277,7 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
1232
1277
|
try {
|
|
1233
1278
|
this.enterOuterAlt(localctx, 1);
|
|
1234
1279
|
{
|
|
1235
|
-
this.state =
|
|
1280
|
+
this.state = 322;
|
|
1236
1281
|
_la = this._input.LA(1);
|
|
1237
1282
|
if (!(_la === 22 || _la === 23)) {
|
|
1238
1283
|
this._errHandler.recoverInline(this);
|
|
@@ -1258,6 +1303,122 @@ class YiniParser extends antlr4_1.Parser {
|
|
|
1258
1303
|
}
|
|
1259
1304
|
return localctx;
|
|
1260
1305
|
}
|
|
1306
|
+
// @RuleVersion(0)
|
|
1307
|
+
empty_object() {
|
|
1308
|
+
let localctx = new Empty_objectContext(this, this._ctx, this.state);
|
|
1309
|
+
this.enterRule(localctx, 38, YiniParser.RULE_empty_object);
|
|
1310
|
+
let _la;
|
|
1311
|
+
try {
|
|
1312
|
+
this.state = 333;
|
|
1313
|
+
this._errHandler.sync(this);
|
|
1314
|
+
switch (this._input.LA(1)) {
|
|
1315
|
+
case 25:
|
|
1316
|
+
this.enterOuterAlt(localctx, 1);
|
|
1317
|
+
{
|
|
1318
|
+
this.state = 324;
|
|
1319
|
+
this.match(YiniParser.EMPTY_OBJECT);
|
|
1320
|
+
}
|
|
1321
|
+
break;
|
|
1322
|
+
case 15:
|
|
1323
|
+
this.enterOuterAlt(localctx, 2);
|
|
1324
|
+
{
|
|
1325
|
+
this.state = 325;
|
|
1326
|
+
this.match(YiniParser.OC);
|
|
1327
|
+
this.state = 329;
|
|
1328
|
+
this._errHandler.sync(this);
|
|
1329
|
+
_la = this._input.LA(1);
|
|
1330
|
+
while (_la === 39) {
|
|
1331
|
+
{
|
|
1332
|
+
{
|
|
1333
|
+
this.state = 326;
|
|
1334
|
+
this.match(YiniParser.NL);
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
this.state = 331;
|
|
1338
|
+
this._errHandler.sync(this);
|
|
1339
|
+
_la = this._input.LA(1);
|
|
1340
|
+
}
|
|
1341
|
+
this.state = 332;
|
|
1342
|
+
this.match(YiniParser.CC);
|
|
1343
|
+
}
|
|
1344
|
+
break;
|
|
1345
|
+
default:
|
|
1346
|
+
throw new antlr4_1.NoViableAltException(this);
|
|
1347
|
+
}
|
|
1348
|
+
}
|
|
1349
|
+
catch (re) {
|
|
1350
|
+
if (re instanceof antlr4_1.RecognitionException) {
|
|
1351
|
+
localctx.exception = re;
|
|
1352
|
+
this._errHandler.reportError(this, re);
|
|
1353
|
+
this._errHandler.recover(this, re);
|
|
1354
|
+
}
|
|
1355
|
+
else {
|
|
1356
|
+
throw re;
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
finally {
|
|
1360
|
+
this.exitRule();
|
|
1361
|
+
}
|
|
1362
|
+
return localctx;
|
|
1363
|
+
}
|
|
1364
|
+
// @RuleVersion(0)
|
|
1365
|
+
empty_list() {
|
|
1366
|
+
let localctx = new Empty_listContext(this, this._ctx, this.state);
|
|
1367
|
+
this.enterRule(localctx, 40, YiniParser.RULE_empty_list);
|
|
1368
|
+
let _la;
|
|
1369
|
+
try {
|
|
1370
|
+
this.state = 344;
|
|
1371
|
+
this._errHandler.sync(this);
|
|
1372
|
+
switch (this._input.LA(1)) {
|
|
1373
|
+
case 26:
|
|
1374
|
+
this.enterOuterAlt(localctx, 1);
|
|
1375
|
+
{
|
|
1376
|
+
this.state = 335;
|
|
1377
|
+
this.match(YiniParser.EMPTY_LIST);
|
|
1378
|
+
}
|
|
1379
|
+
break;
|
|
1380
|
+
case 13:
|
|
1381
|
+
this.enterOuterAlt(localctx, 2);
|
|
1382
|
+
{
|
|
1383
|
+
this.state = 336;
|
|
1384
|
+
this.match(YiniParser.OB);
|
|
1385
|
+
this.state = 340;
|
|
1386
|
+
this._errHandler.sync(this);
|
|
1387
|
+
_la = this._input.LA(1);
|
|
1388
|
+
while (_la === 39) {
|
|
1389
|
+
{
|
|
1390
|
+
{
|
|
1391
|
+
this.state = 337;
|
|
1392
|
+
this.match(YiniParser.NL);
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1395
|
+
this.state = 342;
|
|
1396
|
+
this._errHandler.sync(this);
|
|
1397
|
+
_la = this._input.LA(1);
|
|
1398
|
+
}
|
|
1399
|
+
this.state = 343;
|
|
1400
|
+
this.match(YiniParser.CB);
|
|
1401
|
+
}
|
|
1402
|
+
break;
|
|
1403
|
+
default:
|
|
1404
|
+
throw new antlr4_1.NoViableAltException(this);
|
|
1405
|
+
}
|
|
1406
|
+
}
|
|
1407
|
+
catch (re) {
|
|
1408
|
+
if (re instanceof antlr4_1.RecognitionException) {
|
|
1409
|
+
localctx.exception = re;
|
|
1410
|
+
this._errHandler.reportError(this, re);
|
|
1411
|
+
this._errHandler.recover(this, re);
|
|
1412
|
+
}
|
|
1413
|
+
else {
|
|
1414
|
+
throw re;
|
|
1415
|
+
}
|
|
1416
|
+
}
|
|
1417
|
+
finally {
|
|
1418
|
+
this.exitRule();
|
|
1419
|
+
}
|
|
1420
|
+
return localctx;
|
|
1421
|
+
}
|
|
1261
1422
|
static get _ATN() {
|
|
1262
1423
|
if (!YiniParser.__ATN) {
|
|
1263
1424
|
YiniParser.__ATN = new antlr4_1.ATNDeserializer().deserialize(YiniParser._serializedATN);
|
|
@@ -1331,6 +1492,8 @@ YiniParser.RULE_null_literal = 15;
|
|
|
1331
1492
|
YiniParser.RULE_string_literal = 16;
|
|
1332
1493
|
YiniParser.RULE_string_concat = 17;
|
|
1333
1494
|
YiniParser.RULE_boolean_literal = 18;
|
|
1495
|
+
YiniParser.RULE_empty_object = 19;
|
|
1496
|
+
YiniParser.RULE_empty_list = 20;
|
|
1334
1497
|
YiniParser.literalNames = [null, null,
|
|
1335
1498
|
null, null,
|
|
1336
1499
|
"'\\u00A7'",
|
|
@@ -1342,7 +1505,10 @@ YiniParser.literalNames = [null, null,
|
|
|
1342
1505
|
"']'", "'{'",
|
|
1343
1506
|
"'}'", "'+'",
|
|
1344
1507
|
"'$'", "'%'",
|
|
1345
|
-
"'@'", "';'"
|
|
1508
|
+
"'@'", "';'",
|
|
1509
|
+
null, null,
|
|
1510
|
+
null, "'{}'",
|
|
1511
|
+
"'[]'"];
|
|
1346
1512
|
YiniParser.symbolicNames = [null, "YINI_MARKER",
|
|
1347
1513
|
"SECTION_HEAD",
|
|
1348
1514
|
"TERMINAL_TOKEN",
|
|
@@ -1379,110 +1545,126 @@ YiniParser.ruleNames = [
|
|
|
1379
1545
|
"yini", "section", "terminal_line", "section_members", "member", "member_colon_list",
|
|
1380
1546
|
"value", "object_literal", "objectMemberList", "objectMember", "list",
|
|
1381
1547
|
"list_in_brackets", "elements", "element", "number_literal", "null_literal",
|
|
1382
|
-
"string_literal", "string_concat", "boolean_literal",
|
|
1548
|
+
"string_literal", "string_concat", "boolean_literal", "empty_object",
|
|
1549
|
+
"empty_list",
|
|
1383
1550
|
];
|
|
1384
|
-
YiniParser._serializedATN = [4, 1, 46,
|
|
1551
|
+
YiniParser._serializedATN = [4, 1, 46, 347, 2, 0, 7, 0, 2,
|
|
1385
1552
|
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,
|
|
1386
1553
|
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,
|
|
1387
|
-
7, 17, 2, 18, 7, 18,
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
4, 1, 4, 3, 4, 119, 8, 4, 1, 4, 3, 4,
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
7,
|
|
1398
|
-
10,
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
12, 13,
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
1, 0, 0, 0,
|
|
1419
|
-
1, 0, 0, 0,
|
|
1420
|
-
|
|
1421
|
-
0, 0,
|
|
1422
|
-
0, 0,
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
1, 0, 0, 0,
|
|
1436
|
-
0,
|
|
1437
|
-
1, 0, 0, 0,
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
0, 0,
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
0,
|
|
1444
|
-
|
|
1445
|
-
0, 0, 0,
|
|
1446
|
-
|
|
1447
|
-
0,
|
|
1448
|
-
|
|
1449
|
-
1, 0, 0, 0,
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
0, 0, 0,
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
0,
|
|
1456
|
-
|
|
1457
|
-
0,
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
0, 0,
|
|
1465
|
-
|
|
1466
|
-
0, 0, 0,
|
|
1467
|
-
0,
|
|
1468
|
-
|
|
1469
|
-
0, 0,
|
|
1470
|
-
|
|
1471
|
-
0, 0, 0,
|
|
1472
|
-
|
|
1473
|
-
1, 0, 0, 0,
|
|
1474
|
-
0, 0,
|
|
1475
|
-
|
|
1476
|
-
0, 0,
|
|
1477
|
-
|
|
1478
|
-
1, 0, 0, 0,
|
|
1479
|
-
0,
|
|
1480
|
-
|
|
1481
|
-
0,
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1554
|
+
7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20, 7, 20, 1, 0, 3, 0, 44, 8, 0, 1, 0, 5, 0, 47, 8, 0, 10, 0, 12,
|
|
1555
|
+
0, 50, 9, 0, 1, 0, 5, 0, 53, 8, 0, 10, 0, 12, 0, 56, 9, 0, 1, 0, 3, 0, 59, 8, 0, 1, 0, 5, 0, 62, 8, 0,
|
|
1556
|
+
10, 0, 12, 0, 65, 9, 0, 1, 0, 5, 0, 68, 8, 0, 10, 0, 12, 0, 71, 9, 0, 1, 0, 4, 0, 74, 8, 0, 11, 0, 12,
|
|
1557
|
+
0, 75, 1, 0, 5, 0, 79, 8, 0, 10, 0, 12, 0, 82, 9, 0, 1, 0, 3, 0, 85, 8, 0, 1, 0, 3, 0, 88, 8, 0, 1, 1,
|
|
1558
|
+
3, 1, 91, 8, 1, 1, 1, 1, 1, 1, 2, 1, 2, 4, 2, 97, 8, 2, 11, 2, 12, 2, 98, 1, 2, 3, 2, 102, 8, 2, 1, 2,
|
|
1559
|
+
5, 2, 105, 8, 2, 10, 2, 12, 2, 108, 9, 2, 3, 2, 110, 8, 2, 1, 3, 4, 3, 113, 8, 3, 11, 3, 12, 3, 114,
|
|
1560
|
+
1, 4, 1, 4, 3, 4, 119, 8, 4, 1, 4, 1, 4, 3, 4, 123, 8, 4, 1, 4, 3, 4, 126, 8, 4, 1, 4, 4, 4, 129, 8, 4,
|
|
1561
|
+
11, 4, 12, 4, 130, 1, 4, 1, 4, 1, 4, 3, 4, 136, 8, 4, 3, 4, 138, 8, 4, 1, 5, 1, 5, 1, 5, 3, 5, 143, 8,
|
|
1562
|
+
5, 1, 5, 3, 5, 146, 8, 5, 1, 5, 4, 5, 149, 8, 5, 11, 5, 12, 5, 150, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6,
|
|
1563
|
+
3, 6, 159, 8, 6, 1, 7, 1, 7, 5, 7, 163, 8, 7, 10, 7, 12, 7, 166, 9, 7, 1, 7, 1, 7, 5, 7, 170, 8, 7, 10,
|
|
1564
|
+
7, 12, 7, 173, 9, 7, 1, 7, 1, 7, 5, 7, 177, 8, 7, 10, 7, 12, 7, 180, 9, 7, 1, 7, 1, 7, 5, 7, 184, 8,
|
|
1565
|
+
7, 10, 7, 12, 7, 187, 9, 7, 3, 7, 189, 8, 7, 1, 8, 1, 8, 1, 8, 5, 8, 194, 8, 8, 10, 8, 12, 8, 197, 9,
|
|
1566
|
+
8, 1, 8, 5, 8, 200, 8, 8, 10, 8, 12, 8, 203, 9, 8, 1, 8, 3, 8, 206, 8, 8, 1, 8, 1, 8, 5, 8, 210, 8, 8,
|
|
1567
|
+
10, 8, 12, 8, 213, 9, 8, 3, 8, 215, 8, 8, 1, 9, 1, 9, 3, 9, 219, 8, 9, 1, 9, 1, 9, 5, 9, 223, 8, 9, 10,
|
|
1568
|
+
9, 12, 9, 226, 9, 9, 1, 9, 1, 9, 1, 10, 1, 10, 3, 10, 232, 8, 10, 1, 11, 1, 11, 5, 11, 236, 8, 11,
|
|
1569
|
+
10, 11, 12, 11, 239, 9, 11, 1, 11, 1, 11, 5, 11, 243, 8, 11, 10, 11, 12, 11, 246, 9, 11, 1, 11,
|
|
1570
|
+
1, 11, 1, 11, 1, 11, 5, 11, 252, 8, 11, 10, 11, 12, 11, 255, 9, 11, 3, 11, 257, 8, 11, 1, 12, 1,
|
|
1571
|
+
12, 3, 12, 261, 8, 12, 1, 12, 1, 12, 1, 12, 1, 12, 3, 12, 267, 8, 12, 1, 13, 5, 13, 270, 8, 13, 10,
|
|
1572
|
+
13, 12, 13, 273, 9, 13, 1, 13, 1, 13, 5, 13, 277, 8, 13, 10, 13, 12, 13, 280, 9, 13, 1, 13, 5, 13,
|
|
1573
|
+
283, 8, 13, 10, 13, 12, 13, 286, 9, 13, 1, 13, 1, 13, 5, 13, 290, 8, 13, 10, 13, 12, 13, 293, 9,
|
|
1574
|
+
13, 3, 13, 295, 8, 13, 1, 14, 1, 14, 1, 15, 1, 15, 1, 16, 1, 16, 5, 16, 303, 8, 16, 10, 16, 12, 16,
|
|
1575
|
+
306, 9, 16, 1, 17, 5, 17, 309, 8, 17, 10, 17, 12, 17, 312, 9, 17, 1, 17, 1, 17, 5, 17, 316, 8, 17,
|
|
1576
|
+
10, 17, 12, 17, 319, 9, 17, 1, 17, 1, 17, 1, 18, 1, 18, 1, 19, 1, 19, 1, 19, 5, 19, 328, 8, 19, 10,
|
|
1577
|
+
19, 12, 19, 331, 9, 19, 1, 19, 3, 19, 334, 8, 19, 1, 20, 1, 20, 1, 20, 5, 20, 339, 8, 20, 10, 20,
|
|
1578
|
+
12, 20, 342, 9, 20, 1, 20, 3, 20, 345, 8, 20, 1, 20, 0, 0, 21, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18,
|
|
1579
|
+
20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 0, 1, 1, 0, 22, 23, 387, 0, 43, 1, 0, 0, 0, 2, 90, 1,
|
|
1580
|
+
0, 0, 0, 4, 94, 1, 0, 0, 0, 6, 112, 1, 0, 0, 0, 8, 137, 1, 0, 0, 0, 10, 139, 1, 0, 0, 0, 12, 158, 1,
|
|
1581
|
+
0, 0, 0, 14, 188, 1, 0, 0, 0, 16, 214, 1, 0, 0, 0, 18, 216, 1, 0, 0, 0, 20, 231, 1, 0, 0, 0, 22, 256,
|
|
1582
|
+
1, 0, 0, 0, 24, 266, 1, 0, 0, 0, 26, 294, 1, 0, 0, 0, 28, 296, 1, 0, 0, 0, 30, 298, 1, 0, 0, 0, 32,
|
|
1583
|
+
300, 1, 0, 0, 0, 34, 310, 1, 0, 0, 0, 36, 322, 1, 0, 0, 0, 38, 333, 1, 0, 0, 0, 40, 344, 1, 0, 0, 0,
|
|
1584
|
+
42, 44, 5, 27, 0, 0, 43, 42, 1, 0, 0, 0, 43, 44, 1, 0, 0, 0, 44, 48, 1, 0, 0, 0, 45, 47, 5, 45, 0, 0,
|
|
1585
|
+
46, 45, 1, 0, 0, 0, 47, 50, 1, 0, 0, 0, 48, 46, 1, 0, 0, 0, 48, 49, 1, 0, 0, 0, 49, 54, 1, 0, 0, 0, 50,
|
|
1586
|
+
48, 1, 0, 0, 0, 51, 53, 5, 39, 0, 0, 52, 51, 1, 0, 0, 0, 53, 56, 1, 0, 0, 0, 54, 52, 1, 0, 0, 0, 54,
|
|
1587
|
+
55, 1, 0, 0, 0, 55, 58, 1, 0, 0, 0, 56, 54, 1, 0, 0, 0, 57, 59, 5, 1, 0, 0, 58, 57, 1, 0, 0, 0, 58, 59,
|
|
1588
|
+
1, 0, 0, 0, 59, 63, 1, 0, 0, 0, 60, 62, 5, 45, 0, 0, 61, 60, 1, 0, 0, 0, 62, 65, 1, 0, 0, 0, 63, 61,
|
|
1589
|
+
1, 0, 0, 0, 63, 64, 1, 0, 0, 0, 64, 69, 1, 0, 0, 0, 65, 63, 1, 0, 0, 0, 66, 68, 5, 39, 0, 0, 67, 66,
|
|
1590
|
+
1, 0, 0, 0, 68, 71, 1, 0, 0, 0, 69, 67, 1, 0, 0, 0, 69, 70, 1, 0, 0, 0, 70, 73, 1, 0, 0, 0, 71, 69, 1,
|
|
1591
|
+
0, 0, 0, 72, 74, 3, 2, 1, 0, 73, 72, 1, 0, 0, 0, 74, 75, 1, 0, 0, 0, 75, 73, 1, 0, 0, 0, 75, 76, 1, 0,
|
|
1592
|
+
0, 0, 76, 80, 1, 0, 0, 0, 77, 79, 5, 39, 0, 0, 78, 77, 1, 0, 0, 0, 79, 82, 1, 0, 0, 0, 80, 78, 1, 0,
|
|
1593
|
+
0, 0, 80, 81, 1, 0, 0, 0, 81, 84, 1, 0, 0, 0, 82, 80, 1, 0, 0, 0, 83, 85, 3, 4, 2, 0, 84, 83, 1, 0, 0,
|
|
1594
|
+
0, 84, 85, 1, 0, 0, 0, 85, 87, 1, 0, 0, 0, 86, 88, 5, 0, 0, 1, 87, 86, 1, 0, 0, 0, 87, 88, 1, 0, 0, 0,
|
|
1595
|
+
88, 1, 1, 0, 0, 0, 89, 91, 5, 2, 0, 0, 90, 89, 1, 0, 0, 0, 90, 91, 1, 0, 0, 0, 91, 92, 1, 0, 0, 0, 92,
|
|
1596
|
+
93, 3, 6, 3, 0, 93, 3, 1, 0, 0, 0, 94, 109, 5, 3, 0, 0, 95, 97, 5, 39, 0, 0, 96, 95, 1, 0, 0, 0, 97,
|
|
1597
|
+
98, 1, 0, 0, 0, 98, 96, 1, 0, 0, 0, 98, 99, 1, 0, 0, 0, 99, 110, 1, 0, 0, 0, 100, 102, 5, 45, 0, 0,
|
|
1598
|
+
101, 100, 1, 0, 0, 0, 101, 102, 1, 0, 0, 0, 102, 106, 1, 0, 0, 0, 103, 105, 5, 39, 0, 0, 104, 103,
|
|
1599
|
+
1, 0, 0, 0, 105, 108, 1, 0, 0, 0, 106, 104, 1, 0, 0, 0, 106, 107, 1, 0, 0, 0, 107, 110, 1, 0, 0, 0,
|
|
1600
|
+
108, 106, 1, 0, 0, 0, 109, 96, 1, 0, 0, 0, 109, 101, 1, 0, 0, 0, 110, 5, 1, 0, 0, 0, 111, 113, 3,
|
|
1601
|
+
8, 4, 0, 112, 111, 1, 0, 0, 0, 113, 114, 1, 0, 0, 0, 114, 112, 1, 0, 0, 0, 114, 115, 1, 0, 0, 0, 115,
|
|
1602
|
+
7, 1, 0, 0, 0, 116, 118, 5, 29, 0, 0, 117, 119, 5, 41, 0, 0, 118, 117, 1, 0, 0, 0, 118, 119, 1, 0,
|
|
1603
|
+
0, 0, 119, 120, 1, 0, 0, 0, 120, 122, 5, 9, 0, 0, 121, 123, 5, 41, 0, 0, 122, 121, 1, 0, 0, 0, 122,
|
|
1604
|
+
123, 1, 0, 0, 0, 123, 125, 1, 0, 0, 0, 124, 126, 3, 12, 6, 0, 125, 124, 1, 0, 0, 0, 125, 126, 1,
|
|
1605
|
+
0, 0, 0, 126, 128, 1, 0, 0, 0, 127, 129, 5, 39, 0, 0, 128, 127, 1, 0, 0, 0, 129, 130, 1, 0, 0, 0,
|
|
1606
|
+
130, 128, 1, 0, 0, 0, 130, 131, 1, 0, 0, 0, 131, 138, 1, 0, 0, 0, 132, 138, 3, 10, 5, 0, 133, 135,
|
|
1607
|
+
5, 2, 0, 0, 134, 136, 3, 6, 3, 0, 135, 134, 1, 0, 0, 0, 135, 136, 1, 0, 0, 0, 136, 138, 1, 0, 0, 0,
|
|
1608
|
+
137, 116, 1, 0, 0, 0, 137, 132, 1, 0, 0, 0, 137, 133, 1, 0, 0, 0, 138, 9, 1, 0, 0, 0, 139, 140, 5,
|
|
1609
|
+
29, 0, 0, 140, 142, 5, 12, 0, 0, 141, 143, 5, 41, 0, 0, 142, 141, 1, 0, 0, 0, 142, 143, 1, 0, 0,
|
|
1610
|
+
0, 143, 145, 1, 0, 0, 0, 144, 146, 3, 24, 12, 0, 145, 144, 1, 0, 0, 0, 145, 146, 1, 0, 0, 0, 146,
|
|
1611
|
+
148, 1, 0, 0, 0, 147, 149, 5, 39, 0, 0, 148, 147, 1, 0, 0, 0, 149, 150, 1, 0, 0, 0, 150, 148, 1,
|
|
1612
|
+
0, 0, 0, 150, 151, 1, 0, 0, 0, 151, 11, 1, 0, 0, 0, 152, 159, 3, 30, 15, 0, 153, 159, 3, 32, 16,
|
|
1613
|
+
0, 154, 159, 3, 28, 14, 0, 155, 159, 3, 36, 18, 0, 156, 159, 3, 22, 11, 0, 157, 159, 3, 14, 7,
|
|
1614
|
+
0, 158, 152, 1, 0, 0, 0, 158, 153, 1, 0, 0, 0, 158, 154, 1, 0, 0, 0, 158, 155, 1, 0, 0, 0, 158, 156,
|
|
1615
|
+
1, 0, 0, 0, 158, 157, 1, 0, 0, 0, 159, 13, 1, 0, 0, 0, 160, 164, 5, 15, 0, 0, 161, 163, 5, 39, 0,
|
|
1616
|
+
0, 162, 161, 1, 0, 0, 0, 163, 166, 1, 0, 0, 0, 164, 162, 1, 0, 0, 0, 164, 165, 1, 0, 0, 0, 165, 167,
|
|
1617
|
+
1, 0, 0, 0, 166, 164, 1, 0, 0, 0, 167, 171, 3, 16, 8, 0, 168, 170, 5, 39, 0, 0, 169, 168, 1, 0, 0,
|
|
1618
|
+
0, 170, 173, 1, 0, 0, 0, 171, 169, 1, 0, 0, 0, 171, 172, 1, 0, 0, 0, 172, 174, 1, 0, 0, 0, 173, 171,
|
|
1619
|
+
1, 0, 0, 0, 174, 178, 5, 16, 0, 0, 175, 177, 5, 39, 0, 0, 176, 175, 1, 0, 0, 0, 177, 180, 1, 0, 0,
|
|
1620
|
+
0, 178, 176, 1, 0, 0, 0, 178, 179, 1, 0, 0, 0, 179, 189, 1, 0, 0, 0, 180, 178, 1, 0, 0, 0, 181, 185,
|
|
1621
|
+
3, 38, 19, 0, 182, 184, 5, 39, 0, 0, 183, 182, 1, 0, 0, 0, 184, 187, 1, 0, 0, 0, 185, 183, 1, 0,
|
|
1622
|
+
0, 0, 185, 186, 1, 0, 0, 0, 186, 189, 1, 0, 0, 0, 187, 185, 1, 0, 0, 0, 188, 160, 1, 0, 0, 0, 188,
|
|
1623
|
+
181, 1, 0, 0, 0, 189, 15, 1, 0, 0, 0, 190, 201, 3, 18, 9, 0, 191, 195, 5, 11, 0, 0, 192, 194, 5,
|
|
1624
|
+
39, 0, 0, 193, 192, 1, 0, 0, 0, 194, 197, 1, 0, 0, 0, 195, 193, 1, 0, 0, 0, 195, 196, 1, 0, 0, 0,
|
|
1625
|
+
196, 198, 1, 0, 0, 0, 197, 195, 1, 0, 0, 0, 198, 200, 3, 18, 9, 0, 199, 191, 1, 0, 0, 0, 200, 203,
|
|
1626
|
+
1, 0, 0, 0, 201, 199, 1, 0, 0, 0, 201, 202, 1, 0, 0, 0, 202, 205, 1, 0, 0, 0, 203, 201, 1, 0, 0, 0,
|
|
1627
|
+
204, 206, 5, 11, 0, 0, 205, 204, 1, 0, 0, 0, 205, 206, 1, 0, 0, 0, 206, 215, 1, 0, 0, 0, 207, 211,
|
|
1628
|
+
3, 38, 19, 0, 208, 210, 5, 39, 0, 0, 209, 208, 1, 0, 0, 0, 210, 213, 1, 0, 0, 0, 211, 209, 1, 0,
|
|
1629
|
+
0, 0, 211, 212, 1, 0, 0, 0, 212, 215, 1, 0, 0, 0, 213, 211, 1, 0, 0, 0, 214, 190, 1, 0, 0, 0, 214,
|
|
1630
|
+
207, 1, 0, 0, 0, 215, 17, 1, 0, 0, 0, 216, 218, 5, 29, 0, 0, 217, 219, 5, 41, 0, 0, 218, 217, 1,
|
|
1631
|
+
0, 0, 0, 218, 219, 1, 0, 0, 0, 219, 220, 1, 0, 0, 0, 220, 224, 5, 9, 0, 0, 221, 223, 5, 39, 0, 0,
|
|
1632
|
+
222, 221, 1, 0, 0, 0, 223, 226, 1, 0, 0, 0, 224, 222, 1, 0, 0, 0, 224, 225, 1, 0, 0, 0, 225, 227,
|
|
1633
|
+
1, 0, 0, 0, 226, 224, 1, 0, 0, 0, 227, 228, 3, 12, 6, 0, 228, 19, 1, 0, 0, 0, 229, 232, 3, 24, 12,
|
|
1634
|
+
0, 230, 232, 3, 22, 11, 0, 231, 229, 1, 0, 0, 0, 231, 230, 1, 0, 0, 0, 232, 21, 1, 0, 0, 0, 233,
|
|
1635
|
+
237, 5, 13, 0, 0, 234, 236, 5, 39, 0, 0, 235, 234, 1, 0, 0, 0, 236, 239, 1, 0, 0, 0, 237, 235, 1,
|
|
1636
|
+
0, 0, 0, 237, 238, 1, 0, 0, 0, 238, 240, 1, 0, 0, 0, 239, 237, 1, 0, 0, 0, 240, 244, 3, 24, 12, 0,
|
|
1637
|
+
241, 243, 5, 39, 0, 0, 242, 241, 1, 0, 0, 0, 243, 246, 1, 0, 0, 0, 244, 242, 1, 0, 0, 0, 244, 245,
|
|
1638
|
+
1, 0, 0, 0, 245, 247, 1, 0, 0, 0, 246, 244, 1, 0, 0, 0, 247, 248, 5, 14, 0, 0, 248, 257, 1, 0, 0,
|
|
1639
|
+
0, 249, 253, 3, 40, 20, 0, 250, 252, 5, 39, 0, 0, 251, 250, 1, 0, 0, 0, 252, 255, 1, 0, 0, 0, 253,
|
|
1640
|
+
251, 1, 0, 0, 0, 253, 254, 1, 0, 0, 0, 254, 257, 1, 0, 0, 0, 255, 253, 1, 0, 0, 0, 256, 233, 1, 0,
|
|
1641
|
+
0, 0, 256, 249, 1, 0, 0, 0, 257, 23, 1, 0, 0, 0, 258, 260, 3, 26, 13, 0, 259, 261, 5, 11, 0, 0, 260,
|
|
1642
|
+
259, 1, 0, 0, 0, 260, 261, 1, 0, 0, 0, 261, 267, 1, 0, 0, 0, 262, 263, 3, 26, 13, 0, 263, 264, 5,
|
|
1643
|
+
11, 0, 0, 264, 265, 3, 24, 12, 0, 265, 267, 1, 0, 0, 0, 266, 258, 1, 0, 0, 0, 266, 262, 1, 0, 0,
|
|
1644
|
+
0, 267, 25, 1, 0, 0, 0, 268, 270, 5, 39, 0, 0, 269, 268, 1, 0, 0, 0, 270, 273, 1, 0, 0, 0, 271, 269,
|
|
1645
|
+
1, 0, 0, 0, 271, 272, 1, 0, 0, 0, 272, 274, 1, 0, 0, 0, 273, 271, 1, 0, 0, 0, 274, 278, 3, 12, 6,
|
|
1646
|
+
0, 275, 277, 5, 39, 0, 0, 276, 275, 1, 0, 0, 0, 277, 280, 1, 0, 0, 0, 278, 276, 1, 0, 0, 0, 278,
|
|
1647
|
+
279, 1, 0, 0, 0, 279, 295, 1, 0, 0, 0, 280, 278, 1, 0, 0, 0, 281, 283, 5, 39, 0, 0, 282, 281, 1,
|
|
1648
|
+
0, 0, 0, 283, 286, 1, 0, 0, 0, 284, 282, 1, 0, 0, 0, 284, 285, 1, 0, 0, 0, 285, 287, 1, 0, 0, 0, 286,
|
|
1649
|
+
284, 1, 0, 0, 0, 287, 291, 3, 22, 11, 0, 288, 290, 5, 39, 0, 0, 289, 288, 1, 0, 0, 0, 290, 293,
|
|
1650
|
+
1, 0, 0, 0, 291, 289, 1, 0, 0, 0, 291, 292, 1, 0, 0, 0, 292, 295, 1, 0, 0, 0, 293, 291, 1, 0, 0, 0,
|
|
1651
|
+
294, 271, 1, 0, 0, 0, 294, 284, 1, 0, 0, 0, 295, 27, 1, 0, 0, 0, 296, 297, 5, 28, 0, 0, 297, 29,
|
|
1652
|
+
1, 0, 0, 0, 298, 299, 5, 24, 0, 0, 299, 31, 1, 0, 0, 0, 300, 304, 5, 32, 0, 0, 301, 303, 3, 34, 17,
|
|
1653
|
+
0, 302, 301, 1, 0, 0, 0, 303, 306, 1, 0, 0, 0, 304, 302, 1, 0, 0, 0, 304, 305, 1, 0, 0, 0, 305, 33,
|
|
1654
|
+
1, 0, 0, 0, 306, 304, 1, 0, 0, 0, 307, 309, 5, 39, 0, 0, 308, 307, 1, 0, 0, 0, 309, 312, 1, 0, 0,
|
|
1655
|
+
0, 310, 308, 1, 0, 0, 0, 310, 311, 1, 0, 0, 0, 311, 313, 1, 0, 0, 0, 312, 310, 1, 0, 0, 0, 313, 317,
|
|
1656
|
+
5, 17, 0, 0, 314, 316, 5, 39, 0, 0, 315, 314, 1, 0, 0, 0, 316, 319, 1, 0, 0, 0, 317, 315, 1, 0, 0,
|
|
1657
|
+
0, 317, 318, 1, 0, 0, 0, 318, 320, 1, 0, 0, 0, 319, 317, 1, 0, 0, 0, 320, 321, 5, 32, 0, 0, 321,
|
|
1658
|
+
35, 1, 0, 0, 0, 322, 323, 7, 0, 0, 0, 323, 37, 1, 0, 0, 0, 324, 334, 5, 25, 0, 0, 325, 329, 5, 15,
|
|
1659
|
+
0, 0, 326, 328, 5, 39, 0, 0, 327, 326, 1, 0, 0, 0, 328, 331, 1, 0, 0, 0, 329, 327, 1, 0, 0, 0, 329,
|
|
1660
|
+
330, 1, 0, 0, 0, 330, 332, 1, 0, 0, 0, 331, 329, 1, 0, 0, 0, 332, 334, 5, 16, 0, 0, 333, 324, 1,
|
|
1661
|
+
0, 0, 0, 333, 325, 1, 0, 0, 0, 334, 39, 1, 0, 0, 0, 335, 345, 5, 26, 0, 0, 336, 340, 5, 13, 0, 0,
|
|
1662
|
+
337, 339, 5, 39, 0, 0, 338, 337, 1, 0, 0, 0, 339, 342, 1, 0, 0, 0, 340, 338, 1, 0, 0, 0, 340, 341,
|
|
1663
|
+
1, 0, 0, 0, 341, 343, 1, 0, 0, 0, 342, 340, 1, 0, 0, 0, 343, 345, 5, 14, 0, 0, 344, 335, 1, 0, 0,
|
|
1664
|
+
0, 344, 336, 1, 0, 0, 0, 345, 41, 1, 0, 0, 0, 57, 43, 48, 54, 58, 63, 69, 75, 80, 84, 87, 90, 98,
|
|
1665
|
+
101, 106, 109, 114, 118, 122, 125, 130, 135, 137, 142, 145, 150, 158, 164, 171, 178, 185,
|
|
1666
|
+
188, 195, 201, 205, 211, 214, 218, 224, 231, 237, 244, 253, 256, 260, 266, 271, 278, 284,
|
|
1667
|
+
291, 294, 304, 310, 317, 329, 333, 340, 344];
|
|
1486
1668
|
YiniParser.DecisionsToDFA = YiniParser._ATN.decisionToState.map((ds, index) => new antlr4_1.DFA(ds, index));
|
|
1487
1669
|
exports.default = YiniParser;
|
|
1488
1670
|
class YiniContext extends antlr4_1.ParserRuleContext {
|
|
@@ -1758,8 +1940,8 @@ class Object_literalContext extends antlr4_1.ParserRuleContext {
|
|
|
1758
1940
|
NL(i) {
|
|
1759
1941
|
return this.getToken(YiniParser.NL, i);
|
|
1760
1942
|
}
|
|
1761
|
-
|
|
1762
|
-
return this.
|
|
1943
|
+
empty_object() {
|
|
1944
|
+
return this.getTypedRuleContext(Empty_objectContext, 0);
|
|
1763
1945
|
}
|
|
1764
1946
|
get ruleIndex() {
|
|
1765
1947
|
return YiniParser.RULE_object_literal;
|
|
@@ -1798,8 +1980,8 @@ class ObjectMemberListContext extends antlr4_1.ParserRuleContext {
|
|
|
1798
1980
|
NL(i) {
|
|
1799
1981
|
return this.getToken(YiniParser.NL, i);
|
|
1800
1982
|
}
|
|
1801
|
-
|
|
1802
|
-
return this.
|
|
1983
|
+
empty_object() {
|
|
1984
|
+
return this.getTypedRuleContext(Empty_objectContext, 0);
|
|
1803
1985
|
}
|
|
1804
1986
|
get ruleIndex() {
|
|
1805
1987
|
return YiniParser.RULE_objectMemberList;
|
|
@@ -1897,8 +2079,8 @@ class List_in_bracketsContext extends antlr4_1.ParserRuleContext {
|
|
|
1897
2079
|
NL(i) {
|
|
1898
2080
|
return this.getToken(YiniParser.NL, i);
|
|
1899
2081
|
}
|
|
1900
|
-
|
|
1901
|
-
return this.
|
|
2082
|
+
empty_list() {
|
|
2083
|
+
return this.getTypedRuleContext(Empty_listContext, 0);
|
|
1902
2084
|
}
|
|
1903
2085
|
get ruleIndex() {
|
|
1904
2086
|
return YiniParser.RULE_list_in_brackets;
|
|
@@ -2101,3 +2283,71 @@ class Boolean_literalContext extends antlr4_1.ParserRuleContext {
|
|
|
2101
2283
|
}
|
|
2102
2284
|
}
|
|
2103
2285
|
exports.Boolean_literalContext = Boolean_literalContext;
|
|
2286
|
+
class Empty_objectContext extends antlr4_1.ParserRuleContext {
|
|
2287
|
+
constructor(parser, parent, invokingState) {
|
|
2288
|
+
super(parent, invokingState);
|
|
2289
|
+
this.parser = parser;
|
|
2290
|
+
}
|
|
2291
|
+
EMPTY_OBJECT() {
|
|
2292
|
+
return this.getToken(YiniParser.EMPTY_OBJECT, 0);
|
|
2293
|
+
}
|
|
2294
|
+
OC() {
|
|
2295
|
+
return this.getToken(YiniParser.OC, 0);
|
|
2296
|
+
}
|
|
2297
|
+
CC() {
|
|
2298
|
+
return this.getToken(YiniParser.CC, 0);
|
|
2299
|
+
}
|
|
2300
|
+
NL_list() {
|
|
2301
|
+
return this.getTokens(YiniParser.NL);
|
|
2302
|
+
}
|
|
2303
|
+
NL(i) {
|
|
2304
|
+
return this.getToken(YiniParser.NL, i);
|
|
2305
|
+
}
|
|
2306
|
+
get ruleIndex() {
|
|
2307
|
+
return YiniParser.RULE_empty_object;
|
|
2308
|
+
}
|
|
2309
|
+
// @Override
|
|
2310
|
+
accept(visitor) {
|
|
2311
|
+
if (visitor.visitEmpty_object) {
|
|
2312
|
+
return visitor.visitEmpty_object(this);
|
|
2313
|
+
}
|
|
2314
|
+
else {
|
|
2315
|
+
return visitor.visitChildren(this);
|
|
2316
|
+
}
|
|
2317
|
+
}
|
|
2318
|
+
}
|
|
2319
|
+
exports.Empty_objectContext = Empty_objectContext;
|
|
2320
|
+
class Empty_listContext extends antlr4_1.ParserRuleContext {
|
|
2321
|
+
constructor(parser, parent, invokingState) {
|
|
2322
|
+
super(parent, invokingState);
|
|
2323
|
+
this.parser = parser;
|
|
2324
|
+
}
|
|
2325
|
+
EMPTY_LIST() {
|
|
2326
|
+
return this.getToken(YiniParser.EMPTY_LIST, 0);
|
|
2327
|
+
}
|
|
2328
|
+
OB() {
|
|
2329
|
+
return this.getToken(YiniParser.OB, 0);
|
|
2330
|
+
}
|
|
2331
|
+
CB() {
|
|
2332
|
+
return this.getToken(YiniParser.CB, 0);
|
|
2333
|
+
}
|
|
2334
|
+
NL_list() {
|
|
2335
|
+
return this.getTokens(YiniParser.NL);
|
|
2336
|
+
}
|
|
2337
|
+
NL(i) {
|
|
2338
|
+
return this.getToken(YiniParser.NL, i);
|
|
2339
|
+
}
|
|
2340
|
+
get ruleIndex() {
|
|
2341
|
+
return YiniParser.RULE_empty_list;
|
|
2342
|
+
}
|
|
2343
|
+
// @Override
|
|
2344
|
+
accept(visitor) {
|
|
2345
|
+
if (visitor.visitEmpty_list) {
|
|
2346
|
+
return visitor.visitEmpty_list(this);
|
|
2347
|
+
}
|
|
2348
|
+
else {
|
|
2349
|
+
return visitor.visitChildren(this);
|
|
2350
|
+
}
|
|
2351
|
+
}
|
|
2352
|
+
}
|
|
2353
|
+
exports.Empty_listContext = Empty_listContext;
|