graphql 0.14.2 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,9 +14,6 @@
14
14
  TRUE = 'true';
15
15
  FALSE = 'false';
16
16
  NULL = 'null';
17
- QUERY = 'query';
18
- MUTATION = 'mutation';
19
- SUBSCRIPTION = 'subscription';
20
17
  RCURLY = '{';
21
18
  LCURLY = '}';
22
19
  RPAREN = '(';
@@ -46,9 +43,6 @@
46
43
  TRUE => { emit_token.call(:TRUE) };
47
44
  FALSE => { emit_token.call(:FALSE) };
48
45
  NULL => { emit_token.call(:NULL) };
49
- QUERY => { emit_token.call(:QUERY) };
50
- MUTATION => { emit_token.call(:MUTATION) };
51
- SUBSCRIPTION => { emit_token.call(:SUBSCRIPTION) };
52
46
  RCURLY => { emit_token.call(:RCURLY) };
53
47
  LCURLY => { emit_token.call(:LCURLY) };
54
48
  RPAREN => { emit_token.call(:RPAREN) };
@@ -12,7 +12,7 @@ module GraphQL
12
12
  module Language
13
13
  class Parser < Racc::Parser
14
14
 
15
- module_eval(<<'...end parser.y/module_eval...', 'parser.y', 222)
15
+ module_eval(<<'...end parser.y/module_eval...', 'parser.y', 214)
16
16
 
17
17
  def initialize(query_string)
18
18
  @query_string = query_string
@@ -75,244 +75,217 @@ end
75
75
  ##### State transition tables begin ###
76
76
 
77
77
  racc_action_table = [
78
- 24, 25, 26, 43, 111, 46, 42, 112, 14, 24,
79
- 25, 26, 39, 19, 20, 21, 22, 23, 24, 25,
80
- 26, 36, 34, 20, 21, 22, 23, 111, 38, 120,
81
- 27, 19, 20, 21, 22, 23, 24, 25, 26, 50,
82
- 34, 68, 54, 46, 54, 46, 24, 25, 26, 48,
83
- 20, 21, 22, 23, 24, 25, 26, 46, 57, 19,
84
- 20, 21, 22, 23, 24, 25, 26, 19, 20, 21,
85
- 22, 23, 24, 25, 26, 46, 74, 19, 20, 21,
86
- 22, 23, 24, 25, 26, 19, 20, 21, 22, 23,
87
- 24, 25, 26, 46, 12, 19, 20, 21, 22, 23,
88
- 24, 25, 26, 19, 20, 21, 22, 23, 100, 24,
89
- 25, 26, 12, 19, 20, 21, 22, 23, 24, 25,
90
- 26, 12, 19, 20, 21, 22, 23, 43, 76, 43,
91
- 106, 19, 20, 21, 22, 23, 24, 25, 26, 46,
92
- 80, 46, 12, 12, 100, 24, 25, 26, 12, 19,
93
- 20, 21, 22, 23, 24, 25, 26, 116, 19, 20,
94
- 21, 22, 23, 24, 25, 26, 118, 19, 20, 21,
95
- 22, 23, 9, 10, 11, nil, 19, 20, 21, 22,
96
- 23, nil, 92, 12, nil, 93, nil, 13, 94, nil,
97
- nil, 95, nil, 86, 87, 83, 84, 85, 92, nil,
98
- nil, 93, 103, nil, 94, nil, nil, 95, nil, 86,
99
- 87, 83, 84, 85, 92, nil, nil, 93, nil, nil,
100
- 94, nil, nil, 95, nil, 86, 87, 83, 84, 85,
101
- 92, nil, nil, 93, 114, nil, 94, nil, nil, 95,
102
- nil, 86, 87, 83, 84, 85, 9, 10, 11, nil,
103
- nil, nil, nil, 92, nil, nil, 93, 12, nil, 94,
104
- nil, 13, 95, nil, 86, 87, 83, 84, 85 ]
78
+ 86, 105, 37, 87, 106, 36, 88, 40, 105, 89,
79
+ 114, 80, 81, 77, 78, 79, 86, 62, 48, 87,
80
+ 70, 37, 88, 40, 44, 89, 74, 80, 81, 77,
81
+ 78, 79, 86, 40, 37, 87, 9, 9, 88, 32,
82
+ 9, 89, 9, 80, 81, 77, 78, 79, 86, 30,
83
+ 40, 87, 108, 9, 88, 9, 40, 89, 40, 80,
84
+ 81, 77, 78, 79, 86, 112, 16, 87, 97, 48,
85
+ 88, 51, 40, 89, nil, 80, 81, 77, 78, 79,
86
+ 11, 12, 20, 14, 15, 68, 9, nil, 11, 12,
87
+ 13, 14, 15, nil, 11, 12, 20, 14, 15, 21,
88
+ 11, 12, 20, 14, 15, 12, 20, 14, 15, 28,
89
+ 33, 11, 12, 20, 14, 15, 94, nil, nil, nil,
90
+ 28, 11, 12, 20, 14, 15, 94, nil, nil, nil,
91
+ nil, 11, 12, 20, 14, 15, 42, 12, 20, 14,
92
+ 15, nil, nil, 9, 40, 11, 12, 13, 14, 15,
93
+ 100, 11, 12, 20, 14, 15, 110, 11, 12, 20,
94
+ 14, 15, 11, 12, 20, 14, 15, 11, 12, 20,
95
+ 14, 15, 11, 12, 20, 14, 15, 11, 12, 20,
96
+ 14, 15, 11, 12, 20, 14, 15, 11, 12, 20,
97
+ 14, 15, 11, 12, 20, 14, 15 ]
105
98
 
