graphql-c_parser 1.0.7 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/graphql_c_parser_ext/graphql_c_parser_ext.c +3 -3
- data/ext/graphql_c_parser_ext/graphql_c_parser_ext.h +1 -0
- data/ext/graphql_c_parser_ext/lexer.c +311 -303
- data/ext/graphql_c_parser_ext/lexer.h +1 -1
- data/ext/graphql_c_parser_ext/parser.c +551 -546
- data/lib/graphql/c_parser/version.rb +1 -1
- data/lib/graphql/c_parser.rb +25 -5
- metadata +7 -7
@@ -6,12 +6,12 @@
|
|
6
6
|
|
7
7
|
#line 8 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
8
8
|
static const char _graphql_c_lexer_trans_keys[] = {
|
9
|
-
|
9
|
+
1, 22, 4, 43, 14, 47, 14, 46,
|
10
10
|
14, 46, 14, 46, 14, 46, 14, 46,
|
11
11
|
14, 46, 14, 46, 14, 49, 4, 22,
|
12
12
|
4, 4, 4, 4, 4, 22, 4, 4,
|
13
13
|
4, 4, 14, 15, 14, 15, 10, 15,
|
14
|
-
12, 12, 0, 49, 0, 0,
|
14
|
+
12, 12, 0, 49, 0, 0, 1, 22,
|
15
15
|
4, 4, 4, 4, 4, 4, 4, 22,
|
16
16
|
4, 4, 4, 4, 1, 1, 14, 15,
|
17
17
|
12, 12, 10, 29, 14, 15, 12, 15,
|
@@ -61,486 +61,486 @@ static const signed char _graphql_c_lexer_char_class[] = {
|
|
61
61
|
};
|
62
62
|
|
63
63
|
static const short _graphql_c_lexer_index_offsets[] = {
|
64
|
-
0,
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
64
|
+
0, 22, 62, 96, 129, 162, 195, 228,
|
65
|
+
261, 294, 327, 363, 382, 383, 384, 403,
|
66
|
+
404, 405, 407, 409, 415, 416, 466, 467,
|
67
|
+
489, 490, 491, 492, 511, 512, 513, 514,
|
68
|
+
516, 517, 537, 539, 543, 544, 577, 610,
|
69
|
+
643, 676, 709, 742, 775, 808, 841, 874,
|
70
|
+
907, 940, 973, 1006, 1039, 1072, 1105, 1138,
|
71
|
+
1171, 1204, 1237, 1270, 1303, 1336, 1369, 1402,
|
72
|
+
1435, 1468, 1501, 1534, 1567, 1600, 1633, 1666,
|
73
|
+
1699, 1732, 1765, 1798, 1831, 1864, 1897, 1930,
|
74
|
+
1963, 1996, 2029, 2062, 2095, 2128, 2161, 2194,
|
75
|
+
2227, 2260, 2293, 2326, 2359, 2392, 2425, 2458,
|
76
|
+
2491, 2524, 2557, 2590, 2623, 2656, 2689, 2722,
|
77
|
+
2755, 2788, 2821, 2854, 2887, 2920, 2953, 2986,
|
78
|
+
3019, 3052, 3085, 3118, 3151, 3184, 3217, 3250,
|
79
|
+
3283, 3316, 3349, 3382, 3415, 3448, 3481, 3514,
|
80
|
+
3547, 3580, 3613, 3646, 0
|
81
81
|
};
|
82
82
|
|
83
83
|
static const short _graphql_c_lexer_indices[] = {
|
84
|
-
|
84
|
+
0, 1, 1, 2, 1, 1, 1, 1,
|
85
85
|
1, 1, 1, 1, 1, 1, 1, 1,
|
86
|
-
1, 1,
|
87
|
-
0, 0, 0, 0,
|
88
|
-
0, 0, 0, 0, 0,
|
89
|
-
|
90
|
-
|
91
|
-
0,
|
92
|
-
|
93
|
-
|
86
|
+
1, 1, 1, 1, 1, 3, 1, 0,
|
87
|
+
0, 0, 0, 0, 0, 0, 0, 1,
|
88
|
+
0, 0, 0, 0, 0, 0, 0, 0,
|
89
|
+
1, 0, 0, 0, 1, 0, 0, 0,
|
90
|
+
1, 0, 0, 0, 0, 0, 1, 0,
|
91
|
+
0, 0, 1, 0, 1, 4, 5, 5,
|
92
|
+
0, 0, 0, 5, 5, 0, 0, 0,
|
93
|
+
0, 5, 5, 5, 5, 5, 5, 5,
|
94
94
|
5, 5, 5, 5, 5, 5, 5, 5,
|
95
|
-
5, 5, 5, 5,
|
96
|
-
|
95
|
+
5, 5, 5, 5, 5, 5, 5, 6,
|
96
|
+
7, 7, 0, 0, 0, 7, 7, 0,
|
97
|
+
0, 0, 0, 7, 7, 7, 7, 7,
|
97
98
|
7, 7, 7, 7, 7, 7, 7, 7,
|
98
99
|
7, 7, 7, 7, 7, 7, 7, 7,
|
99
|
-
7,
|
100
|
-
0, 0, 0,
|
101
|
-
|
100
|
+
7, 8, 8, 0, 0, 0, 8, 8,
|
101
|
+
0, 0, 0, 0, 8, 8, 8, 8,
|
102
|
+
8, 8, 8, 8, 8, 8, 8, 8,
|
102
103
|
8, 8, 8, 8, 8, 8, 8, 8,
|
103
|
-
8, 8,
|
104
|
-
1, 0, 0, 0,
|
105
|
-
0, 0, 1, 1, 1, 1, 1, 1,
|
104
|
+
8, 8, 1, 1, 0, 0, 0, 1,
|
105
|
+
1, 0, 0, 0, 0, 1, 1, 1,
|
106
106
|
1, 1, 1, 1, 1, 1, 1, 1,
|
107
107
|
1, 1, 1, 1, 1, 1, 1, 1,
|
108
|
-
|
109
|
-
|
108
|
+
1, 1, 1, 9, 9, 0, 0, 0,
|
109
|
+
9, 9, 0, 0, 0, 0, 9, 9,
|
110
110
|
9, 9, 9, 9, 9, 9, 9, 9,
|
111
111
|
9, 9, 9, 9, 9, 9, 9, 9,
|
112
|
-
9,
|
113
|
-
0,
|
112
|
+
9, 9, 9, 9, 10, 10, 0, 0,
|
113
|
+
0, 10, 10, 0, 0, 0, 0, 10,
|
114
114
|
10, 10, 10, 10, 10, 10, 10, 10,
|
115
115
|
10, 10, 10, 10, 10, 10, 10, 10,
|
116
|
-
10, 10,
|
117
|
-
|
116
|
+
10, 10, 10, 10, 10, 11, 11, 0,
|
117
|
+
0, 0, 11, 11, 0, 0, 0, 0,
|
118
118
|
11, 11, 11, 11, 11, 11, 11, 11,
|
119
119
|
11, 11, 11, 11, 11, 11, 11, 11,
|
120
|
-
11, 11, 11,
|
121
|
-
|
120
|
+
11, 11, 11, 11, 11, 11, 12, 12,
|
121
|
+
0, 0, 0, 12, 12, 0, 0, 0,
|
122
|
+
0, 12, 12, 12, 12, 12, 12, 12,
|
122
123
|
12, 12, 12, 12, 12, 12, 12, 12,
|
123
124
|
12, 12, 12, 12, 12, 12, 12, 12,
|
124
|
-
12,
|
125
|
-
0,
|
125
|
+
12, 0, 0, 0, 12, 12, 0, 0,
|
126
|
+
0, 0, 12, 12, 12, 12, 12, 12,
|
126
127
|
12, 12, 12, 12, 12, 12, 12, 12,
|
127
128
|
12, 12, 12, 12, 12, 12, 12, 12,
|
128
|
-
|
129
|
-
15, 14, 14, 14, 14, 14, 14, 14,
|
129
|
+
0, 0, 1, 15, 14, 14, 14, 14,
|
130
130
|
14, 14, 14, 14, 14, 14, 14, 14,
|
131
|
-
14, 14,
|
131
|
+
14, 14, 14, 14, 14, 16, 17, 18,
|
132
|
+
19, 14, 14, 14, 14, 14, 14, 14,
|
132
133
|
14, 14, 14, 14, 14, 14, 14, 14,
|
133
|
-
14, 14,
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
46, 46,
|
139
|
-
46,
|
140
|
-
|
141
|
-
|
142
|
-
66, 1, 1, 1, 1, 1, 1, 1,
|
134
|
+
14, 14, 16, 20, 21, 23, 23, 25,
|
135
|
+
25, 26, 26, 24, 24, 25, 25, 27,
|
136
|
+
30, 31, 29, 32, 33, 34, 35, 36,
|
137
|
+
37, 38, 29, 39, 40, 29, 41, 42,
|
138
|
+
43, 44, 45, 46, 46, 47, 29, 48,
|
139
|
+
46, 46, 46, 46, 49, 50, 51, 46,
|
140
|
+
46, 52, 46, 53, 54, 55, 46, 56,
|
141
|
+
57, 58, 59, 60, 46, 46, 46, 61,
|
142
|
+
62, 63, 30, 65, 1, 1, 66, 1,
|
143
143
|
1, 1, 1, 1, 1, 1, 1, 1,
|
144
|
-
1, 1,
|
145
|
-
|
144
|
+
1, 1, 1, 1, 1, 1, 1, 1,
|
145
|
+
3, 14, 69, 70, 71, 14, 14, 14,
|
146
146
|
14, 14, 14, 14, 14, 14, 14, 14,
|
147
|
-
|
148
|
-
|
149
|
-
76,
|
150
|
-
76, 76,
|
151
|
-
|
152
|
-
46,
|
147
|
+
14, 14, 14, 14, 14, 14, 16, 72,
|
148
|
+
18, 73, 41, 42, 75, 26, 26, 76,
|
149
|
+
76, 23, 23, 76, 76, 76, 76, 77,
|
150
|
+
76, 76, 76, 76, 76, 76, 76, 76,
|
151
|
+
77, 25, 25, 75, 74, 42, 42, 78,
|
152
|
+
46, 46, 13, 13, 13, 46, 46, 13,
|
153
|
+
13, 13, 46, 46, 46, 46, 46, 46,
|
154
|
+
46, 46, 46, 46, 46, 46, 46, 46,
|
153
155
|
46, 46, 46, 46, 46, 46, 46, 46,
|
156
|
+
46, 46, 46, 79, 79, 79, 46, 46,
|
157
|
+
79, 79, 79, 46, 46, 46, 46, 46,
|
158
|
+
46, 46, 46, 46, 80, 46, 46, 46,
|
159
|
+
46, 46, 46, 46, 46, 46, 46, 46,
|
160
|
+
46, 46, 46, 46, 79, 79, 79, 46,
|
161
|
+
46, 79, 79, 79, 46, 46, 46, 46,
|
154
162
|
46, 46, 46, 46, 46, 46, 46, 46,
|
163
|
+
46, 46, 46, 46, 81, 46, 46, 46,
|
155
164
|
46, 46, 46, 46, 46, 79, 79, 79,
|
156
165
|
46, 46, 79, 79, 79, 46, 46, 46,
|
157
|
-
46, 46,
|
166
|
+
46, 46, 82, 46, 46, 46, 46, 46,
|
158
167
|
46, 46, 46, 46, 46, 46, 46, 46,
|
159
168
|
46, 46, 46, 46, 46, 46, 79, 79,
|
160
169
|
79, 46, 46, 79, 79, 79, 46, 46,
|
170
|
+
46, 83, 46, 46, 46, 46, 46, 46,
|
161
171
|
46, 46, 46, 46, 46, 46, 46, 46,
|
162
|
-
46, 46, 46, 46, 46, 46, 81, 46,
|
163
172
|
46, 46, 46, 46, 46, 46, 46, 79,
|
164
173
|
79, 79, 46, 46, 79, 79, 79, 46,
|
165
|
-
46, 46, 46, 46, 82, 46, 46, 46,
|
166
174
|
46, 46, 46, 46, 46, 46, 46, 46,
|
167
175
|
46, 46, 46, 46, 46, 46, 46, 46,
|
176
|
+
46, 84, 46, 46, 46, 46, 46, 46,
|
168
177
|
79, 79, 79, 46, 46, 79, 79, 79,
|
169
|
-
46, 46, 46, 83, 46, 46, 46, 46,
|
170
178
|
46, 46, 46, 46, 46, 46, 46, 46,
|
179
|
+
46, 85, 46, 46, 46, 46, 46, 46,
|
171
180
|
46, 46, 46, 46, 46, 46, 46, 46,
|
172
181
|
46, 79, 79, 79, 46, 46, 79, 79,
|
173
182
|
79, 46, 46, 46, 46, 46, 46, 46,
|
174
183
|
46, 46, 46, 46, 46, 46, 46, 46,
|
175
|
-
46, 46, 46,
|
184
|
+
46, 46, 46, 46, 46, 86, 46, 46,
|
176
185
|
46, 46, 79, 79, 79, 46, 46, 79,
|
177
|
-
79, 79, 46, 46, 46, 46, 46,
|
178
|
-
46, 46, 46,
|
186
|
+
79, 79, 46, 46, 46, 46, 46, 87,
|
187
|
+
46, 46, 46, 46, 46, 46, 46, 46,
|
179
188
|
46, 46, 46, 46, 46, 46, 46, 46,
|
180
189
|
46, 46, 46, 79, 79, 79, 46, 46,
|
181
190
|
79, 79, 79, 46, 46, 46, 46, 46,
|
191
|
+
46, 46, 46, 46, 46, 46, 46, 88,
|
182
192
|
46, 46, 46, 46, 46, 46, 46, 46,
|
183
|
-
|
184
|
-
46, 46, 46, 46, 79, 79, 79, 46,
|
193
|
+
89, 46, 46, 46, 79, 79, 79, 46,
|
185
194
|
46, 79, 79, 79, 46, 46, 46, 46,
|
186
|
-
46, 87, 46, 46, 46, 46, 46, 46,
|
187
195
|
46, 46, 46, 46, 46, 46, 46, 46,
|
196
|
+
46, 46, 46, 46, 46, 46, 46, 90,
|
188
197
|
46, 46, 46, 46, 46, 79, 79, 79,
|
189
198
|
46, 46, 79, 79, 79, 46, 46, 46,
|
190
199
|
46, 46, 46, 46, 46, 46, 46, 46,
|
191
|
-
|
192
|
-
46, 46,
|
200
|
+
91, 46, 46, 46, 46, 46, 46, 46,
|
201
|
+
46, 46, 46, 46, 46, 46, 79, 79,
|
193
202
|
79, 46, 46, 79, 79, 79, 46, 46,
|
194
203
|
46, 46, 46, 46, 46, 46, 46, 46,
|
195
204
|
46, 46, 46, 46, 46, 46, 46, 46,
|
196
|
-
|
205
|
+
92, 46, 46, 46, 46, 46, 46, 79,
|
197
206
|
79, 79, 46, 46, 79, 79, 79, 46,
|
207
|
+
46, 46, 46, 46, 93, 46, 46, 46,
|
198
208
|
46, 46, 46, 46, 46, 46, 46, 46,
|
199
|
-
46, 46, 91, 46, 46, 46, 46, 46,
|
200
209
|
46, 46, 46, 46, 46, 46, 46, 46,
|
201
210
|
79, 79, 79, 46, 46, 79, 79, 79,
|
202
211
|
46, 46, 46, 46, 46, 46, 46, 46,
|
212
|
+
46, 46, 46, 46, 94, 46, 46, 46,
|
203
213
|
46, 46, 46, 46, 46, 46, 46, 46,
|
204
|
-
46, 46, 92, 46, 46, 46, 46, 46,
|
205
214
|
46, 79, 79, 79, 46, 46, 79, 79,
|
206
|
-
79, 46, 46, 46, 46,
|
215
|
+
79, 46, 46, 46, 46, 95, 46, 46,
|
207
216
|
46, 46, 46, 46, 46, 46, 46, 46,
|
208
217
|
46, 46, 46, 46, 46, 46, 46, 46,
|
209
218
|
46, 46, 79, 79, 79, 46, 46, 79,
|
210
|
-
79, 79, 46,
|
211
|
-
46, 46, 46, 46, 46, 46, 94, 46,
|
219
|
+
79, 79, 46, 96, 46, 46, 46, 46,
|
212
220
|
46, 46, 46, 46, 46, 46, 46, 46,
|
221
|
+
46, 46, 97, 46, 46, 46, 46, 46,
|
213
222
|
46, 46, 46, 79, 79, 79, 46, 46,
|
214
|
-
79, 79, 79, 46, 46, 46, 46,
|
215
|
-
46, 46, 46, 46, 46,
|
223
|
+
79, 79, 79, 46, 46, 46, 46, 46,
|
224
|
+
46, 46, 46, 46, 46, 98, 46, 46,
|
216
225
|
46, 46, 46, 46, 46, 46, 46, 46,
|
217
226
|
46, 46, 46, 46, 79, 79, 79, 46,
|
218
|
-
46, 79, 79, 79, 46,
|
227
|
+
46, 79, 79, 79, 46, 46, 46, 46,
|
219
228
|
46, 46, 46, 46, 46, 46, 46, 46,
|
220
|
-
46, 46, 46, 46,
|
229
|
+
46, 46, 46, 46, 46, 99, 46, 46,
|
221
230
|
46, 46, 46, 46, 46, 79, 79, 79,
|
222
231
|
46, 46, 79, 79, 79, 46, 46, 46,
|
223
|
-
46, 46,
|
232
|
+
46, 46, 100, 46, 46, 46, 46, 46,
|
224
233
|
46, 46, 46, 46, 46, 46, 46, 46,
|
225
234
|
46, 46, 46, 46, 46, 46, 79, 79,
|
226
|
-
79, 46, 46, 79, 79, 79, 46,
|
235
|
+
79, 46, 46, 79, 79, 79, 46, 101,
|
236
|
+
46, 46, 46, 46, 46, 46, 46, 46,
|
227
237
|
46, 46, 46, 46, 46, 46, 46, 46,
|
228
|
-
46, 46, 46, 46, 46, 46, 46, 99,
|
229
238
|
46, 46, 46, 46, 46, 46, 46, 79,
|
230
239
|
79, 79, 46, 46, 79, 79, 79, 46,
|
231
|
-
46, 46, 46, 46,
|
240
|
+
46, 46, 46, 46, 46, 46, 102, 46,
|
232
241
|
46, 46, 46, 46, 46, 46, 46, 46,
|
233
242
|
46, 46, 46, 46, 46, 46, 46, 46,
|
234
243
|
79, 79, 79, 46, 46, 79, 79, 79,
|
235
|
-
46, 101, 46, 46, 46, 46, 46, 46,
|
236
244
|
46, 46, 46, 46, 46, 46, 46, 46,
|
245
|
+
46, 46, 46, 103, 46, 46, 46, 46,
|
237
246
|
46, 46, 46, 46, 46, 46, 46, 46,
|
238
247
|
46, 79, 79, 79, 46, 46, 79, 79,
|
239
|
-
79, 46, 46, 46, 46, 46,
|
240
|
-
|
248
|
+
79, 46, 46, 46, 46, 46, 104, 46,
|
249
|
+
46, 46, 46, 46, 46, 46, 46, 46,
|
241
250
|
46, 46, 46, 46, 46, 46, 46, 46,
|
242
251
|
46, 46, 79, 79, 79, 46, 46, 79,
|
243
252
|
79, 79, 46, 46, 46, 46, 46, 46,
|
244
|
-
46, 46, 46, 46, 46,
|
253
|
+
46, 46, 46, 46, 46, 46, 105, 46,
|
245
254
|
46, 46, 46, 46, 46, 46, 46, 46,
|
246
255
|
46, 46, 46, 79, 79, 79, 46, 46,
|
247
256
|
79, 79, 79, 46, 46, 46, 46, 46,
|
248
|
-
104, 46, 46, 46, 46, 46, 46, 46,
|
249
257
|
46, 46, 46, 46, 46, 46, 46, 46,
|
258
|
+
46, 46, 46, 46, 46, 106, 46, 46,
|
250
259
|
46, 46, 46, 46, 79, 79, 79, 46,
|
251
260
|
46, 79, 79, 79, 46, 46, 46, 46,
|
252
|
-
46, 46, 46, 46, 46, 46, 46,
|
253
|
-
|
261
|
+
46, 46, 46, 46, 46, 46, 46, 107,
|
262
|
+
108, 46, 46, 46, 46, 46, 46, 46,
|
254
263
|
46, 46, 46, 46, 46, 79, 79, 79,
|
255
264
|
46, 46, 79, 79, 79, 46, 46, 46,
|
256
265
|
46, 46, 46, 46, 46, 46, 46, 46,
|
257
|
-
46, 46, 46,
|
266
|
+
46, 46, 46, 109, 46, 46, 46, 46,
|
258
267
|
46, 46, 46, 46, 46, 46, 79, 79,
|
259
268
|
79, 46, 46, 79, 79, 79, 46, 46,
|
260
269
|
46, 46, 46, 46, 46, 46, 46, 46,
|
261
|
-
|
270
|
+
110, 46, 46, 46, 46, 46, 46, 46,
|
262
271
|
46, 46, 46, 46, 46, 46, 46, 79,
|
263
272
|
79, 79, 46, 46, 79, 79, 79, 46,
|
273
|
+
46, 46, 46, 46, 111, 46, 46, 46,
|
264
274
|
46, 46, 46, 46, 46, 46, 46, 46,
|
265
|
-
46, 46, 46, 46, 46, 109, 46, 46,
|
266
275
|
46, 46, 46, 46, 46, 46, 46, 46,
|
267
276
|
79, 79, 79, 46, 46, 79, 79, 79,
|
268
277
|
46, 46, 46, 46, 46, 46, 46, 46,
|
269
|
-
46, 46,
|
278
|
+
46, 46, 46, 112, 46, 46, 46, 46,
|
270
279
|
46, 46, 46, 46, 46, 46, 46, 46,
|
271
280
|
46, 79, 79, 79, 46, 46, 79, 79,
|
272
|
-
79, 46, 46, 46, 46, 46,
|
281
|
+
79, 46, 46, 46, 46, 46, 113, 46,
|
273
282
|
46, 46, 46, 46, 46, 46, 46, 46,
|
274
283
|
46, 46, 46, 46, 46, 46, 46, 46,
|
275
284
|
46, 46, 79, 79, 79, 46, 46, 79,
|
276
285
|
79, 79, 46, 46, 46, 46, 46, 46,
|
277
|
-
46, 46, 46, 46, 46,
|
286
|
+
46, 46, 46, 46, 46, 46, 114, 46,
|
278
287
|
46, 46, 46, 46, 46, 46, 46, 46,
|
279
288
|
46, 46, 46, 79, 79, 79, 46, 46,
|
280
289
|
79, 79, 79, 46, 46, 46, 46, 46,
|
281
|
-
113, 46, 46, 46, 46, 46, 46, 46,
|
282
290
|
46, 46, 46, 46, 46, 46, 46, 46,
|
291
|
+
46, 46, 46, 46, 46, 115, 46, 46,
|
283
292
|
46, 46, 46, 46, 79, 79, 79, 46,
|
284
293
|
46, 79, 79, 79, 46, 46, 46, 46,
|
285
294
|
46, 46, 46, 46, 46, 46, 46, 46,
|
286
|
-
|
295
|
+
46, 46, 46, 46, 46, 116, 46, 46,
|
287
296
|
46, 46, 46, 46, 46, 79, 79, 79,
|
288
297
|
46, 46, 79, 79, 79, 46, 46, 46,
|
289
298
|
46, 46, 46, 46, 46, 46, 46, 46,
|
290
|
-
46, 46, 46,
|
299
|
+
46, 46, 46, 117, 46, 46, 46, 118,
|
291
300
|
46, 46, 46, 46, 46, 46, 79, 79,
|
292
301
|
79, 46, 46, 79, 79, 79, 46, 46,
|
293
302
|
46, 46, 46, 46, 46, 46, 46, 46,
|
294
|
-
46, 46, 46, 46, 46, 46, 46,
|
295
|
-
46,
|
303
|
+
46, 46, 46, 46, 46, 46, 46, 46,
|
304
|
+
46, 119, 46, 46, 46, 46, 46, 79,
|
296
305
|
79, 79, 46, 46, 79, 79, 79, 46,
|
297
306
|
46, 46, 46, 46, 46, 46, 46, 46,
|
298
|
-
46, 46, 46, 46, 46,
|
299
|
-
46,
|
307
|
+
46, 46, 46, 46, 46, 46, 46, 46,
|
308
|
+
46, 120, 46, 46, 46, 46, 46, 46,
|
300
309
|
79, 79, 79, 46, 46, 79, 79, 79,
|
310
|
+
46, 46, 46, 46, 46, 121, 46, 46,
|
301
311
|
46, 46, 46, 46, 46, 46, 46, 46,
|
302
312
|
46, 46, 46, 46, 46, 46, 46, 46,
|
303
|
-
46, 46, 46, 119, 46, 46, 46, 46,
|
304
313
|
46, 79, 79, 79, 46, 46, 79, 79,
|
305
314
|
79, 46, 46, 46, 46, 46, 46, 46,
|
306
315
|
46, 46, 46, 46, 46, 46, 46, 46,
|
307
|
-
46,
|
316
|
+
46, 122, 46, 46, 46, 46, 46, 46,
|
308
317
|
46, 46, 79, 79, 79, 46, 46, 79,
|
309
|
-
79, 79, 46, 46, 46, 46, 46,
|
310
|
-
|
318
|
+
79, 79, 46, 46, 46, 46, 46, 46,
|
319
|
+
123, 46, 46, 46, 46, 46, 46, 46,
|
311
320
|
46, 46, 46, 46, 46, 46, 46, 46,
|
312
321
|
46, 46, 46, 79, 79, 79, 46, 46,
|
313
|
-
79, 79, 79, 46,
|
322
|
+
79, 79, 79, 46, 124, 46, 46, 46,
|
323
|
+
46, 46, 46, 46, 46, 46, 46, 46,
|
314
324
|
46, 46, 46, 46, 46, 46, 46, 46,
|
315
|
-
46, 46, 46, 122, 46, 46, 46, 46,
|
316
325
|
46, 46, 46, 46, 79, 79, 79, 46,
|
317
|
-
46, 79, 79, 79, 46, 46, 46,
|
318
|
-
46, 46, 123, 46, 46, 46, 46, 46,
|
326
|
+
46, 79, 79, 79, 46, 46, 46, 125,
|
319
327
|
46, 46, 46, 46, 46, 46, 46, 46,
|
320
|
-
46, 46, 46, 46, 46, 79, 79, 79,
|
321
|
-
46, 46, 79, 79, 79, 46, 124, 46,
|
322
328
|
46, 46, 46, 46, 46, 46, 46, 46,
|
329
|
+
46, 46, 46, 46, 46, 79, 79, 79,
|
330
|
+
46, 46, 79, 79, 79, 46, 46, 46,
|
331
|
+
46, 46, 126, 46, 46, 46, 46, 46,
|
323
332
|
46, 46, 46, 46, 46, 46, 46, 46,
|
324
333
|
46, 46, 46, 46, 46, 46, 79, 79,
|
325
334
|
79, 46, 46, 79, 79, 79, 46, 46,
|
326
|
-
46, 125, 46, 46, 46, 46, 46, 46,
|
327
335
|
46, 46, 46, 46, 46, 46, 46, 46,
|
328
|
-
46, 46, 46, 46, 46, 46, 46,
|
336
|
+
46, 46, 46, 46, 46, 46, 46, 46,
|
337
|
+
46, 127, 46, 46, 46, 46, 46, 79,
|
329
338
|
79, 79, 46, 46, 79, 79, 79, 46,
|
330
|
-
46, 46, 46, 46, 126, 46, 46, 46,
|
331
339
|
46, 46, 46, 46, 46, 46, 46, 46,
|
332
340
|
46, 46, 46, 46, 46, 46, 46, 46,
|
341
|
+
46, 128, 46, 46, 46, 46, 46, 46,
|
333
342
|
79, 79, 79, 46, 46, 79, 79, 79,
|
343
|
+
46, 129, 46, 46, 46, 46, 46, 46,
|
334
344
|
46, 46, 46, 46, 46, 46, 46, 46,
|
335
345
|
46, 46, 46, 46, 46, 46, 46, 46,
|
336
|
-
46, 46, 46, 127, 46, 46, 46, 46,
|
337
346
|
46, 79, 79, 79, 46, 46, 79, 79,
|
338
347
|
79, 46, 46, 46, 46, 46, 46, 46,
|
339
348
|
46, 46, 46, 46, 46, 46, 46, 46,
|
340
|
-
46, 46, 46,
|
349
|
+
46, 46, 46, 130, 46, 46, 46, 46,
|
341
350
|
46, 46, 79, 79, 79, 46, 46, 79,
|
342
|
-
79, 79, 46,
|
343
|
-
46, 46, 46,
|
351
|
+
79, 79, 46, 46, 46, 46, 46, 46,
|
352
|
+
46, 46, 46, 131, 46, 46, 46, 46,
|
344
353
|
46, 46, 46, 46, 46, 46, 46, 46,
|
345
354
|
46, 46, 46, 79, 79, 79, 46, 46,
|
346
355
|
79, 79, 79, 46, 46, 46, 46, 46,
|
347
356
|
46, 46, 46, 46, 46, 46, 46, 46,
|
348
|
-
|
357
|
+
132, 46, 46, 46, 46, 46, 46, 46,
|
349
358
|
46, 46, 46, 46, 79, 79, 79, 46,
|
350
359
|
46, 79, 79, 79, 46, 46, 46, 46,
|
351
|
-
46, 46, 46, 46, 46, 131, 46, 46,
|
352
360
|
46, 46, 46, 46, 46, 46, 46, 46,
|
361
|
+
133, 46, 46, 46, 46, 46, 46, 46,
|
353
362
|
46, 46, 46, 46, 46, 79, 79, 79,
|
354
363
|
46, 46, 79, 79, 79, 46, 46, 46,
|
355
364
|
46, 46, 46, 46, 46, 46, 46, 46,
|
356
|
-
46, 46,
|
357
|
-
|
365
|
+
46, 46, 46, 46, 46, 46, 46, 46,
|
366
|
+
134, 46, 46, 46, 46, 46, 79, 79,
|
358
367
|
79, 46, 46, 79, 79, 79, 46, 46,
|
359
368
|
46, 46, 46, 46, 46, 46, 46, 46,
|
360
|
-
|
369
|
+
135, 46, 46, 46, 46, 46, 46, 46,
|
361
370
|
46, 46, 46, 46, 46, 46, 46, 79,
|
362
371
|
79, 79, 46, 46, 79, 79, 79, 46,
|
363
372
|
46, 46, 46, 46, 46, 46, 46, 46,
|
373
|
+
46, 136, 46, 46, 46, 46, 46, 46,
|
364
374
|
46, 46, 46, 46, 46, 46, 46, 46,
|
365
|
-
46, 46, 134, 46, 46, 46, 46, 46,
|
366
375
|
79, 79, 79, 46, 46, 79, 79, 79,
|
367
376
|
46, 46, 46, 46, 46, 46, 46, 46,
|
368
|
-
46, 46,
|
377
|
+
46, 46, 46, 46, 137, 46, 46, 46,
|
369
378
|
46, 46, 46, 46, 46, 46, 46, 46,
|
370
379
|
46, 79, 79, 79, 46, 46, 79, 79,
|
371
380
|
79, 46, 46, 46, 46, 46, 46, 46,
|
372
|
-
46, 46, 46, 136, 46, 46, 46, 46,
|
373
381
|
46, 46, 46, 46, 46, 46, 46, 46,
|
382
|
+
46, 46, 46, 46, 138, 46, 46, 46,
|
374
383
|
46, 46, 79, 79, 79, 46, 46, 79,
|
375
|
-
79, 79, 46, 46, 46, 46, 46,
|
376
|
-
46, 46, 46, 46, 46, 46,
|
384
|
+
79, 79, 46, 46, 46, 46, 46, 139,
|
385
|
+
46, 46, 46, 46, 46, 46, 46, 46,
|
377
386
|
46, 46, 46, 46, 46, 46, 46, 46,
|
378
387
|
46, 46, 46, 79, 79, 79, 46, 46,
|
379
388
|
79, 79, 79, 46, 46, 46, 46, 46,
|
380
389
|
46, 46, 46, 46, 46, 46, 46, 46,
|
381
|
-
46, 46, 46,
|
390
|
+
46, 46, 46, 140, 46, 46, 46, 46,
|
382
391
|
46, 46, 46, 46, 79, 79, 79, 46,
|
383
392
|
46, 79, 79, 79, 46, 46, 46, 46,
|
384
|
-
46, 139, 46, 46, 46, 46, 46, 46,
|
385
393
|
46, 46, 46, 46, 46, 46, 46, 46,
|
386
|
-
46, 46, 46, 46, 46,
|
394
|
+
46, 46, 46, 46, 46, 46, 46, 46,
|
395
|
+
46, 46, 141, 46, 46, 79, 79, 79,
|
387
396
|
46, 46, 79, 79, 79, 46, 46, 46,
|
397
|
+
46, 46, 142, 46, 46, 46, 46, 46,
|
388
398
|
46, 46, 46, 46, 46, 46, 46, 46,
|
389
|
-
46, 46, 46, 46, 46, 140, 46, 46,
|
390
399
|
46, 46, 46, 46, 46, 46, 79, 79,
|
391
400
|
79, 46, 46, 79, 79, 79, 46, 46,
|
392
401
|
46, 46, 46, 46, 46, 46, 46, 46,
|
393
|
-
46, 46, 46, 46,
|
394
|
-
46, 46, 46, 46,
|
402
|
+
46, 46, 46, 46, 143, 46, 46, 46,
|
403
|
+
46, 46, 46, 46, 46, 46, 46, 79,
|
395
404
|
79, 79, 46, 46, 79, 79, 79, 46,
|
396
|
-
46, 46, 46, 46,
|
405
|
+
46, 46, 46, 46, 144, 46, 46, 46,
|
397
406
|
46, 46, 46, 46, 46, 46, 46, 46,
|
398
407
|
46, 46, 46, 46, 46, 46, 46, 46,
|
399
408
|
79, 79, 79, 46, 46, 79, 79, 79,
|
409
|
+
46, 145, 46, 46, 46, 46, 46, 46,
|
400
410
|
46, 46, 46, 46, 46, 46, 46, 46,
|
401
|
-
46, 46, 46, 46, 46, 46, 143, 46,
|
402
411
|
46, 46, 46, 46, 46, 46, 46, 46,
|
403
412
|
46, 79, 79, 79, 46, 46, 79, 79,
|
404
|
-
79, 46, 46, 46, 46, 46,
|
405
|
-
46, 46, 46, 46, 46, 46, 46, 46,
|
413
|
+
79, 46, 46, 46, 46, 46, 46, 46,
|
406
414
|
46, 46, 46, 46, 46, 46, 46, 46,
|
415
|
+
46, 46, 46, 146, 46, 46, 46, 46,
|
407
416
|
46, 46, 79, 79, 79, 46, 46, 79,
|
408
|
-
79, 79, 46,
|
417
|
+
79, 79, 46, 147, 46, 46, 46, 46,
|
409
418
|
46, 46, 46, 46, 46, 46, 46, 46,
|
410
419
|
46, 46, 46, 46, 46, 46, 46, 46,
|
411
420
|
46, 46, 46, 79, 79, 79, 46, 46,
|
412
|
-
79, 79, 79, 46, 46,
|
421
|
+
79, 79, 79, 46, 46, 148, 46, 46,
|
413
422
|
46, 46, 46, 46, 46, 46, 46, 46,
|
414
|
-
46, 46, 46, 46, 46, 146, 46, 46,
|
415
|
-
46, 46, 46, 46, 79, 79, 79, 46,
|
416
|
-
46, 79, 79, 79, 46, 147, 46, 46,
|
417
423
|
46, 46, 46, 46, 46, 46, 46, 46,
|
424
|
+
46, 46, 46, 46, 79, 79, 79, 46,
|
425
|
+
46, 79, 79, 79, 46, 46, 46, 46,
|
426
|
+
46, 46, 46, 46, 46, 46, 149, 46,
|
418
427
|
46, 46, 46, 46, 46, 46, 46, 46,
|
419
428
|
46, 46, 46, 46, 46, 79, 79, 79,
|
420
|
-
46, 46, 79, 79, 79, 46, 46,
|
421
|
-
46, 46,
|
429
|
+
46, 46, 79, 79, 79, 46, 46, 46,
|
430
|
+
46, 46, 150, 46, 46, 46, 46, 46,
|
422
431
|
46, 46, 46, 46, 46, 46, 46, 46,
|
423
432
|
46, 46, 46, 46, 46, 46, 79, 79,
|
424
433
|
79, 46, 46, 79, 79, 79, 46, 46,
|
434
|
+
46, 151, 46, 46, 46, 46, 46, 46,
|
425
435
|
46, 46, 46, 46, 46, 46, 46, 46,
|
426
|
-
|
427
|
-
46, 46, 46, 46, 46, 46, 46, 79,
|
436
|
+
46, 152, 46, 46, 46, 46, 46, 79,
|
428
437
|
79, 79, 46, 46, 79, 79, 79, 46,
|
429
|
-
|
438
|
+
153, 46, 46, 46, 46, 46, 46, 154,
|
430
439
|
46, 46, 46, 46, 46, 46, 46, 46,
|
431
440
|
46, 46, 46, 46, 46, 46, 46, 46,
|
432
441
|
79, 79, 79, 46, 46, 79, 79, 79,
|
433
|
-
46, 46, 46, 151, 46, 46, 46, 46,
|
434
442
|
46, 46, 46, 46, 46, 46, 46, 46,
|
435
|
-
46, 46,
|
443
|
+
46, 46, 155, 46, 46, 46, 46, 46,
|
444
|
+
46, 46, 46, 46, 46, 46, 46, 46,
|
436
445
|
46, 79, 79, 79, 46, 46, 79, 79,
|
437
|
-
79, 46,
|
438
|
-
46,
|
446
|
+
79, 46, 156, 46, 46, 46, 46, 46,
|
447
|
+
46, 46, 46, 46, 46, 46, 46, 46,
|
439
448
|
46, 46, 46, 46, 46, 46, 46, 46,
|
440
449
|
46, 46, 79, 79, 79, 46, 46, 79,
|
441
450
|
79, 79, 46, 46, 46, 46, 46, 46,
|
442
|
-
46, 46, 46, 46, 155, 46, 46, 46,
|
443
451
|
46, 46, 46, 46, 46, 46, 46, 46,
|
452
|
+
46, 46, 157, 46, 46, 46, 46, 46,
|
444
453
|
46, 46, 46, 79, 79, 79, 46, 46,
|
445
|
-
79, 79, 79, 46,
|
446
|
-
|
454
|
+
79, 79, 79, 46, 46, 46, 46, 46,
|
455
|
+
158, 46, 46, 46, 46, 46, 46, 46,
|
447
456
|
46, 46, 46, 46, 46, 46, 46, 46,
|
448
457
|
46, 46, 46, 46, 79, 79, 79, 46,
|
449
458
|
46, 79, 79, 79, 46, 46, 46, 46,
|
459
|
+
46, 46, 46, 46, 46, 46, 46, 159,
|
450
460
|
46, 46, 46, 46, 46, 46, 46, 46,
|
451
|
-
46, 46, 46, 46, 157, 46, 46, 46,
|
452
461
|
46, 46, 46, 46, 46, 79, 79, 79,
|
453
|
-
46, 46, 79, 79, 79, 46,
|
454
|
-
46, 46,
|
462
|
+
46, 46, 79, 79, 79, 46, 160, 46,
|
463
|
+
46, 46, 46, 46, 46, 46, 46, 46,
|
455
464
|
46, 46, 46, 46, 46, 46, 46, 46,
|
456
465
|
46, 46, 46, 46, 46, 46, 79, 79,
|
457
466
|
79, 46, 46, 79, 79, 79, 46, 46,
|
467
|
+
161, 46, 46, 46, 46, 46, 46, 46,
|
458
468
|
46, 46, 46, 46, 46, 46, 46, 46,
|
459
|
-
46, 159, 46, 46, 46, 46, 46, 46,
|
460
469
|
46, 46, 46, 46, 46, 46, 46, 79,
|
461
470
|
79, 79, 46, 46, 79, 79, 79, 46,
|
462
|
-
160, 46, 46, 46, 46, 46, 46, 46,
|
463
471
|
46, 46, 46, 46, 46, 46, 46, 46,
|
464
472
|
46, 46, 46, 46, 46, 46, 46, 46,
|
473
|
+
162, 46, 46, 46, 46, 46, 46, 46,
|
465
474
|
79, 79, 79, 46, 46, 79, 79, 79,
|
466
|
-
46, 46,
|
475
|
+
46, 46, 46, 163, 46, 46, 46, 46,
|
467
476
|
46, 46, 46, 46, 46, 46, 46, 46,
|
468
477
|
46, 46, 46, 46, 46, 46, 46, 46,
|
469
478
|
46, 79, 79, 79, 46, 46, 79, 79,
|
470
479
|
79, 46, 46, 46, 46, 46, 46, 46,
|
471
480
|
46, 46, 46, 46, 46, 46, 46, 46,
|
472
|
-
46,
|
481
|
+
46, 164, 46, 46, 46, 46, 46, 46,
|
473
482
|
46, 46, 79, 79, 79, 46, 46, 79,
|
474
|
-
79, 79, 46, 46, 46,
|
475
|
-
46, 46, 46,
|
483
|
+
79, 79, 46, 46, 46, 46, 46, 46,
|
484
|
+
46, 46, 46, 165, 46, 46, 46, 46,
|
476
485
|
46, 46, 46, 46, 46, 46, 46, 46,
|
477
486
|
46, 46, 46, 79, 79, 79, 46, 46,
|
478
487
|
79, 79, 79, 46, 46, 46, 46, 46,
|
479
488
|
46, 46, 46, 46, 46, 46, 46, 46,
|
480
|
-
46,
|
489
|
+
46, 166, 46, 46, 46, 46, 46, 46,
|
481
490
|
46, 46, 46, 46, 79, 79, 79, 46,
|
482
491
|
46, 79, 79, 79, 46, 46, 46, 46,
|
483
|
-
46, 46, 46, 46, 46, 165, 46, 46,
|
484
492
|
46, 46, 46, 46, 46, 46, 46, 46,
|
493
|
+
46, 46, 46, 46, 46, 46, 167, 46,
|
485
494
|
46, 46, 46, 46, 46, 79, 79, 79,
|
486
495
|
46, 46, 79, 79, 79, 46, 46, 46,
|
496
|
+
46, 46, 46, 46, 46, 46, 168, 46,
|
487
497
|
46, 46, 46, 46, 46, 46, 46, 46,
|
488
|
-
46, 46, 46, 166, 46, 46, 46, 46,
|
489
498
|
46, 46, 46, 46, 46, 46, 79, 79,
|
490
499
|
79, 46, 46, 79, 79, 79, 46, 46,
|
491
500
|
46, 46, 46, 46, 46, 46, 46, 46,
|
492
|
-
46, 46, 46,
|
493
|
-
|
501
|
+
46, 46, 46, 169, 46, 46, 46, 46,
|
502
|
+
46, 46, 46, 46, 46, 46, 46, 79,
|
494
503
|
79, 79, 46, 46, 79, 79, 79, 46,
|
495
504
|
46, 46, 46, 46, 46, 46, 46, 46,
|
496
|
-
|
505
|
+
46, 46, 46, 170, 46, 46, 46, 46,
|
497
506
|
46, 46, 46, 46, 46, 46, 46, 46,
|
498
507
|
79, 79, 79, 46, 46, 79, 79, 79,
|
499
508
|
46, 46, 46, 46, 46, 46, 46, 46,
|
500
|
-
46, 46, 46, 46, 46, 169, 46, 46,
|
501
509
|
46, 46, 46, 46, 46, 46, 46, 46,
|
510
|
+
171, 46, 46, 46, 46, 46, 172, 46,
|
502
511
|
46, 79, 79, 79, 46, 46, 79, 79,
|
503
512
|
79, 46, 46, 46, 46, 46, 46, 46,
|
504
|
-
46, 46, 46, 46, 46, 170, 46, 46,
|
505
513
|
46, 46, 46, 46, 46, 46, 46, 46,
|
514
|
+
46, 46, 46, 46, 173, 46, 46, 46,
|
506
515
|
46, 46, 79, 79, 79, 46, 46, 79,
|
507
|
-
79, 79, 46, 46, 46, 46, 46,
|
516
|
+
79, 79, 46, 46, 46, 46, 46, 174,
|
517
|
+
46, 46, 46, 46, 46, 46, 46, 46,
|
508
518
|
46, 46, 46, 46, 46, 46, 46, 46,
|
509
|
-
46, 46,
|
510
|
-
172, 46, 46, 79, 79, 79, 46, 46,
|
519
|
+
46, 46, 46, 79, 79, 79, 46, 46,
|
511
520
|
79, 79, 79, 46, 46, 46, 46, 46,
|
512
521
|
46, 46, 46, 46, 46, 46, 46, 46,
|
513
|
-
46,
|
522
|
+
46, 175, 46, 46, 46, 46, 46, 46,
|
514
523
|
46, 46, 46, 46, 79, 79, 79, 46,
|
515
524
|
46, 79, 79, 79, 46, 46, 46, 46,
|
516
|
-
46,
|
525
|
+
46, 176, 46, 46, 46, 46, 46, 46,
|
517
526
|
46, 46, 46, 46, 46, 46, 46, 46,
|
518
527
|
46, 46, 46, 46, 46, 79, 79, 79,
|
519
528
|
46, 46, 79, 79, 79, 46, 46, 46,
|
520
529
|
46, 46, 46, 46, 46, 46, 46, 46,
|
521
|
-
46,
|
530
|
+
46, 177, 46, 46, 46, 46, 46, 46,
|
522
531
|
46, 46, 46, 46, 46, 46, 79, 79,
|
523
532
|
79, 46, 46, 79, 79, 79, 46, 46,
|
524
|
-
46, 46, 46,
|
533
|
+
46, 46, 46, 46, 46, 46, 46, 178,
|
525
534
|
46, 46, 46, 46, 46, 46, 46, 46,
|
526
535
|
46, 46, 46, 46, 46, 46, 46, 79,
|
527
536
|
79, 79, 46, 46, 79, 79, 79, 46,
|
528
537
|
46, 46, 46, 46, 46, 46, 46, 46,
|
529
|
-
46, 46, 46,
|
538
|
+
46, 46, 46, 46, 179, 46, 46, 46,
|
530
539
|
46, 46, 46, 46, 46, 46, 46, 46,
|
531
540
|
79, 79, 79, 46, 46, 79, 79, 79,
|
532
541
|
46, 46, 46, 46, 46, 46, 46, 46,
|
533
|
-
46,
|
534
|
-
46, 46, 46, 46, 46, 46, 46,
|
535
|
-
46, 79, 79, 79, 46, 46, 79, 79,
|
536
|
-
79, 46, 46, 46, 46, 46, 46, 46,
|
537
|
-
46, 46, 46, 46, 46, 46, 179, 46,
|
538
|
-
46, 46, 46, 46, 46, 46, 46, 46,
|
539
|
-
46, 46, 79, 79, 79, 46, 46, 79,
|
540
|
-
79, 79, 46, 46, 46, 46, 46, 46,
|
541
|
-
46, 46, 46, 46, 46, 46, 180, 46,
|
542
|
-
46, 46, 46, 46, 46, 46, 46, 46,
|
543
|
-
46, 0
|
542
|
+
46, 46, 46, 46, 180, 46, 46, 46,
|
543
|
+
46, 46, 46, 46, 46, 46, 46, 0
|
544
544
|
};
|
545
545
|
|
546
546
|
static const signed char _graphql_c_lexer_index_defaults[] = {
|
@@ -686,6 +686,7 @@ static const int graphql_c_lexer_en_main = 21;
|
|
686
686
|
|
687
687
|
|
688
688
|
#include <ruby.h>
|
689
|
+
#include <ruby/encoding.h>
|
689
690
|
|
690
691
|
#define INIT_STATIC_TOKEN_VARIABLE(token_name) \
|
691
692
|
static VALUE GraphQLTokenString##token_name;
|
@@ -776,6 +777,7 @@ typedef struct Meta {
|
|
776
777
|
char *pe;
|
777
778
|
VALUE tokens;
|
778
779
|
VALUE previous_token;
|
780
|
+
int dedup_identifiers;
|
779
781
|
} Meta;
|
780
782
|
|
781
783
|
#define STATIC_VALUE_TOKEN(token_type, content_str) \
|
@@ -843,7 +845,14 @@ void emit(TokenType tt, char *ts, char *te, Meta *meta) {
|
|
843
845
|
token_sym = ID2SYM(rb_intern("NULL"));
|
844
846
|
token_content = GraphQL_null_str;
|
845
847
|
break;
|
846
|
-
|
848
|
+
case IDENTIFIER:
|
849
|
+
token_sym = ID2SYM(rb_intern("IDENTIFIER"));
|
850
|
+
if (meta->dedup_identifiers) {
|
851
|
+
token_content = rb_enc_interned_str(ts, te - ts, rb_utf8_encoding());
|
852
|
+
} else {
|
853
|
+
token_content = rb_utf8_str_new(ts, te - ts);
|
854
|
+
}
|
855
|
+
break;
|
847
856
|
DYNAMIC_VALUE_TOKEN(INT)
|
848
857
|
DYNAMIC_VALUE_TOKEN(FLOAT)
|
849
858
|
DYNAMIC_VALUE_TOKEN(COMMENT)
|
@@ -866,8 +875,9 @@ void emit(TokenType tt, char *ts, char *te, Meta *meta) {
|
|
866
875
|
token_content = rb_utf8_str_new(ts + quotes_length, (te - ts - (2 * quotes_length)));
|
867
876
|
line_incr = FIX2INT(rb_funcall(token_content, rb_intern("count"), 1, rb_utf8_str_new_cstr("\n")));
|
868
877
|
break;
|
878
|
+
// These are used only by the parser, this is never reached
|
869
879
|
case STRING:
|
870
|
-
|
880
|
+
case BAD_UNICODE_ESCAPE:
|
871
881
|
break;
|
872
882
|
}
|
873
883
|
|
@@ -880,24 +890,22 @@ void emit(TokenType tt, char *ts, char *te, Meta *meta) {
|
|
880
890
|
if (tt == BLOCK_STRING) {
|
881
891
|
VALUE mGraphQLLanguageBlockString = rb_const_get_at(mGraphQLLanguage, rb_intern("BlockString"));
|
882
892
|
token_content = rb_funcall(mGraphQLLanguageBlockString, rb_intern("trim_whitespace"), 1, token_content);
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
893
|
+
tt = STRING;
|
894
|
+
} else {
|
895
|
+
tt = STRING;
|
896
|
+
if (
|
897
|
+
RB_TEST(rb_funcall(token_content, rb_intern("valid_encoding?"), 0)) &&
|
898
|
+
RB_TEST(rb_funcall(token_content, rb_intern("match?"), 1, valid_string_pattern))
|
899
|
+
) {
|
900
|
+
rb_funcall(mGraphQLLanguageLexer, rb_intern("replace_escaped_characters_in_place"), 1, token_content);
|
901
|
+
if (!RB_TEST(rb_funcall(token_content, rb_intern("valid_encoding?"), 0))) {
|
902
|
+
token_sym = ID2SYM(rb_intern("BAD_UNICODE_ESCAPE"));
|
903
|
+
tt = BAD_UNICODE_ESCAPE;
|
904
|
+
}
|
905
|
+
} else {
|
895
906
|
token_sym = ID2SYM(rb_intern("BAD_UNICODE_ESCAPE"));
|
896
907
|
tt = BAD_UNICODE_ESCAPE;
|
897
908
|
}
|
898
|
-
} else {
|
899
|
-
token_sym = ID2SYM(rb_intern("BAD_UNICODE_ESCAPE"));
|
900
|
-
tt = BAD_UNICODE_ESCAPE;
|
901
909
|
}
|
902
910
|
}
|
903
911
|
|
@@ -921,7 +929,7 @@ void emit(TokenType tt, char *ts, char *te, Meta *meta) {
|
|
921
929
|
meta->line += line_incr;
|
922
930
|
}
|
923
931
|
|
924
|
-
VALUE tokenize(VALUE query_rbstr) {
|
932
|
+
VALUE tokenize(VALUE query_rbstr, int fstring_identifiers) {
|
925
933
|
int cs = 0;
|
926
934
|
int act = 0;
|
927
935
|
char *p = StringValueCStr(query_rbstr);
|
@@ -930,11 +938,11 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
930
938
|
char *ts = 0;
|
931
939
|
char *te = 0;
|
932
940
|
VALUE tokens = rb_ary_new();
|
933
|
-
struct Meta meta_s = {1, 1, p, pe, tokens, Qnil};
|
941
|
+
struct Meta meta_s = {1, 1, p, pe, tokens, Qnil, fstring_identifiers};
|
934
942
|
Meta *meta = &meta_s;
|
935
943
|
|
936
944
|
|
937
|
-
#line
|
945
|
+
#line 946 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
938
946
|
{
|
939
947
|
cs = (int)graphql_c_lexer_start;
|
940
948
|
ts = 0;
|
@@ -942,10 +950,10 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
942
950
|
act = 0;
|
943
951
|
}
|
944
952
|
|
945
|
-
#line
|
953
|
+
#line 362 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
946
954
|
|
947
955
|
|
948
|
-
#line
|
956
|
+
#line 957 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
949
957
|
{
|
950
958
|
unsigned int _trans = 0;
|
951
959
|
const char * _keys;
|
@@ -960,7 +968,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
960
968
|
#line 1 "NONE"
|
961
969
|
{ts = p;}}
|
962
970
|
|
963
|
-
#line
|
971
|
+
#line 972 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
964
972
|
|
965
973
|
|
966
974
|
break;
|
@@ -998,7 +1006,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
998
1006
|
#line 1 "NONE"
|
999
1007
|
{te = p+1;}}
|
1000
1008
|
|
1001
|
-
#line
|
1009
|
+
#line 1010 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1002
1010
|
|
1003
1011
|
|
1004
1012
|
break;
|
@@ -1011,7 +1019,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1011
1019
|
emit(RCURLY, ts, te, meta); }
|
1012
1020
|
}}
|
1013
1021
|
|
1014
|
-
#line
|
1022
|
+
#line 1023 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1015
1023
|
|
1016
1024
|
|
1017
1025
|
break;
|
@@ -1024,7 +1032,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1024
1032
|
emit(LCURLY, ts, te, meta); }
|
1025
1033
|
}}
|
1026
1034
|
|
1027
|
-
#line
|
1035
|
+
#line 1036 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1028
1036
|
|
1029
1037
|
|
1030
1038
|
break;
|
@@ -1037,7 +1045,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1037
1045
|
emit(RPAREN, ts, te, meta); }
|
1038
1046
|
}}
|
1039
1047
|
|
1040
|
-
#line
|
1048
|
+
#line 1049 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1041
1049
|
|
1042
1050
|
|
1043
1051
|
break;
|
@@ -1050,7 +1058,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1050
1058
|
emit(LPAREN, ts, te, meta); }
|
1051
1059
|
}}
|
1052
1060
|
|
1053
|
-
#line
|
1061
|
+
#line 1062 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1054
1062
|
|
1055
1063
|
|
1056
1064
|
break;
|
@@ -1063,7 +1071,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1063
1071
|
emit(RBRACKET, ts, te, meta); }
|
1064
1072
|
}}
|
1065
1073
|
|
1066
|
-
#line
|
1074
|
+
#line 1075 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1067
1075
|
|
1068
1076
|
|
1069
1077
|
break;
|
@@ -1076,7 +1084,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1076
1084
|
emit(LBRACKET, ts, te, meta); }
|
1077
1085
|
}}
|
1078
1086
|
|
1079
|
-
#line
|
1087
|
+
#line 1088 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1080
1088
|
|
1081
1089
|
|
1082
1090
|
break;
|
@@ -1089,7 +1097,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1089
1097
|
emit(COLON, ts, te, meta); }
|
1090
1098
|
}}
|
1091
1099
|
|
1092
|
-
#line
|
1100
|
+
#line 1101 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1093
1101
|
|
1094
1102
|
|
1095
1103
|
break;
|
@@ -1102,7 +1110,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1102
1110
|
emit(BLOCK_STRING, ts, te, meta); }
|
1103
1111
|
}}
|
1104
1112
|
|
1105
|
-
#line
|
1113
|
+
#line 1114 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1106
1114
|
|
1107
1115
|
|
1108
1116
|
break;
|
@@ -1115,7 +1123,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1115
1123
|
emit(QUOTED_STRING, ts, te, meta); }
|
1116
1124
|
}}
|
1117
1125
|
|
1118
|
-
#line
|
1126
|
+
#line 1127 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1119
1127
|
|
1120
1128
|
|
1121
1129
|
break;
|
@@ -1128,7 +1136,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1128
1136
|
emit(VAR_SIGN, ts, te, meta); }
|
1129
1137
|
}}
|
1130
1138
|
|
1131
|
-
#line
|
1139
|
+
#line 1140 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1132
1140
|
|
1133
1141
|
|
1134
1142
|
break;
|
@@ -1141,7 +1149,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1141
1149
|
emit(DIR_SIGN, ts, te, meta); }
|
1142
1150
|
}}
|
1143
1151
|
|
1144
|
-
#line
|
1152
|
+
#line 1153 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1145
1153
|
|
1146
1154
|
|
1147
1155
|
break;
|
@@ -1154,7 +1162,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1154
1162
|
emit(ELLIPSIS, ts, te, meta); }
|
1155
1163
|
}}
|
1156
1164
|
|
1157
|
-
#line
|
1165
|
+
#line 1166 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1158
1166
|
|
1159
1167
|
|
1160
1168
|
break;
|
@@ -1167,7 +1175,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1167
1175
|
emit(EQUALS, ts, te, meta); }
|
1168
1176
|
}}
|
1169
1177
|
|
1170
|
-
#line
|
1178
|
+
#line 1179 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1171
1179
|
|
1172
1180
|
|
1173
1181
|
break;
|
@@ -1180,7 +1188,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1180
1188
|
emit(BANG, ts, te, meta); }
|
1181
1189
|
}}
|
1182
1190
|
|
1183
|
-
#line
|
1191
|
+
#line 1192 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1184
1192
|
|
1185
1193
|
|
1186
1194
|
break;
|
@@ -1193,7 +1201,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1193
1201
|
emit(PIPE, ts, te, meta); }
|
1194
1202
|
}}
|
1195
1203
|
|
1196
|
-
#line
|
1204
|
+
#line 1205 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1197
1205
|
|
1198
1206
|
|
1199
1207
|
break;
|
@@ -1206,7 +1214,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1206
1214
|
emit(AMP, ts, te, meta); }
|
1207
1215
|
}}
|
1208
1216
|
|
1209
|
-
#line
|
1217
|
+
#line 1218 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1210
1218
|
|
1211
1219
|
|
1212
1220
|
break;
|
@@ -1222,7 +1230,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1222
1230
|
}
|
1223
1231
|
}}
|
1224
1232
|
|
1225
|
-
#line
|
1233
|
+
#line 1234 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1226
1234
|
|
1227
1235
|
|
1228
1236
|
break;
|
@@ -1235,7 +1243,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1235
1243
|
emit(UNKNOWN_CHAR, ts, te, meta); }
|
1236
1244
|
}}
|
1237
1245
|
|
1238
|
-
#line
|
1246
|
+
#line 1247 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1239
1247
|
|
1240
1248
|
|
1241
1249
|
break;
|
@@ -1248,7 +1256,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1248
1256
|
emit(INT, ts, te, meta); }
|
1249
1257
|
}}
|
1250
1258
|
|
1251
|
-
#line
|
1259
|
+
#line 1260 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1252
1260
|
|
1253
1261
|
|
1254
1262
|
break;
|
@@ -1261,7 +1269,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1261
1269
|
emit(FLOAT, ts, te, meta); }
|
1262
1270
|
}}
|
1263
1271
|
|
1264
|
-
#line
|
1272
|
+
#line 1273 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1265
1273
|
|
1266
1274
|
|
1267
1275
|
break;
|
@@ -1274,7 +1282,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1274
1282
|
emit(BLOCK_STRING, ts, te, meta); }
|
1275
1283
|
}}
|
1276
1284
|
|
1277
|
-
#line
|
1285
|
+
#line 1286 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1278
1286
|
|
1279
1287
|
|
1280
1288
|
break;
|
@@ -1287,7 +1295,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1287
1295
|
emit(QUOTED_STRING, ts, te, meta); }
|
1288
1296
|
}}
|
1289
1297
|
|
1290
|
-
#line
|
1298
|
+
#line 1299 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1291
1299
|
|
1292
1300
|
|
1293
1301
|
break;
|
@@ -1300,7 +1308,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1300
1308
|
emit(IDENTIFIER, ts, te, meta); }
|
1301
1309
|
}}
|
1302
1310
|
|
1303
|
-
#line
|
1311
|
+
#line 1312 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1304
1312
|
|
1305
1313
|
|
1306
1314
|
break;
|
@@ -1313,7 +1321,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1313
1321
|
emit(COMMENT, ts, te, meta); }
|
1314
1322
|
}}
|
1315
1323
|
|
1316
|
-
#line
|
1324
|
+
#line 1325 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1317
1325
|
|
1318
1326
|
|
1319
1327
|
break;
|
@@ -1326,7 +1334,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1326
1334
|
meta->col += te - ts; }
|
1327
1335
|
}}
|
1328
1336
|
|
1329
|
-
#line
|
1337
|
+
#line 1338 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1330
1338
|
|
1331
1339
|
|
1332
1340
|
break;
|
@@ -1339,7 +1347,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1339
1347
|
emit(UNKNOWN_CHAR, ts, te, meta); }
|
1340
1348
|
}}
|
1341
1349
|
|
1342
|
-
#line
|
1350
|
+
#line 1351 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1343
1351
|
|
1344
1352
|
|
1345
1353
|
break;
|
@@ -1353,7 +1361,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1353
1361
|
emit(INT, ts, te, meta); }
|
1354
1362
|
}}
|
1355
1363
|
|
1356
|
-
#line
|
1364
|
+
#line 1365 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1357
1365
|
|
1358
1366
|
|
1359
1367
|
break;
|
@@ -1367,7 +1375,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1367
1375
|
emit(FLOAT, ts, te, meta); }
|
1368
1376
|
}}
|
1369
1377
|
|
1370
|
-
#line
|
1378
|
+
#line 1379 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1371
1379
|
|
1372
1380
|
|
1373
1381
|
break;
|
@@ -1381,7 +1389,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1381
1389
|
emit(UNKNOWN_CHAR, ts, te, meta); }
|
1382
1390
|
}}
|
1383
1391
|
|
1384
|
-
#line
|
1392
|
+
#line 1393 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1385
1393
|
|
1386
1394
|
|
1387
1395
|
break;
|
@@ -1547,7 +1555,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1547
1555
|
}}
|
1548
1556
|
}
|
1549
1557
|
|
1550
|
-
#line
|
1558
|
+
#line 1559 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1551
1559
|
|
1552
1560
|
|
1553
1561
|
break;
|
@@ -1557,13 +1565,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1557
1565
|
#line 1 "NONE"
|
1558
1566
|
{te = p+1;}}
|
1559
1567
|
|
1560
|
-
#line
|
1568
|
+
#line 1569 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1561
1569
|
|
1562
1570
|
{
|
1563
1571
|
#line 56 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1564
1572
|
{act = 3;}}
|
1565
1573
|
|
1566
|
-
#line
|
1574
|
+
#line 1575 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1567
1575
|
|
1568
1576
|
|
1569
1577
|
break;
|
@@ -1573,13 +1581,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1573
1581
|
#line 1 "NONE"
|
1574
1582
|
{te = p+1;}}
|
1575
1583
|
|
1576
|
-
#line
|
1584
|
+
#line 1585 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1577
1585
|
|
1578
1586
|
{
|
1579
1587
|
#line 57 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1580
1588
|
{act = 4;}}
|
1581
1589
|
|
1582
|
-
#line
|
1590
|
+
#line 1591 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1583
1591
|
|
1584
1592
|
|
1585
1593
|
break;
|
@@ -1589,13 +1597,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1589
1597
|
#line 1 "NONE"
|
1590
1598
|
{te = p+1;}}
|
1591
1599
|
|
1592
|
-
#line
|
1600
|
+
#line 1601 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1593
1601
|
|
1594
1602
|
{
|
1595
1603
|
#line 58 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1596
1604
|
{act = 5;}}
|
1597
1605
|
|
1598
|
-
#line
|
1606
|
+
#line 1607 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1599
1607
|
|
1600
1608
|
|
1601
1609
|
break;
|
@@ -1605,13 +1613,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1605
1613
|
#line 1 "NONE"
|
1606
1614
|
{te = p+1;}}
|
1607
1615
|
|
1608
|
-
#line
|
1616
|
+
#line 1617 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1609
1617
|
|
1610
1618
|
{
|
1611
1619
|
#line 59 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1612
1620
|
{act = 6;}}
|
1613
1621
|
|
1614
|
-
#line
|
1622
|
+
#line 1623 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1615
1623
|
|
1616
1624
|
|
1617
1625
|
break;
|
@@ -1621,13 +1629,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1621
1629
|
#line 1 "NONE"
|
1622
1630
|
{te = p+1;}}
|
1623
1631
|
|
1624
|
-
#line
|
1632
|
+
#line 1633 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1625
1633
|
|
1626
1634
|
{
|
1627
1635
|
#line 60 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1628
1636
|
{act = 7;}}
|
1629
1637
|
|
1630
|
-
#line
|
1638
|
+
#line 1639 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1631
1639
|
|
1632
1640
|
|
1633
1641
|
break;
|
@@ -1637,13 +1645,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1637
1645
|
#line 1 "NONE"
|
1638
1646
|
{te = p+1;}}
|
1639
1647
|
|
1640
|
-
#line
|
1648
|
+
#line 1649 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1641
1649
|
|
1642
1650
|
{
|
1643
1651
|
#line 61 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1644
1652
|
{act = 8;}}
|
1645
1653
|
|
1646
|
-
#line
|
1654
|
+
#line 1655 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1647
1655
|
|
1648
1656
|
|
1649
1657
|
break;
|
@@ -1653,13 +1661,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1653
1661
|
#line 1 "NONE"
|
1654
1662
|
{te = p+1;}}
|
1655
1663
|
|
1656
|
-
#line
|
1664
|
+
#line 1665 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1657
1665
|
|
1658
1666
|
{
|
1659
1667
|
#line 62 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1660
1668
|
{act = 9;}}
|
1661
1669
|
|
1662
|
-
#line
|
1670
|
+
#line 1671 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1663
1671
|
|
1664
1672
|
|
1665
1673
|
break;
|
@@ -1669,13 +1677,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1669
1677
|
#line 1 "NONE"
|
1670
1678
|
{te = p+1;}}
|
1671
1679
|
|
1672
|
-
#line
|
1680
|
+
#line 1681 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1673
1681
|
|
1674
1682
|
{
|
1675
1683
|
#line 63 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1676
1684
|
{act = 10;}}
|
1677
1685
|
|
1678
|
-
#line
|
1686
|
+
#line 1687 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1679
1687
|
|
1680
1688
|
|
1681
1689
|
break;
|
@@ -1685,13 +1693,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1685
1693
|
#line 1 "NONE"
|
1686
1694
|
{te = p+1;}}
|
1687
1695
|
|
1688
|
-
#line
|
1696
|
+
#line 1697 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1689
1697
|
|
1690
1698
|
{
|
1691
1699
|
#line 64 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1692
1700
|
{act = 11;}}
|
1693
1701
|
|
1694
|
-
#line
|
1702
|
+
#line 1703 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1695
1703
|
|
1696
1704
|
|
1697
1705
|
break;
|
@@ -1701,13 +1709,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1701
1709
|
#line 1 "NONE"
|
1702
1710
|
{te = p+1;}}
|
1703
1711
|
|
1704
|
-
#line
|
1712
|
+
#line 1713 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1705
1713
|
|
1706
1714
|
{
|
1707
1715
|
#line 65 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1708
1716
|
{act = 12;}}
|
1709
1717
|
|
1710
|
-
#line
|
1718
|
+
#line 1719 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1711
1719
|
|
1712
1720
|
|
1713
1721
|
break;
|
@@ -1717,13 +1725,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1717
1725
|
#line 1 "NONE"
|
1718
1726
|
{te = p+1;}}
|
1719
1727
|
|
1720
|
-
#line
|
1728
|
+
#line 1729 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1721
1729
|
|
1722
1730
|
{
|
1723
1731
|
#line 66 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1724
1732
|
{act = 13;}}
|
1725
1733
|
|
1726
|
-
#line
|
1734
|
+
#line 1735 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1727
1735
|
|
1728
1736
|
|
1729
1737
|
break;
|
@@ -1733,13 +1741,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1733
1741
|
#line 1 "NONE"
|
1734
1742
|
{te = p+1;}}
|
1735
1743
|
|
1736
|
-
#line
|
1744
|
+
#line 1745 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1737
1745
|
|
1738
1746
|
{
|
1739
1747
|
#line 67 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1740
1748
|
{act = 14;}}
|
1741
1749
|
|
1742
|
-
#line
|
1750
|
+
#line 1751 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1743
1751
|
|
1744
1752
|
|
1745
1753
|
break;
|
@@ -1749,13 +1757,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1749
1757
|
#line 1 "NONE"
|
1750
1758
|
{te = p+1;}}
|
1751
1759
|
|
1752
|
-
#line
|
1760
|
+
#line 1761 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1753
1761
|
|
1754
1762
|
{
|
1755
1763
|
#line 68 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1756
1764
|
{act = 15;}}
|
1757
1765
|
|
1758
|
-
#line
|
1766
|
+
#line 1767 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1759
1767
|
|
1760
1768
|
|
1761
1769
|
break;
|
@@ -1765,13 +1773,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1765
1773
|
#line 1 "NONE"
|
1766
1774
|
{te = p+1;}}
|
1767
1775
|
|
1768
|
-
#line
|
1776
|
+
#line 1777 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1769
1777
|
|
1770
1778
|
{
|
1771
1779
|
#line 69 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1772
1780
|
{act = 16;}}
|
1773
1781
|
|
1774
|
-
#line
|
1782
|
+
#line 1783 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1775
1783
|
|
1776
1784
|
|
1777
1785
|
break;
|
@@ -1781,13 +1789,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1781
1789
|
#line 1 "NONE"
|
1782
1790
|
{te = p+1;}}
|
1783
1791
|
|
1784
|
-
#line
|
1792
|
+
#line 1793 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1785
1793
|
|
1786
1794
|
{
|
1787
1795
|
#line 70 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1788
1796
|
{act = 17;}}
|
1789
1797
|
|
1790
|
-
#line
|
1798
|
+
#line 1799 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1791
1799
|
|
1792
1800
|
|
1793
1801
|
break;
|
@@ -1797,13 +1805,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1797
1805
|
#line 1 "NONE"
|
1798
1806
|
{te = p+1;}}
|
1799
1807
|
|
1800
|
-
#line
|
1808
|
+
#line 1809 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1801
1809
|
|
1802
1810
|
{
|
1803
1811
|
#line 71 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1804
1812
|
{act = 18;}}
|
1805
1813
|
|
1806
|
-
#line
|
1814
|
+
#line 1815 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1807
1815
|
|
1808
1816
|
|
1809
1817
|
break;
|
@@ -1813,13 +1821,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1813
1821
|
#line 1 "NONE"
|
1814
1822
|
{te = p+1;}}
|
1815
1823
|
|
1816
|
-
#line
|
1824
|
+
#line 1825 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1817
1825
|
|
1818
1826
|
{
|
1819
1827
|
#line 72 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1820
1828
|
{act = 19;}}
|
1821
1829
|
|
1822
|
-
#line
|
1830
|
+
#line 1831 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1823
1831
|
|
1824
1832
|
|
1825
1833
|
break;
|
@@ -1829,13 +1837,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1829
1837
|
#line 1 "NONE"
|
1830
1838
|
{te = p+1;}}
|
1831
1839
|
|
1832
|
-
#line
|
1840
|
+
#line 1841 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1833
1841
|
|
1834
1842
|
{
|
1835
1843
|
#line 73 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1836
1844
|
{act = 20;}}
|
1837
1845
|
|
1838
|
-
#line
|
1846
|
+
#line 1847 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1839
1847
|
|
1840
1848
|
|
1841
1849
|
break;
|
@@ -1845,13 +1853,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1845
1853
|
#line 1 "NONE"
|
1846
1854
|
{te = p+1;}}
|
1847
1855
|
|
1848
|
-
#line
|
1856
|
+
#line 1857 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1849
1857
|
|
1850
1858
|
{
|
1851
1859
|
#line 74 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1852
1860
|
{act = 21;}}
|
1853
1861
|
|
1854
|
-
#line
|
1862
|
+
#line 1863 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1855
1863
|
|
1856
1864
|
|
1857
1865
|
break;
|
@@ -1861,13 +1869,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1861
1869
|
#line 1 "NONE"
|
1862
1870
|
{te = p+1;}}
|
1863
1871
|
|
1864
|
-
#line
|
1872
|
+
#line 1873 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1865
1873
|
|
1866
1874
|
{
|
1867
1875
|
#line 82 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1868
1876
|
{act = 29;}}
|
1869
1877
|
|
1870
|
-
#line
|
1878
|
+
#line 1879 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1871
1879
|
|
1872
1880
|
|
1873
1881
|
break;
|
@@ -1877,13 +1885,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1877
1885
|
#line 1 "NONE"
|
1878
1886
|
{te = p+1;}}
|
1879
1887
|
|
1880
|
-
#line
|
1888
|
+
#line 1889 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1881
1889
|
|
1882
1890
|
{
|
1883
1891
|
#line 83 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1884
1892
|
{act = 30;}}
|
1885
1893
|
|
1886
|
-
#line
|
1894
|
+
#line 1895 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1887
1895
|
|
1888
1896
|
|
1889
1897
|
break;
|
@@ -1893,13 +1901,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1893
1901
|
#line 1 "NONE"
|
1894
1902
|
{te = p+1;}}
|
1895
1903
|
|
1896
|
-
#line
|
1904
|
+
#line 1905 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1897
1905
|
|
1898
1906
|
{
|
1899
1907
|
#line 91 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1900
1908
|
{act = 38;}}
|
1901
1909
|
|
1902
|
-
#line
|
1910
|
+
#line 1911 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1903
1911
|
|
1904
1912
|
|
1905
1913
|
break;
|
@@ -1919,7 +1927,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1919
1927
|
#line 1 "NONE"
|
1920
1928
|
{ts = 0;}}
|
1921
1929
|
|
1922
|
-
#line
|
1930
|
+
#line 1931 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1923
1931
|
|
1924
1932
|
|
1925
1933
|
break;
|
@@ -1932,7 +1940,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1932
1940
|
_out: {}
|
1933
1941
|
}
|
1934
1942
|
|
1935
|
-
#line
|
1943
|
+
#line 363 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1936
1944
|
|
1937
1945
|
|
1938
1946
|
return tokens;
|