yini-parser 1.0.0-alpha.5 → 1.0.0-alpha.7

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.
@@ -29,7 +29,7 @@ class YiniParser extends antlr4_1.Parser {
29
29
  this.state = 39;
30
30
  this._errHandler.sync(this);
31
31
  _la = this._input.LA(1);
32
- if (_la === 28) {
32
+ if (_la === 27) {
33
33
  {
34
34
  this.state = 38;
35
35
  this.match(YiniParser.SHEBANG);
@@ -79,7 +79,7 @@ class YiniParser extends antlr4_1.Parser {
79
79
  this.state = 59;
80
80
  this._errHandler.sync(this);
81
81
  _la = this._input.LA(1);
82
- while (_la === 46) {
82
+ while (_la === 45) {
83
83
  {
84
84
  {
85
85
  this.state = 56;
@@ -93,7 +93,7 @@ class YiniParser extends antlr4_1.Parser {
93
93
  this.state = 65;
94
94
  this._errHandler.sync(this);
95
95
  _la = this._input.LA(1);
96
- while (_la === 40) {
96
+ while (_la === 39) {
97
97
  {
98
98
  {
99
99
  this.state = 62;
@@ -117,11 +117,11 @@ class YiniParser extends antlr4_1.Parser {
117
117
  this.state = 71;
118
118
  this._errHandler.sync(this);
119
119
  _la = this._input.LA(1);
120
- } while (_la === 2 || _la === 30);
120
+ } while (_la === 2 || _la === 29);
121
121
  this.state = 76;
122
122
  this._errHandler.sync(this);
123
123
  _la = this._input.LA(1);
124
- while (_la === 40) {
124
+ while (_la === 39) {
125
125
  {
126
126
  {
127
127
  this.state = 73;
@@ -232,7 +232,7 @@ class YiniParser extends antlr4_1.Parser {
232
232
  this.state = 94;
233
233
  this._errHandler.sync(this);
234
234
  _la = this._input.LA(1);
235
- } while (_la === 40);
235
+ } while (_la === 39);
236
236
  }
237
237
  break;
238
238
  case 2:
@@ -240,7 +240,7 @@ class YiniParser extends antlr4_1.Parser {
240
240
  this.state = 97;
241
241
  this._errHandler.sync(this);
242
242
  _la = this._input.LA(1);
243
- if (_la === 46) {
243
+ if (_la === 45) {
244
244
  {
245
245
  this.state = 96;
246
246
  this.match(YiniParser.INLINE_COMMENT);
@@ -249,7 +249,7 @@ class YiniParser extends antlr4_1.Parser {
249
249
  this.state = 102;
250
250
  this._errHandler.sync(this);
251
251
  _la = this._input.LA(1);
252
- while (_la === 40) {
252
+ while (_la === 39) {
253
253
  {
254
254
  {
255
255
  this.state = 99;
@@ -343,7 +343,7 @@ class YiniParser extends antlr4_1.Parser {
343
343
  this.state = 114;
344
344
  this._errHandler.sync(this);
345
345
  _la = this._input.LA(1);
346
- if (_la === 42) {
346
+ if (_la === 41) {
347
347
  {
348
348
  this.state = 113;
349
349
  this.match(YiniParser.WS);
@@ -354,7 +354,7 @@ class YiniParser extends antlr4_1.Parser {
354
354
  this.state = 118;
355
355
  this._errHandler.sync(this);
356
356
  _la = this._input.LA(1);
357
- if (_la === 42) {
357
+ if (_la === 41) {
358
358
  {
359
359
  this.state = 117;
360
360
  this.match(YiniParser.WS);
@@ -363,7 +363,7 @@ class YiniParser extends antlr4_1.Parser {
363
363
  this.state = 121;
364
364
  this._errHandler.sync(this);
365
365
  _la = this._input.LA(1);
366
- if (((((_la - 14)) & ~0x1F) === 0 && ((1 << (_la - 14)) & 572933) !== 0)) {
366
+ if (((((_la - 13)) & ~0x1F) === 0 && ((1 << (_la - 13)) & 572933) !== 0)) {
367
367
  {
368
368
  this.state = 120;
369
369
  this.value();
@@ -448,7 +448,7 @@ class YiniParser extends antlr4_1.Parser {
448
448
  this.state = 138;
449
449
  this._errHandler.sync(this);
450
450
  _la = this._input.LA(1);
451
- if (_la === 42) {
451
+ if (_la === 41) {
452
452
  {
453
453
  this.state = 137;
454
454
  this.match(YiniParser.WS);
@@ -509,45 +509,45 @@ class YiniParser extends antlr4_1.Parser {
509
509
  this.state = 154;
510
510
  this._errHandler.sync(this);
511
511
  switch (this._input.LA(1)) {
512
- case 25:
512
+ case 24:
513
513
  this.enterOuterAlt(localctx, 1);
514
514
  {
515
515
  this.state = 148;
516
516
  this.null_literal();
517
517
  }
518
518
  break;
519
- case 33:
519
+ case 32:
520
520
  this.enterOuterAlt(localctx, 2);
521
521
  {
522
522
  this.state = 149;
523
523
  this.string_literal();
524
524
  }
525
525
  break;
526
- case 29:
526
+ case 28:
527
527
  this.enterOuterAlt(localctx, 3);
528
528
  {
529
529
  this.state = 150;
530
530
  this.number_literal();
531
531
  }
532
532
  break;
533
+ case 22:
533
534
  case 23:
534
- case 24:
535
535
  this.enterOuterAlt(localctx, 4);
536
536
  {
537
537
  this.state = 151;
538
538
  this.boolean_literal();
539
539
  }
540
540
  break;
541
- case 14:
542
- case 27:
541
+ case 13:
542
+ case 26:
543
543
  this.enterOuterAlt(localctx, 5);
544
544
  {
545
545
  this.state = 152;
546
546
  this.list_in_brackets();
547
547
  }
548
548
  break;
549
- case 16:
550
- case 26:
549
+ case 15:
550
+ case 25:
551
551
  this.enterOuterAlt(localctx, 6);
552
552
  {
553
553
  this.state = 153;
@@ -583,7 +583,7 @@ class YiniParser extends antlr4_1.Parser {
583
583
  this.state = 178;
584
584
  this._errHandler.sync(this);
585
585
  switch (this._input.LA(1)) {
586
- case 16:
586
+ case 15:
587
587
  this.enterOuterAlt(localctx, 1);
588
588
  {
589
589
  this.state = 156;
@@ -591,7 +591,7 @@ class YiniParser extends antlr4_1.Parser {
591
591
  this.state = 160;
592
592
  this._errHandler.sync(this);
593
593
  _la = this._input.LA(1);
594
- while (_la === 40) {
594
+ while (_la === 39) {
595
595
  {
596
596
  {
597
597
  this.state = 157;
@@ -607,7 +607,7 @@ class YiniParser extends antlr4_1.Parser {
607
607
  this.state = 167;
608
608
  this._errHandler.sync(this);
609
609
  _la = this._input.LA(1);
610
- while (_la === 40) {
610
+ while (_la === 39) {
611
611
  {
612
612
  {
613
613
  this.state = 164;
@@ -638,7 +638,7 @@ class YiniParser extends antlr4_1.Parser {
638
638
  }
639
639
  }
640
640
  break;
641
- case 26:
641
+ case 25:
642
642
  this.enterOuterAlt(localctx, 2);
643
643
  {
644
644
  this.state = 177;
@@ -674,7 +674,7 @@ class YiniParser extends antlr4_1.Parser {
674
674
  this.state = 198;
675
675
  this._errHandler.sync(this);
676
676
  switch (this._input.LA(1)) {
677
- case 30:
677
+ case 29:
678
678
  this.enterOuterAlt(localctx, 1);
679
679
  {
680
680
  this.state = 180;
@@ -691,7 +691,7 @@ class YiniParser extends antlr4_1.Parser {
691
691
  this.state = 185;
692
692
  this._errHandler.sync(this);
693
693
  _la = this._input.LA(1);
694
- while (_la === 40) {
694
+ while (_la === 39) {
695
695
  {
696
696
  {
697
697
  this.state = 182;
@@ -714,7 +714,7 @@ class YiniParser extends antlr4_1.Parser {
714
714
  this.state = 195;
715
715
  this._errHandler.sync(this);
716
716
  _la = this._input.LA(1);
717
- if (_la === 12) {
717
+ if (_la === 11) {
718
718
  {
719
719
  this.state = 194;
720
720
  this.match(YiniParser.COMMA);
@@ -722,7 +722,7 @@ class YiniParser extends antlr4_1.Parser {
722
722
  }
723
723
  }
724
724
  break;
725
- case 26:
725
+ case 25:
726
726
  this.enterOuterAlt(localctx, 2);
727
727
  {
728
728
  this.state = 197;
@@ -761,7 +761,7 @@ class YiniParser extends antlr4_1.Parser {
761
761
  this.state = 202;
762
762
  this._errHandler.sync(this);
763
763
  _la = this._input.LA(1);
764
- if (_la === 42) {
764
+ if (_la === 41) {
765
765
  {
766
766
  this.state = 201;
767
767
  this.match(YiniParser.WS);
@@ -772,7 +772,7 @@ class YiniParser extends antlr4_1.Parser {
772
772
  this.state = 208;
773
773
  this._errHandler.sync(this);
774
774
  _la = this._input.LA(1);
775
- while (_la === 40) {
775
+ while (_la === 39) {
776
776
  {
777
777
  {
778
778
  this.state = 205;
@@ -851,7 +851,7 @@ class YiniParser extends antlr4_1.Parser {
851
851
  this.state = 234;
852
852
  this._errHandler.sync(this);
853
853
  switch (this._input.LA(1)) {
854
- case 14:
854
+ case 13:
855
855
  this.enterOuterAlt(localctx, 1);
856
856
  {
857
857
  this.state = 217;
@@ -877,7 +877,7 @@ class YiniParser extends antlr4_1.Parser {
877
877
  this.state = 228;
878
878
  this._errHandler.sync(this);
879
879
  _la = this._input.LA(1);
880
- while (_la === 40) {
880
+ while (_la === 39) {
881
881
  {
882
882
  {
883
883
  this.state = 225;
@@ -892,7 +892,7 @@ class YiniParser extends antlr4_1.Parser {
892
892
  this.match(YiniParser.CB);
893
893
  }
894
894
  break;
895
- case 27:
895
+ case 26:
896
896
  this.enterOuterAlt(localctx, 2);
897
897
  {
898
898
  this.state = 233;
@@ -935,7 +935,7 @@ class YiniParser extends antlr4_1.Parser {
935
935
  this.state = 238;
936
936
  this._errHandler.sync(this);
937
937
  _la = this._input.LA(1);
938
- if (_la === 12) {
938
+ if (_la === 11) {
939
939
  {
940
940
  this.state = 237;
941
941
  this.match(YiniParser.COMMA);
@@ -987,7 +987,7 @@ class YiniParser extends antlr4_1.Parser {
987
987
  this.state = 249;
988
988
  this._errHandler.sync(this);
989
989
  _la = this._input.LA(1);
990
- while (_la === 40) {
990
+ while (_la === 39) {
991
991
  {
992
992
  {
993
993
  this.state = 246;
@@ -1024,7 +1024,7 @@ class YiniParser extends antlr4_1.Parser {
1024
1024
  this.state = 262;
1025
1025
  this._errHandler.sync(this);
1026
1026
  _la = this._input.LA(1);
1027
- while (_la === 40) {
1027
+ while (_la === 39) {
1028
1028
  {
1029
1029
  {
1030
1030
  this.state = 259;
@@ -1178,7 +1178,7 @@ class YiniParser extends antlr4_1.Parser {
1178
1178
  this.state = 288;
1179
1179
  this._errHandler.sync(this);
1180
1180
  _la = this._input.LA(1);
1181
- while (_la === 40) {
1181
+ while (_la === 39) {
1182
1182
  {
1183
1183
  {
1184
1184
  this.state = 285;
@@ -1194,7 +1194,7 @@ class YiniParser extends antlr4_1.Parser {
1194
1194
  this.state = 295;
1195
1195
  this._errHandler.sync(this);
1196
1196
  _la = this._input.LA(1);
1197
- while (_la === 40) {
1197
+ while (_la === 39) {
1198
1198
  {
1199
1199
  {
1200
1200
  this.state = 292;
@@ -1234,7 +1234,7 @@ class YiniParser extends antlr4_1.Parser {
1234
1234
  {
1235
1235
  this.state = 300;
1236
1236
  _la = this._input.LA(1);
1237
- if (!(_la === 23 || _la === 24)) {
1237
+ if (!(_la === 22 || _la === 23)) {
1238
1238
  this._errHandler.recoverInline(this);
1239
1239
  }
1240
1240
  else {
@@ -1271,47 +1271,46 @@ YiniParser.TERMINAL_TOKEN = 3;
1271
1271
  YiniParser.SS = 4;
1272
1272
  YiniParser.EUR = 5;
1273
1273
  YiniParser.CARET = 6;
1274
- YiniParser.TILDE = 7;
1275
- YiniParser.GT = 8;
1276
- YiniParser.LT = 9;
1277
- YiniParser.EQ = 10;
1278
- YiniParser.HASH = 11;
1279
- YiniParser.COMMA = 12;
1280
- YiniParser.COLON = 13;
1281
- YiniParser.OB = 14;
1282
- YiniParser.CB = 15;
1283
- YiniParser.OC = 16;
1284
- YiniParser.CC = 17;
1285
- YiniParser.PLUS = 18;
1286
- YiniParser.DOLLAR = 19;
1287
- YiniParser.PC = 20;
1288
- YiniParser.AT = 21;
1289
- YiniParser.SEMICOLON = 22;
1290
- YiniParser.BOOLEAN_FALSE = 23;
1291
- YiniParser.BOOLEAN_TRUE = 24;
1292
- YiniParser.NULL = 25;
1293
- YiniParser.EMPTY_OBJECT = 26;
1294
- YiniParser.EMPTY_LIST = 27;
1295
- YiniParser.SHEBANG = 28;
1296
- YiniParser.NUMBER = 29;
1297
- YiniParser.KEY = 30;
1298
- YiniParser.IDENT = 31;
1299
- YiniParser.IDENT_BACKTICKED = 32;
1300
- YiniParser.STRING = 33;
1301
- YiniParser.TRIPLE_QUOTED_STRING = 34;
1302
- YiniParser.SINGLE_OR_DOUBLE = 35;
1303
- YiniParser.R_AND_C_STRING = 36;
1304
- YiniParser.HYPER_STRING = 37;
1305
- YiniParser.ESC_SEQ = 38;
1306
- YiniParser.ESC_SEQ_BASE = 39;
1307
- YiniParser.NL = 40;
1308
- YiniParser.SINGLE_NL = 41;
1309
- YiniParser.WS = 42;
1310
- YiniParser.BLOCK_COMMENT = 43;
1311
- YiniParser.COMMENT = 44;
1312
- YiniParser.LINE_COMMENT = 45;
1313
- YiniParser.INLINE_COMMENT = 46;
1314
- YiniParser.IDENT_INVALID = 47;
1274
+ YiniParser.GT = 7;
1275
+ YiniParser.LT = 8;
1276
+ YiniParser.EQ = 9;
1277
+ YiniParser.HASH = 10;
1278
+ YiniParser.COMMA = 11;
1279
+ YiniParser.COLON = 12;
1280
+ YiniParser.OB = 13;
1281
+ YiniParser.CB = 14;
1282
+ YiniParser.OC = 15;
1283
+ YiniParser.CC = 16;
1284
+ YiniParser.PLUS = 17;
1285
+ YiniParser.DOLLAR = 18;
1286
+ YiniParser.PC = 19;
1287
+ YiniParser.AT = 20;
1288
+ YiniParser.SEMICOLON = 21;
1289
+ YiniParser.BOOLEAN_FALSE = 22;
1290
+ YiniParser.BOOLEAN_TRUE = 23;
1291
+ YiniParser.NULL = 24;
1292
+ YiniParser.EMPTY_OBJECT = 25;
1293
+ YiniParser.EMPTY_LIST = 26;
1294
+ YiniParser.SHEBANG = 27;
1295
+ YiniParser.NUMBER = 28;
1296
+ YiniParser.KEY = 29;
1297
+ YiniParser.IDENT = 30;
1298
+ YiniParser.IDENT_BACKTICKED = 31;
1299
+ YiniParser.STRING = 32;
1300
+ YiniParser.TRIPLE_QUOTED_STRING = 33;
1301
+ YiniParser.SINGLE_OR_DOUBLE = 34;
1302
+ YiniParser.R_AND_C_STRING = 35;
1303
+ YiniParser.HYPER_STRING = 36;
1304
+ YiniParser.ESC_SEQ = 37;
1305
+ YiniParser.ESC_SEQ_BASE = 38;
1306
+ YiniParser.NL = 39;
1307
+ YiniParser.SINGLE_NL = 40;
1308
+ YiniParser.WS = 41;
1309
+ YiniParser.BLOCK_COMMENT = 42;
1310
+ YiniParser.COMMENT = 43;
1311
+ YiniParser.LINE_COMMENT = 44;
1312
+ YiniParser.INLINE_COMMENT = 45;
1313
+ YiniParser.IDENT_INVALID = 46;
1315
1314
  YiniParser.EOF = antlr4_1.Token.EOF;
1316
1315
  YiniParser.RULE_yini = 0;
1317
1316
  YiniParser.RULE_section = 1;
@@ -1336,28 +1335,26 @@ YiniParser.literalNames = [null, null,
1336
1335
  null, null,
1337
1336
  "'\\u00A7'",
1338
1337
  "'\\u20AC'",
1339
- "'^'", "'~'",
1340
- "'>'", "'<'",
1341
- "'='", "'#'",
1342
- "','", "':'",
1343
- "'['", "']'",
1344
- "'{'", "'}'",
1345
- "'+'", "'$'",
1346
- "'%'", "'@'",
1347
- "';'"];
1338
+ "'^'", "'>'",
1339
+ "'<'", "'='",
1340
+ "'#'", "','",
1341
+ "':'", "'['",
1342
+ "']'", "'{'",
1343
+ "'}'", "'+'",
1344
+ "'$'", "'%'",
1345
+ "'@'", "';'"];
1348
1346
  YiniParser.symbolicNames = [null, "YINI_MARKER",
1349
1347
  "SECTION_HEAD",
1350
1348
  "TERMINAL_TOKEN",
1351
1349
  "SS", "EUR",
1352
- "CARET", "TILDE",
1353
- "GT", "LT",
1354
- "EQ", "HASH",
1355
- "COMMA", "COLON",
1356
- "OB", "CB",
1357
- "OC", "CC",
1358
- "PLUS", "DOLLAR",
1359
- "PC", "AT",
1360
- "SEMICOLON",
1350
+ "CARET", "GT",
1351
+ "LT", "EQ",
1352
+ "HASH", "COMMA",
1353
+ "COLON", "OB",
1354
+ "CB", "OC",
1355
+ "CC", "PLUS",
1356
+ "DOLLAR", "PC",
1357
+ "AT", "SEMICOLON",
1361
1358
  "BOOLEAN_FALSE",
1362
1359
  "BOOLEAN_TRUE",
1363
1360
  "NULL", "EMPTY_OBJECT",
@@ -1384,7 +1381,7 @@ YiniParser.ruleNames = [
1384
1381
  "list_in_brackets", "elements", "element", "number_literal", "null_literal",
1385
1382
  "string_literal", "string_concat", "boolean_literal",
1386
1383
  ];
1387
- YiniParser._serializedATN = [4, 1, 47, 303, 2, 0, 7, 0, 2,
1384
+ YiniParser._serializedATN = [4, 1, 46, 303, 2, 0, 7, 0, 2,
1388
1385
  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,
1389
1386
  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,
1390
1387
  7, 17, 2, 18, 7, 18, 1, 0, 3, 0, 40, 8, 0, 1, 0, 5, 0, 43, 8, 0, 10, 0, 12, 0, 46, 9, 0, 1, 0, 5, 0, 49,
@@ -1408,80 +1405,80 @@ YiniParser._serializedATN = [4, 1, 47, 303, 2, 0, 7, 0, 2,
1408
1405
  12, 13, 271, 9, 13, 3, 13, 273, 8, 13, 1, 14, 1, 14, 1, 15, 1, 15, 1, 16, 1, 16, 5, 16, 281, 8, 16,
1409
1406
  10, 16, 12, 16, 284, 9, 16, 1, 17, 5, 17, 287, 8, 17, 10, 17, 12, 17, 290, 9, 17, 1, 17, 1, 17,
1410
1407
  5, 17, 294, 8, 17, 10, 17, 12, 17, 297, 9, 17, 1, 17, 1, 17, 1, 18, 1, 18, 1, 18, 0, 0, 19, 0, 2,
1411
- 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 0, 1, 1, 0, 23, 24, 338, 0, 39,
1408
+ 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 0, 1, 1, 0, 22, 23, 338, 0, 39,
1412
1409
  1, 0, 0, 0, 2, 86, 1, 0, 0, 0, 4, 90, 1, 0, 0, 0, 6, 108, 1, 0, 0, 0, 8, 133, 1, 0, 0, 0, 10, 135, 1,
1413
1410
  0, 0, 0, 12, 154, 1, 0, 0, 0, 14, 178, 1, 0, 0, 0, 16, 198, 1, 0, 0, 0, 18, 200, 1, 0, 0, 0, 20, 215,
1414
1411
  1, 0, 0, 0, 22, 234, 1, 0, 0, 0, 24, 244, 1, 0, 0, 0, 26, 272, 1, 0, 0, 0, 28, 274, 1, 0, 0, 0, 30,
1415
- 276, 1, 0, 0, 0, 32, 278, 1, 0, 0, 0, 34, 288, 1, 0, 0, 0, 36, 300, 1, 0, 0, 0, 38, 40, 5, 28, 0, 0,
1416
- 39, 38, 1, 0, 0, 0, 39, 40, 1, 0, 0, 0, 40, 44, 1, 0, 0, 0, 41, 43, 5, 46, 0, 0, 42, 41, 1, 0, 0, 0,
1412
+ 276, 1, 0, 0, 0, 32, 278, 1, 0, 0, 0, 34, 288, 1, 0, 0, 0, 36, 300, 1, 0, 0, 0, 38, 40, 5, 27, 0, 0,
1413
+ 39, 38, 1, 0, 0, 0, 39, 40, 1, 0, 0, 0, 40, 44, 1, 0, 0, 0, 41, 43, 5, 45, 0, 0, 42, 41, 1, 0, 0, 0,
1417
1414
  43, 46, 1, 0, 0, 0, 44, 42, 1, 0, 0, 0, 44, 45, 1, 0, 0, 0, 45, 50, 1, 0, 0, 0, 46, 44, 1, 0, 0, 0, 47,
1418
- 49, 5, 40, 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,
1415
+ 49, 5, 39, 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,
1419
1416
  54, 1, 0, 0, 0, 52, 50, 1, 0, 0, 0, 53, 55, 5, 1, 0, 0, 54, 53, 1, 0, 0, 0, 54, 55, 1, 0, 0, 0, 55, 59,
1420
- 1, 0, 0, 0, 56, 58, 5, 46, 0, 0, 57, 56, 1, 0, 0, 0, 58, 61, 1, 0, 0, 0, 59, 57, 1, 0, 0, 0, 59, 60,
1421
- 1, 0, 0, 0, 60, 65, 1, 0, 0, 0, 61, 59, 1, 0, 0, 0, 62, 64, 5, 40, 0, 0, 63, 62, 1, 0, 0, 0, 64, 67,
1417
+ 1, 0, 0, 0, 56, 58, 5, 45, 0, 0, 57, 56, 1, 0, 0, 0, 58, 61, 1, 0, 0, 0, 59, 57, 1, 0, 0, 0, 59, 60,
1418
+ 1, 0, 0, 0, 60, 65, 1, 0, 0, 0, 61, 59, 1, 0, 0, 0, 62, 64, 5, 39, 0, 0, 63, 62, 1, 0, 0, 0, 64, 67,
1422
1419
  1, 0, 0, 0, 65, 63, 1, 0, 0, 0, 65, 66, 1, 0, 0, 0, 66, 69, 1, 0, 0, 0, 67, 65, 1, 0, 0, 0, 68, 70, 3,
1423
1420
  2, 1, 0, 69, 68, 1, 0, 0, 0, 70, 71, 1, 0, 0, 0, 71, 69, 1, 0, 0, 0, 71, 72, 1, 0, 0, 0, 72, 76, 1, 0,
1424
- 0, 0, 73, 75, 5, 40, 0, 0, 74, 73, 1, 0, 0, 0, 75, 78, 1, 0, 0, 0, 76, 74, 1, 0, 0, 0, 76, 77, 1, 0,
1421
+ 0, 0, 73, 75, 5, 39, 0, 0, 74, 73, 1, 0, 0, 0, 75, 78, 1, 0, 0, 0, 76, 74, 1, 0, 0, 0, 76, 77, 1, 0,
1425
1422
  0, 0, 77, 80, 1, 0, 0, 0, 78, 76, 1, 0, 0, 0, 79, 81, 3, 4, 2, 0, 80, 79, 1, 0, 0, 0, 80, 81, 1, 0, 0,
1426
1423
  0, 81, 83, 1, 0, 0, 0, 82, 84, 5, 0, 0, 1, 83, 82, 1, 0, 0, 0, 83, 84, 1, 0, 0, 0, 84, 1, 1, 0, 0, 0,
1427
1424
  85, 87, 5, 2, 0, 0, 86, 85, 1, 0, 0, 0, 86, 87, 1, 0, 0, 0, 87, 88, 1, 0, 0, 0, 88, 89, 3, 6, 3, 0, 89,
1428
- 3, 1, 0, 0, 0, 90, 105, 5, 3, 0, 0, 91, 93, 5, 40, 0, 0, 92, 91, 1, 0, 0, 0, 93, 94, 1, 0, 0, 0, 94,
1429
- 92, 1, 0, 0, 0, 94, 95, 1, 0, 0, 0, 95, 106, 1, 0, 0, 0, 96, 98, 5, 46, 0, 0, 97, 96, 1, 0, 0, 0, 97,
1430
- 98, 1, 0, 0, 0, 98, 102, 1, 0, 0, 0, 99, 101, 5, 40, 0, 0, 100, 99, 1, 0, 0, 0, 101, 104, 1, 0, 0,
1425
+ 3, 1, 0, 0, 0, 90, 105, 5, 3, 0, 0, 91, 93, 5, 39, 0, 0, 92, 91, 1, 0, 0, 0, 93, 94, 1, 0, 0, 0, 94,
1426
+ 92, 1, 0, 0, 0, 94, 95, 1, 0, 0, 0, 95, 106, 1, 0, 0, 0, 96, 98, 5, 45, 0, 0, 97, 96, 1, 0, 0, 0, 97,
1427
+ 98, 1, 0, 0, 0, 98, 102, 1, 0, 0, 0, 99, 101, 5, 39, 0, 0, 100, 99, 1, 0, 0, 0, 101, 104, 1, 0, 0,
1431
1428
  0, 102, 100, 1, 0, 0, 0, 102, 103, 1, 0, 0, 0, 103, 106, 1, 0, 0, 0, 104, 102, 1, 0, 0, 0, 105, 92,
1432
1429
  1, 0, 0, 0, 105, 97, 1, 0, 0, 0, 106, 5, 1, 0, 0, 0, 107, 109, 3, 8, 4, 0, 108, 107, 1, 0, 0, 0, 109,
1433
- 110, 1, 0, 0, 0, 110, 108, 1, 0, 0, 0, 110, 111, 1, 0, 0, 0, 111, 7, 1, 0, 0, 0, 112, 114, 5, 30,
1434
- 0, 0, 113, 115, 5, 42, 0, 0, 114, 113, 1, 0, 0, 0, 114, 115, 1, 0, 0, 0, 115, 116, 1, 0, 0, 0, 116,
1435
- 118, 5, 10, 0, 0, 117, 119, 5, 42, 0, 0, 118, 117, 1, 0, 0, 0, 118, 119, 1, 0, 0, 0, 119, 121, 1,
1430
+ 110, 1, 0, 0, 0, 110, 108, 1, 0, 0, 0, 110, 111, 1, 0, 0, 0, 111, 7, 1, 0, 0, 0, 112, 114, 5, 29,
1431
+ 0, 0, 113, 115, 5, 41, 0, 0, 114, 113, 1, 0, 0, 0, 114, 115, 1, 0, 0, 0, 115, 116, 1, 0, 0, 0, 116,
1432
+ 118, 5, 9, 0, 0, 117, 119, 5, 41, 0, 0, 118, 117, 1, 0, 0, 0, 118, 119, 1, 0, 0, 0, 119, 121, 1,
1436
1433
  0, 0, 0, 120, 122, 3, 12, 6, 0, 121, 120, 1, 0, 0, 0, 121, 122, 1, 0, 0, 0, 122, 124, 1, 0, 0, 0,
1437
- 123, 125, 5, 40, 0, 0, 124, 123, 1, 0, 0, 0, 125, 126, 1, 0, 0, 0, 126, 124, 1, 0, 0, 0, 126, 127,
1434
+ 123, 125, 5, 39, 0, 0, 124, 123, 1, 0, 0, 0, 125, 126, 1, 0, 0, 0, 126, 124, 1, 0, 0, 0, 126, 127,
1438
1435
  1, 0, 0, 0, 127, 134, 1, 0, 0, 0, 128, 134, 3, 10, 5, 0, 129, 131, 5, 2, 0, 0, 130, 132, 3, 6, 3,
1439
1436
  0, 131, 130, 1, 0, 0, 0, 131, 132, 1, 0, 0, 0, 132, 134, 1, 0, 0, 0, 133, 112, 1, 0, 0, 0, 133, 128,
1440
- 1, 0, 0, 0, 133, 129, 1, 0, 0, 0, 134, 9, 1, 0, 0, 0, 135, 136, 5, 30, 0, 0, 136, 138, 5, 13, 0, 0,
1441
- 137, 139, 5, 42, 0, 0, 138, 137, 1, 0, 0, 0, 138, 139, 1, 0, 0, 0, 139, 141, 1, 0, 0, 0, 140, 142,
1442
- 3, 24, 12, 0, 141, 140, 1, 0, 0, 0, 141, 142, 1, 0, 0, 0, 142, 144, 1, 0, 0, 0, 143, 145, 5, 40,
1437
+ 1, 0, 0, 0, 133, 129, 1, 0, 0, 0, 134, 9, 1, 0, 0, 0, 135, 136, 5, 29, 0, 0, 136, 138, 5, 12, 0, 0,
1438
+ 137, 139, 5, 41, 0, 0, 138, 137, 1, 0, 0, 0, 138, 139, 1, 0, 0, 0, 139, 141, 1, 0, 0, 0, 140, 142,
1439
+ 3, 24, 12, 0, 141, 140, 1, 0, 0, 0, 141, 142, 1, 0, 0, 0, 142, 144, 1, 0, 0, 0, 143, 145, 5, 39,
1443
1440
  0, 0, 144, 143, 1, 0, 0, 0, 145, 146, 1, 0, 0, 0, 146, 144, 1, 0, 0, 0, 146, 147, 1, 0, 0, 0, 147,
1444
1441
  11, 1, 0, 0, 0, 148, 155, 3, 30, 15, 0, 149, 155, 3, 32, 16, 0, 150, 155, 3, 28, 14, 0, 151, 155,
1445
1442
  3, 36, 18, 0, 152, 155, 3, 22, 11, 0, 153, 155, 3, 14, 7, 0, 154, 148, 1, 0, 0, 0, 154, 149, 1,
1446
1443
  0, 0, 0, 154, 150, 1, 0, 0, 0, 154, 151, 1, 0, 0, 0, 154, 152, 1, 0, 0, 0, 154, 153, 1, 0, 0, 0, 155,
1447
- 13, 1, 0, 0, 0, 156, 160, 5, 16, 0, 0, 157, 159, 5, 40, 0, 0, 158, 157, 1, 0, 0, 0, 159, 162, 1,
1444
+ 13, 1, 0, 0, 0, 156, 160, 5, 15, 0, 0, 157, 159, 5, 39, 0, 0, 158, 157, 1, 0, 0, 0, 159, 162, 1,
1448
1445
  0, 0, 0, 160, 158, 1, 0, 0, 0, 160, 161, 1, 0, 0, 0, 161, 163, 1, 0, 0, 0, 162, 160, 1, 0, 0, 0, 163,
1449
- 167, 3, 16, 8, 0, 164, 166, 5, 40, 0, 0, 165, 164, 1, 0, 0, 0, 166, 169, 1, 0, 0, 0, 167, 165, 1,
1450
- 0, 0, 0, 167, 168, 1, 0, 0, 0, 168, 170, 1, 0, 0, 0, 169, 167, 1, 0, 0, 0, 170, 174, 5, 17, 0, 0,
1451
- 171, 173, 5, 40, 0, 0, 172, 171, 1, 0, 0, 0, 173, 176, 1, 0, 0, 0, 174, 172, 1, 0, 0, 0, 174, 175,
1452
- 1, 0, 0, 0, 175, 179, 1, 0, 0, 0, 176, 174, 1, 0, 0, 0, 177, 179, 5, 26, 0, 0, 178, 156, 1, 0, 0,
1453
- 0, 178, 177, 1, 0, 0, 0, 179, 15, 1, 0, 0, 0, 180, 191, 3, 18, 9, 0, 181, 185, 5, 12, 0, 0, 182,
1454
- 184, 5, 40, 0, 0, 183, 182, 1, 0, 0, 0, 184, 187, 1, 0, 0, 0, 185, 183, 1, 0, 0, 0, 185, 186, 1,
1446
+ 167, 3, 16, 8, 0, 164, 166, 5, 39, 0, 0, 165, 164, 1, 0, 0, 0, 166, 169, 1, 0, 0, 0, 167, 165, 1,
1447
+ 0, 0, 0, 167, 168, 1, 0, 0, 0, 168, 170, 1, 0, 0, 0, 169, 167, 1, 0, 0, 0, 170, 174, 5, 16, 0, 0,
1448
+ 171, 173, 5, 39, 0, 0, 172, 171, 1, 0, 0, 0, 173, 176, 1, 0, 0, 0, 174, 172, 1, 0, 0, 0, 174, 175,
1449
+ 1, 0, 0, 0, 175, 179, 1, 0, 0, 0, 176, 174, 1, 0, 0, 0, 177, 179, 5, 25, 0, 0, 178, 156, 1, 0, 0,
1450
+ 0, 178, 177, 1, 0, 0, 0, 179, 15, 1, 0, 0, 0, 180, 191, 3, 18, 9, 0, 181, 185, 5, 11, 0, 0, 182,
1451
+ 184, 5, 39, 0, 0, 183, 182, 1, 0, 0, 0, 184, 187, 1, 0, 0, 0, 185, 183, 1, 0, 0, 0, 185, 186, 1,
1455
1452
  0, 0, 0, 186, 188, 1, 0, 0, 0, 187, 185, 1, 0, 0, 0, 188, 190, 3, 18, 9, 0, 189, 181, 1, 0, 0, 0,
1456
1453
  190, 193, 1, 0, 0, 0, 191, 189, 1, 0, 0, 0, 191, 192, 1, 0, 0, 0, 192, 195, 1, 0, 0, 0, 193, 191,
1457
- 1, 0, 0, 0, 194, 196, 5, 12, 0, 0, 195, 194, 1, 0, 0, 0, 195, 196, 1, 0, 0, 0, 196, 199, 1, 0, 0,
1458
- 0, 197, 199, 5, 26, 0, 0, 198, 180, 1, 0, 0, 0, 198, 197, 1, 0, 0, 0, 199, 17, 1, 0, 0, 0, 200, 202,
1459
- 5, 30, 0, 0, 201, 203, 5, 42, 0, 0, 202, 201, 1, 0, 0, 0, 202, 203, 1, 0, 0, 0, 203, 204, 1, 0, 0,
1460
- 0, 204, 208, 5, 10, 0, 0, 205, 207, 5, 40, 0, 0, 206, 205, 1, 0, 0, 0, 207, 210, 1, 0, 0, 0, 208,
1454
+ 1, 0, 0, 0, 194, 196, 5, 11, 0, 0, 195, 194, 1, 0, 0, 0, 195, 196, 1, 0, 0, 0, 196, 199, 1, 0, 0,
1455
+ 0, 197, 199, 5, 25, 0, 0, 198, 180, 1, 0, 0, 0, 198, 197, 1, 0, 0, 0, 199, 17, 1, 0, 0, 0, 200, 202,
1456
+ 5, 29, 0, 0, 201, 203, 5, 41, 0, 0, 202, 201, 1, 0, 0, 0, 202, 203, 1, 0, 0, 0, 203, 204, 1, 0, 0,
1457
+ 0, 204, 208, 5, 9, 0, 0, 205, 207, 5, 39, 0, 0, 206, 205, 1, 0, 0, 0, 207, 210, 1, 0, 0, 0, 208,
1461
1458
  206, 1, 0, 0, 0, 208, 209, 1, 0, 0, 0, 209, 211, 1, 0, 0, 0, 210, 208, 1, 0, 0, 0, 211, 212, 3, 12,
1462
1459
  6, 0, 212, 19, 1, 0, 0, 0, 213, 216, 3, 24, 12, 0, 214, 216, 3, 22, 11, 0, 215, 213, 1, 0, 0, 0,
1463
- 215, 214, 1, 0, 0, 0, 216, 21, 1, 0, 0, 0, 217, 221, 5, 14, 0, 0, 218, 220, 5, 40, 0, 0, 219, 218,
1460
+ 215, 214, 1, 0, 0, 0, 216, 21, 1, 0, 0, 0, 217, 221, 5, 13, 0, 0, 218, 220, 5, 39, 0, 0, 219, 218,
1464
1461
  1, 0, 0, 0, 220, 223, 1, 0, 0, 0, 221, 219, 1, 0, 0, 0, 221, 222, 1, 0, 0, 0, 222, 224, 1, 0, 0, 0,
1465
- 223, 221, 1, 0, 0, 0, 224, 228, 3, 24, 12, 0, 225, 227, 5, 40, 0, 0, 226, 225, 1, 0, 0, 0, 227,
1462
+ 223, 221, 1, 0, 0, 0, 224, 228, 3, 24, 12, 0, 225, 227, 5, 39, 0, 0, 226, 225, 1, 0, 0, 0, 227,
1466
1463
  230, 1, 0, 0, 0, 228, 226, 1, 0, 0, 0, 228, 229, 1, 0, 0, 0, 229, 231, 1, 0, 0, 0, 230, 228, 1, 0,
1467
- 0, 0, 231, 232, 5, 15, 0, 0, 232, 235, 1, 0, 0, 0, 233, 235, 5, 27, 0, 0, 234, 217, 1, 0, 0, 0, 234,
1468
- 233, 1, 0, 0, 0, 235, 23, 1, 0, 0, 0, 236, 238, 3, 26, 13, 0, 237, 239, 5, 12, 0, 0, 238, 237, 1,
1469
- 0, 0, 0, 238, 239, 1, 0, 0, 0, 239, 245, 1, 0, 0, 0, 240, 241, 3, 26, 13, 0, 241, 242, 5, 12, 0,
1464
+ 0, 0, 231, 232, 5, 14, 0, 0, 232, 235, 1, 0, 0, 0, 233, 235, 5, 26, 0, 0, 234, 217, 1, 0, 0, 0, 234,
1465
+ 233, 1, 0, 0, 0, 235, 23, 1, 0, 0, 0, 236, 238, 3, 26, 13, 0, 237, 239, 5, 11, 0, 0, 238, 237, 1,
1466
+ 0, 0, 0, 238, 239, 1, 0, 0, 0, 239, 245, 1, 0, 0, 0, 240, 241, 3, 26, 13, 0, 241, 242, 5, 11, 0,
1470
1467
  0, 242, 243, 3, 24, 12, 0, 243, 245, 1, 0, 0, 0, 244, 236, 1, 0, 0, 0, 244, 240, 1, 0, 0, 0, 245,
1471
- 25, 1, 0, 0, 0, 246, 248, 5, 40, 0, 0, 247, 246, 1, 0, 0, 0, 248, 251, 1, 0, 0, 0, 249, 247, 1, 0,
1468
+ 25, 1, 0, 0, 0, 246, 248, 5, 39, 0, 0, 247, 246, 1, 0, 0, 0, 248, 251, 1, 0, 0, 0, 249, 247, 1, 0,
1472
1469
  0, 0, 249, 250, 1, 0, 0, 0, 250, 252, 1, 0, 0, 0, 251, 249, 1, 0, 0, 0, 252, 256, 3, 12, 6, 0, 253,
1473
- 255, 5, 40, 0, 0, 254, 253, 1, 0, 0, 0, 255, 258, 1, 0, 0, 0, 256, 254, 1, 0, 0, 0, 256, 257, 1,
1474
- 0, 0, 0, 257, 273, 1, 0, 0, 0, 258, 256, 1, 0, 0, 0, 259, 261, 5, 40, 0, 0, 260, 259, 1, 0, 0, 0,
1470
+ 255, 5, 39, 0, 0, 254, 253, 1, 0, 0, 0, 255, 258, 1, 0, 0, 0, 256, 254, 1, 0, 0, 0, 256, 257, 1,
1471
+ 0, 0, 0, 257, 273, 1, 0, 0, 0, 258, 256, 1, 0, 0, 0, 259, 261, 5, 39, 0, 0, 260, 259, 1, 0, 0, 0,
1475
1472
  261, 264, 1, 0, 0, 0, 262, 260, 1, 0, 0, 0, 262, 263, 1, 0, 0, 0, 263, 265, 1, 0, 0, 0, 264, 262,
1476
- 1, 0, 0, 0, 265, 269, 3, 22, 11, 0, 266, 268, 5, 40, 0, 0, 267, 266, 1, 0, 0, 0, 268, 271, 1, 0,
1473
+ 1, 0, 0, 0, 265, 269, 3, 22, 11, 0, 266, 268, 5, 39, 0, 0, 267, 266, 1, 0, 0, 0, 268, 271, 1, 0,
1477
1474
  0, 0, 269, 267, 1, 0, 0, 0, 269, 270, 1, 0, 0, 0, 270, 273, 1, 0, 0, 0, 271, 269, 1, 0, 0, 0, 272,
1478
- 249, 1, 0, 0, 0, 272, 262, 1, 0, 0, 0, 273, 27, 1, 0, 0, 0, 274, 275, 5, 29, 0, 0, 275, 29, 1, 0,
1479
- 0, 0, 276, 277, 5, 25, 0, 0, 277, 31, 1, 0, 0, 0, 278, 282, 5, 33, 0, 0, 279, 281, 3, 34, 17, 0,
1475
+ 249, 1, 0, 0, 0, 272, 262, 1, 0, 0, 0, 273, 27, 1, 0, 0, 0, 274, 275, 5, 28, 0, 0, 275, 29, 1, 0,
1476
+ 0, 0, 276, 277, 5, 24, 0, 0, 277, 31, 1, 0, 0, 0, 278, 282, 5, 32, 0, 0, 279, 281, 3, 34, 17, 0,
1480
1477
  280, 279, 1, 0, 0, 0, 281, 284, 1, 0, 0, 0, 282, 280, 1, 0, 0, 0, 282, 283, 1, 0, 0, 0, 283, 33,
1481
- 1, 0, 0, 0, 284, 282, 1, 0, 0, 0, 285, 287, 5, 40, 0, 0, 286, 285, 1, 0, 0, 0, 287, 290, 1, 0, 0,
1478
+ 1, 0, 0, 0, 284, 282, 1, 0, 0, 0, 285, 287, 5, 39, 0, 0, 286, 285, 1, 0, 0, 0, 287, 290, 1, 0, 0,
1482
1479
  0, 288, 286, 1, 0, 0, 0, 288, 289, 1, 0, 0, 0, 289, 291, 1, 0, 0, 0, 290, 288, 1, 0, 0, 0, 291, 295,
1483
- 5, 18, 0, 0, 292, 294, 5, 40, 0, 0, 293, 292, 1, 0, 0, 0, 294, 297, 1, 0, 0, 0, 295, 293, 1, 0, 0,
1484
- 0, 295, 296, 1, 0, 0, 0, 296, 298, 1, 0, 0, 0, 297, 295, 1, 0, 0, 0, 298, 299, 5, 33, 0, 0, 299,
1480
+ 5, 17, 0, 0, 292, 294, 5, 39, 0, 0, 293, 292, 1, 0, 0, 0, 294, 297, 1, 0, 0, 0, 295, 293, 1, 0, 0,
1481
+ 0, 295, 296, 1, 0, 0, 0, 296, 298, 1, 0, 0, 0, 297, 295, 1, 0, 0, 0, 298, 299, 5, 32, 0, 0, 299,
1485
1482
  35, 1, 0, 0, 0, 300, 301, 7, 0, 0, 0, 301, 37, 1, 0, 0, 0, 50, 39, 44, 50, 54, 59, 65, 71, 76, 80,
1486
1483
  83, 86, 94, 97, 102, 105, 110, 114, 118, 121, 126, 131, 133, 138, 141, 146, 154, 160, 167,
1487
1484
  174, 178, 185, 191, 195, 198, 202, 208, 215, 221, 228, 234, 238, 244, 249, 256, 262, 269,
package/dist/index.js CHANGED
@@ -145,10 +145,10 @@ Expected JS output:
145
145
  */
146
146
  // YINI.parse(`^1 SectionName`, false, 2)
147
147
  // const validYini = `
148
- // ~ user
148
+ // < user
149
149
  // username = 'tester two'
150
150
  // isSysOp = YES
151
- // ~~ prefs
151
+ // << prefs
152
152
  // theme = "light"
153
153
  // notifications = OFF
154
154
  // ^1 user2
@@ -159,10 +159,10 @@ Expected JS output:
159
159
  // ^5 yetDeeperSection
160
160
  // key = "Level 5 section"
161
161
  // item = 77
162
- // ~1 user3
162
+ // <1 user3
163
163
  // username = 'tester three'
164
164
  // isSysOp = NO
165
- // ~~2 prefs
165
+ // <<2 prefs
166
166
  // theme = "special-dark"
167
167
  // notifications = ON
168
168
  // `
@@ -173,16 +173,14 @@ Expected JS output:
173
173
  // id = 32403 # The correct app id.
174
174
  // title = "My Program"
175
175
  // `
176
- const validYini = `
177
- ~1 user3
178
- username = 'tester three'
179
- isSysOp = NO
180
-
181
- ~~2 prefs // NOT OK, bad section marker, cannot mix marker types.
182
- theme = "special-dark"
183
- notifications = ON
176
+ const corruptYini = `
177
+ ^ App
178
+ title = 'MyApp Title'
179
+ items = 25
180
+ items = 90 // (!) Redefinition!
181
+ isDarkTheme = true
184
182
  `;
185
- YINI_1.default.parse(validYini, false, 'auto', true);
183
+ YINI_1.default.parse(corruptYini, false, 2);
186
184
  // YINI.parse(`
187
185
  // ^ Section1
188
186
  // ^^ Section2
@@ -44,7 +44,7 @@ const extractHeaderParts = (rawLine, errorHandler = null, ctx = null) => {
44
44
  // 1. Skip leading whitespace.
45
45
  while (pos < len && (str[pos] === ' ' || str[pos] === '\t'))
46
46
  pos++;
47
- // 2. Collect marker(s): ^, ~, §, €.
47
+ // 2. Collect marker(s): ^, <, §, €.
48
48
  while (pos < len && (0, yiniHelpers_1.isMarkerCharacter)(str[pos])) {
49
49
  markerCharsPart += str[pos];
50
50
  pos++;