omlish 0.0.0.dev437__py3-none-any.whl → 0.0.0.dev438__py3-none-any.whl

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