graphql-c_parser 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2020 @@
1
+ #line 1 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
2
+
3
+ #line 102 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
4
+
5
+
6
+
7
+ #line 8 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
8
+ static const char _graphql_c_lexer_trans_keys[] = {
9
+ 4, 22, 4, 43, 14, 47, 14, 46,
10
+ 14, 46, 14, 46, 14, 46, 14, 46,
11
+ 14, 46, 14, 46, 14, 49, 4, 22,
12
+ 4, 4, 4, 4, 4, 22, 4, 4,
13
+ 4, 4, 14, 15, 14, 15, 10, 15,
14
+ 12, 12, 0, 49, 0, 0, 4, 22,
15
+ 4, 4, 4, 4, 4, 4, 4, 22,
16
+ 4, 4, 4, 4, 1, 1, 14, 15,
17
+ 10, 29, 14, 15, 10, 29, 10, 29,
18
+ 12, 12, 14, 46, 14, 46, 14, 46,
19
+ 14, 46, 14, 46, 14, 46, 14, 46,
20
+ 14, 46, 14, 46, 14, 46, 14, 46,
21
+ 14, 46, 14, 46, 14, 46, 14, 46,
22
+ 14, 46, 14, 46, 14, 46, 14, 46,
23
+ 14, 46, 14, 46, 14, 46, 14, 46,
24
+ 14, 46, 14, 46, 14, 46, 14, 46,
25
+ 14, 46, 14, 46, 14, 46, 14, 46,
26
+ 14, 46, 14, 46, 14, 46, 14, 46,
27
+ 14, 46, 14, 46, 14, 46, 14, 46,
28
+ 14, 46, 14, 46, 14, 46, 14, 46,
29
+ 14, 46, 14, 46, 14, 46, 14, 46,
30
+ 14, 46, 14, 46, 14, 46, 14, 46,
31
+ 14, 46, 14, 46, 14, 46, 14, 46,
32
+ 14, 46, 14, 46, 14, 46, 14, 46,
33
+ 14, 46, 14, 46, 14, 46, 14, 46,
34
+ 14, 46, 14, 46, 14, 46, 14, 46,
35
+ 14, 46, 14, 46, 14, 46, 14, 46,
36
+ 14, 46, 14, 46, 14, 46, 14, 46,
37
+ 14, 46, 14, 46, 14, 46, 14, 46,
38
+ 14, 46, 14, 46, 14, 46, 14, 46,
39
+ 14, 46, 14, 46, 14, 46, 14, 46,
40
+ 14, 46, 14, 46, 14, 46, 14, 46,
41
+ 14, 46, 14, 46, 14, 46, 14, 46,
42
+ 0
43
+ };
44
+
45
+ static const signed char _graphql_c_lexer_char_class[] = {
46
+ 0, 1, 2, 2, 1, 2, 2, 2,
47
+ 2, 2, 2, 2, 2, 2, 2, 2,
48
+ 2, 2, 2, 2, 2, 2, 2, 0,
49
+ 3, 4, 5, 6, 2, 7, 2, 8,
50
+ 9, 2, 10, 0, 11, 12, 13, 14,
51
+ 15, 15, 15, 15, 15, 15, 15, 15,
52
+ 15, 16, 2, 2, 17, 2, 2, 18,
53
+ 19, 19, 19, 19, 20, 19, 19, 19,
54
+ 19, 19, 19, 19, 19, 19, 19, 19,
55
+ 19, 19, 19, 19, 19, 19, 19, 19,
56
+ 19, 19, 21, 22, 23, 2, 24, 2,
57
+ 25, 26, 27, 28, 29, 30, 31, 32,
58
+ 33, 19, 19, 34, 35, 36, 37, 38,
59
+ 39, 40, 41, 42, 43, 44, 19, 45,
60
+ 46, 19, 47, 48, 49, 0
61
+ };
62
+
63
+ static const short _graphql_c_lexer_index_offsets[] = {
64
+ 0, 19, 59, 93, 126, 159, 192, 225,
65
+ 258, 291, 324, 360, 379, 380, 381, 400,
66
+ 401, 402, 404, 406, 412, 413, 463, 464,
67
+ 483, 484, 485, 486, 505, 506, 507, 508,
68
+ 510, 530, 532, 552, 572, 573, 606, 639,
69
+ 672, 705, 738, 771, 804, 837, 870, 903,
70
+ 936, 969, 1002, 1035, 1068, 1101, 1134, 1167,
71
+ 1200, 1233, 1266, 1299, 1332, 1365, 1398, 1431,
72
+ 1464, 1497, 1530, 1563, 1596, 1629, 1662, 1695,
73
+ 1728, 1761, 1794, 1827, 1860, 1893, 1926, 1959,
74
+ 1992, 2025, 2058, 2091, 2124, 2157, 2190, 2223,
75
+ 2256, 2289, 2322, 2355, 2388, 2421, 2454, 2487,
76
+ 2520, 2553, 2586, 2619, 2652, 2685, 2718, 2751,
77
+ 2784, 2817, 2850, 2883, 2916, 2949, 2982, 3015,
78
+ 3048, 3081, 3114, 3147, 3180, 3213, 3246, 3279,
79
+ 3312, 3345, 3378, 3411, 3444, 3477, 3510, 3543,
80
+ 3576, 3609, 3642, 3675, 0
81
+ };
82
+
83
+ static const short _graphql_c_lexer_indices[] = {
84
+ 2, 1, 1, 1, 1, 1, 1, 1,
85
+ 1, 1, 1, 1, 1, 1, 1, 1,
86
+ 1, 1, 3, 1, 0, 0, 0, 0,
87
+ 0, 0, 0, 0, 1, 0, 0, 0,
88
+ 0, 0, 0, 0, 0, 1, 0, 0,
89
+ 0, 1, 0, 0, 0, 1, 0, 0,
90
+ 0, 0, 0, 1, 0, 0, 0, 1,
91
+ 0, 1, 4, 5, 5, 0, 0, 0,
92
+ 5, 5, 0, 0, 0, 0, 5, 5,
93
+ 5, 5, 5, 5, 5, 5, 5, 5,
94
+ 5, 5, 5, 5, 5, 5, 5, 5,
95
+ 5, 5, 5, 5, 6, 7, 7, 0,
96
+ 0, 0, 7, 7, 0, 0, 0, 0,
97
+ 7, 7, 7, 7, 7, 7, 7, 7,
98
+ 7, 7, 7, 7, 7, 7, 7, 7,
99
+ 7, 7, 7, 7, 7, 7, 8, 8,
100
+ 0, 0, 0, 8, 8, 0, 0, 0,
101
+ 0, 8, 8, 8, 8, 8, 8, 8,
102
+ 8, 8, 8, 8, 8, 8, 8, 8,
103
+ 8, 8, 8, 8, 8, 8, 8, 1,
104
+ 1, 0, 0, 0, 1, 1, 0, 0,
105
+ 0, 0, 1, 1, 1, 1, 1, 1,
106
+ 1, 1, 1, 1, 1, 1, 1, 1,
107
+ 1, 1, 1, 1, 1, 1, 1, 1,
108
+ 9, 9, 0, 0, 0, 9, 9, 0,
109
+ 0, 0, 0, 9, 9, 9, 9, 9,
110
+ 9, 9, 9, 9, 9, 9, 9, 9,
111
+ 9, 9, 9, 9, 9, 9, 9, 9,
112
+ 9, 10, 10, 0, 0, 0, 10, 10,
113
+ 0, 0, 0, 0, 10, 10, 10, 10,
114
+ 10, 10, 10, 10, 10, 10, 10, 10,
115
+ 10, 10, 10, 10, 10, 10, 10, 10,
116
+ 10, 10, 11, 11, 0, 0, 0, 11,
117
+ 11, 0, 0, 0, 0, 11, 11, 11,
118
+ 11, 11, 11, 11, 11, 11, 11, 11,
119
+ 11, 11, 11, 11, 11, 11, 11, 11,
120
+ 11, 11, 11, 12, 12, 0, 0, 0,
121
+ 12, 12, 0, 0, 0, 0, 12, 12,
122
+ 12, 12, 12, 12, 12, 12, 12, 12,
123
+ 12, 12, 12, 12, 12, 12, 12, 12,
124
+ 12, 12, 12, 12, 12, 12, 0, 0,
125
+ 0, 12, 12, 0, 0, 0, 0, 12,
126
+ 12, 12, 12, 12, 12, 12, 12, 12,
127
+ 12, 12, 12, 12, 12, 12, 12, 12,
128
+ 12, 12, 12, 12, 12, 0, 0, 1,
129
+ 15, 14, 14, 14, 14, 14, 14, 14,
130
+ 14, 14, 14, 14, 14, 14, 14, 14,
131
+ 14, 14, 16, 17, 18, 19, 14, 14,
132
+ 14, 14, 14, 14, 14, 14, 14, 14,
133
+ 14, 14, 14, 14, 14, 14, 14, 16,
134
+ 20, 21, 22, 22, 24, 24, 25, 25,
135
+ 13, 13, 22, 22, 26, 29, 30, 28,
136
+ 31, 32, 33, 34, 35, 36, 37, 28,
137
+ 38, 39, 28, 40, 41, 42, 43, 44,
138
+ 45, 45, 46, 28, 47, 45, 45, 45,
139
+ 45, 48, 49, 50, 45, 45, 51, 45,
140
+ 52, 53, 54, 45, 55, 56, 57, 58,
141
+ 59, 45, 45, 45, 60, 61, 62, 29,
142
+ 65, 1, 1, 1, 1, 1, 1, 1,
143
+ 1, 1, 1, 1, 1, 1, 1, 1,
144
+ 1, 1, 3, 14, 68, 69, 70, 14,
145
+ 14, 14, 14, 14, 14, 14, 14, 14,
146
+ 14, 14, 14, 14, 14, 14, 14, 14,
147
+ 16, 71, 18, 72, 40, 41, 25, 25,
148
+ 74, 73, 22, 22, 73, 73, 73, 73,
149
+ 75, 73, 73, 73, 73, 73, 73, 73,
150
+ 73, 75, 22, 22, 25, 25, 76, 76,
151
+ 24, 24, 76, 76, 76, 76, 75, 76,
152
+ 76, 76, 76, 76, 76, 76, 76, 75,
153
+ 25, 25, 74, 73, 41, 41, 73, 73,
154
+ 73, 73, 75, 73, 73, 73, 73, 73,
155
+ 73, 73, 73, 75, 77, 45, 45, 13,
156
+ 13, 13, 45, 45, 13, 13, 13, 45,
157
+ 45, 45, 45, 45, 45, 45, 45, 45,
158
+ 45, 45, 45, 45, 45, 45, 45, 45,
159
+ 45, 45, 45, 45, 45, 45, 45, 45,
160
+ 78, 78, 78, 45, 45, 78, 78, 78,
161
+ 45, 45, 45, 45, 45, 45, 45, 45,
162
+ 45, 79, 45, 45, 45, 45, 45, 45,
163
+ 45, 45, 45, 45, 45, 45, 45, 45,
164
+ 45, 78, 78, 78, 45, 45, 78, 78,
165
+ 78, 45, 45, 45, 45, 45, 45, 45,
166
+ 45, 45, 45, 45, 45, 45, 45, 45,
167
+ 45, 80, 45, 45, 45, 45, 45, 45,
168
+ 45, 45, 78, 78, 78, 45, 45, 78,
169
+ 78, 78, 45, 45, 45, 45, 45, 81,
170
+ 45, 45, 45, 45, 45, 45, 45, 45,
171
+ 45, 45, 45, 45, 45, 45, 45, 45,
172
+ 45, 45, 45, 78, 78, 78, 45, 45,
173
+ 78, 78, 78, 45, 45, 45, 82, 45,
174
+ 45, 45, 45, 45, 45, 45, 45, 45,
175
+ 45, 45, 45, 45, 45, 45, 45, 45,
176
+ 45, 45, 45, 45, 78, 78, 78, 45,
177
+ 45, 78, 78, 78, 45, 45, 45, 45,
178
+ 45, 45, 45, 45, 45, 45, 45, 45,
179
+ 45, 45, 45, 45, 45, 45, 83, 45,
180
+ 45, 45, 45, 45, 45, 78, 78, 78,
181
+ 45, 45, 78, 78, 78, 45, 45, 45,
182
+ 45, 45, 45, 45, 45, 45, 84, 45,
183
+ 45, 45, 45, 45, 45, 45, 45, 45,
184
+ 45, 45, 45, 45, 45, 45, 78, 78,
185
+ 78, 45, 45, 78, 78, 78, 45, 45,
186
+ 45, 45, 45, 45, 45, 45, 45, 45,
187
+ 45, 45, 45, 45, 45, 45, 45, 45,
188
+ 45, 45, 85, 45, 45, 45, 45, 78,
189
+ 78, 78, 45, 45, 78, 78, 78, 45,
190
+ 45, 45, 45, 45, 86, 45, 45, 45,
191
+ 45, 45, 45, 45, 45, 45, 45, 45,
192
+ 45, 45, 45, 45, 45, 45, 45, 45,
193
+ 78, 78, 78, 45, 45, 78, 78, 78,
194
+ 45, 45, 45, 45, 45, 45, 45, 45,
195
+ 45, 45, 45, 45, 87, 45, 45, 45,
196
+ 45, 45, 45, 45, 45, 88, 45, 45,
197
+ 45, 78, 78, 78, 45, 45, 78, 78,
198
+ 78, 45, 45, 45, 45, 45, 45, 45,
199
+ 45, 45, 45, 45, 45, 45, 45, 45,
200
+ 45, 45, 45, 45, 89, 45, 45, 45,
201
+ 45, 45, 78, 78, 78, 45, 45, 78,
202
+ 78, 78, 45, 45, 45, 45, 45, 45,
203
+ 45, 45, 45, 45, 45, 90, 45, 45,
204
+ 45, 45, 45, 45, 45, 45, 45, 45,
205
+ 45, 45, 45, 78, 78, 78, 45, 45,
206
+ 78, 78, 78, 45, 45, 45, 45, 45,
207
+ 45, 45, 45, 45, 45, 45, 45, 45,
208
+ 45, 45, 45, 45, 45, 91, 45, 45,
209
+ 45, 45, 45, 45, 78, 78, 78, 45,
210
+ 45, 78, 78, 78, 45, 45, 45, 45,
211
+ 45, 92, 45, 45, 45, 45, 45, 45,
212
+ 45, 45, 45, 45, 45, 45, 45, 45,
213
+ 45, 45, 45, 45, 45, 78, 78, 78,
214
+ 45, 45, 78, 78, 78, 45, 45, 45,
215
+ 45, 45, 45, 45, 45, 45, 45, 45,
216
+ 45, 93, 45, 45, 45, 45, 45, 45,
217
+ 45, 45, 45, 45, 45, 45, 78, 78,
218
+ 78, 45, 45, 78, 78, 78, 45, 45,
219
+ 45, 45, 94, 45, 45, 45, 45, 45,
220
+ 45, 45, 45, 45, 45, 45, 45, 45,
221
+ 45, 45, 45, 45, 45, 45, 45, 78,
222
+ 78, 78, 45, 45, 78, 78, 78, 45,
223
+ 95, 45, 45, 45, 45, 45, 45, 45,
224
+ 45, 45, 45, 45, 45, 45, 45, 96,
225
+ 45, 45, 45, 45, 45, 45, 45, 45,
226
+ 78, 78, 78, 45, 45, 78, 78, 78,
227
+ 45, 45, 45, 45, 45, 45, 45, 45,
228
+ 45, 45, 97, 45, 45, 45, 45, 45,
229
+ 45, 45, 45, 45, 45, 45, 45, 45,
230
+ 45, 78, 78, 78, 45, 45, 78, 78,
231
+ 78, 45, 45, 45, 45, 45, 45, 45,
232
+ 45, 45, 45, 45, 45, 45, 45, 45,
233
+ 45, 45, 98, 45, 45, 45, 45, 45,
234
+ 45, 45, 78, 78, 78, 45, 45, 78,
235
+ 78, 78, 45, 45, 45, 45, 45, 99,
236
+ 45, 45, 45, 45, 45, 45, 45, 45,
237
+ 45, 45, 45, 45, 45, 45, 45, 45,
238
+ 45, 45, 45, 78, 78, 78, 45, 45,
239
+ 78, 78, 78, 45, 100, 45, 45, 45,
240
+ 45, 45, 45, 45, 45, 45, 45, 45,
241
+ 45, 45, 45, 45, 45, 45, 45, 45,
242
+ 45, 45, 45, 45, 78, 78, 78, 45,
243
+ 45, 78, 78, 78, 45, 45, 45, 45,
244
+ 45, 45, 45, 101, 45, 45, 45, 45,
245
+ 45, 45, 45, 45, 45, 45, 45, 45,
246
+ 45, 45, 45, 45, 45, 78, 78, 78,
247
+ 45, 45, 78, 78, 78, 45, 45, 45,
248
+ 45, 45, 45, 45, 45, 45, 45, 45,
249
+ 102, 45, 45, 45, 45, 45, 45, 45,
250
+ 45, 45, 45, 45, 45, 45, 78, 78,
251
+ 78, 45, 45, 78, 78, 78, 45, 45,
252
+ 45, 45, 45, 103, 45, 45, 45, 45,
253
+ 45, 45, 45, 45, 45, 45, 45, 45,
254
+ 45, 45, 45, 45, 45, 45, 45, 78,
255
+ 78, 78, 45, 45, 78, 78, 78, 45,
256
+ 45, 45, 45, 45, 45, 45, 45, 45,
257
+ 45, 45, 45, 104, 45, 45, 45, 45,
258
+ 45, 45, 45, 45, 45, 45, 45, 45,
259
+ 78, 78, 78, 45, 45, 78, 78, 78,
260
+ 45, 45, 45, 45, 45, 45, 45, 45,
261
+ 45, 45, 45, 45, 45, 45, 45, 45,
262
+ 45, 45, 105, 45, 45, 45, 45, 45,
263
+ 45, 78, 78, 78, 45, 45, 78, 78,
264
+ 78, 45, 45, 45, 45, 45, 45, 45,
265
+ 45, 45, 45, 45, 106, 107, 45, 45,
266
+ 45, 45, 45, 45, 45, 45, 45, 45,
267
+ 45, 45, 78, 78, 78, 45, 45, 78,
268
+ 78, 78, 45, 45, 45, 45, 45, 45,
269
+ 45, 45, 45, 45, 45, 45, 45, 45,
270
+ 108, 45, 45, 45, 45, 45, 45, 45,
271
+ 45, 45, 45, 78, 78, 78, 45, 45,
272
+ 78, 78, 78, 45, 45, 45, 45, 45,
273
+ 45, 45, 45, 45, 45, 109, 45, 45,
274
+ 45, 45, 45, 45, 45, 45, 45, 45,
275
+ 45, 45, 45, 45, 78, 78, 78, 45,
276
+ 45, 78, 78, 78, 45, 45, 45, 45,
277
+ 45, 110, 45, 45, 45, 45, 45, 45,
278
+ 45, 45, 45, 45, 45, 45, 45, 45,
279
+ 45, 45, 45, 45, 45, 78, 78, 78,
280
+ 45, 45, 78, 78, 78, 45, 45, 45,
281
+ 45, 45, 45, 45, 45, 45, 45, 45,
282
+ 111, 45, 45, 45, 45, 45, 45, 45,
283
+ 45, 45, 45, 45, 45, 45, 78, 78,
284
+ 78, 45, 45, 78, 78, 78, 45, 45,
285
+ 45, 45, 45, 112, 45, 45, 45, 45,
286
+ 45, 45, 45, 45, 45, 45, 45, 45,
287
+ 45, 45, 45, 45, 45, 45, 45, 78,
288
+ 78, 78, 45, 45, 78, 78, 78, 45,
289
+ 45, 45, 45, 45, 45, 45, 45, 45,
290
+ 45, 45, 45, 113, 45, 45, 45, 45,
291
+ 45, 45, 45, 45, 45, 45, 45, 45,
292
+ 78, 78, 78, 45, 45, 78, 78, 78,
293
+ 45, 45, 45, 45, 45, 45, 45, 45,
294
+ 45, 45, 45, 45, 45, 45, 45, 45,
295
+ 45, 45, 114, 45, 45, 45, 45, 45,
296
+ 45, 78, 78, 78, 45, 45, 78, 78,
297
+ 78, 45, 45, 45, 45, 45, 45, 45,
298
+ 45, 45, 45, 45, 45, 45, 45, 45,
299
+ 45, 45, 115, 45, 45, 45, 45, 45,
300
+ 45, 45, 78, 78, 78, 45, 45, 78,
301
+ 78, 78, 45, 45, 45, 45, 45, 45,
302
+ 45, 45, 45, 45, 45, 45, 45, 45,
303
+ 116, 45, 45, 45, 117, 45, 45, 45,
304
+ 45, 45, 45, 78, 78, 78, 45, 45,
305
+ 78, 78, 78, 45, 45, 45, 45, 45,
306
+ 45, 45, 45, 45, 45, 45, 45, 45,
307
+ 45, 45, 45, 45, 45, 45, 118, 45,
308
+ 45, 45, 45, 45, 78, 78, 78, 45,
309
+ 45, 78, 78, 78, 45, 45, 45, 45,
310
+ 45, 45, 45, 45, 45, 45, 45, 45,
311
+ 45, 45, 45, 45, 45, 45, 119, 45,
312
+ 45, 45, 45, 45, 45, 78, 78, 78,
313
+ 45, 45, 78, 78, 78, 45, 45, 45,
314
+ 45, 45, 120, 45, 45, 45, 45, 45,
315
+ 45, 45, 45, 45, 45, 45, 45, 45,
316
+ 45, 45, 45, 45, 45, 45, 78, 78,
317
+ 78, 45, 45, 78, 78, 78, 45, 45,
318
+ 45, 45, 45, 45, 45, 45, 45, 45,
319
+ 45, 45, 45, 45, 45, 45, 121, 45,
320
+ 45, 45, 45, 45, 45, 45, 45, 78,
321
+ 78, 78, 45, 45, 78, 78, 78, 45,
322
+ 45, 45, 45, 45, 45, 122, 45, 45,
323
+ 45, 45, 45, 45, 45, 45, 45, 45,
324
+ 45, 45, 45, 45, 45, 45, 45, 45,
325
+ 78, 78, 78, 45, 45, 78, 78, 78,
326
+ 45, 123, 45, 45, 45, 45, 45, 45,
327
+ 45, 45, 45, 45, 45, 45, 45, 45,
328
+ 45, 45, 45, 45, 45, 45, 45, 45,
329
+ 45, 78, 78, 78, 45, 45, 78, 78,
330
+ 78, 45, 45, 45, 124, 45, 45, 45,
331
+ 45, 45, 45, 45, 45, 45, 45, 45,
332
+ 45, 45, 45, 45, 45, 45, 45, 45,
333
+ 45, 45, 78, 78, 78, 45, 45, 78,
334
+ 78, 78, 45, 45, 45, 45, 45, 125,
335
+ 45, 45, 45, 45, 45, 45, 45, 45,
336
+ 45, 45, 45, 45, 45, 45, 45, 45,
337
+ 45, 45, 45, 78, 78, 78, 45, 45,
338
+ 78, 78, 78, 45, 45, 45, 45, 45,
339
+ 45, 45, 45, 45, 45, 45, 45, 45,
340
+ 45, 45, 45, 45, 45, 45, 126, 45,
341
+ 45, 45, 45, 45, 78, 78, 78, 45,
342
+ 45, 78, 78, 78, 45, 45, 45, 45,
343
+ 45, 45, 45, 45, 45, 45, 45, 45,
344
+ 45, 45, 45, 45, 45, 45, 127, 45,
345
+ 45, 45, 45, 45, 45, 78, 78, 78,
346
+ 45, 45, 78, 78, 78, 45, 128, 45,
347
+ 45, 45, 45, 45, 45, 45, 45, 45,
348
+ 45, 45, 45, 45, 45, 45, 45, 45,
349
+ 45, 45, 45, 45, 45, 45, 78, 78,
350
+ 78, 45, 45, 78, 78, 78, 45, 45,
351
+ 45, 45, 45, 45, 45, 45, 45, 45,
352
+ 45, 45, 45, 45, 45, 45, 45, 45,
353
+ 129, 45, 45, 45, 45, 45, 45, 78,
354
+ 78, 78, 45, 45, 78, 78, 78, 45,
355
+ 45, 45, 45, 45, 45, 45, 45, 45,
356
+ 130, 45, 45, 45, 45, 45, 45, 45,
357
+ 45, 45, 45, 45, 45, 45, 45, 45,
358
+ 78, 78, 78, 45, 45, 78, 78, 78,
359
+ 45, 45, 45, 45, 45, 45, 45, 45,
360
+ 45, 45, 45, 45, 45, 131, 45, 45,
361
+ 45, 45, 45, 45, 45, 45, 45, 45,
362
+ 45, 78, 78, 78, 45, 45, 78, 78,
363
+ 78, 45, 45, 45, 45, 45, 45, 45,
364
+ 45, 45, 45, 45, 45, 132, 45, 45,
365
+ 45, 45, 45, 45, 45, 45, 45, 45,
366
+ 45, 45, 78, 78, 78, 45, 45, 78,
367
+ 78, 78, 45, 45, 45, 45, 45, 45,
368
+ 45, 45, 45, 45, 45, 45, 45, 45,
369
+ 45, 45, 45, 45, 45, 133, 45, 45,
370
+ 45, 45, 45, 78, 78, 78, 45, 45,
371
+ 78, 78, 78, 45, 45, 45, 45, 45,
372
+ 45, 45, 45, 45, 45, 134, 45, 45,
373
+ 45, 45, 45, 45, 45, 45, 45, 45,
374
+ 45, 45, 45, 45, 78, 78, 78, 45,
375
+ 45, 78, 78, 78, 45, 45, 45, 45,
376
+ 45, 45, 45, 45, 45, 45, 135, 45,
377
+ 45, 45, 45, 45, 45, 45, 45, 45,
378
+ 45, 45, 45, 45, 45, 78, 78, 78,
379
+ 45, 45, 78, 78, 78, 45, 45, 45,
380
+ 45, 45, 45, 45, 45, 45, 45, 45,
381
+ 45, 136, 45, 45, 45, 45, 45, 45,
382
+ 45, 45, 45, 45, 45, 45, 78, 78,
383
+ 78, 45, 45, 78, 78, 78, 45, 45,
384
+ 45, 45, 45, 45, 45, 45, 45, 45,
385
+ 45, 45, 45, 45, 45, 45, 45, 45,
386
+ 45, 137, 45, 45, 45, 45, 45, 78,
387
+ 78, 78, 45, 45, 78, 78, 78, 45,
388
+ 45, 45, 45, 45, 138, 45, 45, 45,
389
+ 45, 45, 45, 45, 45, 45, 45, 45,
390
+ 45, 45, 45, 45, 45, 45, 45, 45,
391
+ 78, 78, 78, 45, 45, 78, 78, 78,
392
+ 45, 45, 45, 45, 45, 45, 45, 45,
393
+ 45, 45, 45, 45, 45, 45, 45, 45,
394
+ 139, 45, 45, 45, 45, 45, 45, 45,
395
+ 45, 78, 78, 78, 45, 45, 78, 78,
396
+ 78, 45, 45, 45, 45, 45, 45, 45,
397
+ 45, 45, 45, 45, 45, 45, 45, 45,
398
+ 45, 45, 45, 45, 45, 45, 45, 140,
399
+ 45, 45, 78, 78, 78, 45, 45, 78,
400
+ 78, 78, 45, 45, 45, 45, 45, 141,
401
+ 45, 45, 45, 45, 45, 45, 45, 45,
402
+ 45, 45, 45, 45, 45, 45, 45, 45,
403
+ 45, 45, 45, 78, 78, 78, 45, 45,
404
+ 78, 78, 78, 45, 45, 45, 45, 45,
405
+ 45, 45, 45, 45, 45, 45, 45, 45,
406
+ 45, 142, 45, 45, 45, 45, 45, 45,
407
+ 45, 45, 45, 45, 78, 78, 78, 45,
408
+ 45, 78, 78, 78, 45, 45, 45, 45,
409
+ 45, 143, 45, 45, 45, 45, 45, 45,
410
+ 45, 45, 45, 45, 45, 45, 45, 45,
411
+ 45, 45, 45, 45, 45, 78, 78, 78,
412
+ 45, 45, 78, 78, 78, 45, 144, 45,
413
+ 45, 45, 45, 45, 45, 45, 45, 45,
414
+ 45, 45, 45, 45, 45, 45, 45, 45,
415
+ 45, 45, 45, 45, 45, 45, 78, 78,
416
+ 78, 45, 45, 78, 78, 78, 45, 45,
417
+ 45, 45, 45, 45, 45, 45, 45, 45,
418
+ 45, 45, 45, 45, 45, 45, 45, 45,
419
+ 145, 45, 45, 45, 45, 45, 45, 78,
420
+ 78, 78, 45, 45, 78, 78, 78, 45,
421
+ 146, 45, 45, 45, 45, 45, 45, 45,
422
+ 45, 45, 45, 45, 45, 45, 45, 45,
423
+ 45, 45, 45, 45, 45, 45, 45, 45,
424
+ 78, 78, 78, 45, 45, 78, 78, 78,
425
+ 45, 45, 147, 45, 45, 45, 45, 45,
426
+ 45, 45, 45, 45, 45, 45, 45, 45,
427
+ 45, 45, 45, 45, 45, 45, 45, 45,
428
+ 45, 78, 78, 78, 45, 45, 78, 78,
429
+ 78, 45, 45, 45, 45, 45, 45, 45,
430
+ 45, 45, 45, 148, 45, 45, 45, 45,
431
+ 45, 45, 45, 45, 45, 45, 45, 45,
432
+ 45, 45, 78, 78, 78, 45, 45, 78,
433
+ 78, 78, 45, 45, 45, 45, 45, 149,
434
+ 45, 45, 45, 45, 45, 45, 45, 45,
435
+ 45, 45, 45, 45, 45, 45, 45, 45,
436
+ 45, 45, 45, 78, 78, 78, 45, 45,
437
+ 78, 78, 78, 45, 45, 45, 150, 45,
438
+ 45, 45, 45, 45, 45, 45, 45, 45,
439
+ 45, 45, 45, 45, 45, 45, 151, 45,
440
+ 45, 45, 45, 45, 78, 78, 78, 45,
441
+ 45, 78, 78, 78, 45, 152, 45, 45,
442
+ 45, 45, 45, 45, 153, 45, 45, 45,
443
+ 45, 45, 45, 45, 45, 45, 45, 45,
444
+ 45, 45, 45, 45, 45, 78, 78, 78,
445
+ 45, 45, 78, 78, 78, 45, 45, 45,
446
+ 45, 45, 45, 45, 45, 45, 45, 154,
447
+ 45, 45, 45, 45, 45, 45, 45, 45,
448
+ 45, 45, 45, 45, 45, 45, 78, 78,
449
+ 78, 45, 45, 78, 78, 78, 45, 155,
450
+ 45, 45, 45, 45, 45, 45, 45, 45,
451
+ 45, 45, 45, 45, 45, 45, 45, 45,
452
+ 45, 45, 45, 45, 45, 45, 45, 78,
453
+ 78, 78, 45, 45, 78, 78, 78, 45,
454
+ 45, 45, 45, 45, 45, 45, 45, 45,
455
+ 45, 45, 45, 45, 45, 45, 45, 156,
456
+ 45, 45, 45, 45, 45, 45, 45, 45,
457
+ 78, 78, 78, 45, 45, 78, 78, 78,
458
+ 45, 45, 45, 45, 45, 157, 45, 45,
459
+ 45, 45, 45, 45, 45, 45, 45, 45,
460
+ 45, 45, 45, 45, 45, 45, 45, 45,
461
+ 45, 78, 78, 78, 45, 45, 78, 78,
462
+ 78, 45, 45, 45, 45, 45, 45, 45,
463
+ 45, 45, 45, 45, 158, 45, 45, 45,
464
+ 45, 45, 45, 45, 45, 45, 45, 45,
465
+ 45, 45, 78, 78, 78, 45, 45, 78,
466
+ 78, 78, 45, 159, 45, 45, 45, 45,
467
+ 45, 45, 45, 45, 45, 45, 45, 45,
468
+ 45, 45, 45, 45, 45, 45, 45, 45,
469
+ 45, 45, 45, 78, 78, 78, 45, 45,
470
+ 78, 78, 78, 45, 45, 160, 45, 45,
471
+ 45, 45, 45, 45, 45, 45, 45, 45,
472
+ 45, 45, 45, 45, 45, 45, 45, 45,
473
+ 45, 45, 45, 45, 78, 78, 78, 45,
474
+ 45, 78, 78, 78, 45, 45, 45, 45,
475
+ 45, 45, 45, 45, 45, 45, 45, 45,
476
+ 45, 45, 45, 45, 45, 161, 45, 45,
477
+ 45, 45, 45, 45, 45, 78, 78, 78,
478
+ 45, 45, 78, 78, 78, 45, 45, 45,
479
+ 162, 45, 45, 45, 45, 45, 45, 45,
480
+ 45, 45, 45, 45, 45, 45, 45, 45,
481
+ 45, 45, 45, 45, 45, 45, 78, 78,
482
+ 78, 45, 45, 78, 78, 78, 45, 45,
483
+ 45, 45, 45, 45, 45, 45, 45, 45,
484
+ 45, 45, 45, 45, 45, 45, 163, 45,
485
+ 45, 45, 45, 45, 45, 45, 45, 78,
486
+ 78, 78, 45, 45, 78, 78, 78, 45,
487
+ 45, 45, 45, 45, 45, 45, 45, 45,
488
+ 164, 45, 45, 45, 45, 45, 45, 45,
489
+ 45, 45, 45, 45, 45, 45, 45, 45,
490
+ 78, 78, 78, 45, 45, 78, 78, 78,
491
+ 45, 45, 45, 45, 45, 45, 45, 45,
492
+ 45, 45, 45, 45, 45, 45, 165, 45,
493
+ 45, 45, 45, 45, 45, 45, 45, 45,
494
+ 45, 78, 78, 78, 45, 45, 78, 78,
495
+ 78, 45, 45, 45, 45, 45, 45, 45,
496
+ 45, 45, 45, 45, 45, 45, 45, 45,
497
+ 45, 45, 45, 166, 45, 45, 45, 45,
498
+ 45, 45, 78, 78, 78, 45, 45, 78,
499
+ 78, 78, 45, 45, 45, 45, 45, 45,
500
+ 45, 45, 45, 167, 45, 45, 45, 45,
501
+ 45, 45, 45, 45, 45, 45, 45, 45,
502
+ 45, 45, 45, 78, 78, 78, 45, 45,
503
+ 78, 78, 78, 45, 45, 45, 45, 45,
504
+ 45, 45, 45, 45, 45, 45, 45, 45,
505
+ 168, 45, 45, 45, 45, 45, 45, 45,
506
+ 45, 45, 45, 45, 78, 78, 78, 45,
507
+ 45, 78, 78, 78, 45, 45, 45, 45,
508
+ 45, 45, 45, 45, 45, 45, 45, 45,
509
+ 169, 45, 45, 45, 45, 45, 45, 45,
510
+ 45, 45, 45, 45, 45, 78, 78, 78,
511
+ 45, 45, 78, 78, 78, 45, 45, 45,
512
+ 45, 45, 45, 45, 45, 45, 45, 45,
513
+ 45, 45, 45, 45, 45, 170, 45, 45,
514
+ 45, 45, 45, 171, 45, 45, 78, 78,
515
+ 78, 45, 45, 78, 78, 78, 45, 45,
516
+ 45, 45, 45, 45, 45, 45, 45, 45,
517
+ 45, 45, 45, 45, 45, 45, 45, 45,
518
+ 45, 172, 45, 45, 45, 45, 45, 78,
519
+ 78, 78, 45, 45, 78, 78, 78, 45,
520
+ 45, 45, 45, 45, 173, 45, 45, 45,
521
+ 45, 45, 45, 45, 45, 45, 45, 45,
522
+ 45, 45, 45, 45, 45, 45, 45, 45,
523
+ 78, 78, 78, 45, 45, 78, 78, 78,
524
+ 45, 45, 45, 45, 45, 45, 45, 45,
525
+ 45, 45, 45, 45, 45, 45, 174, 45,
526
+ 45, 45, 45, 45, 45, 45, 45, 45,
527
+ 45, 78, 78, 78, 45, 45, 78, 78,
528
+ 78, 45, 45, 45, 45, 45, 175, 45,
529
+ 45, 45, 45, 45, 45, 45, 45, 45,
530
+ 45, 45, 45, 45, 45, 45, 45, 45,
531
+ 45, 45, 78, 78, 78, 45, 45, 78,
532
+ 78, 78, 45, 45, 45, 45, 45, 45,
533
+ 45, 45, 45, 45, 45, 45, 176, 45,
534
+ 45, 45, 45, 45, 45, 45, 45, 45,
535
+ 45, 45, 45, 78, 78, 78, 45, 45,
536
+ 78, 78, 78, 45, 45, 45, 45, 45,
537
+ 45, 45, 45, 45, 177, 45, 45, 45,
538
+ 45, 45, 45, 45, 45, 45, 45, 45,
539
+ 45, 45, 45, 45, 78, 78, 78, 45,
540
+ 45, 78, 78, 78, 45, 45, 45, 45,
541
+ 45, 45, 45, 45, 45, 45, 45, 45,
542
+ 45, 178, 45, 45, 45, 45, 45, 45,
543
+ 45, 45, 45, 45, 45, 78, 78, 78,
544
+ 45, 45, 78, 78, 78, 45, 45, 45,
545
+ 45, 45, 45, 45, 45, 45, 45, 45,
546
+ 45, 179, 45, 45, 45, 45, 45, 45,
547
+ 45, 45, 45, 45, 0
548
+ };
549
+
550
+ static const signed char _graphql_c_lexer_index_defaults[] = {
551
+ 1, 0, 0, 0, 0, 0, 0, 0,
552
+ 0, 0, 0, 14, 14, 14, 14, 14,
553
+ 14, 13, 23, 13, 0, 28, 63, 1,
554
+ 66, 67, 67, 14, 14, 14, 33, 64,
555
+ 73, 76, 76, 73, 64, 13, 78, 78,
556
+ 78, 78, 78, 78, 78, 78, 78, 78,
557
+ 78, 78, 78, 78, 78, 78, 78, 78,
558
+ 78, 78, 78, 78, 78, 78, 78, 78,
559
+ 78, 78, 78, 78, 78, 78, 78, 78,
560
+ 78, 78, 78, 78, 78, 78, 78, 78,
561
+ 78, 78, 78, 78, 78, 78, 78, 78,
562
+ 78, 78, 78, 78, 78, 78, 78, 78,
563
+ 78, 78, 78, 78, 78, 78, 78, 78,
564
+ 78, 78, 78, 78, 78, 78, 78, 78,
565
+ 78, 78, 78, 78, 78, 78, 78, 78,
566
+ 78, 78, 78, 78, 78, 78, 78, 78,
567
+ 78, 78, 78, 78, 0
568
+ };
569
+
570
+ static const short _graphql_c_lexer_cond_targs[] = {
571
+ 21, 0, 21, 1, 2, 3, 6, 4,
572
+ 5, 7, 8, 9, 10, 21, 11, 12,
573
+ 14, 13, 25, 15, 16, 27, 33, 21,
574
+ 34, 17, 21, 21, 21, 22, 21, 21,
575
+ 23, 30, 21, 21, 21, 21, 31, 36,
576
+ 32, 35, 21, 21, 21, 37, 21, 21,
577
+ 38, 46, 53, 63, 81, 88, 91, 92,
578
+ 96, 105, 123, 128, 21, 21, 21, 21,
579
+ 21, 24, 21, 21, 26, 21, 28, 29,
580
+ 21, 21, 18, 19, 21, 20, 21, 39,
581
+ 40, 41, 42, 43, 44, 45, 37, 47,
582
+ 49, 48, 37, 50, 51, 52, 37, 54,
583
+ 57, 55, 56, 37, 58, 59, 60, 61,
584
+ 62, 37, 64, 72, 65, 66, 67, 68,
585
+ 69, 70, 71, 37, 73, 75, 74, 37,
586
+ 76, 77, 78, 79, 80, 37, 82, 83,
587
+ 84, 85, 86, 87, 37, 89, 90, 37,
588
+ 37, 93, 94, 95, 37, 97, 98, 99,
589
+ 100, 101, 102, 103, 104, 37, 106, 113,
590
+ 107, 110, 108, 109, 37, 111, 112, 37,
591
+ 114, 115, 116, 117, 118, 119, 120, 121,
592
+ 122, 37, 124, 126, 125, 37, 127, 37,
593
+ 129, 130, 131, 37, 0
594
+ };
595
+
596
+ static const signed char _graphql_c_lexer_cond_actions[] = {
597
+ 1, 0, 2, 0, 0, 0, 0, 0,
598
+ 0, 0, 0, 0, 0, 3, 0, 0,
599
+ 0, 0, 0, 0, 0, 4, 0, 5,
600
+ 6, 0, 7, 0, 10, 0, 11, 12,
601
+ 13, 0, 14, 15, 16, 17, 0, 13,
602
+ 18, 18, 19, 20, 21, 22, 23, 24,
603
+ 0, 0, 0, 0, 0, 0, 0, 0,
604
+ 0, 0, 0, 0, 25, 26, 27, 28,
605
+ 29, 30, 31, 32, 0, 33, 4, 4,
606
+ 34, 35, 0, 0, 36, 0, 37, 0,
607
+ 0, 0, 0, 0, 0, 0, 38, 0,
608
+ 0, 0, 39, 0, 0, 0, 40, 0,
609
+ 0, 0, 0, 41, 0, 0, 0, 0,
610
+ 0, 42, 0, 0, 0, 0, 0, 0,
611
+ 0, 0, 0, 43, 0, 0, 0, 44,
612
+ 0, 0, 0, 0, 0, 45, 0, 0,
613
+ 0, 0, 0, 0, 46, 0, 0, 47,
614
+ 48, 0, 0, 0, 49, 0, 0, 0,
615
+ 0, 0, 0, 0, 0, 50, 0, 0,
616
+ 0, 0, 0, 0, 51, 0, 0, 52,
617
+ 0, 0, 0, 0, 0, 0, 0, 0,
618
+ 0, 53, 0, 0, 0, 54, 0, 55,
619
+ 0, 0, 0, 56, 0
620
+ };
621
+
622
+ static const signed char _graphql_c_lexer_to_state_actions[] = {
623
+ 0, 0, 0, 0, 0, 0, 0, 0,
624
+ 0, 0, 0, 0, 0, 0, 0, 0,
625
+ 0, 0, 0, 0, 0, 8, 0, 0,
626
+ 0, 0, 0, 0, 0, 0, 0, 0,
627
+ 0, 0, 0, 0, 0, 0, 0, 0,
628
+ 0, 0, 0, 0, 0, 0, 0, 0,
629
+ 0, 0, 0, 0, 0, 0, 0, 0,
630
+ 0, 0, 0, 0, 0, 0, 0, 0,
631
+ 0, 0, 0, 0, 0, 0, 0, 0,
632
+ 0, 0, 0, 0, 0, 0, 0, 0,
633
+ 0, 0, 0, 0, 0, 0, 0, 0,
634
+ 0, 0, 0, 0, 0, 0, 0, 0,
635
+ 0, 0, 0, 0, 0, 0, 0, 0,
636
+ 0, 0, 0, 0, 0, 0, 0, 0,
637
+ 0, 0, 0, 0, 0, 0, 0, 0,
638
+ 0, 0, 0, 0, 0, 0, 0, 0,
639
+ 0, 0, 0, 0, 0
640
+ };
641
+
642
+ static const signed char _graphql_c_lexer_from_state_actions[] = {
643
+ 0, 0, 0, 0, 0, 0, 0, 0,
644
+ 0, 0, 0, 0, 0, 0, 0, 0,
645
+ 0, 0, 0, 0, 0, 9, 0, 0,
646
+ 0, 0, 0, 0, 0, 0, 0, 0,
647
+ 0, 0, 0, 0, 0, 0, 0, 0,
648
+ 0, 0, 0, 0, 0, 0, 0, 0,
649
+ 0, 0, 0, 0, 0, 0, 0, 0,
650
+ 0, 0, 0, 0, 0, 0, 0, 0,
651
+ 0, 0, 0, 0, 0, 0, 0, 0,
652
+ 0, 0, 0, 0, 0, 0, 0, 0,
653
+ 0, 0, 0, 0, 0, 0, 0, 0,
654
+ 0, 0, 0, 0, 0, 0, 0, 0,
655
+ 0, 0, 0, 0, 0, 0, 0, 0,
656
+ 0, 0, 0, 0, 0, 0, 0, 0,
657
+ 0, 0, 0, 0, 0, 0, 0, 0,
658
+ 0, 0, 0, 0, 0, 0, 0, 0,
659
+ 0, 0, 0, 0, 0
660
+ };
661
+
662
+ static const signed char _graphql_c_lexer_eof_trans[] = {
663
+ 1, 1, 1, 1, 1, 1, 1, 1,
664
+ 1, 1, 1, 14, 14, 14, 14, 14,
665
+ 14, 14, 24, 14, 1, 28, 64, 65,
666
+ 67, 68, 68, 68, 68, 68, 73, 65,
667
+ 74, 77, 77, 74, 65, 14, 79, 79,
668
+ 79, 79, 79, 79, 79, 79, 79, 79,
669
+ 79, 79, 79, 79, 79, 79, 79, 79,
670
+ 79, 79, 79, 79, 79, 79, 79, 79,
671
+ 79, 79, 79, 79, 79, 79, 79, 79,
672
+ 79, 79, 79, 79, 79, 79, 79, 79,
673
+ 79, 79, 79, 79, 79, 79, 79, 79,
674
+ 79, 79, 79, 79, 79, 79, 79, 79,
675
+ 79, 79, 79, 79, 79, 79, 79, 79,
676
+ 79, 79, 79, 79, 79, 79, 79, 79,
677
+ 79, 79, 79, 79, 79, 79, 79, 79,
678
+ 79, 79, 79, 79, 79, 79, 79, 79,
679
+ 79, 79, 79, 79, 0
680
+ };
681
+
682
+ static const int graphql_c_lexer_start = 21;
683
+ static const int graphql_c_lexer_first_final = 21;
684
+ static const int graphql_c_lexer_error = -1;
685
+
686
+ static const int graphql_c_lexer_en_main = 21;
687
+
688
+
689
+ #line 104 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
690
+
691
+
692
+ #include <ruby.h>
693
+
694
+ #define INIT_STATIC_TOKEN_VARIABLE(token_name) \
695
+ static VALUE GraphQLTokenString##token_name;
696
+
697
+ INIT_STATIC_TOKEN_VARIABLE(ON)
698
+ INIT_STATIC_TOKEN_VARIABLE(FRAGMENT)
699
+ INIT_STATIC_TOKEN_VARIABLE(QUERY)
700
+ INIT_STATIC_TOKEN_VARIABLE(MUTATION)
701
+ INIT_STATIC_TOKEN_VARIABLE(SUBSCRIPTION)
702
+ INIT_STATIC_TOKEN_VARIABLE(REPEATABLE)
703
+ INIT_STATIC_TOKEN_VARIABLE(RCURLY)
704
+ INIT_STATIC_TOKEN_VARIABLE(LCURLY)
705
+ INIT_STATIC_TOKEN_VARIABLE(RBRACKET)
706
+ INIT_STATIC_TOKEN_VARIABLE(LBRACKET)
707
+ INIT_STATIC_TOKEN_VARIABLE(RPAREN)
708
+ INIT_STATIC_TOKEN_VARIABLE(LPAREN)
709
+ INIT_STATIC_TOKEN_VARIABLE(COLON)
710
+ INIT_STATIC_TOKEN_VARIABLE(VAR_SIGN)
711
+ INIT_STATIC_TOKEN_VARIABLE(DIR_SIGN)
712
+ INIT_STATIC_TOKEN_VARIABLE(ELLIPSIS)
713
+ INIT_STATIC_TOKEN_VARIABLE(EQUALS)
714
+ INIT_STATIC_TOKEN_VARIABLE(BANG)
715
+ INIT_STATIC_TOKEN_VARIABLE(PIPE)
716
+ INIT_STATIC_TOKEN_VARIABLE(AMP)
717
+ INIT_STATIC_TOKEN_VARIABLE(SCHEMA)
718
+ INIT_STATIC_TOKEN_VARIABLE(SCALAR)
719
+ INIT_STATIC_TOKEN_VARIABLE(EXTEND)
720
+ INIT_STATIC_TOKEN_VARIABLE(IMPLEMENTS)
721
+ INIT_STATIC_TOKEN_VARIABLE(INTERFACE)
722
+ INIT_STATIC_TOKEN_VARIABLE(UNION)
723
+ INIT_STATIC_TOKEN_VARIABLE(ENUM)
724
+ INIT_STATIC_TOKEN_VARIABLE(DIRECTIVE)
725
+ INIT_STATIC_TOKEN_VARIABLE(INPUT)
726
+
727
+ static VALUE GraphQL_type_str;
728
+ static VALUE GraphQL_true_str;
729
+ static VALUE GraphQL_false_str;
730
+ static VALUE GraphQL_null_str;
731
+ typedef enum TokenType {
732
+ AMP,
733
+ BANG,
734
+ COLON,
735
+ DIRECTIVE,
736
+ DIR_SIGN,
737
+ ENUM,
738
+ ELLIPSIS,
739
+ EQUALS,
740
+ EXTEND,
741
+ FALSE_LITERAL,
742
+ FLOAT,
743
+ FRAGMENT,
744
+ IDENTIFIER,
745
+ INPUT,
746
+ IMPLEMENTS,
747
+ INT,
748
+ INTERFACE,
749
+ LBRACKET,
750
+ LCURLY,
751
+ LPAREN,
752
+ MUTATION,
753
+ NULL_LITERAL,
754
+ ON,
755
+ PIPE,
756
+ QUERY,
757
+ RBRACKET,
758
+ RCURLY,
759
+ REPEATABLE,
760
+ RPAREN,
761
+ SCALAR,
762
+ SCHEMA,
763
+ STRING,
764
+ SUBSCRIPTION,
765
+ TRUE_LITERAL,
766
+ TYPE_LITERAL,
767
+ UNION,
768
+ VAR_SIGN,
769
+ BLOCK_STRING,
770
+ QUOTED_STRING,
771
+ UNKNOWN_CHAR,
772
+ COMMENT
773
+ } TokenType;
774
+
775
+ typedef struct Meta {
776
+ int line;
777
+ int col;
778
+ char *query_cstr;
779
+ char *pe;
780
+ VALUE tokens;
781
+ VALUE previous_token;
782
+ } Meta;
783
+
784
+ #define STATIC_VALUE_TOKEN(token_type, content_str) \
785
+ case token_type: \
786
+ token_sym = ID2SYM(rb_intern(#token_type)); \
787
+ token_content = GraphQLTokenString##token_type; \
788
+ break;
789
+
790
+ #define DYNAMIC_VALUE_TOKEN(token_type) \
791
+ case token_type: \
792
+ token_sym = ID2SYM(rb_intern(#token_type)); \
793
+ token_content = rb_utf8_str_new(ts, te - ts); \
794
+ break;
795
+
796
+ void emit(TokenType tt, char *ts, char *te, Meta *meta) {
797
+ int quotes_length = 0; // set by string tokens below
798
+ int line_incr = 0;
799
+ VALUE token_sym = Qnil;
800
+ VALUE token_content = Qnil;
801
+
802
+ switch(tt) {
803
+ STATIC_VALUE_TOKEN(ON, "on")
804
+ STATIC_VALUE_TOKEN(FRAGMENT, "fragment")
805
+ STATIC_VALUE_TOKEN(QUERY, "query")
806
+ STATIC_VALUE_TOKEN(MUTATION, "mutation")
807
+ STATIC_VALUE_TOKEN(SUBSCRIPTION, "subscription")
808
+ STATIC_VALUE_TOKEN(REPEATABLE, "repeatable")
809
+ STATIC_VALUE_TOKEN(RCURLY, "}")
810
+ STATIC_VALUE_TOKEN(LCURLY, "{")
811
+ STATIC_VALUE_TOKEN(RBRACKET, "]")
812
+ STATIC_VALUE_TOKEN(LBRACKET, "[")
813
+ STATIC_VALUE_TOKEN(RPAREN, ")")
814
+ STATIC_VALUE_TOKEN(LPAREN, "(")
815
+ STATIC_VALUE_TOKEN(COLON, ":")
816
+ STATIC_VALUE_TOKEN(VAR_SIGN, "$")
817
+ STATIC_VALUE_TOKEN(DIR_SIGN, "@")
818
+ STATIC_VALUE_TOKEN(ELLIPSIS, "...")
819
+ STATIC_VALUE_TOKEN(EQUALS, "=")
820
+ STATIC_VALUE_TOKEN(BANG, "!")
821
+ STATIC_VALUE_TOKEN(PIPE, "|")
822
+ STATIC_VALUE_TOKEN(AMP, "&")
823
+ STATIC_VALUE_TOKEN(SCHEMA, "schema")
824
+ STATIC_VALUE_TOKEN(SCALAR, "scalar")
825
+ STATIC_VALUE_TOKEN(EXTEND, "extend")
826
+ STATIC_VALUE_TOKEN(IMPLEMENTS, "implements")
827
+ STATIC_VALUE_TOKEN(INTERFACE, "interface")
828
+ STATIC_VALUE_TOKEN(UNION, "union")
829
+ STATIC_VALUE_TOKEN(ENUM, "enum")
830
+ STATIC_VALUE_TOKEN(DIRECTIVE, "directive")
831
+ STATIC_VALUE_TOKEN(INPUT, "input")
832
+ // For these, the enum name doesn't match the symbol name:
833
+ case TYPE_LITERAL:
834
+ token_sym = ID2SYM(rb_intern("TYPE"));
835
+ token_content = GraphQL_type_str;
836
+ break;
837
+ case TRUE_LITERAL:
838
+ token_sym = ID2SYM(rb_intern("TRUE"));
839
+ token_content = GraphQL_true_str;
840
+ break;
841
+ case FALSE_LITERAL:
842
+ token_sym = ID2SYM(rb_intern("FALSE"));
843
+ token_content = GraphQL_false_str;
844
+ break;
845
+ case NULL_LITERAL:
846
+ token_sym = ID2SYM(rb_intern("NULL"));
847
+ token_content = GraphQL_null_str;
848
+ break;
849
+ DYNAMIC_VALUE_TOKEN(IDENTIFIER)
850
+ DYNAMIC_VALUE_TOKEN(INT)
851
+ DYNAMIC_VALUE_TOKEN(FLOAT)
852
+ DYNAMIC_VALUE_TOKEN(COMMENT)
853
+ case UNKNOWN_CHAR:
854
+ if (ts[0] == '\0') {
855
+ return;
856
+ } else {
857
+ token_content = rb_utf8_str_new(ts, te - ts);
858
+ token_sym = ID2SYM(rb_intern("UNKNOWN_CHAR"));
859
+ break;
860
+ }
861
+ case QUOTED_STRING:
862
+ quotes_length = 1;
863
+ token_content = rb_utf8_str_new(ts + quotes_length, (te - ts - (2 * quotes_length)));
864
+ token_sym = ID2SYM(rb_intern("STRING"));
865
+ break;
866
+ case BLOCK_STRING:
867
+ token_sym = ID2SYM(rb_intern("STRING"));
868
+ quotes_length = 3;
869
+ token_content = rb_utf8_str_new(ts + quotes_length, (te - ts - (2 * quotes_length)));
870
+ line_incr = FIX2INT(rb_funcall(token_content, rb_intern("count"), 1, rb_str_new_cstr("\n")));
871
+ break;
872
+ case STRING:
873
+ // This is used only by the parser, this is never reached
874
+ break;
875
+ }
876
+
877
+ if (token_sym != Qnil) {
878
+ if (tt == BLOCK_STRING || tt == QUOTED_STRING) {
879
+ VALUE mGraphQL = rb_const_get_at(rb_cObject, rb_intern("GraphQL"));
880
+ VALUE mGraphQLLanguage = rb_const_get_at(mGraphQL, rb_intern("Language"));
881
+ VALUE mGraphQLLanguageLexer = rb_const_get_at(mGraphQLLanguage, rb_intern("Lexer"));
882
+ VALUE valid_string_pattern = rb_const_get_at(mGraphQLLanguageLexer, rb_intern("VALID_STRING"));
883
+ if (tt == BLOCK_STRING) {
884
+ VALUE mGraphQLLanguageBlockString = rb_const_get_at(mGraphQLLanguage, rb_intern("BlockString"));
885
+ token_content = rb_funcall(mGraphQLLanguageBlockString, rb_intern("trim_whitespace"), 1, token_content);
886
+ }
887
+
888
+ if (
889
+ RB_TEST(rb_funcall(token_content, rb_intern("valid_encoding?"), 0)) &&
890
+ RB_TEST(rb_funcall(token_content, rb_intern("match?"), 1, valid_string_pattern))
891
+ ) {
892
+ rb_funcall(mGraphQLLanguageLexer, rb_intern("replace_escaped_characters_in_place"), 1, token_content);
893
+ if (!RB_TEST(rb_funcall(token_content, rb_intern("valid_encoding?"), 0))) {
894
+ token_sym = ID2SYM(rb_intern("BAD_UNICODE_ESCAPE"));
895
+ }
896
+
897
+
898
+ } else {
899
+ token_sym = ID2SYM(rb_intern("BAD_UNICODE_ESCAPE"));
900
+ }
901
+ // The parser doesn't distinguish between these:
902
+ tt = STRING;
903
+ }
904
+
905
+ VALUE token = rb_ary_new_from_args(6,
906
+ token_sym,
907
+ rb_int2inum(meta->line),
908
+ rb_int2inum(meta->col),
909
+ token_content,
910
+ meta->previous_token,
911
+ INT2FIX(200 + (int)tt)
912
+ );
913
+
914
+ // COMMENTs are retained as `previous_token` but aren't pushed to the normal token list
915
+ if (tt != COMMENT) {
916
+ rb_ary_push(meta->tokens, token);
917
+ }
918
+ meta->previous_token = token;
919
+ }
920
+ // Bump the column counter for the next token
921
+ meta->col += te - ts;
922
+ meta->line += line_incr;
923
+ }
924
+
925
+ VALUE tokenize(VALUE query_rbstr) {
926
+ int cs = 0;
927
+ int act = 0;
928
+ char *p = StringValueCStr(query_rbstr);
929
+ char *pe = p + strlen(p);
930
+ char *eof = pe;
931
+ char *ts = 0;
932
+ char *te = 0;
933
+ VALUE tokens = rb_ary_new();
934
+ struct Meta meta_s = {1, 1, p, pe, tokens, Qnil};
935
+ Meta *meta = &meta_s;
936
+
937
+
938
+ #line 939 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
939
+ {
940
+ cs = (int)graphql_c_lexer_start;
941
+ ts = 0;
942
+ te = 0;
943
+ act = 0;
944
+ }
945
+
946
+ #line 351 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
947
+
948
+
949
+ #line 950 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
950
+ {
951
+ unsigned int _trans = 0;
952
+ const char * _keys;
953
+ const short * _inds;
954
+ int _ic;
955
+ _resume: {}
956
+ if ( p == pe && p != eof )
957
+ goto _out;
958
+ switch ( _graphql_c_lexer_from_state_actions[cs] ) {
959
+ case 9: {
960
+ {
961
+ #line 1 "NONE"
962
+ {ts = p;}}
963
+
964
+ #line 965 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
965
+
966
+
967
+ break;
968
+ }
969
+ }
970
+
971
+ if ( p == eof ) {
972
+ if ( _graphql_c_lexer_eof_trans[cs] > 0 ) {
973
+ _trans = (unsigned int)_graphql_c_lexer_eof_trans[cs] - 1;
974
+ }
975
+ }
976
+ else {
977
+ _keys = ( _graphql_c_lexer_trans_keys + ((cs<<1)));
978
+ _inds = ( _graphql_c_lexer_indices + (_graphql_c_lexer_index_offsets[cs]));
979
+
980
+ if ( ( (*( p))) <= 125 && ( (*( p))) >= 9 ) {
981
+ _ic = (int)_graphql_c_lexer_char_class[(int)( (*( p))) - 9];
982
+ if ( _ic <= (int)(*( _keys+1)) && _ic >= (int)(*( _keys)) )
983
+ _trans = (unsigned int)(*( _inds + (int)( _ic - (int)(*( _keys)) ) ));
984
+ else
985
+ _trans = (unsigned int)_graphql_c_lexer_index_defaults[cs];
986
+ }
987
+ else {
988
+ _trans = (unsigned int)_graphql_c_lexer_index_defaults[cs];
989
+ }
990
+
991
+ }
992
+ cs = (int)_graphql_c_lexer_cond_targs[_trans];
993
+
994
+ if ( _graphql_c_lexer_cond_actions[_trans] != 0 ) {
995
+
996
+ switch ( _graphql_c_lexer_cond_actions[_trans] ) {
997
+ case 13: {
998
+ {
999
+ #line 1 "NONE"
1000
+ {te = p+1;}}
1001
+
1002
+ #line 1003 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1003
+
1004
+
1005
+ break;
1006
+ }
1007
+ case 27: {
1008
+ {
1009
+ #line 75 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1010
+ {te = p+1;{
1011
+ #line 75 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1012
+ emit(RCURLY, ts, te, meta); }
1013
+ }}
1014
+
1015
+ #line 1016 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1016
+
1017
+
1018
+ break;
1019
+ }
1020
+ case 25: {
1021
+ {
1022
+ #line 76 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1023
+ {te = p+1;{
1024
+ #line 76 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1025
+ emit(LCURLY, ts, te, meta); }
1026
+ }}
1027
+
1028
+ #line 1029 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1029
+
1030
+
1031
+ break;
1032
+ }
1033
+ case 17: {
1034
+ {
1035
+ #line 77 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1036
+ {te = p+1;{
1037
+ #line 77 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1038
+ emit(RPAREN, ts, te, meta); }
1039
+ }}
1040
+
1041
+ #line 1042 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1042
+
1043
+
1044
+ break;
1045
+ }
1046
+ case 16: {
1047
+ {
1048
+ #line 78 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1049
+ {te = p+1;{
1050
+ #line 78 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1051
+ emit(LPAREN, ts, te, meta); }
1052
+ }}
1053
+
1054
+ #line 1055 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1055
+
1056
+
1057
+ break;
1058
+ }
1059
+ case 24: {
1060
+ {
1061
+ #line 79 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1062
+ {te = p+1;{
1063
+ #line 79 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1064
+ emit(RBRACKET, ts, te, meta); }
1065
+ }}
1066
+
1067
+ #line 1068 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1068
+
1069
+
1070
+ break;
1071
+ }
1072
+ case 23: {
1073
+ {
1074
+ #line 80 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1075
+ {te = p+1;{
1076
+ #line 80 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1077
+ emit(LBRACKET, ts, te, meta); }
1078
+ }}
1079
+
1080
+ #line 1081 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1081
+
1082
+
1083
+ break;
1084
+ }
1085
+ case 19: {
1086
+ {
1087
+ #line 81 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1088
+ {te = p+1;{
1089
+ #line 81 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1090
+ emit(COLON, ts, te, meta); }
1091
+ }}
1092
+
1093
+ #line 1094 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1094
+
1095
+
1096
+ break;
1097
+ }
1098
+ case 33: {
1099
+ {
1100
+ #line 82 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1101
+ {te = p+1;{
1102
+ #line 82 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1103
+ emit(BLOCK_STRING, ts, te, meta); }
1104
+ }}
1105
+
1106
+ #line 1107 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1107
+
1108
+
1109
+ break;
1110
+ }
1111
+ case 2: {
1112
+ {
1113
+ #line 83 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1114
+ {te = p+1;{
1115
+ #line 83 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1116
+ emit(QUOTED_STRING, ts, te, meta); }
1117
+ }}
1118
+
1119
+ #line 1120 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1120
+
1121
+
1122
+ break;
1123
+ }
1124
+ case 14: {
1125
+ {
1126
+ #line 84 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1127
+ {te = p+1;{
1128
+ #line 84 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1129
+ emit(VAR_SIGN, ts, te, meta); }
1130
+ }}
1131
+
1132
+ #line 1133 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1133
+
1134
+
1135
+ break;
1136
+ }
1137
+ case 21: {
1138
+ {
1139
+ #line 85 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1140
+ {te = p+1;{
1141
+ #line 85 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1142
+ emit(DIR_SIGN, ts, te, meta); }
1143
+ }}
1144
+
1145
+ #line 1146 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1146
+
1147
+
1148
+ break;
1149
+ }
1150
+ case 7: {
1151
+ {
1152
+ #line 86 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1153
+ {te = p+1;{
1154
+ #line 86 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1155
+ emit(ELLIPSIS, ts, te, meta); }
1156
+ }}
1157
+
1158
+ #line 1159 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1159
+
1160
+
1161
+ break;
1162
+ }
1163
+ case 20: {
1164
+ {
1165
+ #line 87 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1166
+ {te = p+1;{
1167
+ #line 87 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1168
+ emit(EQUALS, ts, te, meta); }
1169
+ }}
1170
+
1171
+ #line 1172 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1172
+
1173
+
1174
+ break;
1175
+ }
1176
+ case 12: {
1177
+ {
1178
+ #line 88 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1179
+ {te = p+1;{
1180
+ #line 88 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1181
+ emit(BANG, ts, te, meta); }
1182
+ }}
1183
+
1184
+ #line 1185 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1185
+
1186
+
1187
+ break;
1188
+ }
1189
+ case 26: {
1190
+ {
1191
+ #line 89 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1192
+ {te = p+1;{
1193
+ #line 89 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1194
+ emit(PIPE, ts, te, meta); }
1195
+ }}
1196
+
1197
+ #line 1198 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1198
+
1199
+
1200
+ break;
1201
+ }
1202
+ case 15: {
1203
+ {
1204
+ #line 90 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1205
+ {te = p+1;{
1206
+ #line 90 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1207
+ emit(AMP, ts, te, meta); }
1208
+ }}
1209
+
1210
+ #line 1211 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1211
+
1212
+
1213
+ break;
1214
+ }
1215
+ case 11: {
1216
+ {
1217
+ #line 93 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1218
+ {te = p+1;{
1219
+ #line 93 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1220
+
1221
+ meta->line += 1;
1222
+ meta->col = 1;
1223
+ }
1224
+ }}
1225
+
1226
+ #line 1227 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1227
+
1228
+
1229
+ break;
1230
+ }
1231
+ case 10: {
1232
+ {
1233
+ #line 100 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1234
+ {te = p+1;{
1235
+ #line 100 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1236
+ emit(UNKNOWN_CHAR, ts, te, meta); }
1237
+ }}
1238
+
1239
+ #line 1240 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1240
+
1241
+
1242
+ break;
1243
+ }
1244
+ case 35: {
1245
+ {
1246
+ #line 54 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1247
+ {te = p;p = p - 1;{
1248
+ #line 54 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1249
+ emit(INT, ts, te, meta); }
1250
+ }}
1251
+
1252
+ #line 1253 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1253
+
1254
+
1255
+ break;
1256
+ }
1257
+ case 36: {
1258
+ {
1259
+ #line 55 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1260
+ {te = p;p = p - 1;{
1261
+ #line 55 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1262
+ emit(FLOAT, ts, te, meta); }
1263
+ }}
1264
+
1265
+ #line 1266 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1266
+
1267
+
1268
+ break;
1269
+ }
1270
+ case 32: {
1271
+ {
1272
+ #line 82 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1273
+ {te = p;p = p - 1;{
1274
+ #line 82 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1275
+ emit(BLOCK_STRING, ts, te, meta); }
1276
+ }}
1277
+
1278
+ #line 1279 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1279
+
1280
+
1281
+ break;
1282
+ }
1283
+ case 31: {
1284
+ {
1285
+ #line 83 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1286
+ {te = p;p = p - 1;{
1287
+ #line 83 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1288
+ emit(QUOTED_STRING, ts, te, meta); }
1289
+ }}
1290
+
1291
+ #line 1292 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1292
+
1293
+
1294
+ break;
1295
+ }
1296
+ case 37: {
1297
+ {
1298
+ #line 91 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1299
+ {te = p;p = p - 1;{
1300
+ #line 91 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1301
+ emit(IDENTIFIER, ts, te, meta); }
1302
+ }}
1303
+
1304
+ #line 1305 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1305
+
1306
+
1307
+ break;
1308
+ }
1309
+ case 34: {
1310
+ {
1311
+ #line 92 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1312
+ {te = p;p = p - 1;{
1313
+ #line 92 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1314
+ emit(COMMENT, ts, te, meta); }
1315
+ }}
1316
+
1317
+ #line 1318 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1318
+
1319
+
1320
+ break;
1321
+ }
1322
+ case 28: {
1323
+ {
1324
+ #line 98 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1325
+ {te = p;p = p - 1;{
1326
+ #line 98 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1327
+ meta->col += te - ts; }
1328
+ }}
1329
+
1330
+ #line 1331 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1331
+
1332
+
1333
+ break;
1334
+ }
1335
+ case 29: {
1336
+ {
1337
+ #line 100 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1338
+ {te = p;p = p - 1;{
1339
+ #line 100 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1340
+ emit(UNKNOWN_CHAR, ts, te, meta); }
1341
+ }}
1342
+
1343
+ #line 1344 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1344
+
1345
+
1346
+ break;
1347
+ }
1348
+ case 5: {
1349
+ {
1350
+ #line 54 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1351
+ {p = ((te))-1;
1352
+ {
1353
+ #line 54 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1354
+ emit(INT, ts, te, meta); }
1355
+ }}
1356
+
1357
+ #line 1358 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1358
+
1359
+
1360
+ break;
1361
+ }
1362
+ case 1: {
1363
+ {
1364
+ #line 100 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1365
+ {p = ((te))-1;
1366
+ {
1367
+ #line 100 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1368
+ emit(UNKNOWN_CHAR, ts, te, meta); }
1369
+ }}
1370
+
1371
+ #line 1372 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1372
+
1373
+
1374
+ break;
1375
+ }
1376
+ case 3: {
1377
+ {
1378
+ #line 1 "NONE"
1379
+ {switch( act ) {
1380
+ case 1: {
1381
+ p = ((te))-1;
1382
+ {
1383
+ #line 54 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1384
+ emit(INT, ts, te, meta); }
1385
+ break;
1386
+ }
1387
+ case 2: {
1388
+ p = ((te))-1;
1389
+ {
1390
+ #line 55 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1391
+ emit(FLOAT, ts, te, meta); }
1392
+ break;
1393
+ }
1394
+ case 3: {
1395
+ p = ((te))-1;
1396
+ {
1397
+ #line 56 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1398
+ emit(ON, ts, te, meta); }
1399
+ break;
1400
+ }
1401
+ case 4: {
1402
+ p = ((te))-1;
1403
+ {
1404
+ #line 57 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1405
+ emit(FRAGMENT, ts, te, meta); }
1406
+ break;
1407
+ }
1408
+ case 5: {
1409
+ p = ((te))-1;
1410
+ {
1411
+ #line 58 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1412
+ emit(TRUE_LITERAL, ts, te, meta); }
1413
+ break;
1414
+ }
1415
+ case 6: {
1416
+ p = ((te))-1;
1417
+ {
1418
+ #line 59 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1419
+ emit(FALSE_LITERAL, ts, te, meta); }
1420
+ break;
1421
+ }
1422
+ case 7: {
1423
+ p = ((te))-1;
1424
+ {
1425
+ #line 60 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1426
+ emit(NULL_LITERAL, ts, te, meta); }
1427
+ break;
1428
+ }
1429
+ case 8: {
1430
+ p = ((te))-1;
1431
+ {
1432
+ #line 61 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1433
+ emit(QUERY, ts, te, meta); }
1434
+ break;
1435
+ }
1436
+ case 9: {
1437
+ p = ((te))-1;
1438
+ {
1439
+ #line 62 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1440
+ emit(MUTATION, ts, te, meta); }
1441
+ break;
1442
+ }
1443
+ case 10: {
1444
+ p = ((te))-1;
1445
+ {
1446
+ #line 63 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1447
+ emit(SUBSCRIPTION, ts, te, meta); }
1448
+ break;
1449
+ }
1450
+ case 11: {
1451
+ p = ((te))-1;
1452
+ {
1453
+ #line 64 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1454
+ emit(SCHEMA, ts, te, meta); }
1455
+ break;
1456
+ }
1457
+ case 12: {
1458
+ p = ((te))-1;
1459
+ {
1460
+ #line 65 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1461
+ emit(SCALAR, ts, te, meta); }
1462
+ break;
1463
+ }
1464
+ case 13: {
1465
+ p = ((te))-1;
1466
+ {
1467
+ #line 66 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1468
+ emit(TYPE_LITERAL, ts, te, meta); }
1469
+ break;
1470
+ }
1471
+ case 14: {
1472
+ p = ((te))-1;
1473
+ {
1474
+ #line 67 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1475
+ emit(EXTEND, ts, te, meta); }
1476
+ break;
1477
+ }
1478
+ case 15: {
1479
+ p = ((te))-1;
1480
+ {
1481
+ #line 68 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1482
+ emit(IMPLEMENTS, ts, te, meta); }
1483
+ break;
1484
+ }
1485
+ case 16: {
1486
+ p = ((te))-1;
1487
+ {
1488
+ #line 69 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1489
+ emit(INTERFACE, ts, te, meta); }
1490
+ break;
1491
+ }
1492
+ case 17: {
1493
+ p = ((te))-1;
1494
+ {
1495
+ #line 70 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1496
+ emit(UNION, ts, te, meta); }
1497
+ break;
1498
+ }
1499
+ case 18: {
1500
+ p = ((te))-1;
1501
+ {
1502
+ #line 71 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1503
+ emit(ENUM, ts, te, meta); }
1504
+ break;
1505
+ }
1506
+ case 19: {
1507
+ p = ((te))-1;
1508
+ {
1509
+ #line 72 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1510
+ emit(INPUT, ts, te, meta); }
1511
+ break;
1512
+ }
1513
+ case 20: {
1514
+ p = ((te))-1;
1515
+ {
1516
+ #line 73 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1517
+ emit(DIRECTIVE, ts, te, meta); }
1518
+ break;
1519
+ }
1520
+ case 21: {
1521
+ p = ((te))-1;
1522
+ {
1523
+ #line 74 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1524
+ emit(REPEATABLE, ts, te, meta); }
1525
+ break;
1526
+ }
1527
+ case 29: {
1528
+ p = ((te))-1;
1529
+ {
1530
+ #line 82 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1531
+ emit(BLOCK_STRING, ts, te, meta); }
1532
+ break;
1533
+ }
1534
+ case 30: {
1535
+ p = ((te))-1;
1536
+ {
1537
+ #line 83 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1538
+ emit(QUOTED_STRING, ts, te, meta); }
1539
+ break;
1540
+ }
1541
+ case 38: {
1542
+ p = ((te))-1;
1543
+ {
1544
+ #line 91 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1545
+ emit(IDENTIFIER, ts, te, meta); }
1546
+ break;
1547
+ }
1548
+ }}
1549
+ }
1550
+
1551
+ #line 1552 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1552
+
1553
+
1554
+ break;
1555
+ }
1556
+ case 18: {
1557
+ {
1558
+ #line 1 "NONE"
1559
+ {te = p+1;}}
1560
+
1561
+ #line 1562 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1562
+
1563
+ {
1564
+ #line 54 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1565
+ {act = 1;}}
1566
+
1567
+ #line 1568 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1568
+
1569
+
1570
+ break;
1571
+ }
1572
+ case 6: {
1573
+ {
1574
+ #line 1 "NONE"
1575
+ {te = p+1;}}
1576
+
1577
+ #line 1578 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1578
+
1579
+ {
1580
+ #line 55 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1581
+ {act = 2;}}
1582
+
1583
+ #line 1584 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1584
+
1585
+
1586
+ break;
1587
+ }
1588
+ case 48: {
1589
+ {
1590
+ #line 1 "NONE"
1591
+ {te = p+1;}}
1592
+
1593
+ #line 1594 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1594
+
1595
+ {
1596
+ #line 56 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1597
+ {act = 3;}}
1598
+
1599
+ #line 1600 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1600
+
1601
+
1602
+ break;
1603
+ }
1604
+ case 42: {
1605
+ {
1606
+ #line 1 "NONE"
1607
+ {te = p+1;}}
1608
+
1609
+ #line 1610 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1610
+
1611
+ {
1612
+ #line 57 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1613
+ {act = 4;}}
1614
+
1615
+ #line 1616 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1616
+
1617
+
1618
+ break;
1619
+ }
1620
+ case 54: {
1621
+ {
1622
+ #line 1 "NONE"
1623
+ {te = p+1;}}
1624
+
1625
+ #line 1626 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1626
+
1627
+ {
1628
+ #line 58 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1629
+ {act = 5;}}
1630
+
1631
+ #line 1632 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1632
+
1633
+
1634
+ break;
1635
+ }
1636
+ case 41: {
1637
+ {
1638
+ #line 1 "NONE"
1639
+ {te = p+1;}}
1640
+
1641
+ #line 1642 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1642
+
1643
+ {
1644
+ #line 59 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1645
+ {act = 6;}}
1646
+
1647
+ #line 1648 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1648
+
1649
+
1650
+ break;
1651
+ }
1652
+ case 47: {
1653
+ {
1654
+ #line 1 "NONE"
1655
+ {te = p+1;}}
1656
+
1657
+ #line 1658 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1658
+
1659
+ {
1660
+ #line 60 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1661
+ {act = 7;}}
1662
+
1663
+ #line 1664 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1664
+
1665
+
1666
+ break;
1667
+ }
1668
+ case 49: {
1669
+ {
1670
+ #line 1 "NONE"
1671
+ {te = p+1;}}
1672
+
1673
+ #line 1674 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1674
+
1675
+ {
1676
+ #line 61 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1677
+ {act = 8;}}
1678
+
1679
+ #line 1680 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1680
+
1681
+
1682
+ break;
1683
+ }
1684
+ case 46: {
1685
+ {
1686
+ #line 1 "NONE"
1687
+ {te = p+1;}}
1688
+
1689
+ #line 1690 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1690
+
1691
+ {
1692
+ #line 62 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1693
+ {act = 9;}}
1694
+
1695
+ #line 1696 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1696
+
1697
+
1698
+ break;
1699
+ }
1700
+ case 53: {
1701
+ {
1702
+ #line 1 "NONE"
1703
+ {te = p+1;}}
1704
+
1705
+ #line 1706 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1706
+
1707
+ {
1708
+ #line 63 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1709
+ {act = 10;}}
1710
+
1711
+ #line 1712 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1712
+
1713
+
1714
+ break;
1715
+ }
1716
+ case 52: {
1717
+ {
1718
+ #line 1 "NONE"
1719
+ {te = p+1;}}
1720
+
1721
+ #line 1722 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1722
+
1723
+ {
1724
+ #line 64 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1725
+ {act = 11;}}
1726
+
1727
+ #line 1728 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1728
+
1729
+
1730
+ break;
1731
+ }
1732
+ case 51: {
1733
+ {
1734
+ #line 1 "NONE"
1735
+ {te = p+1;}}
1736
+
1737
+ #line 1738 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1738
+
1739
+ {
1740
+ #line 65 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1741
+ {act = 12;}}
1742
+
1743
+ #line 1744 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1744
+
1745
+
1746
+ break;
1747
+ }
1748
+ case 55: {
1749
+ {
1750
+ #line 1 "NONE"
1751
+ {te = p+1;}}
1752
+
1753
+ #line 1754 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1754
+
1755
+ {
1756
+ #line 66 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1757
+ {act = 13;}}
1758
+
1759
+ #line 1760 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1760
+
1761
+
1762
+ break;
1763
+ }
1764
+ case 40: {
1765
+ {
1766
+ #line 1 "NONE"
1767
+ {te = p+1;}}
1768
+
1769
+ #line 1770 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1770
+
1771
+ {
1772
+ #line 67 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1773
+ {act = 14;}}
1774
+
1775
+ #line 1776 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1776
+
1777
+
1778
+ break;
1779
+ }
1780
+ case 43: {
1781
+ {
1782
+ #line 1 "NONE"
1783
+ {te = p+1;}}
1784
+
1785
+ #line 1786 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1786
+
1787
+ {
1788
+ #line 68 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1789
+ {act = 15;}}
1790
+
1791
+ #line 1792 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1792
+
1793
+
1794
+ break;
1795
+ }
1796
+ case 45: {
1797
+ {
1798
+ #line 1 "NONE"
1799
+ {te = p+1;}}
1800
+
1801
+ #line 1802 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1802
+
1803
+ {
1804
+ #line 69 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1805
+ {act = 16;}}
1806
+
1807
+ #line 1808 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1808
+
1809
+
1810
+ break;
1811
+ }
1812
+ case 56: {
1813
+ {
1814
+ #line 1 "NONE"
1815
+ {te = p+1;}}
1816
+
1817
+ #line 1818 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1818
+
1819
+ {
1820
+ #line 70 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1821
+ {act = 17;}}
1822
+
1823
+ #line 1824 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1824
+
1825
+
1826
+ break;
1827
+ }
1828
+ case 39: {
1829
+ {
1830
+ #line 1 "NONE"
1831
+ {te = p+1;}}
1832
+
1833
+ #line 1834 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1834
+
1835
+ {
1836
+ #line 71 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1837
+ {act = 18;}}
1838
+
1839
+ #line 1840 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1840
+
1841
+
1842
+ break;
1843
+ }
1844
+ case 44: {
1845
+ {
1846
+ #line 1 "NONE"
1847
+ {te = p+1;}}
1848
+
1849
+ #line 1850 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1850
+
1851
+ {
1852
+ #line 72 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1853
+ {act = 19;}}
1854
+
1855
+ #line 1856 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1856
+
1857
+
1858
+ break;
1859
+ }
1860
+ case 38: {
1861
+ {
1862
+ #line 1 "NONE"
1863
+ {te = p+1;}}
1864
+
1865
+ #line 1866 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1866
+
1867
+ {
1868
+ #line 73 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1869
+ {act = 20;}}
1870
+
1871
+ #line 1872 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1872
+
1873
+
1874
+ break;
1875
+ }
1876
+ case 50: {
1877
+ {
1878
+ #line 1 "NONE"
1879
+ {te = p+1;}}
1880
+
1881
+ #line 1882 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1882
+
1883
+ {
1884
+ #line 74 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1885
+ {act = 21;}}
1886
+
1887
+ #line 1888 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1888
+
1889
+
1890
+ break;
1891
+ }
1892
+ case 4: {
1893
+ {
1894
+ #line 1 "NONE"
1895
+ {te = p+1;}}
1896
+
1897
+ #line 1898 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1898
+
1899
+ {
1900
+ #line 82 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1901
+ {act = 29;}}
1902
+
1903
+ #line 1904 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1904
+
1905
+
1906
+ break;
1907
+ }
1908
+ case 30: {
1909
+ {
1910
+ #line 1 "NONE"
1911
+ {te = p+1;}}
1912
+
1913
+ #line 1914 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1914
+
1915
+ {
1916
+ #line 83 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1917
+ {act = 30;}}
1918
+
1919
+ #line 1920 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1920
+
1921
+
1922
+ break;
1923
+ }
1924
+ case 22: {
1925
+ {
1926
+ #line 1 "NONE"
1927
+ {te = p+1;}}
1928
+
1929
+ #line 1930 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1930
+
1931
+ {
1932
+ #line 91 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1933
+ {act = 38;}}
1934
+
1935
+ #line 1936 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1936
+
1937
+
1938
+ break;
1939
+ }
1940
+ }
1941
+
1942
+ }
1943
+
1944
+ if ( p == eof ) {
1945
+ if ( cs >= 21 )
1946
+ goto _out;
1947
+ }
1948
+ else {
1949
+ switch ( _graphql_c_lexer_to_state_actions[cs] ) {
1950
+ case 8: {
1951
+ {
1952
+ #line 1 "NONE"
1953
+ {ts = 0;}}
1954
+
1955
+ #line 1956 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
1956
+
1957
+
1958
+ break;
1959
+ }
1960
+ }
1961
+
1962
+ p += 1;
1963
+ goto _resume;
1964
+ }
1965
+ _out: {}
1966
+ }
1967
+
1968
+ #line 352 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
1969
+
1970
+
1971
+ return tokens;
1972
+ }
1973
+
1974
+
1975
+ #define SETUP_STATIC_TOKEN_VARIABLE(token_name, token_content) \
1976
+ GraphQLTokenString##token_name = rb_str_new_cstr(token_content); \
1977
+ rb_funcall(GraphQLTokenString##token_name, rb_intern("-@"), 0); \
1978
+ rb_global_variable(&GraphQLTokenString##token_name); \
1979
+
1980
+ #define SETUP_STATIC_STRING(var_name, str_content) \
1981
+ var_name = rb_str_new_cstr(str_content); \
1982
+ rb_global_variable(&var_name); \
1983
+ rb_str_freeze(var_name); \
1984
+
1985
+ void setup_static_token_variables() {
1986
+ SETUP_STATIC_TOKEN_VARIABLE(ON, "on")
1987
+ SETUP_STATIC_TOKEN_VARIABLE(FRAGMENT, "fragment")
1988
+ SETUP_STATIC_TOKEN_VARIABLE(QUERY, "query")
1989
+ SETUP_STATIC_TOKEN_VARIABLE(MUTATION, "mutation")
1990
+ SETUP_STATIC_TOKEN_VARIABLE(SUBSCRIPTION, "subscription")
1991
+ SETUP_STATIC_TOKEN_VARIABLE(REPEATABLE, "repeatable")
1992
+ SETUP_STATIC_TOKEN_VARIABLE(RCURLY, "}")
1993
+ SETUP_STATIC_TOKEN_VARIABLE(LCURLY, "{")
1994
+ SETUP_STATIC_TOKEN_VARIABLE(RBRACKET, "]")
1995
+ SETUP_STATIC_TOKEN_VARIABLE(LBRACKET, "[")
1996
+ SETUP_STATIC_TOKEN_VARIABLE(RPAREN, ")")
1997
+ SETUP_STATIC_TOKEN_VARIABLE(LPAREN, "(")
1998
+ SETUP_STATIC_TOKEN_VARIABLE(COLON, ":")
1999
+ SETUP_STATIC_TOKEN_VARIABLE(VAR_SIGN, "$")
2000
+ SETUP_STATIC_TOKEN_VARIABLE(DIR_SIGN, "@")
2001
+ SETUP_STATIC_TOKEN_VARIABLE(ELLIPSIS, "...")
2002
+ SETUP_STATIC_TOKEN_VARIABLE(EQUALS, "=")
2003
+ SETUP_STATIC_TOKEN_VARIABLE(BANG, "!")
2004
+ SETUP_STATIC_TOKEN_VARIABLE(PIPE, "|")
2005
+ SETUP_STATIC_TOKEN_VARIABLE(AMP, "&")
2006
+ SETUP_STATIC_TOKEN_VARIABLE(SCHEMA, "schema")
2007
+ SETUP_STATIC_TOKEN_VARIABLE(SCALAR, "scalar")
2008
+ SETUP_STATIC_TOKEN_VARIABLE(EXTEND, "extend")
2009
+ SETUP_STATIC_TOKEN_VARIABLE(IMPLEMENTS, "implements")
2010
+ SETUP_STATIC_TOKEN_VARIABLE(INTERFACE, "interface")
2011
+ SETUP_STATIC_TOKEN_VARIABLE(UNION, "union")
2012
+ SETUP_STATIC_TOKEN_VARIABLE(ENUM, "enum")
2013
+ SETUP_STATIC_TOKEN_VARIABLE(DIRECTIVE, "directive")
2014
+ SETUP_STATIC_TOKEN_VARIABLE(INPUT, "input")
2015
+
2016
+ SETUP_STATIC_STRING(GraphQL_type_str, "type")
2017
+ SETUP_STATIC_STRING(GraphQL_true_str, "true")
2018
+ SETUP_STATIC_STRING(GraphQL_false_str, "false")
2019
+ SETUP_STATIC_STRING(GraphQL_null_str, "null")
2020
+ }