omlish 0.0.0.dev212__py3-none-any.whl → 0.0.0.dev214__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. omlish/.manifests.json +4 -4
  2. omlish/__about__.py +3 -5
  3. omlish/antlr/__init__.py +3 -0
  4. omlish/antlr/parsing.py +34 -2
  5. omlish/asyncs/asyncio/asyncio.py +34 -0
  6. omlish/asyncs/ioproxy/__init__.py +1 -0
  7. omlish/asyncs/ioproxy/all.py +32 -0
  8. omlish/asyncs/ioproxy/io.py +242 -0
  9. omlish/asyncs/ioproxy/proxier.py +154 -0
  10. omlish/asyncs/ioproxy/proxy.py +141 -0
  11. omlish/asyncs/ioproxy/typing.py +108 -0
  12. omlish/check.py +1 -0
  13. omlish/configs/processing/matching.py +9 -1
  14. omlish/formats/json/stream/lex.py +1 -0
  15. omlish/formats/json5/Json5.g4 +172 -0
  16. omlish/formats/json5/__init__.py +8 -0
  17. omlish/formats/json5/_antlr/Json5Lexer.py +353 -0
  18. omlish/formats/json5/_antlr/Json5Listener.py +78 -0
  19. omlish/formats/json5/_antlr/Json5Parser.py +616 -0
  20. omlish/formats/json5/_antlr/Json5Visitor.py +51 -0
  21. omlish/formats/json5/_antlr/__init__.py +0 -0
  22. omlish/formats/{json5.py → json5/codec.py} +6 -11
  23. omlish/formats/json5/errors.py +2 -0
  24. omlish/formats/json5/literals.py +130 -0
  25. omlish/formats/json5/parsing.py +79 -0
  26. omlish/io/abc.py +1 -0
  27. omlish/lang/__init__.py +2 -0
  28. omlish/lang/imports.py +4 -0
  29. omlish/lang/strings.py +33 -1
  30. omlish/lite/check.py +23 -0
  31. omlish/lite/contextmanagers.py +39 -0
  32. omlish/os/files.py +17 -30
  33. omlish/os/temp.py +50 -0
  34. {omlish-0.0.0.dev212.dist-info → omlish-0.0.0.dev214.dist-info}/METADATA +5 -7
  35. {omlish-0.0.0.dev212.dist-info → omlish-0.0.0.dev214.dist-info}/RECORD +39 -22
  36. {omlish-0.0.0.dev212.dist-info → omlish-0.0.0.dev214.dist-info}/LICENSE +0 -0
  37. {omlish-0.0.0.dev212.dist-info → omlish-0.0.0.dev214.dist-info}/WHEEL +0 -0
  38. {omlish-0.0.0.dev212.dist-info → omlish-0.0.0.dev214.dist-info}/entry_points.txt +0 -0
  39. {omlish-0.0.0.dev212.dist-info → omlish-0.0.0.dev214.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,353 @@
1
+ # type: ignore
2
+ # ruff: noqa
3
+ # flake8: noqa
4
+ # Generated from Json5.g4 by ANTLR 4.13.2
5
+ from omlish.antlr._runtime._all import *
6
+ from io import StringIO
7
+ import sys
8
+ if sys.version_info[1] > 5:
9
+ from typing import TextIO
10
+ else:
11
+ from typing.io import TextIO
12
+
13
+
14
+ def serializedATN():
15
+ return [
16
+ 4,0,15,251,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,
17
+ 2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,
18
+ 13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,
19
+ 19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,1,
20
+ 0,1,0,1,1,1,1,1,2,1,2,1,3,1,3,1,4,1,4,1,5,1,5,1,6,1,6,1,6,1,6,5,
21
+ 6,70,8,6,10,6,12,6,73,9,6,1,6,1,6,3,6,77,8,6,1,6,1,6,1,7,1,7,1,7,
22
+ 1,7,5,7,85,8,7,10,7,12,7,88,9,7,1,7,1,7,1,7,1,7,1,7,1,8,1,8,1,8,
23
+ 1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,3,8,108,8,8,1,9,1,9,5,9,
24
+ 112,8,9,10,9,12,9,115,9,9,1,9,1,9,1,9,5,9,120,8,9,10,9,12,9,123,
25
+ 9,9,1,9,3,9,126,8,9,1,10,1,10,3,10,130,8,10,1,11,1,11,3,11,134,8,
26
+ 11,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,3,12,146,8,
27
+ 12,1,13,1,13,1,13,5,13,151,8,13,10,13,12,13,154,9,13,3,13,156,8,
28
+ 13,1,13,3,13,159,8,13,1,13,1,13,4,13,163,8,13,11,13,12,13,164,1,
29
+ 13,3,13,168,8,13,1,13,1,13,1,13,4,13,173,8,13,11,13,12,13,174,3,
30
+ 13,177,8,13,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,
31
+ 14,3,14,190,8,14,1,15,1,15,1,16,1,16,1,17,1,17,1,17,5,17,199,8,17,
32
+ 10,17,12,17,202,9,17,3,17,204,8,17,1,18,1,18,3,18,208,8,18,1,18,
33
+ 5,18,211,8,18,10,18,12,18,214,9,18,1,19,1,19,5,19,218,8,19,10,19,
34
+ 12,19,221,9,19,1,20,1,20,1,20,3,20,226,8,20,1,21,1,21,3,21,230,8,
35
+ 21,1,22,1,22,1,22,1,22,1,22,1,22,1,23,1,23,1,23,3,23,241,8,23,1,
36
+ 24,1,24,1,25,4,25,246,8,25,11,25,12,25,247,1,25,1,25,2,71,86,0,26,
37
+ 1,1,3,2,5,3,7,4,9,5,11,6,13,7,15,8,17,9,19,10,21,0,23,0,25,0,27,
38
+ 11,29,12,31,13,33,0,35,0,37,0,39,14,41,0,43,0,45,0,47,0,49,0,51,
39
+ 15,1,0,14,4,0,10,10,13,13,34,34,92,92,4,0,10,10,13,13,39,39,92,92,
40
+ 10,0,34,34,39,39,47,47,92,92,98,98,102,102,110,110,114,114,116,116,
41
+ 118,118,12,0,10,10,13,13,34,34,39,39,48,57,92,92,98,98,102,102,110,
42
+ 110,114,114,116,118,120,120,1,0,48,57,2,0,88,88,120,120,2,0,43,43,
43
+ 45,45,3,0,48,57,65,70,97,102,1,0,49,57,2,0,69,69,101,101,661,0,36,
44
+ 36,65,90,95,95,97,122,170,170,181,181,186,186,192,214,216,246,248,
45
+ 705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,
46
+ 895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,
47
+ 1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,
48
+ 1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,
49
+ 1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,
50
+ 2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,
51
+ 2160,2183,2185,2190,2208,2249,2308,2361,2365,2365,2384,2384,2392,
52
+ 2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,
53
+ 2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,
54
+ 2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,
55
+ 2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,
56
+ 2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,
57
+ 2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,
58
+ 2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,
59
+ 2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,
60
+ 2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,
61
+ 3133,3133,3160,3162,3165,3165,3168,3169,3200,3200,3205,3212,3214,
62
+ 3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,
63
+ 3313,3314,3332,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,
64
+ 3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,
65
+ 3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,
66
+ 3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,
67
+ 3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,
68
+ 4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,
69
+ 4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,
70
+ 4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,
71
+ 4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,
72
+ 4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,
73
+ 5743,5759,5761,5786,5792,5866,5873,5880,5888,5905,5919,5937,5952,
74
+ 5969,5984,5996,5998,6000,6016,6067,6103,6103,6108,6108,6176,6264,
75
+ 6272,6276,6279,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,
76
+ 6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,
77
+ 6981,6988,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,
78
+ 7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,
79
+ 7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,
80
+ 8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,
81
+ 8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,
82
+ 8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,
83
+ 8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,
84
+ 8493,8495,8505,8508,8511,8517,8521,8526,8526,8579,8580,11264,11492,
85
+ 11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,
86
+ 11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,
87
+ 11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,
88
+ 11823,12293,12294,12337,12341,12347,12348,12353,12438,12445,12447,
89
+ 12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,
90
+ 12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,
91
+ 42538,42539,42560,42606,42623,42653,42656,42725,42775,42783,42786,
92
+ 42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43009,
93
+ 43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,
94
+ 43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,
95
+ 43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,
96
+ 43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,
97
+ 43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,
98
+ 43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,
99
+ 43808,43814,43816,43822,43824,43866,43868,43881,43888,44002,44032,
100
+ 55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,
101
+ 64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,
102
+ 64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,
103
+ 64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,
104
+ 65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,
105
+ 65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,
106
+ 65629,65664,65786,66176,66204,66208,66256,66304,66335,66349,66368,
107
+ 66370,66377,66384,66421,66432,66461,66464,66499,66504,66511,66560,
108
+ 66717,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,
109
+ 66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,
110
+ 67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,
111
+ 67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,
112
+ 67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,
113
+ 67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,
114
+ 68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,
115
+ 68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,
116
+ 68497,68608,68680,68736,68786,68800,68850,68864,68899,69248,69289,
117
+ 69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,
118
+ 69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,
119
+ 69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,
120
+ 70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,
121
+ 70163,70187,70207,70208,70272,70278,70280,70280,70282,70285,70287,
122
+ 70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,
123
+ 70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,
124
+ 70497,70656,70708,70727,70730,70751,70753,70784,70831,70852,70853,
125
+ 70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,
126
+ 71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,
127
+ 71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,
128
+ 71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,
129
+ 72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,
130
+ 72349,72368,72440,72704,72712,72714,72750,72768,72768,72818,72847,
131
+ 72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,
132
+ 73064,73066,73097,73112,73112,73440,73458,73474,73474,73476,73488,
133
+ 73490,73523,73648,73648,73728,74649,74880,75075,77712,77808,77824,
134
+ 78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,
135
+ 92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,
136
+ 93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,
137
+ 94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,
138
+ 110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,
139
+ 110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,
140
+ 113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,
141
+ 119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,
142
+ 120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,
143
+ 120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,
144
+ 120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,
145
+ 120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,
146
+ 120772,120779,122624,122654,122661,122666,122928,122989,123136,123180,
147
+ 123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,
148
+ 124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,
149
+ 125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,
150
+ 126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,
151
+ 126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,
152
+ 126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,
153
+ 126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,
154
+ 126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,
155
+ 126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,
156
+ 131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,
157
+ 194560,195101,196608,201546,201552,205743,436,0,48,57,95,95,178,
158
+ 179,185,185,188,190,768,879,1155,1161,1425,1469,1471,1471,1473,1474,
159
+ 1476,1477,1479,1479,1552,1562,1611,1641,1648,1648,1750,1756,1759,
160
+ 1764,1767,1768,1770,1773,1776,1785,1809,1809,1840,1866,1958,1968,
161
+ 1984,1993,2027,2035,2045,2045,2070,2073,2075,2083,2085,2087,2089,
162
+ 2093,2137,2139,2200,2207,2250,2273,2275,2307,2362,2364,2366,2383,
163
+ 2385,2391,2402,2403,2406,2415,2433,2435,2492,2492,2494,2500,2503,
164
+ 2504,2507,2509,2519,2519,2530,2531,2534,2543,2548,2553,2558,2558,
165
+ 2561,2563,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2662,
166
+ 2673,2677,2677,2689,2691,2748,2748,2750,2757,2759,2761,2763,2765,
167
+ 2786,2787,2790,2799,2810,2815,2817,2819,2876,2876,2878,2884,2887,
168
+ 2888,2891,2893,2901,2903,2914,2915,2918,2927,2930,2935,2946,2946,
169
+ 3006,3010,3014,3016,3018,3021,3031,3031,3046,3058,3072,3076,3132,
170
+ 3132,3134,3140,3142,3144,3146,3149,3157,3158,3170,3171,3174,3183,
171
+ 3192,3198,3201,3203,3260,3260,3262,3268,3270,3272,3274,3277,3285,
172
+ 3286,3298,3299,3302,3311,3315,3315,3328,3331,3387,3388,3390,3396,
173
+ 3398,3400,3402,3405,3415,3422,3426,3427,3430,3448,3457,3459,3530,
174
+ 3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3633,3633,
175
+ 3636,3642,3655,3662,3664,3673,3761,3761,3764,3772,3784,3790,3792,
176
+ 3801,3864,3865,3872,3891,3893,3893,3895,3895,3897,3897,3902,3903,
177
+ 3953,3972,3974,3975,3981,3991,3993,4028,4038,4038,4139,4158,4160,
178
+ 4169,4182,4185,4190,4192,4194,4196,4199,4205,4209,4212,4226,4237,
179
+ 4239,4253,4957,4959,4969,4988,5870,5872,5906,5909,5938,5940,5970,
180
+ 5971,6002,6003,6068,6099,6109,6109,6112,6121,6128,6137,6155,6157,
181
+ 6159,6169,6277,6278,6313,6313,6432,6443,6448,6459,6470,6479,6608,
182
+ 6618,6679,6683,6741,6750,6752,6780,6783,6793,6800,6809,6832,6862,
183
+ 6912,6916,6964,6980,6992,7001,7019,7027,7040,7042,7073,7085,7088,
184
+ 7097,7142,7155,7204,7223,7232,7241,7248,7257,7376,7378,7380,7400,
185
+ 7405,7405,7412,7412,7415,7417,7616,7679,8204,8205,8255,8256,8276,
186
+ 8276,8304,8304,8308,8313,8320,8329,8400,8432,8528,8578,8581,8585,
187
+ 9312,9371,9450,9471,10102,10131,11503,11505,11517,11517,11647,11647,
188
+ 11744,11775,12295,12295,12321,12335,12344,12346,12441,12442,12690,
189
+ 12693,12832,12841,12872,12879,12881,12895,12928,12937,12977,12991,
190
+ 42528,42537,42607,42610,42612,42621,42654,42655,42726,42737,43010,
191
+ 43010,43014,43014,43019,43019,43043,43047,43052,43052,43056,43061,
192
+ 43136,43137,43188,43205,43216,43225,43232,43249,43263,43273,43302,
193
+ 43309,43335,43347,43392,43395,43443,43456,43472,43481,43493,43493,
194
+ 43504,43513,43561,43574,43587,43587,43596,43597,43600,43609,43643,
195
+ 43645,43696,43696,43698,43700,43703,43704,43710,43711,43713,43713,
196
+ 43755,43759,43765,43766,44003,44010,44012,44013,44016,44025,64286,
197
+ 64286,65024,65039,65056,65071,65075,65076,65101,65103,65296,65305,
198
+ 65343,65343,65799,65843,65856,65912,65930,65931,66045,66045,66272,
199
+ 66299,66336,66339,66369,66369,66378,66378,66422,66426,66513,66517,
200
+ 66720,66729,67672,67679,67705,67711,67751,67759,67835,67839,67862,
201
+ 67867,68028,68029,68032,68047,68050,68095,68097,68099,68101,68102,
202
+ 68108,68111,68152,68154,68159,68168,68221,68222,68253,68255,68325,
203
+ 68326,68331,68335,68440,68447,68472,68479,68521,68527,68858,68863,
204
+ 68900,68903,68912,68921,69216,69246,69291,69292,69373,69375,69405,
205
+ 69414,69446,69460,69506,69509,69573,69579,69632,69634,69688,69702,
206
+ 69714,69744,69747,69748,69759,69762,69808,69818,69826,69826,69872,
207
+ 69881,69888,69890,69927,69940,69942,69951,69957,69958,70003,70003,
208
+ 70016,70018,70067,70080,70089,70092,70094,70105,70113,70132,70188,
209
+ 70199,70206,70206,70209,70209,70367,70378,70384,70393,70400,70403,
210
+ 70459,70460,70462,70468,70471,70472,70475,70477,70487,70487,70498,
211
+ 70499,70502,70508,70512,70516,70709,70726,70736,70745,70750,70750,
212
+ 70832,70851,70864,70873,71087,71093,71096,71104,71132,71133,71216,
213
+ 71232,71248,71257,71339,71351,71360,71369,71453,71467,71472,71483,
214
+ 71724,71738,71904,71922,71984,71989,71991,71992,71995,71998,72000,
215
+ 72000,72002,72003,72016,72025,72145,72151,72154,72160,72164,72164,
216
+ 72193,72202,72243,72249,72251,72254,72263,72263,72273,72283,72330,
217
+ 72345,72751,72758,72760,72767,72784,72812,72850,72871,72873,72886,
218
+ 73009,73014,73018,73018,73020,73021,73023,73029,73031,73031,73040,
219
+ 73049,73098,73102,73104,73105,73107,73111,73120,73129,73459,73462,
220
+ 73472,73473,73475,73475,73524,73530,73534,73538,73552,73561,73664,
221
+ 73684,74752,74862,78912,78912,78919,78933,92768,92777,92864,92873,
222
+ 92912,92916,92976,92982,93008,93017,93019,93025,93824,93846,94031,
223
+ 94031,94033,94087,94095,94098,94180,94180,94192,94193,113821,113822,
224
+ 118528,118573,118576,118598,119141,119145,119149,119154,119163,119170,
225
+ 119173,119179,119210,119213,119362,119364,119488,119507,119520,119539,
226
+ 119648,119672,120782,120831,121344,121398,121403,121452,121461,121461,
227
+ 121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,
228
+ 122907,122913,122915,122916,122918,122922,123023,123023,123184,123190,
229
+ 123200,123209,123566,123566,123628,123641,124140,124153,125127,125142,
230
+ 125252,125258,125264,125273,126065,126123,126125,126127,126129,126132,
231
+ 126209,126253,126255,126269,127232,127244,130032,130041,917760,917999,
232
+ 3,0,10,10,13,13,8232,8233,10,0,9,13,32,32,160,160,5760,5760,8192,
233
+ 8202,8232,8233,8239,8239,8287,8287,12288,12288,65279,65279,272,0,
234
+ 1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,11,1,
235
+ 0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17,1,0,0,0,0,19,1,0,0,0,0,27,1,
236
+ 0,0,0,0,29,1,0,0,0,0,31,1,0,0,0,0,39,1,0,0,0,0,51,1,0,0,0,1,53,1,
237
+ 0,0,0,3,55,1,0,0,0,5,57,1,0,0,0,7,59,1,0,0,0,9,61,1,0,0,0,11,63,
238
+ 1,0,0,0,13,65,1,0,0,0,15,80,1,0,0,0,17,107,1,0,0,0,19,125,1,0,0,
239
+ 0,21,129,1,0,0,0,23,133,1,0,0,0,25,135,1,0,0,0,27,176,1,0,0,0,29,
240
+ 189,1,0,0,0,31,191,1,0,0,0,33,193,1,0,0,0,35,203,1,0,0,0,37,205,
241
+ 1,0,0,0,39,215,1,0,0,0,41,225,1,0,0,0,43,229,1,0,0,0,45,231,1,0,
242
+ 0,0,47,240,1,0,0,0,49,242,1,0,0,0,51,245,1,0,0,0,53,54,5,123,0,0,
243
+ 54,2,1,0,0,0,55,56,5,44,0,0,56,4,1,0,0,0,57,58,5,125,0,0,58,6,1,
244
+ 0,0,0,59,60,5,58,0,0,60,8,1,0,0,0,61,62,5,91,0,0,62,10,1,0,0,0,63,
245
+ 64,5,93,0,0,64,12,1,0,0,0,65,66,5,47,0,0,66,67,5,47,0,0,67,71,1,
246
+ 0,0,0,68,70,9,0,0,0,69,68,1,0,0,0,70,73,1,0,0,0,71,72,1,0,0,0,71,
247
+ 69,1,0,0,0,72,76,1,0,0,0,73,71,1,0,0,0,74,77,3,47,23,0,75,77,5,0,
248
+ 0,1,76,74,1,0,0,0,76,75,1,0,0,0,77,78,1,0,0,0,78,79,6,6,0,0,79,14,
249
+ 1,0,0,0,80,81,5,47,0,0,81,82,5,42,0,0,82,86,1,0,0,0,83,85,9,0,0,
250
+ 0,84,83,1,0,0,0,85,88,1,0,0,0,86,87,1,0,0,0,86,84,1,0,0,0,87,89,
251
+ 1,0,0,0,88,86,1,0,0,0,89,90,5,42,0,0,90,91,5,47,0,0,91,92,1,0,0,
252
+ 0,92,93,6,7,0,0,93,16,1,0,0,0,94,95,5,116,0,0,95,96,5,114,0,0,96,
253
+ 97,5,117,0,0,97,108,5,101,0,0,98,99,5,102,0,0,99,100,5,97,0,0,100,
254
+ 101,5,108,0,0,101,102,5,115,0,0,102,108,5,101,0,0,103,104,5,110,
255
+ 0,0,104,105,5,117,0,0,105,106,5,108,0,0,106,108,5,108,0,0,107,94,
256
+ 1,0,0,0,107,98,1,0,0,0,107,103,1,0,0,0,108,18,1,0,0,0,109,113,5,
257
+ 34,0,0,110,112,3,21,10,0,111,110,1,0,0,0,112,115,1,0,0,0,113,111,
258
+ 1,0,0,0,113,114,1,0,0,0,114,116,1,0,0,0,115,113,1,0,0,0,116,126,
259
+ 5,34,0,0,117,121,5,39,0,0,118,120,3,23,11,0,119,118,1,0,0,0,120,
260
+ 123,1,0,0,0,121,119,1,0,0,0,121,122,1,0,0,0,122,124,1,0,0,0,123,
261
+ 121,1,0,0,0,124,126,5,39,0,0,125,109,1,0,0,0,125,117,1,0,0,0,126,
262
+ 20,1,0,0,0,127,130,8,0,0,0,128,130,3,25,12,0,129,127,1,0,0,0,129,
263
+ 128,1,0,0,0,130,22,1,0,0,0,131,134,8,1,0,0,132,134,3,25,12,0,133,
264
+ 131,1,0,0,0,133,132,1,0,0,0,134,24,1,0,0,0,135,145,5,92,0,0,136,
265
+ 146,3,47,23,0,137,146,3,45,22,0,138,146,7,2,0,0,139,146,8,3,0,0,
266
+ 140,146,5,48,0,0,141,142,5,120,0,0,142,143,3,33,16,0,143,144,3,33,
267
+ 16,0,144,146,1,0,0,0,145,136,1,0,0,0,145,137,1,0,0,0,145,138,1,0,
268
+ 0,0,145,139,1,0,0,0,145,140,1,0,0,0,145,141,1,0,0,0,146,26,1,0,0,
269
+ 0,147,155,3,35,17,0,148,152,5,46,0,0,149,151,7,4,0,0,150,149,1,0,
270
+ 0,0,151,154,1,0,0,0,152,150,1,0,0,0,152,153,1,0,0,0,153,156,1,0,
271
+ 0,0,154,152,1,0,0,0,155,148,1,0,0,0,155,156,1,0,0,0,156,158,1,0,
272
+ 0,0,157,159,3,37,18,0,158,157,1,0,0,0,158,159,1,0,0,0,159,177,1,
273
+ 0,0,0,160,162,5,46,0,0,161,163,7,4,0,0,162,161,1,0,0,0,163,164,1,
274
+ 0,0,0,164,162,1,0,0,0,164,165,1,0,0,0,165,167,1,0,0,0,166,168,3,
275
+ 37,18,0,167,166,1,0,0,0,167,168,1,0,0,0,168,177,1,0,0,0,169,170,
276
+ 5,48,0,0,170,172,7,5,0,0,171,173,3,33,16,0,172,171,1,0,0,0,173,174,
277
+ 1,0,0,0,174,172,1,0,0,0,174,175,1,0,0,0,175,177,1,0,0,0,176,147,
278
+ 1,0,0,0,176,160,1,0,0,0,176,169,1,0,0,0,177,28,1,0,0,0,178,179,5,
279
+ 73,0,0,179,180,5,110,0,0,180,181,5,102,0,0,181,182,5,105,0,0,182,
280
+ 183,5,110,0,0,183,184,5,105,0,0,184,185,5,116,0,0,185,190,5,121,
281
+ 0,0,186,187,5,78,0,0,187,188,5,97,0,0,188,190,5,78,0,0,189,178,1,
282
+ 0,0,0,189,186,1,0,0,0,190,30,1,0,0,0,191,192,7,6,0,0,192,32,1,0,
283
+ 0,0,193,194,7,7,0,0,194,34,1,0,0,0,195,204,5,48,0,0,196,200,7,8,
284
+ 0,0,197,199,7,4,0,0,198,197,1,0,0,0,199,202,1,0,0,0,200,198,1,0,
285
+ 0,0,200,201,1,0,0,0,201,204,1,0,0,0,202,200,1,0,0,0,203,195,1,0,
286
+ 0,0,203,196,1,0,0,0,204,36,1,0,0,0,205,207,7,9,0,0,206,208,3,31,
287
+ 15,0,207,206,1,0,0,0,207,208,1,0,0,0,208,212,1,0,0,0,209,211,7,4,
288
+ 0,0,210,209,1,0,0,0,211,214,1,0,0,0,212,210,1,0,0,0,212,213,1,0,
289
+ 0,0,213,38,1,0,0,0,214,212,1,0,0,0,215,219,3,41,20,0,216,218,3,43,
290
+ 21,0,217,216,1,0,0,0,218,221,1,0,0,0,219,217,1,0,0,0,219,220,1,0,
291
+ 0,0,220,40,1,0,0,0,221,219,1,0,0,0,222,226,7,10,0,0,223,224,5,92,
292
+ 0,0,224,226,3,45,22,0,225,222,1,0,0,0,225,223,1,0,0,0,226,42,1,0,
293
+ 0,0,227,230,3,41,20,0,228,230,7,11,0,0,229,227,1,0,0,0,229,228,1,
294
+ 0,0,0,230,44,1,0,0,0,231,232,5,117,0,0,232,233,3,33,16,0,233,234,
295
+ 3,33,16,0,234,235,3,33,16,0,235,236,3,33,16,0,236,46,1,0,0,0,237,
296
+ 238,5,13,0,0,238,241,5,10,0,0,239,241,7,12,0,0,240,237,1,0,0,0,240,
297
+ 239,1,0,0,0,241,48,1,0,0,0,242,243,7,13,0,0,243,50,1,0,0,0,244,246,
298
+ 3,49,24,0,245,244,1,0,0,0,246,247,1,0,0,0,247,245,1,0,0,0,247,248,
299
+ 1,0,0,0,248,249,1,0,0,0,249,250,6,25,0,0,250,52,1,0,0,0,28,0,71,
300
+ 76,86,107,113,121,125,129,133,145,152,155,158,164,167,174,176,189,
301
+ 200,203,207,212,219,225,229,240,247,1,6,0,0
302
+ ]
303
+
304
+ class Json5Lexer(Lexer):
305
+
306
+ atn = ATNDeserializer().deserialize(serializedATN())
307
+
308
+ decisionsToDFA = [ DFA(ds, i) for i, ds in enumerate(atn.decisionToState) ]
309
+
310
+ T__0 = 1
311
+ T__1 = 2
312
+ T__2 = 3
313
+ T__3 = 4
314
+ T__4 = 5
315
+ T__5 = 6
316
+ SINGLE_LINE_COMMENT = 7
317
+ MULTI_LINE_COMMENT = 8
318
+ LITERAL = 9
319
+ STRING = 10
320
+ NUMBER = 11
321
+ NUMERIC_LITERAL = 12
322
+ SYMBOL = 13
323
+ IDENTIFIER = 14
324
+ WS = 15
325
+
326
+ channelNames = [ u"DEFAULT_TOKEN_CHANNEL", u"HIDDEN" ]
327
+
328
+ modeNames = [ "DEFAULT_MODE" ]
329
+
330
+ literalNames = [ "<INVALID>",
331
+ "'{'", "','", "'}'", "':'", "'['", "']'" ]
332
+
333
+ symbolicNames = [ "<INVALID>",
334
+ "SINGLE_LINE_COMMENT", "MULTI_LINE_COMMENT", "LITERAL", "STRING",
335
+ "NUMBER", "NUMERIC_LITERAL", "SYMBOL", "IDENTIFIER", "WS" ]
336
+
337
+ ruleNames = [ "T__0", "T__1", "T__2", "T__3", "T__4", "T__5", "SINGLE_LINE_COMMENT",
338
+ "MULTI_LINE_COMMENT", "LITERAL", "STRING", "DOUBLE_QUOTE_CHAR",
339
+ "SINGLE_QUOTE_CHAR", "ESCAPE_SEQUENCE", "NUMBER", "NUMERIC_LITERAL",
340
+ "SYMBOL", "HEX", "INT", "EXP", "IDENTIFIER", "IDENTIFIER_START",
341
+ "IDENTIFIER_PART", "UNICODE_SEQUENCE", "NEWLINE", "WS1",
342
+ "WS" ]
343
+
344
+ grammarFileName = "Json5.g4"
345
+
346
+ def __init__(self, input=None, output:TextIO = sys.stdout):
347
+ super().__init__(input, output)
348
+ self.checkVersion("4.13.2")
349
+ self._interp = LexerATNSimulator(self, self.atn, self.decisionsToDFA, PredictionContextCache())
350
+ self._actions = None
351
+ self._predicates = None
352
+
353
+
@@ -0,0 +1,78 @@
1
+ # type: ignore
2
+ # ruff: noqa
3
+ # flake8: noqa
4
+ # Generated from Json5.g4 by ANTLR 4.13.2
5
+ from omlish.antlr._runtime._all import *
6
+ if "." in __name__:
7
+ from .Json5Parser import Json5Parser
8
+ else:
9
+ from Json5Parser import Json5Parser
10
+
11
+ # This class defines a complete listener for a parse tree produced by Json5Parser.
12
+ class Json5Listener(ParseTreeListener):
13
+
14
+ # Enter a parse tree produced by Json5Parser#json5.
15
+ def enterJson5(self, ctx:Json5Parser.Json5Context):
16
+ pass
17
+
18
+ # Exit a parse tree produced by Json5Parser#json5.
19
+ def exitJson5(self, ctx:Json5Parser.Json5Context):
20
+ pass
21
+
22
+
23
+ # Enter a parse tree produced by Json5Parser#obj.
24
+ def enterObj(self, ctx:Json5Parser.ObjContext):
25
+ pass
26
+
27
+ # Exit a parse tree produced by Json5Parser#obj.
28
+ def exitObj(self, ctx:Json5Parser.ObjContext):
29
+ pass
30
+
31
+
32
+ # Enter a parse tree produced by Json5Parser#pair.
33
+ def enterPair(self, ctx:Json5Parser.PairContext):
34
+ pass
35
+
36
+ # Exit a parse tree produced by Json5Parser#pair.
37
+ def exitPair(self, ctx:Json5Parser.PairContext):
38
+ pass
39
+
40
+
41
+ # Enter a parse tree produced by Json5Parser#key.
42
+ def enterKey(self, ctx:Json5Parser.KeyContext):
43
+ pass
44
+
45
+ # Exit a parse tree produced by Json5Parser#key.
46
+ def exitKey(self, ctx:Json5Parser.KeyContext):
47
+ pass
48
+
49
+
50
+ # Enter a parse tree produced by Json5Parser#value.
51
+ def enterValue(self, ctx:Json5Parser.ValueContext):
52
+ pass
53
+
54
+ # Exit a parse tree produced by Json5Parser#value.
55
+ def exitValue(self, ctx:Json5Parser.ValueContext):
56
+ pass
57
+
58
+
59
+ # Enter a parse tree produced by Json5Parser#arr.
60
+ def enterArr(self, ctx:Json5Parser.ArrContext):
61
+ pass
62
+
63
+ # Exit a parse tree produced by Json5Parser#arr.
64
+ def exitArr(self, ctx:Json5Parser.ArrContext):
65
+ pass
66
+
67
+
68
+ # Enter a parse tree produced by Json5Parser#number.
69
+ def enterNumber(self, ctx:Json5Parser.NumberContext):
70
+ pass
71
+
72
+ # Exit a parse tree produced by Json5Parser#number.
73
+ def exitNumber(self, ctx:Json5Parser.NumberContext):
74
+ pass
75
+
76
+
77
+
78
+ del Json5Parser