graphql-c_parser 1.0.8 → 1.1.1
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 +372 -317
- data/ext/graphql_c_parser_ext/lexer.h +1 -1
- data/lib/graphql/c_parser/version.rb +1 -1
- data/lib/graphql/c_parser.rb +40 -9
- metadata +4 -4
@@ -1,17 +1,17 @@
|
|
1
1
|
#line 1 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
2
2
|
|
3
|
-
#line
|
3
|
+
#line 106 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
4
4
|
|
5
5
|
|
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
|
-
0, 8, 8, 8, 8, 8, 8, 8,
|
100
|
+
7, 8, 8, 0, 0, 0, 8, 8,
|
101
|
+
0, 0, 0, 0, 8, 8, 8, 8,
|
102
102
|
8, 8, 8, 8, 8, 8, 8, 8,
|
103
|
-
8, 8, 8, 8, 8, 8, 8,
|
104
|
-
|
105
|
-
|
103
|
+
8, 8, 8, 8, 8, 8, 8, 8,
|
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,
|
154
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,
|
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,
|
508
517
|
46, 46, 46, 46, 46, 46, 46, 46,
|
509
|
-
46, 46,
|
510
|
-
|
518
|
+
46, 46, 46, 46, 46, 46, 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[] = {
|
@@ -682,10 +682,11 @@ static const int graphql_c_lexer_error = -1;
|
|
682
682
|
static const int graphql_c_lexer_en_main = 21;
|
683
683
|
|
684
684
|
|
685
|
-
#line
|
685
|
+
#line 108 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
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,11 @@ typedef struct Meta {
|
|
776
777
|
char *pe;
|
777
778
|
VALUE tokens;
|
778
779
|
VALUE previous_token;
|
780
|
+
int dedup_identifiers;
|
781
|
+
int reject_numbers_followed_by_names;
|
782
|
+
int preceeded_by_number;
|
783
|
+
int max_tokens;
|
784
|
+
int tokens_count;
|
779
785
|
} Meta;
|
780
786
|
|
781
787
|
#define STATIC_VALUE_TOKEN(token_type, content_str) \
|
@@ -791,11 +797,25 @@ token_content = rb_utf8_str_new(ts, te - ts); \
|
|
791
797
|
break;
|
792
798
|
|
793
799
|
void emit(TokenType tt, char *ts, char *te, Meta *meta) {
|
800
|
+
meta->tokens_count++;
|
801
|
+
// -1 indicates that there is no limit:
|
802
|
+
if (meta->max_tokens > 0 && meta->tokens_count > meta->max_tokens) {
|
803
|
+
VALUE mGraphQL = rb_const_get_at(rb_cObject, rb_intern("GraphQL"));
|
804
|
+
VALUE cParseError = rb_const_get_at(mGraphQL, rb_intern("ParseError"));
|
805
|
+
VALUE exception = rb_funcall(
|
806
|
+
cParseError, rb_intern("new"), 4,
|
807
|
+
rb_str_new_cstr("This query is too large to execute."),
|
808
|
+
LONG2NUM(meta->line),
|
809
|
+
LONG2NUM(meta->col),
|
810
|
+
rb_str_new_cstr(meta->query_cstr)
|
811
|
+
);
|
812
|
+
rb_exc_raise(exception);
|
813
|
+
}
|
794
814
|
int quotes_length = 0; // set by string tokens below
|
795
815
|
int line_incr = 0;
|
796
816
|
VALUE token_sym = Qnil;
|
797
817
|
VALUE token_content = Qnil;
|
798
|
-
|
818
|
+
int this_token_is_number = 0;
|
799
819
|
switch(tt) {
|
800
820
|
STATIC_VALUE_TOKEN(ON, "on")
|
801
821
|
STATIC_VALUE_TOKEN(FRAGMENT, "fragment")
|
@@ -843,9 +863,40 @@ void emit(TokenType tt, char *ts, char *te, Meta *meta) {
|
|
843
863
|
token_sym = ID2SYM(rb_intern("NULL"));
|
844
864
|
token_content = GraphQL_null_str;
|
845
865
|
break;
|
846
|
-
|
847
|
-
|
848
|
-
|
866
|
+
case IDENTIFIER:
|
867
|
+
if (meta->reject_numbers_followed_by_names && meta->preceeded_by_number) {
|
868
|
+
VALUE mGraphQL = rb_const_get_at(rb_cObject, rb_intern("GraphQL"));
|
869
|
+
VALUE mCParser = rb_const_get_at(mGraphQL, rb_intern("CParser"));
|
870
|
+
VALUE exception = rb_funcall(
|
871
|
+
mCParser, rb_intern("prepare_number_name_parse_error"), 5,
|
872
|
+
LONG2NUM(meta->line),
|
873
|
+
LONG2NUM(meta->col),
|
874
|
+
rb_str_new_cstr(meta->query_cstr),
|
875
|
+
rb_ary_entry(meta->previous_token, 3),
|
876
|
+
rb_utf8_str_new(ts, te - ts)
|
877
|
+
);
|
878
|
+
rb_exc_raise(exception);
|
879
|
+
}
|
880
|
+
token_sym = ID2SYM(rb_intern("IDENTIFIER"));
|
881
|
+
if (meta->dedup_identifiers) {
|
882
|
+
token_content = rb_enc_interned_str(ts, te - ts, rb_utf8_encoding());
|
883
|
+
} else {
|
884
|
+
token_content = rb_utf8_str_new(ts, te - ts);
|
885
|
+
}
|
886
|
+
break;
|
887
|
+
// Can't use these while we're in backwards-compat mode:
|
888
|
+
// DYNAMIC_VALUE_TOKEN(INT)
|
889
|
+
// DYNAMIC_VALUE_TOKEN(FLOAT)
|
890
|
+
case INT:
|
891
|
+
token_sym = ID2SYM(rb_intern("INT"));
|
892
|
+
token_content = rb_utf8_str_new(ts, te - ts);
|
893
|
+
this_token_is_number = 1;
|
894
|
+
break;
|
895
|
+
case FLOAT:
|
896
|
+
token_sym = ID2SYM(rb_intern("FLOAT"));
|
897
|
+
token_content = rb_utf8_str_new(ts, te - ts);
|
898
|
+
this_token_is_number = 1;
|
899
|
+
break;
|
849
900
|
DYNAMIC_VALUE_TOKEN(COMMENT)
|
850
901
|
case UNKNOWN_CHAR:
|
851
902
|
if (ts[0] == '\0') {
|
@@ -866,8 +917,9 @@ void emit(TokenType tt, char *ts, char *te, Meta *meta) {
|
|
866
917
|
token_content = rb_utf8_str_new(ts + quotes_length, (te - ts - (2 * quotes_length)));
|
867
918
|
line_incr = FIX2INT(rb_funcall(token_content, rb_intern("count"), 1, rb_utf8_str_new_cstr("\n")));
|
868
919
|
break;
|
920
|
+
// These are used only by the parser, this is never reached
|
869
921
|
case STRING:
|
870
|
-
|
922
|
+
case BAD_UNICODE_ESCAPE:
|
871
923
|
break;
|
872
924
|
}
|
873
925
|
|
@@ -880,24 +932,22 @@ void emit(TokenType tt, char *ts, char *te, Meta *meta) {
|
|
880
932
|
if (tt == BLOCK_STRING) {
|
881
933
|
VALUE mGraphQLLanguageBlockString = rb_const_get_at(mGraphQLLanguage, rb_intern("BlockString"));
|
882
934
|
token_content = rb_funcall(mGraphQLLanguageBlockString, rb_intern("trim_whitespace"), 1, token_content);
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
935
|
+
tt = STRING;
|
936
|
+
} else {
|
937
|
+
tt = STRING;
|
938
|
+
if (
|
939
|
+
RB_TEST(rb_funcall(token_content, rb_intern("valid_encoding?"), 0)) &&
|
940
|
+
RB_TEST(rb_funcall(token_content, rb_intern("match?"), 1, valid_string_pattern))
|
941
|
+
) {
|
942
|
+
rb_funcall(mGraphQLLanguageLexer, rb_intern("replace_escaped_characters_in_place"), 1, token_content);
|
943
|
+
if (!RB_TEST(rb_funcall(token_content, rb_intern("valid_encoding?"), 0))) {
|
944
|
+
token_sym = ID2SYM(rb_intern("BAD_UNICODE_ESCAPE"));
|
945
|
+
tt = BAD_UNICODE_ESCAPE;
|
946
|
+
}
|
947
|
+
} else {
|
895
948
|
token_sym = ID2SYM(rb_intern("BAD_UNICODE_ESCAPE"));
|
896
949
|
tt = BAD_UNICODE_ESCAPE;
|
897
950
|
}
|
898
|
-
} else {
|
899
|
-
token_sym = ID2SYM(rb_intern("BAD_UNICODE_ESCAPE"));
|
900
|
-
tt = BAD_UNICODE_ESCAPE;
|
901
951
|
}
|
902
952
|
}
|
903
953
|
|
@@ -914,6 +964,7 @@ void emit(TokenType tt, char *ts, char *te, Meta *meta) {
|
|
914
964
|
if (tt != COMMENT) {
|
915
965
|
rb_ary_push(meta->tokens, token);
|
916
966
|
}
|
967
|
+
meta->preceeded_by_number = this_token_is_number;
|
917
968
|
meta->previous_token = token;
|
918
969
|
}
|
919
970
|
// Bump the column counter for the next token
|
@@ -921,7 +972,7 @@ void emit(TokenType tt, char *ts, char *te, Meta *meta) {
|
|
921
972
|
meta->line += line_incr;
|
922
973
|
}
|
923
974
|
|
924
|
-
VALUE tokenize(VALUE query_rbstr) {
|
975
|
+
VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_followed_by_names, int max_tokens) {
|
925
976
|
int cs = 0;
|
926
977
|
int act = 0;
|
927
978
|
char *p = StringValueCStr(query_rbstr);
|
@@ -930,11 +981,11 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
930
981
|
char *ts = 0;
|
931
982
|
char *te = 0;
|
932
983
|
VALUE tokens = rb_ary_new();
|
933
|
-
struct Meta meta_s = {1, 1, p, pe, tokens, Qnil};
|
984
|
+
struct Meta meta_s = {1, 1, p, pe, tokens, Qnil, fstring_identifiers, reject_numbers_followed_by_names, 0, max_tokens, 0};
|
934
985
|
Meta *meta = &meta_s;
|
935
986
|
|
936
987
|
|
937
|
-
#line
|
988
|
+
#line 989 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
938
989
|
{
|
939
990
|
cs = (int)graphql_c_lexer_start;
|
940
991
|
ts = 0;
|
@@ -942,10 +993,10 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
942
993
|
act = 0;
|
943
994
|
}
|
944
995
|
|
945
|
-
#line
|
996
|
+
#line 409 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
946
997
|
|
947
998
|
|
948
|
-
#line
|
999
|
+
#line 1000 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
949
1000
|
{
|
950
1001
|
unsigned int _trans = 0;
|
951
1002
|
const char * _keys;
|
@@ -960,7 +1011,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
960
1011
|
#line 1 "NONE"
|
961
1012
|
{ts = p;}}
|
962
1013
|
|
963
|
-
#line
|
1014
|
+
#line 1015 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
964
1015
|
|
965
1016
|
|
966
1017
|
break;
|
@@ -998,7 +1049,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
998
1049
|
#line 1 "NONE"
|
999
1050
|
{te = p+1;}}
|
1000
1051
|
|
1001
|
-
#line
|
1052
|
+
#line 1053 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1002
1053
|
|
1003
1054
|
|
1004
1055
|
break;
|
@@ -1011,7 +1062,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1011
1062
|
emit(RCURLY, ts, te, meta); }
|
1012
1063
|
}}
|
1013
1064
|
|
1014
|
-
#line
|
1065
|
+
#line 1066 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1015
1066
|
|
1016
1067
|
|
1017
1068
|
break;
|
@@ -1024,7 +1075,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1024
1075
|
emit(LCURLY, ts, te, meta); }
|
1025
1076
|
}}
|
1026
1077
|
|
1027
|
-
#line
|
1078
|
+
#line 1079 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1028
1079
|
|
1029
1080
|
|
1030
1081
|
break;
|
@@ -1037,7 +1088,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1037
1088
|
emit(RPAREN, ts, te, meta); }
|
1038
1089
|
}}
|
1039
1090
|
|
1040
|
-
#line
|
1091
|
+
#line 1092 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1041
1092
|
|
1042
1093
|
|
1043
1094
|
break;
|
@@ -1050,7 +1101,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1050
1101
|
emit(LPAREN, ts, te, meta); }
|
1051
1102
|
}}
|
1052
1103
|
|
1053
|
-
#line
|
1104
|
+
#line 1105 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1054
1105
|
|
1055
1106
|
|
1056
1107
|
break;
|
@@ -1063,7 +1114,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1063
1114
|
emit(RBRACKET, ts, te, meta); }
|
1064
1115
|
}}
|
1065
1116
|
|
1066
|
-
#line
|
1117
|
+
#line 1118 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1067
1118
|
|
1068
1119
|
|
1069
1120
|
break;
|
@@ -1076,7 +1127,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1076
1127
|
emit(LBRACKET, ts, te, meta); }
|
1077
1128
|
}}
|
1078
1129
|
|
1079
|
-
#line
|
1130
|
+
#line 1131 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1080
1131
|
|
1081
1132
|
|
1082
1133
|
break;
|
@@ -1089,7 +1140,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1089
1140
|
emit(COLON, ts, te, meta); }
|
1090
1141
|
}}
|
1091
1142
|
|
1092
|
-
#line
|
1143
|
+
#line 1144 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1093
1144
|
|
1094
1145
|
|
1095
1146
|
break;
|
@@ -1102,7 +1153,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1102
1153
|
emit(BLOCK_STRING, ts, te, meta); }
|
1103
1154
|
}}
|
1104
1155
|
|
1105
|
-
#line
|
1156
|
+
#line 1157 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1106
1157
|
|
1107
1158
|
|
1108
1159
|
break;
|
@@ -1115,7 +1166,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1115
1166
|
emit(QUOTED_STRING, ts, te, meta); }
|
1116
1167
|
}}
|
1117
1168
|
|
1118
|
-
#line
|
1169
|
+
#line 1170 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1119
1170
|
|
1120
1171
|
|
1121
1172
|
break;
|
@@ -1128,7 +1179,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1128
1179
|
emit(VAR_SIGN, ts, te, meta); }
|
1129
1180
|
}}
|
1130
1181
|
|
1131
|
-
#line
|
1182
|
+
#line 1183 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1132
1183
|
|
1133
1184
|
|
1134
1185
|
break;
|
@@ -1141,7 +1192,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1141
1192
|
emit(DIR_SIGN, ts, te, meta); }
|
1142
1193
|
}}
|
1143
1194
|
|
1144
|
-
#line
|
1195
|
+
#line 1196 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1145
1196
|
|
1146
1197
|
|
1147
1198
|
break;
|
@@ -1154,7 +1205,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1154
1205
|
emit(ELLIPSIS, ts, te, meta); }
|
1155
1206
|
}}
|
1156
1207
|
|
1157
|
-
#line
|
1208
|
+
#line 1209 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1158
1209
|
|
1159
1210
|
|
1160
1211
|
break;
|
@@ -1167,7 +1218,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1167
1218
|
emit(EQUALS, ts, te, meta); }
|
1168
1219
|
}}
|
1169
1220
|
|
1170
|
-
#line
|
1221
|
+
#line 1222 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1171
1222
|
|
1172
1223
|
|
1173
1224
|
break;
|
@@ -1180,7 +1231,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1180
1231
|
emit(BANG, ts, te, meta); }
|
1181
1232
|
}}
|
1182
1233
|
|
1183
|
-
#line
|
1234
|
+
#line 1235 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1184
1235
|
|
1185
1236
|
|
1186
1237
|
break;
|
@@ -1193,7 +1244,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1193
1244
|
emit(PIPE, ts, te, meta); }
|
1194
1245
|
}}
|
1195
1246
|
|
1196
|
-
#line
|
1247
|
+
#line 1248 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1197
1248
|
|
1198
1249
|
|
1199
1250
|
break;
|
@@ -1206,7 +1257,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1206
1257
|
emit(AMP, ts, te, meta); }
|
1207
1258
|
}}
|
1208
1259
|
|
1209
|
-
#line
|
1260
|
+
#line 1261 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1210
1261
|
|
1211
1262
|
|
1212
1263
|
break;
|
@@ -1219,23 +1270,24 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1219
1270
|
|
1220
1271
|
meta->line += 1;
|
1221
1272
|
meta->col = 1;
|
1273
|
+
meta->preceeded_by_number = 0;
|
1222
1274
|
}
|
1223
1275
|
}}
|
1224
1276
|
|
1225
|
-
#line
|
1277
|
+
#line 1278 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1226
1278
|
|
1227
1279
|
|
1228
1280
|
break;
|
1229
1281
|
}
|
1230
1282
|
case 11: {
|
1231
1283
|
{
|
1232
|
-
#line
|
1284
|
+
#line 104 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1233
1285
|
{te = p+1;{
|
1234
|
-
#line
|
1286
|
+
#line 104 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1235
1287
|
emit(UNKNOWN_CHAR, ts, te, meta); }
|
1236
1288
|
}}
|
1237
1289
|
|
1238
|
-
#line
|
1290
|
+
#line 1291 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1239
1291
|
|
1240
1292
|
|
1241
1293
|
break;
|
@@ -1248,7 +1300,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1248
1300
|
emit(INT, ts, te, meta); }
|
1249
1301
|
}}
|
1250
1302
|
|
1251
|
-
#line
|
1303
|
+
#line 1304 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1252
1304
|
|
1253
1305
|
|
1254
1306
|
break;
|
@@ -1261,7 +1313,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1261
1313
|
emit(FLOAT, ts, te, meta); }
|
1262
1314
|
}}
|
1263
1315
|
|
1264
|
-
#line
|
1316
|
+
#line 1317 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1265
1317
|
|
1266
1318
|
|
1267
1319
|
break;
|
@@ -1274,7 +1326,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1274
1326
|
emit(BLOCK_STRING, ts, te, meta); }
|
1275
1327
|
}}
|
1276
1328
|
|
1277
|
-
#line
|
1329
|
+
#line 1330 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1278
1330
|
|
1279
1331
|
|
1280
1332
|
break;
|
@@ -1287,7 +1339,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1287
1339
|
emit(QUOTED_STRING, ts, te, meta); }
|
1288
1340
|
}}
|
1289
1341
|
|
1290
|
-
#line
|
1342
|
+
#line 1343 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1291
1343
|
|
1292
1344
|
|
1293
1345
|
break;
|
@@ -1300,7 +1352,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1300
1352
|
emit(IDENTIFIER, ts, te, meta); }
|
1301
1353
|
}}
|
1302
1354
|
|
1303
|
-
#line
|
1355
|
+
#line 1356 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1304
1356
|
|
1305
1357
|
|
1306
1358
|
break;
|
@@ -1313,33 +1365,36 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1313
1365
|
emit(COMMENT, ts, te, meta); }
|
1314
1366
|
}}
|
1315
1367
|
|
1316
|
-
#line
|
1368
|
+
#line 1369 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1317
1369
|
|
1318
1370
|
|
1319
1371
|
break;
|
1320
1372
|
}
|
1321
1373
|
case 27: {
|
1322
1374
|
{
|
1323
|
-
#line
|
1375
|
+
#line 99 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1324
1376
|
{te = p;p = p - 1;{
|
1325
|
-
#line
|
1326
|
-
|
1377
|
+
#line 99 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1378
|
+
|
1379
|
+
meta->col += te - ts;
|
1380
|
+
meta->preceeded_by_number = 0;
|
1381
|
+
}
|
1327
1382
|
}}
|
1328
1383
|
|
1329
|
-
#line
|
1384
|
+
#line 1385 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1330
1385
|
|
1331
1386
|
|
1332
1387
|
break;
|
1333
1388
|
}
|
1334
1389
|
case 28: {
|
1335
1390
|
{
|
1336
|
-
#line
|
1391
|
+
#line 104 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1337
1392
|
{te = p;p = p - 1;{
|
1338
|
-
#line
|
1393
|
+
#line 104 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1339
1394
|
emit(UNKNOWN_CHAR, ts, te, meta); }
|
1340
1395
|
}}
|
1341
1396
|
|
1342
|
-
#line
|
1397
|
+
#line 1398 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1343
1398
|
|
1344
1399
|
|
1345
1400
|
break;
|
@@ -1353,7 +1408,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1353
1408
|
emit(INT, ts, te, meta); }
|
1354
1409
|
}}
|
1355
1410
|
|
1356
|
-
#line
|
1411
|
+
#line 1412 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1357
1412
|
|
1358
1413
|
|
1359
1414
|
break;
|
@@ -1367,21 +1422,21 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1367
1422
|
emit(FLOAT, ts, te, meta); }
|
1368
1423
|
}}
|
1369
1424
|
|
1370
|
-
#line
|
1425
|
+
#line 1426 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1371
1426
|
|
1372
1427
|
|
1373
1428
|
break;
|
1374
1429
|
}
|
1375
1430
|
case 1: {
|
1376
1431
|
{
|
1377
|
-
#line
|
1432
|
+
#line 104 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1378
1433
|
{p = ((te))-1;
|
1379
1434
|
{
|
1380
|
-
#line
|
1435
|
+
#line 104 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1381
1436
|
emit(UNKNOWN_CHAR, ts, te, meta); }
|
1382
1437
|
}}
|
1383
1438
|
|
1384
|
-
#line
|
1439
|
+
#line 1440 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1385
1440
|
|
1386
1441
|
|
1387
1442
|
break;
|
@@ -1547,7 +1602,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1547
1602
|
}}
|
1548
1603
|
}
|
1549
1604
|
|
1550
|
-
#line
|
1605
|
+
#line 1606 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1551
1606
|
|
1552
1607
|
|
1553
1608
|
break;
|
@@ -1557,13 +1612,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1557
1612
|
#line 1 "NONE"
|
1558
1613
|
{te = p+1;}}
|
1559
1614
|
|
1560
|
-
#line
|
1615
|
+
#line 1616 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1561
1616
|
|
1562
1617
|
{
|
1563
1618
|
#line 56 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1564
1619
|
{act = 3;}}
|
1565
1620
|
|
1566
|
-
#line
|
1621
|
+
#line 1622 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1567
1622
|
|
1568
1623
|
|
1569
1624
|
break;
|
@@ -1573,13 +1628,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1573
1628
|
#line 1 "NONE"
|
1574
1629
|
{te = p+1;}}
|
1575
1630
|
|
1576
|
-
#line
|
1631
|
+
#line 1632 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1577
1632
|
|
1578
1633
|
{
|
1579
1634
|
#line 57 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1580
1635
|
{act = 4;}}
|
1581
1636
|
|
1582
|
-
#line
|
1637
|
+
#line 1638 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1583
1638
|
|
1584
1639
|
|
1585
1640
|
break;
|
@@ -1589,13 +1644,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1589
1644
|
#line 1 "NONE"
|
1590
1645
|
{te = p+1;}}
|
1591
1646
|
|
1592
|
-
#line
|
1647
|
+
#line 1648 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1593
1648
|
|
1594
1649
|
{
|
1595
1650
|
#line 58 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1596
1651
|
{act = 5;}}
|
1597
1652
|
|
1598
|
-
#line
|
1653
|
+
#line 1654 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1599
1654
|
|
1600
1655
|
|
1601
1656
|
break;
|
@@ -1605,13 +1660,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1605
1660
|
#line 1 "NONE"
|
1606
1661
|
{te = p+1;}}
|
1607
1662
|
|
1608
|
-
#line
|
1663
|
+
#line 1664 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1609
1664
|
|
1610
1665
|
{
|
1611
1666
|
#line 59 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1612
1667
|
{act = 6;}}
|
1613
1668
|
|
1614
|
-
#line
|
1669
|
+
#line 1670 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1615
1670
|
|
1616
1671
|
|
1617
1672
|
break;
|
@@ -1621,13 +1676,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1621
1676
|
#line 1 "NONE"
|
1622
1677
|
{te = p+1;}}
|
1623
1678
|
|
1624
|
-
#line
|
1679
|
+
#line 1680 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1625
1680
|
|
1626
1681
|
{
|
1627
1682
|
#line 60 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1628
1683
|
{act = 7;}}
|
1629
1684
|
|
1630
|
-
#line
|
1685
|
+
#line 1686 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1631
1686
|
|
1632
1687
|
|
1633
1688
|
break;
|
@@ -1637,13 +1692,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1637
1692
|
#line 1 "NONE"
|
1638
1693
|
{te = p+1;}}
|
1639
1694
|
|
1640
|
-
#line
|
1695
|
+
#line 1696 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1641
1696
|
|
1642
1697
|
{
|
1643
1698
|
#line 61 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1644
1699
|
{act = 8;}}
|
1645
1700
|
|
1646
|
-
#line
|
1701
|
+
#line 1702 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1647
1702
|
|
1648
1703
|
|
1649
1704
|
break;
|
@@ -1653,13 +1708,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1653
1708
|
#line 1 "NONE"
|
1654
1709
|
{te = p+1;}}
|
1655
1710
|
|
1656
|
-
#line
|
1711
|
+
#line 1712 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1657
1712
|
|
1658
1713
|
{
|
1659
1714
|
#line 62 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1660
1715
|
{act = 9;}}
|
1661
1716
|
|
1662
|
-
#line
|
1717
|
+
#line 1718 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1663
1718
|
|
1664
1719
|
|
1665
1720
|
break;
|
@@ -1669,13 +1724,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1669
1724
|
#line 1 "NONE"
|
1670
1725
|
{te = p+1;}}
|
1671
1726
|
|
1672
|
-
#line
|
1727
|
+
#line 1728 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1673
1728
|
|
1674
1729
|
{
|
1675
1730
|
#line 63 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1676
1731
|
{act = 10;}}
|
1677
1732
|
|
1678
|
-
#line
|
1733
|
+
#line 1734 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1679
1734
|
|
1680
1735
|
|
1681
1736
|
break;
|
@@ -1685,13 +1740,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1685
1740
|
#line 1 "NONE"
|
1686
1741
|
{te = p+1;}}
|
1687
1742
|
|
1688
|
-
#line
|
1743
|
+
#line 1744 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1689
1744
|
|
1690
1745
|
{
|
1691
1746
|
#line 64 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1692
1747
|
{act = 11;}}
|
1693
1748
|
|
1694
|
-
#line
|
1749
|
+
#line 1750 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1695
1750
|
|
1696
1751
|
|
1697
1752
|
break;
|
@@ -1701,13 +1756,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1701
1756
|
#line 1 "NONE"
|
1702
1757
|
{te = p+1;}}
|
1703
1758
|
|
1704
|
-
#line
|
1759
|
+
#line 1760 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1705
1760
|
|
1706
1761
|
{
|
1707
1762
|
#line 65 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1708
1763
|
{act = 12;}}
|
1709
1764
|
|
1710
|
-
#line
|
1765
|
+
#line 1766 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1711
1766
|
|
1712
1767
|
|
1713
1768
|
break;
|
@@ -1717,13 +1772,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1717
1772
|
#line 1 "NONE"
|
1718
1773
|
{te = p+1;}}
|
1719
1774
|
|
1720
|
-
#line
|
1775
|
+
#line 1776 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1721
1776
|
|
1722
1777
|
{
|
1723
1778
|
#line 66 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1724
1779
|
{act = 13;}}
|
1725
1780
|
|
1726
|
-
#line
|
1781
|
+
#line 1782 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1727
1782
|
|
1728
1783
|
|
1729
1784
|
break;
|
@@ -1733,13 +1788,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1733
1788
|
#line 1 "NONE"
|
1734
1789
|
{te = p+1;}}
|
1735
1790
|
|
1736
|
-
#line
|
1791
|
+
#line 1792 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1737
1792
|
|
1738
1793
|
{
|
1739
1794
|
#line 67 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1740
1795
|
{act = 14;}}
|
1741
1796
|
|
1742
|
-
#line
|
1797
|
+
#line 1798 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1743
1798
|
|
1744
1799
|
|
1745
1800
|
break;
|
@@ -1749,13 +1804,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1749
1804
|
#line 1 "NONE"
|
1750
1805
|
{te = p+1;}}
|
1751
1806
|
|
1752
|
-
#line
|
1807
|
+
#line 1808 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1753
1808
|
|
1754
1809
|
{
|
1755
1810
|
#line 68 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1756
1811
|
{act = 15;}}
|
1757
1812
|
|
1758
|
-
#line
|
1813
|
+
#line 1814 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1759
1814
|
|
1760
1815
|
|
1761
1816
|
break;
|
@@ -1765,13 +1820,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1765
1820
|
#line 1 "NONE"
|
1766
1821
|
{te = p+1;}}
|
1767
1822
|
|
1768
|
-
#line
|
1823
|
+
#line 1824 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1769
1824
|
|
1770
1825
|
{
|
1771
1826
|
#line 69 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1772
1827
|
{act = 16;}}
|
1773
1828
|
|
1774
|
-
#line
|
1829
|
+
#line 1830 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1775
1830
|
|
1776
1831
|
|
1777
1832
|
break;
|
@@ -1781,13 +1836,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1781
1836
|
#line 1 "NONE"
|
1782
1837
|
{te = p+1;}}
|
1783
1838
|
|
1784
|
-
#line
|
1839
|
+
#line 1840 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1785
1840
|
|
1786
1841
|
{
|
1787
1842
|
#line 70 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1788
1843
|
{act = 17;}}
|
1789
1844
|
|
1790
|
-
#line
|
1845
|
+
#line 1846 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1791
1846
|
|
1792
1847
|
|
1793
1848
|
break;
|
@@ -1797,13 +1852,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1797
1852
|
#line 1 "NONE"
|
1798
1853
|
{te = p+1;}}
|
1799
1854
|
|
1800
|
-
#line
|
1855
|
+
#line 1856 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1801
1856
|
|
1802
1857
|
{
|
1803
1858
|
#line 71 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1804
1859
|
{act = 18;}}
|
1805
1860
|
|
1806
|
-
#line
|
1861
|
+
#line 1862 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1807
1862
|
|
1808
1863
|
|
1809
1864
|
break;
|
@@ -1813,13 +1868,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1813
1868
|
#line 1 "NONE"
|
1814
1869
|
{te = p+1;}}
|
1815
1870
|
|
1816
|
-
#line
|
1871
|
+
#line 1872 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1817
1872
|
|
1818
1873
|
{
|
1819
1874
|
#line 72 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1820
1875
|
{act = 19;}}
|
1821
1876
|
|
1822
|
-
#line
|
1877
|
+
#line 1878 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1823
1878
|
|
1824
1879
|
|
1825
1880
|
break;
|
@@ -1829,13 +1884,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1829
1884
|
#line 1 "NONE"
|
1830
1885
|
{te = p+1;}}
|
1831
1886
|
|
1832
|
-
#line
|
1887
|
+
#line 1888 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1833
1888
|
|
1834
1889
|
{
|
1835
1890
|
#line 73 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1836
1891
|
{act = 20;}}
|
1837
1892
|
|
1838
|
-
#line
|
1893
|
+
#line 1894 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1839
1894
|
|
1840
1895
|
|
1841
1896
|
break;
|
@@ -1845,13 +1900,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1845
1900
|
#line 1 "NONE"
|
1846
1901
|
{te = p+1;}}
|
1847
1902
|
|
1848
|
-
#line
|
1903
|
+
#line 1904 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1849
1904
|
|
1850
1905
|
{
|
1851
1906
|
#line 74 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1852
1907
|
{act = 21;}}
|
1853
1908
|
|
1854
|
-
#line
|
1909
|
+
#line 1910 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1855
1910
|
|
1856
1911
|
|
1857
1912
|
break;
|
@@ -1861,13 +1916,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1861
1916
|
#line 1 "NONE"
|
1862
1917
|
{te = p+1;}}
|
1863
1918
|
|
1864
|
-
#line
|
1919
|
+
#line 1920 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1865
1920
|
|
1866
1921
|
{
|
1867
1922
|
#line 82 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1868
1923
|
{act = 29;}}
|
1869
1924
|
|
1870
|
-
#line
|
1925
|
+
#line 1926 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1871
1926
|
|
1872
1927
|
|
1873
1928
|
break;
|
@@ -1877,13 +1932,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1877
1932
|
#line 1 "NONE"
|
1878
1933
|
{te = p+1;}}
|
1879
1934
|
|
1880
|
-
#line
|
1935
|
+
#line 1936 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1881
1936
|
|
1882
1937
|
{
|
1883
1938
|
#line 83 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1884
1939
|
{act = 30;}}
|
1885
1940
|
|
1886
|
-
#line
|
1941
|
+
#line 1942 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1887
1942
|
|
1888
1943
|
|
1889
1944
|
break;
|
@@ -1893,13 +1948,13 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1893
1948
|
#line 1 "NONE"
|
1894
1949
|
{te = p+1;}}
|
1895
1950
|
|
1896
|
-
#line
|
1951
|
+
#line 1952 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1897
1952
|
|
1898
1953
|
{
|
1899
1954
|
#line 91 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1900
1955
|
{act = 38;}}
|
1901
1956
|
|
1902
|
-
#line
|
1957
|
+
#line 1958 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1903
1958
|
|
1904
1959
|
|
1905
1960
|
break;
|
@@ -1919,7 +1974,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1919
1974
|
#line 1 "NONE"
|
1920
1975
|
{ts = 0;}}
|
1921
1976
|
|
1922
|
-
#line
|
1977
|
+
#line 1978 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1923
1978
|
|
1924
1979
|
|
1925
1980
|
break;
|
@@ -1932,7 +1987,7 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1932
1987
|
_out: {}
|
1933
1988
|
}
|
1934
1989
|
|
1935
|
-
#line
|
1990
|
+
#line 410 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1936
1991
|
|
1937
1992
|
|
1938
1993
|
return tokens;
|