106
99
  racc_action_check = [
107
- 28, 28, 28, 33, 98, 64, 33, 98, 1, 50,
108
- 50, 50, 28, 28, 28, 28, 28, 28, 12, 12,
109
- 12, 14, 28, 50, 50, 50, 50, 113, 16, 113,
110
- 12, 12, 12, 12, 12, 12, 34, 34, 34, 35,
111
- 12, 52, 52, 37, 38, 41, 46, 46, 46, 34,
112
- 34, 34, 34, 34, 43, 43, 43, 34, 43, 46,
113
- 46, 46, 46, 46, 7, 7, 7, 43, 43, 43,
114
- 43, 43, 58, 58, 58, 44, 58, 7, 7, 7,
115
- 7, 7, 42, 42, 42, 58, 58, 58, 58, 58,
116
- 48, 48, 48, 47, 49, 42, 42, 42, 42, 42,
117
- 80, 80, 80, 48, 48, 48, 48, 48, 80, 92,
118
- 92, 92, 51, 80, 80, 80, 80, 80, 94, 94,
119
- 94, 55, 92, 92, 92, 92, 92, 56, 60, 62,
120
- 94, 94, 94, 94, 94, 94, 100, 100, 100, 66,
121
- 70, 73, 78, 79, 100, 107, 107, 107, 81, 100,
122
- 100, 100, 100, 100, 54, 54, 54, 107, 107, 107,
123
- 107, 107, 107, 13, 13, 13, 109, 54, 54, 54,
124
- 54, 54, 0, 0, 0, nil, 13, 13, 13, 13,
125
- 13, nil, 76, 0, nil, 76, nil, 0, 76, nil,
126
- nil, 76, nil, 76, 76, 76, 76, 76, 93, nil,
127
- nil, 93, 93, nil, 93, nil, nil, 93, nil, 93,
128
- 93, 93, 93, 93, 118, nil, nil, 118, nil, nil,
129
- 118, nil, nil, 118, nil, 118, 118, 118, 118, 118,
130
- 104, nil, nil, 104, 104, nil, 104, nil, nil, 104,
131
- nil, 104, 104, 104, 104, 104, 3, 3, 3, nil,
132
- nil, nil, nil, 112, nil, nil, 112, 3, nil, 112,
133
- nil, 3, 112, nil, 112, 112, 112, 112, 112 ]
100
+ 112, 92, 27, 112, 92, 27, 112, 60, 107, 112,
101
+ 107, 112, 112, 112, 112, 112, 106, 46, 46, 106,
102
+ 54, 56, 106, 58, 29, 106, 64, 106, 106, 106,
103
+ 106, 106, 70, 67, 50, 70, 72, 73, 70, 18,
104
+ 75, 70, 49, 70, 70, 70, 70, 70, 98, 16,
105
+ 31, 98, 98, 45, 98, 43, 41, 98, 38, 98,
106
+ 98, 98, 98, 98, 87, 103, 1, 87, 87, 32,
107
+ 87, 37, 35, 87, nil, 87, 87, 87, 87, 87,
108
+ 37, 37, 37, 37, 37, 52, 3, nil, 3, 3,
109
+ 3, 3, 3, nil, 52, 52, 52, 52, 52, 9,
110
+ 9, 9, 9, 9, 9, 44, 44, 44, 44, 9,
111
+ 22, 22, 22, 22, 22, 22, 74, nil, nil, nil,
112
+ 22, 74, 74, 74, 74, 74, 94, nil, nil, nil,
113
+ nil, 94, 94, 94, 94, 94, 28, 28, 28, 28,
114
+ 28, nil, nil, 0, 28, 0, 0, 0, 0, 0,
115
+ 88, 88, 88, 88, 88, 88, 101, 101, 101, 101,
116
+ 101, 101, 40, 40, 40, 40, 40, 36, 36, 36,
117
+ 36, 36, 86, 86, 86, 86, 86, 7, 7, 7,
118
+ 7, 7, 42, 42, 42, 42, 42, 48, 48, 48,
119
+ 48, 48, 13, 13, 13, 13, 13 ]
134
120
 
135
121
  racc_action_pointer = [
136
- 170, 8, nil, 244, nil, nil, nil, 62, nil, nil,
137
- nil, nil, 16, 161, 21, nil, 23, nil, nil, nil,
138
- nil, nil, nil, nil, nil, nil, nil, nil, -2, nil,
139
- nil, nil, nil, -2, 34, 24, nil, 20, 37, nil,
140
- nil, 22, 80, 52, 52, nil, 44, 70, 88, 81,
141
- 7, 99, 35, nil, 152, 108, 122, nil, 70, nil,
142
- 120, nil, 124, nil, -18, nil, 116, nil, nil, nil,
143
- 132, nil, nil, 118, nil, nil, 175, nil, 129, 130,
144
- 98, 135, nil, nil, nil, nil, nil, nil, nil, nil,
145
- nil, nil, 107, 191, 116, nil, nil, nil, -5, nil,
146
- 134, nil, nil, nil, 223, nil, nil, 143, nil, 158,
147
- nil, nil, 246, 18, nil, nil, nil, nil, 207, nil,
148
- nil, nil ]
122
+ 133, 66, nil, 76, nil, nil, nil, 165, nil, 88,
123
+ nil, nil, nil, 180, nil, nil, 49, nil, 37, nil,
124
+ nil, nil, 99, nil, nil, nil, nil, 0, 124, 12,
125
+ nil, 30, 65, nil, nil, 52, 155, 68, 38, nil,
126
+ 150, 36, 170, 45, 92, 43, 14, nil, 175, 32,
127
+ 32, nil, 82, nil, 15, nil, 19, nil, 3, nil,
128
+ -13, nil, nil, nil, 21, nil, nil, 13, nil, nil,
129
+ 28, nil, 26, 27, 109, 30, nil, nil, nil, nil,
130
+ nil, nil, nil, nil, nil, nil, 160, 60, 139, nil,
131
+ nil, nil, -5, nil, 119, nil, nil, nil, 44, nil,
132
+ nil, 145, nil, 60, nil, nil, 12, 2, nil, nil,
133
+ nil, nil, -4, nil, nil, nil ]
149
134
 
150
135
  racc_action_default = [
151
- -79, -79, -1, -2, -3, -5, -6, -12, -8, -9,
152
- -10, -11, -79, -79, -79, -4, -14, -13, -35, -36,
153
- -37, -38, -39, -40, -41, -42, -43, -24, -79, -28,
154
- -30, -31, -32, -44, -70, -79, 122, -70, -79, -25,
155
- -29, -70, -79, -79, -71, -72, -79, -70, -79, -79,
156
- -79, -79, -79, -16, -79, -26, -44, -45, -79, -47,
157
- -79, -73, -44, -75, -70, -77, -70, -7, -15, -17,
158
- -79, -27, -33, -70, -46, -48, -79, -74, -79, -79,
159
- -79, -26, -49, -50, -51, -52, -53, -54, -55, -56,
160
- -57, -58, -79, -79, -79, -69, -76, -78, -22, -19,
161
- -79, -34, -59, -60, -79, -62, -64, -79, -66, -79,
162
- -18, -20, -79, -79, -61, -63, -65, -67, -79, -23,
163
- -21, -68 ]
136
+ -73, -73, -1, -2, -3, -5, -6, -9, -8, -73,
137
+ -32, -33, -34, -35, -36, -37, -73, -4, -11, -10,
138
+ -35, -21, -73, -25, -27, -28, -29, -38, -64, -73,
139
+ 116, -64, -73, -22, -26, -64, -73, -73, -65, -66,
140
+ -73, -64, -73, -73, -73, -73, -73, -13, -73, -23,
141
+ -38, -39, -73, -41, -73, -67, -38, -69, -64, -71,
142
+ -64, -7, -12, -14, -73, -24, -30, -64, -40, -42,
143
+ -73, -68, -73, -73, -73, -23, -43, -44, -45, -46,
144
+ -47, -48, -49, -50, -51, -52, -73, -73, -73, -63,
145
+ -70, -72, -19, -16, -73, -31, -53, -54, -73, -56,
146
+ -58, -73, -60, -73, -15, -17, -73, -73, -55, -57,
147
+ -59, -61, -73, -20, -18, -62 ]
164
148
 
165
149
  racc_goto_table = [
166
- 17, 82, 65, 29, 67, 98, 35, 72, 71, 59,
167
- 49, 47, 53, 51, 61, 41, 2, 55, 105, 40,
168
- 3, 16, 37, 63, 75, 113, 69, 66, 52, 115,
169
- 110, 96, 97, 101, 71, 56, 60, 119, 73, 62,
170
- 78, 64, 79, 121, 77, 108, 28, 70, 58, 81,
171
- 4, 60, 104, 15, 107, 1, nil, nil, 117, nil,
172
- nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
173
- nil, nil, nil, 99, nil, nil, nil, nil, nil, nil,
174
- nil, nil, nil, nil, nil, 102, nil, 109, nil, nil,
175
- nil, nil, nil, 99, nil, nil, nil, nil, nil, nil,
176
- 109 ]
150
+ 19, 41, 27, 92, 76, 35, 29, 104, 22, 4,
151
+ 66, 47, 17, 46, 31, 27, 18, 60, 1, 52,
152
+ 59, 99, 61, 107, 43, 63, 65, 45, 67, 50,
153
+ 54, 49, 109, 56, 71, 58, 95, 57, 53, 3,
154
+ 113, 64, 102, 98, 23, 54, 115, 101, 2, 90,
155
+ 91, 55, 65, 69, 72, 111, 73, 34, nil, nil,
156
+ nil, nil, nil, 75, nil, nil, nil, 93, nil, nil,
157
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, 96,
158
+ nil, 103, nil, nil, nil, nil, nil, 93, nil, nil,
159
+ nil, nil, nil, nil, 103 ]
177
160
 
178
161
  racc_goto_check = [
179
- 12, 17, 11, 20, 11, 15, 12, 19, 11, 27,
180
- 10, 25, 14, 10, 36, 24, 2, 10, 17, 20,
181
- 3, 8, 9, 10, 27, 15, 14, 25, 13, 17,
182
- 16, 11, 11, 19, 11, 12, 12, 17, 24, 12,
183
- 10, 12, 10, 17, 24, 34, 18, 12, 26, 10,
184
- 4, 12, 32, 4, 33, 1, nil, nil, 34, nil,
185
- nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
186
- nil, nil, nil, 12, nil, nil, nil, nil, nil, nil,
187
- nil, nil, nil, nil, nil, 12, nil, 12, nil, nil,
188
- nil, nil, nil, 12, nil, nil, nil, nil, nil, nil,
189
- 12 ]
162
+ 7, 24, 7, 14, 16, 23, 7, 15, 17, 4,
163
+ 18, 13, 4, 12, 9, 7, 8, 24, 1, 25,
164
+ 11, 16, 11, 14, 10, 13, 11, 10, 23, 7,
165
+ 7, 10, 16, 7, 23, 7, 18, 10, 26, 3,
166
+ 16, 7, 33, 31, 19, 7, 16, 32, 2, 11,
167
+ 11, 35, 11, 26, 10, 33, 10, 19, nil, nil,
168
+ nil, nil, nil, 10, nil, nil, nil, 7, nil, nil,
169
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, 7,
170
+ nil, 7, nil, nil, nil, nil, nil, 7, nil, nil,
171
+ nil, nil, nil, nil, 7 ]
190
172
 
191
173
  racc_goto_pointer = [
192
- nil, 55, 16, 20, 50, nil, nil, nil, 14, 6,
193
- -24, -47, -7, -10, -26, -75, -68, -75, 34, -48,
194
- -9, nil, nil, nil, -18, -23, 5, -34, nil, nil,
195
- nil, nil, -41, -40, -49, nil, -30 ]
174
+ nil, 18, 48, 39, 9, nil, nil, -7, 9, -4,
175
+ -4, -23, -19, -21, -71, -85, -66, -1, -39, 35,
176
+ nil, nil, nil, -22, -27, -18, 1, nil, nil, nil,
177
+ nil, -44, -41, -46, nil, 13 ]
196
178
 
197
179
  racc_goto_default = [
198
180
  nil, nil, nil, nil, nil, 5, 6, 7, nil, nil,
199
- nil, 8, 33, nil, nil, nil, nil, nil, nil, nil,
200
- nil, 30, 31, 32, nil, 18, nil, nil, 88, 89,
201
- 90, 91, nil, nil, nil, 44, 45 ]
181
+ nil, 8, nil, nil, nil, nil, nil, nil, nil, nil,
182
+ 24, 25, 26, nil, 10, nil, nil, 82, 83, 84,
183
+ 85, nil, nil, nil, 38, 39 ]
202
184
 
203
185
  racc_reduce_table = [
204
186
  0, 0, :racc_error,
187
+ 1, 23, :_reduce_none,
188
+ 1, 24, :_reduce_2,
189
+ 1, 25, :_reduce_3,
190
+ 2, 25, :_reduce_4,
205
191
  1, 26, :_reduce_none,
206
- 1, 27, :_reduce_2,
207
- 1, 28, :_reduce_3,
208
- 2, 28, :_reduce_4,
192
+ 1, 26, :_reduce_none,
193
+ 5, 27, :_reduce_7,
194
+ 1, 27, :_reduce_8,
195
+ 0, 30, :_reduce_9,
196
+ 1, 30, :_reduce_none,
197
+ 0, 31, :_reduce_11,
198
+ 3, 31, :_reduce_12,
199
+ 1, 34, :_reduce_13,
200
+ 2, 34, :_reduce_14,
201
+ 5, 35, :_reduce_15,
202
+ 1, 36, :_reduce_16,
203
+ 2, 36, :_reduce_17,
204
+ 3, 36, :_reduce_18,
205
+ 0, 37, :_reduce_19,
206
+ 2, 37, :_reduce_20,
207
+ 2, 33, :_reduce_21,
208
+ 3, 33, :_reduce_22,
209
+ 0, 40, :_reduce_23,
210
+ 1, 40, :_reduce_24,
211
+ 1, 39, :_reduce_25,
212
+ 2, 39, :_reduce_26,
213
+ 1, 41, :_reduce_none,
214
+ 1, 41, :_reduce_none,
215
+ 1, 41, :_reduce_none,
216
+ 4, 42, :_reduce_30,
217
+ 6, 42, :_reduce_31,
209
218
  1, 29, :_reduce_none,
210
219
  1, 29, :_reduce_none,
211
- 5, 30, :_reduce_7,
212
- 1, 30, :_reduce_8,
213
- 1, 32, :_reduce_none,
214
- 1, 32, :_reduce_none,
220
+ 1, 46, :_reduce_none,
221
+ 1, 46, :_reduce_none,
222
+ 1, 46, :_reduce_none,
223
+ 1, 46, :_reduce_none,
224
+ 0, 45, :_reduce_38,
225
+ 2, 45, :_reduce_39,
226
+ 3, 45, :_reduce_40,
227
+ 1, 47, :_reduce_41,
228
+ 2, 47, :_reduce_42,
229
+ 3, 48, :_reduce_43,
230
+ 1, 38, :_reduce_44,
231
+ 1, 38, :_reduce_45,
232
+ 1, 38, :_reduce_46,
233
+ 1, 38, :_reduce_47,
234
+ 1, 38, :_reduce_48,
235
+ 1, 38, :_reduce_none,
236
+ 1, 38, :_reduce_none,
237
+ 1, 38, :_reduce_none,
238
+ 1, 38, :_reduce_none,
239
+ 2, 49, :_reduce_53,
240
+ 2, 50, :_reduce_54,
241
+ 3, 50, :_reduce_55,
242
+ 1, 53, :_reduce_56,
243
+ 2, 53, :_reduce_57,
244
+ 2, 51, :_reduce_58,
245
+ 3, 51, :_reduce_59,
246
+ 1, 54, :_reduce_60,
247
+ 2, 54, :_reduce_61,
248
+ 3, 55, :_reduce_62,
249
+ 1, 52, :_reduce_63,
250
+ 0, 32, :_reduce_64,
215
251
  1, 32, :_reduce_none,
216
- 0, 33, :_reduce_12,
217
- 1, 33, :_reduce_none,
218
- 0, 34, :_reduce_14,
219
- 3, 34, :_reduce_15,
220
- 1, 38, :_reduce_16,
221
- 2, 38, :_reduce_17,
222
- 5, 39, :_reduce_18,
223
- 1, 40, :_reduce_19,
224
- 2, 40, :_reduce_20,
225
- 3, 40, :_reduce_21,
226
- 0, 41, :_reduce_22,
227
- 2, 41, :_reduce_23,
228
- 2, 36, :_reduce_24,
229
- 3, 36, :_reduce_25,
230
- 0, 44, :_reduce_26,
231
- 1, 44, :_reduce_27,
232
- 1, 43, :_reduce_28,
233
- 2, 43, :_reduce_29,
234
- 1, 45, :_reduce_none,
235
- 1, 45, :_reduce_none,
236
- 1, 45, :_reduce_none,
237
- 4, 46, :_reduce_33,
238
- 6, 46, :_reduce_34,
239
- 1, 37, :_reduce_none,
240
- 1, 37, :_reduce_none,
241
- 1, 50, :_reduce_none,
242
- 1, 50, :_reduce_none,
243
- 1, 50, :_reduce_none,
244
- 1, 50, :_reduce_none,
245
- 1, 50, :_reduce_none,
246
- 1, 50, :_reduce_none,
247
- 1, 50, :_reduce_none,
248
- 0, 49, :_reduce_44,
249
- 2, 49, :_reduce_45,
250
- 3, 49, :_reduce_46,
251
- 1, 51, :_reduce_47,
252
- 2, 51, :_reduce_48,
253
- 3, 52, :_reduce_49,
254
- 1, 42, :_reduce_50,
255
- 1, 42, :_reduce_51,
256
- 1, 42, :_reduce_52,
257
- 1, 42, :_reduce_53,
258
- 1, 42, :_reduce_54,
259
- 1, 42, :_reduce_none,
260
- 1, 42, :_reduce_none,
261
- 1, 42, :_reduce_none,
262
- 1, 42, :_reduce_none,
263
- 2, 53, :_reduce_59,
264
- 2, 54, :_reduce_60,
265
- 3, 54, :_reduce_61,
266
- 1, 57, :_reduce_62,
267
- 2, 57, :_reduce_63,
268
- 2, 55, :_reduce_64,
269
- 3, 55, :_reduce_65,
270
- 1, 58, :_reduce_66,
271
- 2, 58, :_reduce_67,
272
- 3, 59, :_reduce_68,
273
- 1, 56, :_reduce_69,
274
- 0, 35, :_reduce_70,
275
- 1, 35, :_reduce_none,
276
- 1, 60, :_reduce_72,
277
- 2, 60, :_reduce_73,
278
- 3, 61, :_reduce_74,
279
- 3, 47, :_reduce_75,
280
- 5, 48, :_reduce_76,
281
- 3, 48, :_reduce_77,
282
- 6, 31, :_reduce_78 ]
283
-
284
- racc_reduce_n = 79
285
-
286
- racc_shift_n = 122
252
+ 1, 56, :_reduce_66,
253
+ 2, 56, :_reduce_67,
254
+ 3, 57, :_reduce_68,
255
+ 3, 43, :_reduce_69,
256
+ 5, 44, :_reduce_70,
257
+ 3, 44, :_reduce_71,
258
+ 6, 28, :_reduce_72 ]
259
+
260
+ racc_reduce_n = 73
261
+
262
+ racc_shift_n = 116
287
263
 
288
264
  racc_token_table = {
289
265
  false => 0,
290
266
  :error => 1,
291
- :QUERY => 2,
292
- :MUTATION => 3,
293
- :SUBSCRIPTION => 4,
294
- :RPAREN => 5,
295
- :LPAREN => 6,
296
- :VAR_SIGN => 7,
297
- :COLON => 8,
298
- :BANG => 9,
299
- :RBRACKET => 10,
300
- :LBRACKET => 11,
301
- :EQUALS => 12,
302
- :RCURLY => 13,
303
- :LCURLY => 14,
304
- :ON => 15,
305
- :IDENTIFIER => 16,
306
- :FRAGMENT => 17,
307
- :TRUE => 18,
308
- :FALSE => 19,
309
- :FLOAT => 20,
310
- :INT => 21,
311
- :STRING => 22,
312
- :DIR_SIGN => 23,
313
- :ELLIPSIS => 24 }
314
-
315
- racc_nt_base = 25
267
+ :RPAREN => 2,
268
+ :LPAREN => 3,
269
+ :VAR_SIGN => 4,
270
+ :COLON => 5,
271
+ :BANG => 6,
272
+ :RBRACKET => 7,
273
+ :LBRACKET => 8,
274
+ :EQUALS => 9,
275
+ :RCURLY => 10,
276
+ :LCURLY => 11,
277
+ :ON => 12,
278
+ :IDENTIFIER => 13,
279
+ :FRAGMENT => 14,
280
+ :TRUE => 15,
281
+ :FALSE => 16,
282
+ :FLOAT => 17,
283
+ :INT => 18,
284
+ :STRING => 19,
285
+ :DIR_SIGN => 20,
286
+ :ELLIPSIS => 21 }
287
+
288
+ racc_nt_base = 22
316
289
 
317
290
  racc_use_result_var = true
318
291
 
@@ -335,9 +308,6 @@ Racc_arg = [
335
308
  Racc_token_to_s_table = [
336
309
  "$end",
337
310
  "error",
338
- "QUERY",
339
- "MUTATION",
340
- "SUBSCRIPTION",
341
311
  "RPAREN",
342
312
  "LPAREN",
343
313
  "VAR_SIGN",
@@ -365,12 +335,11 @@ Racc_token_to_s_table = [
365
335
  "definition",
366
336
  "operation_definition",
367
337
  "fragment_definition",
368
- "operation_type",
338
+ "name",
369
339
  "operation_name_opt",
370
340
  "variable_definitions_opt",
371
341
  "directives_list_opt",
372
342
  "selection_set",
373
- "name",
374
343
  "variable_definitions_list",
375
344
  "variable_definition",
376
345
  "variable_definition_type_name",
@@ -459,51 +428,45 @@ module_eval(<<'.,.,', 'parser.y', 28)
459
428
  end
460
429
  .,.,
461
430
 
462
- # reduce 9 omitted
463
-
464
- # reduce 10 omitted
465
-
466
- # reduce 11 omitted
467
-
468
- module_eval(<<'.,.,', 'parser.y', 42)
469
- def _reduce_12(val, _values, result)
431
+ module_eval(<<'.,.,', 'parser.y', 37)
432
+ def _reduce_9(val, _values, result)
470
433
  return nil
471
434
  result
472
435
  end
473
436
  .,.,
474
437
 
475
- # reduce 13 omitted
438
+ # reduce 10 omitted
476
439
 
477
- module_eval(<<'.,.,', 'parser.y', 46)
478
- def _reduce_14(val, _values, result)
440
+ module_eval(<<'.,.,', 'parser.y', 41)
441
+ def _reduce_11(val, _values, result)
479
442
  return []
480
443
  result
481
444
  end
482
445
  .,.,
483
446
 
484
- module_eval(<<'.,.,', 'parser.y', 47)
485
- def _reduce_15(val, _values, result)
447
+ module_eval(<<'.,.,', 'parser.y', 42)
448
+ def _reduce_12(val, _values, result)
486
449
  return val[1]
487
450
  result
488
451
  end
489
452
  .,.,
490
453
 
491
- module_eval(<<'.,.,', 'parser.y', 50)
492
- def _reduce_16(val, _values, result)
454
+ module_eval(<<'.,.,', 'parser.y', 45)
455
+ def _reduce_13(val, _values, result)
493
456
  return [val[0]]
494
457
  result
495
458
  end
496
459
  .,.,
497
460
 
498
- module_eval(<<'.,.,', 'parser.y', 51)
499
- def _reduce_17(val, _values, result)
461
+ module_eval(<<'.,.,', 'parser.y', 46)
462
+ def _reduce_14(val, _values, result)
500
463
  val[0] << val[1]
501
464
  result
502
465
  end
503
466
  .,.,
504
467
 
505
- module_eval(<<'.,.,', 'parser.y', 55)
506
- def _reduce_18(val, _values, result)
468
+ module_eval(<<'.,.,', 'parser.y', 50)
469
+ def _reduce_15(val, _values, result)
507
470
  return make_node(:VariableDefinition, {
508
471
  name: val[1],
509
472
  type: val[3],
@@ -515,91 +478,91 @@ module_eval(<<'.,.,', 'parser.y', 55)
515
478
  end
516
479
  .,.,
517
480
 
518
- module_eval(<<'.,.,', 'parser.y', 64)
519
- def _reduce_19(val, _values, result)
481
+ module_eval(<<'.,.,', 'parser.y', 59)
482
+ def _reduce_16(val, _values, result)
520
483
  return make_node(:TypeName, name: val[0])
521
484
  result
522
485
  end
523
486
  .,.,
524
487
 
525
- module_eval(<<'.,.,', 'parser.y', 65)
526
- def _reduce_20(val, _values, result)
488
+ module_eval(<<'.,.,', 'parser.y', 60)
489
+ def _reduce_17(val, _values, result)
527
490
  return make_node(:NonNullType, of_type: val[0])
528
491
  result
529
492
  end
530
493
  .,.,
531
494
 
532
- module_eval(<<'.,.,', 'parser.y', 66)
533
- def _reduce_21(val, _values, result)
495
+ module_eval(<<'.,.,', 'parser.y', 61)
496
+ def _reduce_18(val, _values, result)
534
497
  return make_node(:ListType, of_type: val[1])
535
498
  result
536
499
  end
537
500
  .,.,
538
501
 
539
- module_eval(<<'.,.,', 'parser.y', 69)
540
- def _reduce_22(val, _values, result)
502
+ module_eval(<<'.,.,', 'parser.y', 64)
503
+ def _reduce_19(val, _values, result)
541
504
  return nil
542
505
  result
543
506
  end
544
507
  .,.,
545
508
 
546
- module_eval(<<'.,.,', 'parser.y', 70)
547
- def _reduce_23(val, _values, result)
509
+ module_eval(<<'.,.,', 'parser.y', 65)
510
+ def _reduce_20(val, _values, result)
548
511
  return val[1]
549
512
  result
550
513
  end
551
514
  .,.,
552
515
 
553
- module_eval(<<'.,.,', 'parser.y', 73)
554
- def _reduce_24(val, _values, result)
516
+ module_eval(<<'.,.,', 'parser.y', 68)
517
+ def _reduce_21(val, _values, result)
555
518
  return []
556
519
  result
557
520
  end
558
521
  .,.,
559
522
 
560
- module_eval(<<'.,.,', 'parser.y', 74)
561
- def _reduce_25(val, _values, result)
523
+ module_eval(<<'.,.,', 'parser.y', 69)
524
+ def _reduce_22(val, _values, result)
562
525
  return val[1]
563
526
  result
564
527
  end
565
528
  .,.,
566
529
 
567
- module_eval(<<'.,.,', 'parser.y', 77)
568
- def _reduce_26(val, _values, result)
530
+ module_eval(<<'.,.,', 'parser.y', 72)
531
+ def _reduce_23(val, _values, result)
569
532
  return []
570
533
  result
571
534
  end
572
535
  .,.,
573
536
 
574
- module_eval(<<'.,.,', 'parser.y', 78)
575
- def _reduce_27(val, _values, result)
537
+ module_eval(<<'.,.,', 'parser.y', 73)
538
+ def _reduce_24(val, _values, result)
576
539
  return val[0]
577
540
  result
578
541
  end
579
542
  .,.,
580
543
 
581
- module_eval(<<'.,.,', 'parser.y', 81)
582
- def _reduce_28(val, _values, result)
544
+ module_eval(<<'.,.,', 'parser.y', 76)
545
+ def _reduce_25(val, _values, result)
583
546
  return [result]
584
547
  result
585
548
  end
586
549
  .,.,
587
550
 
588
- module_eval(<<'.,.,', 'parser.y', 82)
589
- def _reduce_29(val, _values, result)
551
+ module_eval(<<'.,.,', 'parser.y', 77)
552
+ def _reduce_26(val, _values, result)
590
553
  val[0] << val[1]
591
554
  result
592
555
  end
593
556
  .,.,
594
557
 
595
- # reduce 30 omitted
558
+ # reduce 27 omitted
596
559
 
597
- # reduce 31 omitted
560
+ # reduce 28 omitted
598
561
 
599
- # reduce 32 omitted
562
+ # reduce 29 omitted
600
563
 
601
- module_eval(<<'.,.,', 'parser.y', 91)
602
- def _reduce_33(val, _values, result)
564
+ module_eval(<<'.,.,', 'parser.y', 86)
565
+ def _reduce_30(val, _values, result)
603
566
  return make_node(
604
567
  :Field, {
605
568
  name: val[0],
@@ -614,8 +577,8 @@ module_eval(<<'.,.,', 'parser.y', 91)
614
577
  end
615
578
  .,.,
616
579
 
617
- module_eval(<<'.,.,', 'parser.y', 102)
618
- def _reduce_34(val, _values, result)
580
+ module_eval(<<'.,.,', 'parser.y', 97)
581
+ def _reduce_31(val, _values, result)
619
582
  return make_node(
620
583
  :Field, {
621
584
  alias: val[0],
@@ -631,225 +594,219 @@ module_eval(<<'.,.,', 'parser.y', 102)
631
594
  end
632
595
  .,.,
633
596
 
634
- # reduce 35 omitted
635
-
636
- # reduce 36 omitted
637
-
638
- # reduce 37 omitted
639
-
640
- # reduce 38 omitted
597
+ # reduce 32 omitted
641
598
 
642
- # reduce 39 omitted
599
+ # reduce 33 omitted
643
600
 
644
- # reduce 40 omitted
601
+ # reduce 34 omitted
645
602
 
646
- # reduce 41 omitted
603
+ # reduce 35 omitted
647
604
 
648
- # reduce 42 omitted
605
+ # reduce 36 omitted
649
606
 
650
- # reduce 43 omitted
607
+ # reduce 37 omitted
651
608
 
652
- module_eval(<<'.,.,', 'parser.y', 128)
653
- def _reduce_44(val, _values, result)
609
+ module_eval(<<'.,.,', 'parser.y', 120)
610
+ def _reduce_38(val, _values, result)
654
611
  return []
655
612
  result
656
613
  end
657
614
  .,.,
658
615
 
659
- module_eval(<<'.,.,', 'parser.y', 129)
660
- def _reduce_45(val, _values, result)
616
+ module_eval(<<'.,.,', 'parser.y', 121)
617
+ def _reduce_39(val, _values, result)
661
618
  return []
662
619
  result
663
620
  end
664
621
  .,.,
665
622
 
666
- module_eval(<<'.,.,', 'parser.y', 130)
667
- def _reduce_46(val, _values, result)
623
+ module_eval(<<'.,.,', 'parser.y', 122)
624
+ def _reduce_40(val, _values, result)
668
625
  return val[1]
669
626
  result
670
627
  end
671
628
  .,.,
672
629
 
673
- module_eval(<<'.,.,', 'parser.y', 133)
674
- def _reduce_47(val, _values, result)
630
+ module_eval(<<'.,.,', 'parser.y', 125)
631
+ def _reduce_41(val, _values, result)
675
632
  return [val[0]]
676
633
  result
677
634
  end
678
635
  .,.,
679
636
 
680
- module_eval(<<'.,.,', 'parser.y', 134)
681
- def _reduce_48(val, _values, result)
637
+ module_eval(<<'.,.,', 'parser.y', 126)
638
+ def _reduce_42(val, _values, result)
682
639
  val[0] << val[1]
683
640
  result
684
641
  end
685
642
  .,.,
686
643
 
687
- module_eval(<<'.,.,', 'parser.y', 137)
688
- def _reduce_49(val, _values, result)
644
+ module_eval(<<'.,.,', 'parser.y', 129)
645
+ def _reduce_43(val, _values, result)
689
646
  return make_node(:Argument, name: val[0], value: val[2], position_source: val[0])
690
647
  result
691
648
  end
692
649
  .,.,
693
650
 
694
- module_eval(<<'.,.,', 'parser.y', 140)
695
- def _reduce_50(val, _values, result)
651
+ module_eval(<<'.,.,', 'parser.y', 132)
652
+ def _reduce_44(val, _values, result)
696
653
  return val[0].to_f
697
654
  result
698
655
  end
699
656
  .,.,
700
657
 
701
- module_eval(<<'.,.,', 'parser.y', 141)
702
- def _reduce_51(val, _values, result)
658
+ module_eval(<<'.,.,', 'parser.y', 133)
659
+ def _reduce_45(val, _values, result)
703
660
  return val[0].to_i
704
661
  result
705
662
  end
706
663
  .,.,
707
664
 
708
- module_eval(<<'.,.,', 'parser.y', 142)
709
- def _reduce_52(val, _values, result)
665
+ module_eval(<<'.,.,', 'parser.y', 134)
666
+ def _reduce_46(val, _values, result)
710
667
  return val[0].to_s
711
668
  result
712
669
  end
713
670
  .,.,
714
671
 
715
- module_eval(<<'.,.,', 'parser.y', 143)
716
- def _reduce_53(val, _values, result)
672
+ module_eval(<<'.,.,', 'parser.y', 135)
673
+ def _reduce_47(val, _values, result)
717
674
  return true
718
675
  result
719
676
  end
720
677
  .,.,
721
678
 
722
- module_eval(<<'.,.,', 'parser.y', 144)
723
- def _reduce_54(val, _values, result)
679
+ module_eval(<<'.,.,', 'parser.y', 136)
680
+ def _reduce_48(val, _values, result)
724
681
  return false
725
682
  result
726
683
  end
727
684
  .,.,
728
685
 
729
- # reduce 55 omitted
686
+ # reduce 49 omitted
730
687
 
731
- # reduce 56 omitted
688
+ # reduce 50 omitted
732
689
 
733
- # reduce 57 omitted
690
+ # reduce 51 omitted
734
691
 
735
- # reduce 58 omitted
692
+ # reduce 52 omitted
736
693
 
737
- module_eval(<<'.,.,', 'parser.y', 150)
738
- def _reduce_59(val, _values, result)
694
+ module_eval(<<'.,.,', 'parser.y', 142)
695
+ def _reduce_53(val, _values, result)
739
696
  return make_node(:VariableIdentifier, name: val[1], position_source: val[0])
740
697
  result
741
698
  end
742
699
  .,.,
743
700
 
744
- module_eval(<<'.,.,', 'parser.y', 153)
745
- def _reduce_60(val, _values, result)
701
+ module_eval(<<'.,.,', 'parser.y', 145)
702
+ def _reduce_54(val, _values, result)
746
703
  return []
747
704
  result
748
705
  end
749
706
  .,.,
750
707
 
751
- module_eval(<<'.,.,', 'parser.y', 154)
752
- def _reduce_61(val, _values, result)
708
+ module_eval(<<'.,.,', 'parser.y', 146)
709
+ def _reduce_55(val, _values, result)
753
710
  return val[1]
754
711
  result
755
712
  end
756
713
  .,.,
757
714
 
758
- module_eval(<<'.,.,', 'parser.y', 157)
759
- def _reduce_62(val, _values, result)
715
+ module_eval(<<'.,.,', 'parser.y', 149)
716
+ def _reduce_56(val, _values, result)
760
717
  return [val[0]]
761
718
  result
762
719
  end
763
720
  .,.,
764
721
 
765
- module_eval(<<'.,.,', 'parser.y', 158)
766
- def _reduce_63(val, _values, result)
722
+ module_eval(<<'.,.,', 'parser.y', 150)
723
+ def _reduce_57(val, _values, result)
767
724
  val[0] << val[1]
768
725
  result
769
726
  end
770
727
  .,.,
771
728
 
772
- module_eval(<<'.,.,', 'parser.y', 161)
773
- def _reduce_64(val, _values, result)
729
+ module_eval(<<'.,.,', 'parser.y', 153)
730
+ def _reduce_58(val, _values, result)
774
731
  return make_node(:InputObject, arguments: [], position_source: val[0])
775
732
  result
776
733
  end
777
734
  .,.,
778
735
 
779
- module_eval(<<'.,.,', 'parser.y', 162)
780
- def _reduce_65(val, _values, result)
736
+ module_eval(<<'.,.,', 'parser.y', 154)
737
+ def _reduce_59(val, _values, result)
781
738
  return make_node(:InputObject, arguments: val[1], position_source: val[0])
782
739
  result
783
740
  end
784
741
  .,.,
785
742
 
786
- module_eval(<<'.,.,', 'parser.y', 165)
787
- def _reduce_66(val, _values, result)
743
+ module_eval(<<'.,.,', 'parser.y', 157)
744
+ def _reduce_60(val, _values, result)
788
745
  return [val[0]]
789
746
  result
790
747
  end
791
748
  .,.,
792
749
 
793
- module_eval(<<'.,.,', 'parser.y', 166)
794
- def _reduce_67(val, _values, result)
750
+ module_eval(<<'.,.,', 'parser.y', 158)
751
+ def _reduce_61(val, _values, result)
795
752
  val[0] << val[1]
796
753
  result
797
754
  end
798
755
  .,.,
799
756
 
800
- module_eval(<<'.,.,', 'parser.y', 169)
801
- def _reduce_68(val, _values, result)
757
+ module_eval(<<'.,.,', 'parser.y', 161)
758
+ def _reduce_62(val, _values, result)
802
759
  return make_node(:Argument, name: val[0], value: val[2], position_source: val[0])
803
760
  result
804
761
  end
805
762
  .,.,
806
763
 
807
- module_eval(<<'.,.,', 'parser.y', 171)
808
- def _reduce_69(val, _values, result)
764
+ module_eval(<<'.,.,', 'parser.y', 163)
765
+ def _reduce_63(val, _values, result)
809
766
  return make_node(:Enum, name: val[0], position_source: val[0])
810
767
  result
811
768
  end
812
769
  .,.,
813
770
 
814
- module_eval(<<'.,.,', 'parser.y', 174)
815
- def _reduce_70(val, _values, result)
771
+ module_eval(<<'.,.,', 'parser.y', 166)
772
+ def _reduce_64(val, _values, result)
816
773
  return []
817
774
  result
818
775
  end
819
776
  .,.,
820
777
 
821
- # reduce 71 omitted
778
+ # reduce 65 omitted
822
779
 
823
- module_eval(<<'.,.,', 'parser.y', 178)
824
- def _reduce_72(val, _values, result)
780
+ module_eval(<<'.,.,', 'parser.y', 170)
781
+ def _reduce_66(val, _values, result)
825
782
  return [val[0]]
826
783
  result
827
784
  end
828
785
  .,.,
829
786
 
830
- module_eval(<<'.,.,', 'parser.y', 179)
831
- def _reduce_73(val, _values, result)
787
+ module_eval(<<'.,.,', 'parser.y', 171)
788
+ def _reduce_67(val, _values, result)
832
789
  val[0] << val[1]
833
790
  result
834
791
  end
835
792
  .,.,
836
793
 
837
- module_eval(<<'.,.,', 'parser.y', 181)
838
- def _reduce_74(val, _values, result)
794
+ module_eval(<<'.,.,', 'parser.y', 173)
795
+ def _reduce_68(val, _values, result)
839
796
  return make_node(:Directive, name: val[1], arguments: val[2], position_source: val[0])
840
797
  result
841
798
  end
842
799
  .,.,
843
800
 
844
- module_eval(<<'.,.,', 'parser.y', 184)
845
- def _reduce_75(val, _values, result)
801
+ module_eval(<<'.,.,', 'parser.y', 176)
802
+ def _reduce_69(val, _values, result)
846
803
  return make_node(:FragmentSpread, name: val[1], directives: val[2], position_source: val[0])
847
804
  result
848
805
  end
849
806
  .,.,
850
807
 
851
- module_eval(<<'.,.,', 'parser.y', 188)
852
- def _reduce_76(val, _values, result)
808
+ module_eval(<<'.,.,', 'parser.y', 180)
809
+ def _reduce_70(val, _values, result)
853
810
  return make_node(:InlineFragment, {
854
811
  type: val[2],
855
812
  directives: val[3],
@@ -861,8 +818,8 @@ module_eval(<<'.,.,', 'parser.y', 188)
861
818
  end
862
819
  .,.,
863
820
 
864
- module_eval(<<'.,.,', 'parser.y', 196)
865
- def _reduce_77(val, _values, result)
821
+ module_eval(<<'.,.,', 'parser.y', 188)
822
+ def _reduce_71(val, _values, result)
866
823
  return make_node(:InlineFragment, {
867
824
  type: nil,
868
825
  directives: val[1],
@@ -874,8 +831,8 @@ module_eval(<<'.,.,', 'parser.y', 196)
874
831
  end
875
832
  .,.,
876
833
 
877
- module_eval(<<'.,.,', 'parser.y', 206)
878
- def _reduce_78(val, _values, result)
834
+ module_eval(<<'.,.,', 'parser.y', 198)
835
+ def _reduce_72(val, _values, result)
879
836
  return make_node(:FragmentDefinition, {
880
837
  name: val[1],
881
838
  type: val[3],