graphql 0.18.14 → 0.18.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/lib/graphql/analysis/query_complexity.rb +15 -6
  3. data/lib/graphql/analysis/query_depth.rb +11 -10
  4. data/lib/graphql/directive.rb +2 -6
  5. data/lib/graphql/directive/include_directive.rb +0 -4
  6. data/lib/graphql/directive/skip_directive.rb +0 -4
  7. data/lib/graphql/execution/directive_checks.rb +22 -13
  8. data/lib/graphql/execution_error.rb +7 -0
  9. data/lib/graphql/internal_representation/node.rb +20 -2
  10. data/lib/graphql/internal_representation/rewrite.rb +66 -20
  11. data/lib/graphql/language/generation.rb +22 -8
  12. data/lib/graphql/language/nodes.rb +48 -20
  13. data/lib/graphql/language/parser.rb +436 -423
  14. data/lib/graphql/language/parser.y +22 -19
  15. data/lib/graphql/language/parser_tests.rb +131 -2
  16. data/lib/graphql/query/serial_execution/field_resolution.rb +1 -0
  17. data/lib/graphql/query/serial_execution/selection_resolution.rb +1 -1
  18. data/lib/graphql/query/serial_execution/value_resolution.rb +4 -1
  19. data/lib/graphql/schema/printer.rb +1 -1
  20. data/lib/graphql/static_validation/message.rb +1 -1
  21. data/lib/graphql/version.rb +1 -1
  22. data/readme.md +10 -12
  23. data/spec/graphql/directive_spec.rb +139 -1
  24. data/spec/graphql/execution_error_spec.rb +63 -3
  25. data/spec/graphql/introspection/type_type_spec.rb +2 -0
  26. data/spec/graphql/language/generation_spec.rb +55 -7
  27. data/spec/graphql/query/executor_spec.rb +4 -2
  28. data/spec/graphql/schema/catchall_middleware_spec.rb +1 -0
  29. data/spec/graphql/schema/printer_spec.rb +1 -1
  30. data/spec/graphql/schema/timeout_middleware_spec.rb +10 -5
  31. data/spec/graphql/static_validation/rules/argument_literals_are_compatible_spec.rb +6 -6
  32. data/spec/graphql/static_validation/rules/arguments_are_defined_spec.rb +4 -4
  33. data/spec/graphql/static_validation/rules/directives_are_defined_spec.rb +2 -2
  34. data/spec/graphql/static_validation/rules/directives_are_in_valid_locations_spec.rb +2 -2
  35. data/spec/graphql/static_validation/rules/fields_are_defined_on_type_spec.rb +3 -3
  36. data/spec/graphql/static_validation/rules/fields_have_appropriate_selections_spec.rb +2 -2
  37. data/spec/graphql/static_validation/rules/fragment_spreads_are_possible_spec.rb +3 -3
  38. data/spec/graphql/static_validation/rules/fragment_types_exist_spec.rb +2 -2
  39. data/spec/graphql/static_validation/rules/fragments_are_finite_spec.rb +2 -2
  40. data/spec/graphql/static_validation/rules/fragments_are_named_spec.rb +1 -1
  41. data/spec/graphql/static_validation/rules/fragments_are_on_composite_types_spec.rb +3 -3
  42. data/spec/graphql/static_validation/rules/fragments_are_used_spec.rb +2 -2
  43. data/spec/graphql/static_validation/rules/mutation_root_exists_spec.rb +1 -1
  44. data/spec/graphql/static_validation/rules/required_arguments_are_present_spec.rb +3 -3
  45. data/spec/graphql/static_validation/rules/subscription_root_exists_spec.rb +1 -1
  46. data/spec/graphql/static_validation/rules/variable_default_values_are_correctly_typed_spec.rb +4 -4
  47. data/spec/graphql/static_validation/rules/variable_usages_are_allowed_spec.rb +4 -4
  48. data/spec/graphql/static_validation/rules/variables_are_input_types_spec.rb +3 -3
  49. data/spec/graphql/static_validation/rules/variables_are_used_and_defined_spec.rb +3 -3
  50. data/spec/graphql/static_validation/validator_spec.rb +1 -1
  51. data/spec/support/dairy_app.rb +8 -0
  52. metadata +30 -2
@@ -334,84 +334,112 @@ module GraphQL
334
334
  end
335
335
  end
336
336
 
337
- class ScalarTypeDefinition < NameOnlyNode; end
337
+ class ScalarTypeDefinition < AbstractNode
338
+ attr_accessor :name, :directives
339
+ scalar_attributes :name
340
+ child_attributes :directives
341
+
342
+ def initialize_node(name:, directives: [])
343
+ @name = name
344
+ @directives = directives
345
+ end
346
+ end
338
347
 
339
348
  class ObjectTypeDefinition < AbstractNode
340
- attr_accessor :name, :interfaces, :fields
349
+ attr_accessor :name, :interfaces, :fields, :directives
341
350
  scalar_attributes :name
342
- child_attributes :interfaces, :fields
351
+ child_attributes :interfaces, :fields, :directives
343
352
 
344
- def initialize_node(name:, interfaces:, fields:)
353
+ def initialize_node(name:, interfaces:, fields:, directives: [])
345
354
  @name = name
346
355
  @interfaces = interfaces || []
356
+ @directives = directives
347
357
  @fields = fields
348
358
  end
349
359
  end
350
360
 
351
361
  class InputValueDefinition < AbstractNode
352
- attr_accessor :name, :type, :default_value
362
+ attr_accessor :name, :type, :default_value, :directives
353
363
  scalar_attributes :name, :type, :default_value
364
+ child_attributes :directives
354
365
 
355
- def initialize_node(name:, type:, default_value: nil)
366
+ def initialize_node(name:, type:, default_value: nil, directives: [])
356
367
  @name = name
357
368
  @type = type
358
369
  @default_value = default_value
370
+ @directives = directives
359
371
  end
360
372
  end
361
373
 
362
374
  class FieldDefinition < AbstractNode
363
- attr_accessor :name, :arguments, :type
375
+ attr_accessor :name, :arguments, :type, :directives
364
376
  scalar_attributes :name, :type
365
- child_attributes :arguments
377
+ child_attributes :arguments, :directives
366
378
 
367
- def initialize_node(name:, arguments:, type:)
379
+ def initialize_node(name:, arguments:, type:, directives: [])
368
380
  @name = name
369
381
  @arguments = arguments
370
382
  @type = type
383
+ @directives = directives
371
384
  end
372
385
  end
373
386
 
374
387
  class InterfaceTypeDefinition < AbstractNode
375
- attr_accessor :name, :fields
388
+ attr_accessor :name, :fields, :directives
376
389
  scalar_attributes :name
377
- child_attributes :fields
390
+ child_attributes :fields, :directives
378
391
 
379
- def initialize_node(name:, fields:)
392
+ def initialize_node(name:, fields:, directives: [])
380
393
  @name = name
381
394
  @fields = fields
395
+ @directives = directives
382
396
  end
383
397
  end
384
398
 
385
399
  class UnionTypeDefinition < AbstractNode
386
- attr_accessor :name, :types
400
+ attr_accessor :name, :types, :directives
387
401
  scalar_attributes :name
388
- child_attributes :types
402
+ child_attributes :types, :directives
389
403
 
390
- def initialize_node(name:, types:)
404
+ def initialize_node(name:, types:, directives: [])
391
405
  @name = name
392
406
  @types = types
407
+ @directives = directives
393
408
  end
394
409
  end
395
410
 
396
411
  class EnumTypeDefinition < AbstractNode
397
- attr_accessor :name, :values
412
+ attr_accessor :name, :values, :directives
398
413
  scalar_attributes :name
399
- child_attributes :values
414
+ child_attributes :values, :directives
400
415
 
401
- def initialize_node(name:, values:)
416
+ def initialize_node(name:, values:, directives: [])
402
417
  @name = name
403
418
  @values = values
419
+ @directives = directives
420
+ end
421
+ end
422
+
423
+ class EnumValueDefinition < AbstractNode
424
+ attr_accessor :name, :directives
425
+ scalar_attributes :name
426
+ child_attributes :directives
427
+
428
+ def initialize_node(name:, directives: [])
429
+ @name = name
430
+ @directives = directives
404
431
  end
405
432
  end
406
433
 
407
434
  class InputObjectTypeDefinition < AbstractNode
408
- attr_accessor :name, :fields
435
+ attr_accessor :name, :fields, :directives
409
436
  scalar_attributes :name
410
437
  child_attributes :fields
411
438
 
412
- def initialize_node(name:, fields:)
439
+ def initialize_node(name:, fields:, directives: [])
413
440
  @name = name
414
441
  @fields = fields
442
+ @directives = directives
415
443
  end
416
444
  end
417
445
  end
@@ -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', 330)
15
+ module_eval(<<'...end parser.y/module_eval...', 'parser.y', 333)
16
16
 
17
17
  def initialize(query_string)
18
18
  @query_string = query_string
@@ -75,30 +75,30 @@ end
75
75
  ##### State transition tables begin ###
76
76
 
77
77
  racc_action_table = [
78
- 10, 11, 12, 74, 191, 191, 73, 192, 192, 191,
79
- 94, 202, 50, 35, 36, 37, 38, 39, 40, 41,
80
- 42, 43, 44, 45, 46, 47, 10, 11, 12, 110,
81
- 57, 10, 11, 12, 129, 94, 109, 144, 70, 35,
78
+ 10, 11, 12, 198, 177, 74, 199, 198, 73, 198,
79
+ 132, 210, 50, 35, 36, 37, 38, 39, 40, 41,
80
+ 42, 43, 44, 45, 46, 47, 10, 11, 12, 77,
81
+ 57, 198, 119, 95, 199, 10, 11, 12, 70, 35,
82
82
  36, 37, 38, 39, 40, 41, 42, 43, 44, 45,
83
- 46, 47, 10, 11, 12, 77, 57, 148, 13, 151,
84
- 77, 154, 77, 77, 13, 79, 36, 37, 38, 39,
83
+ 46, 47, 10, 11, 12, 77, 57, 74, 127, 74,
84
+ 13, 150, 77, 13, 13, 79, 36, 37, 38, 39,
85
85
  40, 41, 42, 43, 44, 45, 46, 47, 10, 11,
86
- 12, 77, 77, 166, 13, 77, 167, 174, 90, 168,
87
- 89, 120, 36, 37, 38, 39, 40, 41, 42, 43,
88
- 118, 119, 160, 161, 157, 158, 159, 10, 11, 12,
89
- 88, 13, 166, 87, 86, 167, 182, 77, 168, 81,
90
- 120, 36, 37, 38, 39, 40, 41, 42, 43, 118,
91
- 119, 160, 161, 157, 158, 159, 10, 11, 12, 74,
92
- 137, 166, 69, 13, 167, 67, 60, 168, 200, 120,
93
- 36, 37, 38, 39, 40, 41, 42, 43, 118, 119,
94
- 160, 161, 157, 158, 159, 10, 11, 12, 191, 30,
95
- 166, 74, 13, 167, nil, nil, 168, nil, 120, 36,
96
- 37, 38, 39, 40, 41, 42, 43, 118, 119, 160,
97
- 161, 157, 158, 159, 10, 11, 12, nil, nil, 166,
98
- nil, nil, 167, 196, nil, 168, nil, 120, 36, 37,
99
- 38, 39, 40, 41, 42, 43, 118, 119, 160, 161,
100
- 157, 158, 159, 10, 11, 12, nil, nil, nil, nil,
101
- nil, 178, nil, nil, nil, nil, 35, 36, 37, 38,
86
+ 12, 77, 13, 162, 117, 169, 163, 201, 116, 164,
87
+ 173, 141, 36, 37, 38, 39, 40, 41, 42, 43,
88
+ 139, 140, 156, 157, 153, 154, 155, 10, 11, 12,
89
+ 77, 115, 162, 77, 114, 163, 77, 13, 164, 110,
90
+ 141, 36, 37, 38, 39, 40, 41, 42, 43, 139,
91
+ 140, 156, 157, 153, 154, 155, 10, 11, 12, 13,
92
+ 77, 162, 77, 77, 163, 185, 194, 164, 95, 141,
93
+ 36, 37, 38, 39, 40, 41, 42, 43, 139, 140,
94
+ 156, 157, 153, 154, 155, 10, 11, 12, 77, 77,
95
+ 162, 77, 77, 163, 77, 205, 164, 87, 141, 36,
96
+ 37, 38, 39, 40, 41, 42, 43, 139, 140, 156,
97
+ 157, 153, 154, 155, 10, 11, 12, 77, 81, 162,
98
+ 69, 67, 163, 60, 30, 164, 77, 141, 36, 37,
99
+ 38, 39, 40, 41, 42, 43, 139, 140, 156, 157,
100
+ 153, 154, 155, 10, 11, 12, nil, 206, nil, nil,
101
+ nil, nil, nil, nil, nil, nil, 35, 36, 37, 38,
102
102
  39, 40, 41, 42, 43, 44, 45, 46, 47, 10,
103
103
  11, 12, nil, nil, nil, nil, nil, nil, nil, nil,
104
104
  nil, nil, 35, 36, 37, 38, 39, 40, 41, 42,
@@ -113,118 +113,118 @@ racc_action_table = [
113
113
  45, 46, 47, 10, 11, 12, nil, nil, nil, nil,
114
114
  nil, nil, nil, nil, nil, nil, 35, 36, 37, 38,
115
115
  39, 40, 41, 42, 43, 44, 45, 46, 47, 10,
116
- 11, 12, nil, nil, nil, nil, nil, 178, nil, nil,
116
+ 11, 12, nil, nil, nil, nil, nil, nil, nil, nil,
117
117
  nil, nil, 35, 36, 37, 38, 39, 40, 41, 42,
118
118
  43, 44, 45, 46, 47, 10, 11, 12, nil, nil,
119
- nil, nil, nil, nil, nil, nil, nil, 198, 35, 36,
119
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, 36,
120
120
  37, 38, 39, 40, 41, 42, 43, 44, 45, 46,
121
- 47, 10, 11, 12, nil, nil, nil, nil, nil, 178,
121
+ 47, 10, 11, 12, nil, 125, nil, nil, nil, nil,
122
122
  nil, nil, nil, nil, 35, 36, 37, 38, 39, 40,
123
123
  41, 42, 43, 44, 45, 46, 47, 10, 11, 12,
124
124
  nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
125
- nil, 36, 37, 38, 39, 40, 41, 42, 43, 44,
126
- 45, 46, 47, 10, 11, 12, nil, 189, nil, nil,
125
+ 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
126
+ 45, 46, 47, 10, 11, 12, nil, nil, nil, nil,
127
127
  nil, nil, nil, nil, nil, nil, 35, 36, 37, 38,
128
128
  39, 40, 41, 42, 43, 44, 45, 46, 47, 10,
129
129
  11, 12, nil, nil, nil, nil, nil, nil, nil, nil,
130
- nil, 185, 35, 36, 37, 38, 39, 40, 41, 42,
130
+ nil, nil, 35, 36, 37, 38, 39, 40, 41, 42,
131
131
  43, 44, 45, 46, 47, 10, 11, 12, nil, nil,
132
- nil, nil, nil, nil, nil, nil, nil, nil, 35, 36,
132
+ nil, nil, nil, 182, nil, nil, nil, nil, 35, 36,
133
133
  37, 38, 39, 40, 41, 42, 43, 44, 45, 46,
134
134
  47, 10, 11, 12, nil, nil, nil, nil, nil, nil,
135
135
  nil, nil, nil, nil, 35, 36, 37, 38, 39, 40,
136
136
  41, 42, 43, 44, 45, 46, 47, 10, 11, 12,
137
- nil, nil, nil, nil, nil, 178, nil, nil, nil, nil,
137
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, 203,
138
138
  35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
139
139
  45, 46, 47, 10, 11, 12, nil, nil, nil, nil,
140
140
  nil, nil, nil, nil, nil, nil, 35, 36, 37, 38,
141
141
  39, 40, 41, 42, 43, 44, 45, 46, 47, 10,
142
- 11, 12, nil, nil, nil, nil, nil, nil, nil, nil,
142
+ 11, 12, nil, nil, nil, nil, nil, 182, nil, nil,
143
143
  nil, nil, 35, 36, 37, 38, 39, 40, 41, 42,
144
144
  43, 44, 45, 46, 47, 10, 11, 12, nil, nil,
145
145
  nil, nil, nil, nil, nil, nil, nil, nil, 35, 36,
146
146
  37, 38, 39, 40, 41, 42, 43, 44, 45, 46,
147
- 47, 10, 11, 12, nil, nil, nil, nil, nil, nil,
148
- nil, nil, nil, 172, 35, 36, 37, 38, 39, 40,
147
+ 47, 10, 11, 12, nil, nil, nil, nil, nil, 182,
148
+ nil, nil, nil, nil, 35, 36, 37, 38, 39, 40,
149
149
  41, 42, 43, 44, 45, 46, 47, 10, 11, 12,
150
- nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
150
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, 172,
151
151
  35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
152
152
  45, 46, 47, 10, 11, 12, nil, nil, nil, nil,
153
153
  nil, nil, nil, nil, nil, nil, 35, 36, 37, 38,
154
154
  39, 40, 41, 42, 43, 44, 45, 46, 47, 10,
155
- 11, 12, nil, 97, nil, nil, nil, nil, nil, nil,
155
+ 11, 12, nil, nil, nil, nil, nil, nil, nil, nil,
156
156
  nil, nil, 35, 36, 37, 38, 39, 40, 41, 42,
157
- 43, 44, 45, 46, 47, 10, 11, 12, nil, 135,
157
+ 43, 44, 45, 46, 47, 10, 11, 12, nil, 98,
158
158
  nil, nil, nil, nil, nil, nil, nil, nil, 35, 36,
159
159
  37, 38, 39, 40, 41, 42, 43, 44, 45, 46,
160
160
  47, 10, 11, 12, nil, nil, nil, nil, nil, nil,
161
- nil, nil, nil, nil, 35, 36, 37, 38, 39, 40,
161
+ nil, nil, nil, 192, 35, 36, 37, 38, 39, 40,
162
162
  41, 42, 43, 44, 45, 46, 47, 10, 11, 12,
163
- nil, nil, nil, nil, nil, nil, nil, nil, nil, 153,
163
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
164
164
  35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
165
165
  45, 46, 47, 10, 11, 12, nil, nil, nil, nil,
166
- nil, nil, nil, nil, nil, nil, 35, 36, 37, 38,
166
+ nil, nil, nil, nil, nil, 188, 35, 36, 37, 38,
167
167
  39, 40, 41, 42, 43, 44, 45, 46, 47, 10,
168
168
  11, 12, nil, nil, nil, nil, nil, nil, nil, nil,
169
169
  nil, nil, 35, 36, 37, 38, 39, 40, 41, 42,
170
170
  43, 44, 45, 46, 47, 10, 11, 12, nil, nil,
171
- nil, nil, nil, nil, nil, nil, nil, nil, nil, 36,
171
+ nil, nil, nil, nil, nil, nil, nil, nil, 35, 36,
172
172
  37, 38, 39, 40, 41, 42, 43, 44, 45, 46,
173
173
  47, 10, 11, 12, nil, nil, nil, nil, nil, nil,
174
- nil, nil, nil, 147, 35, 36, 37, 38, 39, 40,
174
+ nil, nil, nil, nil, nil, 36, 37, 38, 39, 40,
175
175
  41, 42, 43, 44, 45, 46, 47, 10, 11, 12,
176
176
  nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
177
177
  35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
178
178
  45, 46, 47, 10, 11, 12, nil, nil, nil, nil,
179
179
  nil, nil, nil, nil, nil, nil, 35, 36, 37, 38,
180
180
  39, 40, 41, 42, 43, 44, 45, 46, 47, 10,
181
- 11, 12, nil, nil, nil, nil, nil, nil, nil, nil,
181
+ 11, 12, nil, nil, nil, nil, nil, 182, nil, nil,
182
182
  nil, nil, 35, 36, 37, 38, 39, 40, 41, 42,
183
183
  43, 44, 45, 46, 47, 10, 11, 12, nil, nil,
184
184
  nil, nil, nil, nil, nil, nil, nil, nil, 35, 36,
185
185
  37, 38, 39, 40, 41, 42, 43, 44, 45, 46,
186
186
  47, 10, 11, 12, nil, nil, nil, nil, nil, nil,
187
- nil, nil, nil, nil, 35, 36, 37, 38, 39, 40,
187
+ nil, nil, nil, 179, 35, 36, 37, 38, 39, 40,
188
188
  41, 42, 43, 44, 45, 46, 47, 10, 11, 12,
189
189
  nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
190
190
  35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
191
191
  45, 46, 47, 10, 11, 12, nil, nil, nil, nil,
192
- nil, nil, nil, nil, nil, nil, 120, 36, 37, 38,
193
- 39, 40, 41, 42, 43, 118, 119, 10, 11, 12,
194
- nil, nil, nil, nil, nil, nil, nil, nil, nil, 150,
195
- 120, 36, 37, 38, 39, 40, 41, 42, 43, 118,
196
- 119, 10, 11, 12, nil, nil, 10, 11, 12, nil,
197
- nil, nil, 13, nil, nil, 17, 24, 25, 107, 26,
192
+ nil, nil, nil, nil, nil, 176, 141, 36, 37, 38,
193
+ 39, 40, 41, 42, 43, 139, 140, 10, 11, 12,
194
+ nil, nil, 10, 11, 12, nil, nil, nil, 13, nil,
195
+ nil, 17, 24, 25, 108, 26, 27, 28, 29, nil,
196
+ 14, 10, 11, 12, nil, nil, nil, nil, nil, nil,
197
+ nil, nil, 13, nil, nil, 17, 24, 25, nil, 26,
198
198
  27, 28, 29, nil, 14, 10, 11, 12, nil, nil,
199
- nil, nil, nil, nil, nil, nil, 13, nil, nil, 17,
200
- 24, 25, nil, 26, 27, 28, 29, nil, 14 ]
199
+ nil, nil, nil, nil, nil, nil, nil, nil, 141, 36,
200
+ 37, 38, 39, 40, 41, 42, 43, 139, 140 ]
201
201
 
202
202
  racc_action_check = [
203
- 13, 13, 13, 56, 179, 177, 56, 179, 177, 194,
204
- 69, 194, 13, 13, 13, 13, 13, 13, 13, 13,
205
- 13, 13, 13, 13, 13, 13, 51, 51, 51, 85,
206
- 13, 60, 60, 60, 92, 92, 84, 113, 51, 51,
203
+ 13, 13, 13, 196, 147, 56, 196, 207, 56, 200,
204
+ 111, 200, 13, 13, 13, 13, 13, 13, 13, 13,
205
+ 13, 13, 13, 13, 13, 13, 51, 51, 51, 207,
206
+ 13, 180, 93, 93, 180, 60, 60, 60, 51, 51,
207
207
  51, 51, 51, 51, 51, 51, 51, 51, 51, 51,
208
- 51, 51, 57, 57, 57, 106, 51, 117, 80, 125,
209
- 78, 131, 134, 75, 139, 57, 57, 57, 57, 57,
210
- 57, 57, 57, 57, 57, 57, 57, 57, 200, 200,
211
- 200, 57, 72, 200, 91, 68, 200, 145, 66, 200,
212
- 65, 200, 200, 200, 200, 200, 200, 200, 200, 200,
213
- 200, 200, 200, 200, 200, 200, 200, 167, 167, 167,
214
- 64, 155, 167, 63, 62, 167, 167, 104, 167, 58,
215
- 167, 167, 167, 167, 167, 167, 167, 167, 167, 167,
216
- 167, 167, 167, 167, 167, 167, 137, 137, 137, 102,
217
- 100, 137, 32, 95, 137, 30, 17, 137, 188, 137,
218
- 137, 137, 137, 137, 137, 137, 137, 137, 137, 137,
219
- 137, 137, 137, 137, 137, 192, 192, 192, 190, 1,
220
- 192, 96, 140, 192, nil, nil, 192, nil, 192, 192,
221
- 192, 192, 192, 192, 192, 192, 192, 192, 192, 192,
222
- 192, 192, 192, 192, 183, 183, 183, nil, nil, 183,
223
- nil, nil, 183, 183, nil, 183, nil, 183, 183, 183,
224
- 183, 183, 183, 183, 183, 183, 183, 183, 183, 183,
225
- 183, 183, 183, 151, 151, 151, nil, nil, nil, nil,
226
- nil, 151, nil, nil, nil, nil, 151, 151, 151, 151,
227
- 151, 151, 151, 151, 151, 151, 151, 151, 151, 26,
208
+ 51, 51, 57, 57, 57, 105, 51, 103, 101, 97,
209
+ 96, 121, 124, 92, 129, 57, 57, 57, 57, 57,
210
+ 57, 57, 57, 57, 57, 57, 57, 57, 186, 186,
211
+ 186, 57, 130, 186, 91, 134, 186, 186, 90, 186,
212
+ 138, 186, 186, 186, 186, 186, 186, 186, 186, 186,
213
+ 186, 186, 186, 186, 186, 186, 186, 127, 127, 127,
214
+ 144, 89, 127, 107, 88, 127, 86, 151, 127, 84,
215
+ 127, 127, 127, 127, 127, 127, 127, 127, 127, 127,
216
+ 127, 127, 127, 127, 127, 127, 163, 163, 163, 80,
217
+ 78, 163, 75, 72, 163, 163, 170, 163, 69, 163,
218
+ 163, 163, 163, 163, 163, 163, 163, 163, 163, 163,
219
+ 163, 163, 163, 163, 163, 205, 205, 205, 68, 66,
220
+ 205, 65, 64, 205, 63, 191, 205, 62, 205, 205,
221
+ 205, 205, 205, 205, 205, 205, 205, 205, 205, 205,
222
+ 205, 205, 205, 205, 199, 199, 199, 61, 58, 199,
223
+ 32, 30, 199, 17, 1, 199, 208, 199, 199, 199,
224
+ 199, 199, 199, 199, 199, 199, 199, 199, 199, 199,
225
+ 199, 199, 199, 193, 193, 193, nil, 193, nil, nil,
226
+ nil, nil, nil, nil, nil, nil, 193, 193, 193, 193,
227
+ 193, 193, 193, 193, 193, 193, 193, 193, 193, 26,
228
228
  26, 26, nil, nil, nil, nil, nil, nil, nil, nil,
229
229
  nil, nil, 26, 26, 26, 26, 26, 26, 26, 26,
230
230
  26, 26, 26, 26, 26, 27, 27, 27, nil, nil,
@@ -235,202 +235,206 @@ racc_action_check = [
235
235
  28, 28, 28, 28, 28, 28, 28, 29, 29, 29,
236
236
  nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
237
237
  29, 29, 29, 29, 29, 29, 29, 29, 29, 29,
238
- 29, 29, 29, 24, 24, 24, nil, nil, nil, nil,
239
- nil, nil, nil, nil, nil, nil, 24, 24, 24, 24,
240
- 24, 24, 24, 24, 24, 24, 24, 24, 24, 178,
241
- 178, 178, nil, nil, nil, nil, nil, 178, nil, nil,
242
- nil, nil, 178, 178, 178, 178, 178, 178, 178, 178,
243
- 178, 178, 178, 178, 178, 186, 186, 186, nil, nil,
244
- nil, nil, nil, nil, nil, nil, nil, 186, 186, 186,
245
- 186, 186, 186, 186, 186, 186, 186, 186, 186, 186,
246
- 186, 174, 174, 174, nil, nil, nil, nil, nil, 174,
247
- nil, nil, nil, nil, 174, 174, 174, 174, 174, 174,
248
- 174, 174, 174, 174, 174, 174, 174, 14, 14, 14,
238
+ 29, 29, 29, 115, 115, 115, nil, nil, nil, nil,
239
+ nil, nil, nil, nil, nil, nil, 115, 115, 115, 115,
240
+ 115, 115, 115, 115, 115, 115, 115, 115, 115, 24,
241
+ 24, 24, nil, nil, nil, nil, nil, nil, nil, nil,
242
+ nil, nil, 24, 24, 24, 24, 24, 24, 24, 24,
243
+ 24, 24, 24, 24, 24, 14, 14, 14, nil, nil,
244
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, 14,
245
+ 14, 14, 14, 14, 14, 14, 14, 14, 14, 14,
246
+ 14, 99, 99, 99, nil, 99, nil, nil, nil, nil,
247
+ nil, nil, nil, nil, 99, 99, 99, 99, 99, 99,
248
+ 99, 99, 99, 99, 99, 99, 99, 110, 110, 110,
249
249
  nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
250
- nil, 14, 14, 14, 14, 14, 14, 14, 14, 14,
251
- 14, 14, 14, 173, 173, 173, nil, 173, nil, nil,
252
- nil, nil, nil, nil, nil, nil, 173, 173, 173, 173,
253
- 173, 173, 173, 173, 173, 173, 173, 173, 173, 168,
254
- 168, 168, nil, nil, nil, nil, nil, nil, nil, nil,
255
- nil, 168, 168, 168, 168, 168, 168, 168, 168, 168,
256
- 168, 168, 168, 168, 168, 8, 8, 8, nil, nil,
257
- nil, nil, nil, nil, nil, nil, nil, nil, 8, 8,
258
- 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
259
- 8, 166, 166, 166, nil, nil, nil, nil, nil, nil,
260
- nil, nil, nil, nil, 166, 166, 166, 166, 166, 166,
261
- 166, 166, 166, 166, 166, 166, 166, 154, 154, 154,
262
- nil, nil, nil, nil, nil, 154, nil, nil, nil, nil,
263
- 154, 154, 154, 154, 154, 154, 154, 154, 154, 154,
264
- 154, 154, 154, 25, 25, 25, nil, nil, nil, nil,
265
- nil, nil, nil, nil, nil, nil, 25, 25, 25, 25,
266
- 25, 25, 25, 25, 25, 25, 25, 25, 25, 148,
267
- 148, 148, nil, nil, nil, nil, nil, nil, nil, nil,
268
- nil, nil, 148, 148, 148, 148, 148, 148, 148, 148,
269
- 148, 148, 148, 148, 148, 144, 144, 144, nil, nil,
270
- nil, nil, nil, nil, nil, nil, nil, nil, 144, 144,
271
- 144, 144, 144, 144, 144, 144, 144, 144, 144, 144,
272
- 144, 142, 142, 142, nil, nil, nil, nil, nil, nil,
273
- nil, nil, nil, 142, 142, 142, 142, 142, 142, 142,
274
- 142, 142, 142, 142, 142, 142, 142, 90, 90, 90,
250
+ 110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
251
+ 110, 110, 110, 117, 117, 117, nil, nil, nil, nil,
252
+ nil, nil, nil, nil, nil, nil, 117, 117, 117, 117,
253
+ 117, 117, 117, 117, 117, 117, 117, 117, 117, 95,
254
+ 95, 95, nil, nil, nil, nil, nil, nil, nil, nil,
255
+ nil, nil, 95, 95, 95, 95, 95, 95, 95, 95,
256
+ 95, 95, 95, 95, 95, 194, 194, 194, nil, nil,
257
+ nil, nil, nil, 194, nil, nil, nil, nil, 194, 194,
258
+ 194, 194, 194, 194, 194, 194, 194, 194, 194, 194,
259
+ 194, 25, 25, 25, nil, nil, nil, nil, nil, nil,
260
+ nil, nil, nil, nil, 25, 25, 25, 25, 25, 25,
261
+ 25, 25, 25, 25, 25, 25, 25, 189, 189, 189,
262
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, 189,
263
+ 189, 189, 189, 189, 189, 189, 189, 189, 189, 189,
264
+ 189, 189, 189, 8, 8, 8, nil, nil, nil, nil,
265
+ nil, nil, nil, nil, nil, nil, 8, 8, 8, 8,
266
+ 8, 8, 8, 8, 8, 8, 8, 8, 8, 182,
267
+ 182, 182, nil, nil, nil, nil, nil, 182, nil, nil,
268
+ nil, nil, 182, 182, 182, 182, 182, 182, 182, 182,
269
+ 182, 182, 182, 182, 182, 114, 114, 114, nil, nil,
270
+ nil, nil, nil, nil, nil, nil, nil, nil, 114, 114,
271
+ 114, 114, 114, 114, 114, 114, 114, 114, 114, 114,
272
+ 114, 177, 177, 177, nil, nil, nil, nil, nil, 177,
273
+ nil, nil, nil, nil, 177, 177, 177, 177, 177, 177,
274
+ 177, 177, 177, 177, 177, 177, 177, 136, 136, 136,
275
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, 136,
276
+ 136, 136, 136, 136, 136, 136, 136, 136, 136, 136,
277
+ 136, 136, 136, 169, 169, 169, nil, nil, nil, nil,
278
+ nil, nil, nil, nil, nil, nil, 169, 169, 169, 169,
279
+ 169, 169, 169, 169, 169, 169, 169, 169, 169, 73,
280
+ 73, 73, nil, nil, nil, nil, nil, nil, nil, nil,
281
+ nil, nil, 73, 73, 73, 73, 73, 73, 73, 73,
282
+ 73, 73, 73, 73, 73, 74, 74, 74, nil, 74,
283
+ nil, nil, nil, nil, nil, nil, nil, nil, 74, 74,
284
+ 74, 74, 74, 74, 74, 74, 74, 74, 74, 74,
285
+ 74, 168, 168, 168, nil, nil, nil, nil, nil, nil,
286
+ nil, nil, nil, 168, 168, 168, 168, 168, 168, 168,
287
+ 168, 168, 168, 168, 168, 168, 168, 77, 77, 77,
275
288
  nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
276
- 90, 90, 90, 90, 90, 90, 90, 90, 90, 90,
277
- 90, 90, 90, 73, 73, 73, nil, nil, nil, nil,
278
- nil, nil, nil, nil, nil, nil, 73, 73, 73, 73,
279
- 73, 73, 73, 73, 73, 73, 73, 73, 73, 74,
280
- 74, 74, nil, 74, nil, nil, nil, nil, nil, nil,
281
- nil, nil, 74, 74, 74, 74, 74, 74, 74, 74,
282
- 74, 74, 74, 74, 74, 98, 98, 98, nil, 98,
283
- nil, nil, nil, nil, nil, nil, nil, nil, 98, 98,
284
- 98, 98, 98, 98, 98, 98, 98, 98, 98, 98,
285
- 98, 77, 77, 77, nil, nil, nil, nil, nil, nil,
286
- nil, nil, nil, nil, 77, 77, 77, 77, 77, 77,
287
- 77, 77, 77, 77, 77, 77, 77, 127, 127, 127,
288
- nil, nil, nil, nil, nil, nil, nil, nil, nil, 127,
289
- 127, 127, 127, 127, 127, 127, 127, 127, 127, 127,
290
- 127, 127, 127, 79, 79, 79, nil, nil, nil, nil,
291
- nil, nil, nil, nil, nil, nil, 79, 79, 79, 79,
292
- 79, 79, 79, 79, 79, 79, 79, 79, 79, 109,
293
- 109, 109, nil, nil, nil, nil, nil, nil, nil, nil,
294
- nil, nil, 109, 109, 109, 109, 109, 109, 109, 109,
295
- 109, 109, 109, 109, 109, 81, 81, 81, nil, nil,
296
- nil, nil, nil, nil, nil, nil, nil, nil, nil, 81,
297
- 81, 81, 81, 81, 81, 81, 81, 81, 81, 81,
298
- 81, 115, 115, 115, nil, nil, nil, nil, nil, nil,
299
- nil, nil, nil, 115, 115, 115, 115, 115, 115, 115,
300
- 115, 115, 115, 115, 115, 115, 115, 112, 112, 112,
289
+ 77, 77, 77, 77, 77, 77, 77, 77, 77, 77,
290
+ 77, 77, 77, 164, 164, 164, nil, nil, nil, nil,
291
+ nil, nil, nil, nil, nil, 164, 164, 164, 164, 164,
292
+ 164, 164, 164, 164, 164, 164, 164, 164, 164, 79,
293
+ 79, 79, nil, nil, nil, nil, nil, nil, nil, nil,
294
+ nil, nil, 79, 79, 79, 79, 79, 79, 79, 79,
295
+ 79, 79, 79, 79, 79, 113, 113, 113, nil, nil,
296
+ nil, nil, nil, nil, nil, nil, nil, nil, 113, 113,
297
+ 113, 113, 113, 113, 113, 113, 113, 113, 113, 113,
298
+ 113, 81, 81, 81, nil, nil, nil, nil, nil, nil,
299
+ nil, nil, nil, nil, nil, 81, 81, 81, 81, 81,
300
+ 81, 81, 81, 81, 81, 81, 81, 132, 132, 132,
301
301
  nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
302
- 112, 112, 112, 112, 112, 112, 112, 112, 112, 112,
303
- 112, 112, 112, 110, 110, 110, nil, nil, nil, nil,
304
- nil, nil, nil, nil, nil, nil, 110, 110, 110, 110,
305
- 110, 110, 110, 110, 110, 110, 110, 110, 110, 86,
306
- 86, 86, nil, nil, nil, nil, nil, nil, nil, nil,
307
- nil, nil, 86, 86, 86, 86, 86, 86, 86, 86,
308
- 86, 86, 86, 86, 86, 87, 87, 87, nil, nil,
302
+ 132, 132, 132, 132, 132, 132, 132, 132, 132, 132,
303
+ 132, 132, 132, 162, 162, 162, nil, nil, nil, nil,
304
+ nil, nil, nil, nil, nil, nil, 162, 162, 162, 162,
305
+ 162, 162, 162, 162, 162, 162, 162, 162, 162, 150,
306
+ 150, 150, nil, nil, nil, nil, nil, 150, nil, nil,
307
+ nil, nil, 150, 150, 150, 150, 150, 150, 150, 150,
308
+ 150, 150, 150, 150, 150, 87, 87, 87, nil, nil,
309
309
  nil, nil, nil, nil, nil, nil, nil, nil, 87, 87,
310
310
  87, 87, 87, 87, 87, 87, 87, 87, 87, 87,
311
- 87, 88, 88, 88, nil, nil, nil, nil, nil, nil,
312
- nil, nil, nil, nil, 88, 88, 88, 88, 88, 88,
313
- 88, 88, 88, 88, 88, 88, 88, 94, 94, 94,
311
+ 87, 149, 149, 149, nil, nil, nil, nil, nil, nil,
312
+ nil, nil, nil, 149, 149, 149, 149, 149, 149, 149,
313
+ 149, 149, 149, 149, 149, 149, 149, 173, 173, 173,
314
314
  nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
315
- 94, 94, 94, 94, 94, 94, 94, 94, 94, 94,
316
- 94, 94, 94, 89, 89, 89, nil, nil, nil, nil,
317
- nil, nil, nil, nil, nil, nil, 89, 89, 89, 89,
318
- 89, 89, 89, 89, 89, 89, 89, 124, 124, 124,
319
- nil, nil, nil, nil, nil, nil, nil, nil, nil, 124,
320
- 124, 124, 124, 124, 124, 124, 124, 124, 124, 124,
321
- 124, 3, 3, 3, nil, nil, 82, 82, 82, nil,
322
- nil, nil, 3, nil, nil, 3, 3, 3, 82, 3,
323
- 3, 3, 3, nil, 3, 0, 0, 0, nil, nil,
324
- nil, nil, nil, nil, nil, nil, 0, nil, nil, 0,
325
- 0, 0, nil, 0, 0, 0, 0, nil, 0 ]
315
+ 173, 173, 173, 173, 173, 173, 173, 173, 173, 173,
316
+ 173, 173, 173, 146, 146, 146, nil, nil, nil, nil,
317
+ nil, nil, nil, nil, nil, 146, 146, 146, 146, 146,
318
+ 146, 146, 146, 146, 146, 146, 146, 0, 0, 0,
319
+ nil, nil, 82, 82, 82, nil, nil, nil, 0, nil,
320
+ nil, 0, 0, 0, 82, 0, 0, 0, 0, nil,
321
+ 0, 3, 3, 3, nil, nil, nil, nil, nil, nil,
322
+ nil, nil, 3, nil, nil, 3, 3, 3, nil, 3,
323
+ 3, 3, 3, nil, 3, 116, 116, 116, nil, nil,
324
+ nil, nil, nil, nil, nil, nil, nil, nil, 116, 116,
325
+ 116, 116, 116, 116, 116, 116, 116, 116, 116 ]
326
326
 
327
327
  racc_action_pointer = [
328
- 1203, 169, nil, 1179, nil, nil, nil, nil, 533, nil,
329
- nil, nil, nil, -2, 455, nil, nil, 133, nil, nil,
330
- nil, nil, nil, nil, 351, 611, 247, 273, 299, 325,
331
- 145, nil, 137, nil, nil, nil, nil, nil, nil, nil,
328
+ 1155, 204, nil, 1179, nil, nil, nil, nil, 611, nil,
329
+ nil, nil, nil, -2, 403, nil, nil, 190, nil, nil,
330
+ nil, nil, nil, nil, 377, 559, 247, 273, 299, 325,
331
+ 201, nil, 195, nil, nil, nil, nil, nil, nil, nil,
332
332
  nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
333
- nil, 24, nil, nil, nil, nil, -2, 50, 104, nil,
334
- 29, nil, 95, 100, 98, 77, 75, nil, 54, 3,
335
- nil, nil, 51, 741, 767, 32, nil, 819, 29, 871,
336
- 45, 923, 1184, nil, 28, 16, 1027, 1053, 1079, 1131,
337
- 715, 71, 28, nil, 1105, 130, 166, nil, 793, nil,
338
- 132, nil, 134, nil, 86, nil, 24, nil, nil, 897,
339
- 1001, nil, 975, 32, nil, 949, nil, 24, nil, nil,
340
- nil, nil, nil, nil, 1155, 51, nil, 845, nil, nil,
341
- nil, 53, nil, nil, 31, nil, nil, 134, nil, 51,
342
- 159, nil, 689, nil, 663, 79, nil, nil, 637, nil,
343
- nil, 221, nil, nil, 585, 98, nil, nil, nil, nil,
344
- nil, nil, nil, nil, nil, nil, 559, 105, 507, nil,
345
- nil, nil, nil, 481, 429, nil, nil, -4, 377, -5,
346
- nil, nil, nil, 192, nil, nil, 403, nil, 140, nil,
347
- 159, nil, 163, nil, 0, nil, nil, nil, nil, nil,
348
- 76, nil, nil, nil ]
333
+ nil, 24, nil, nil, nil, nil, 0, 50, 183, nil,
334
+ 33, 166, 158, 143, 141, 140, 138, nil, 137, 141,
335
+ nil, nil, 112, 767, 793, 111, nil, 845, 109, 897,
336
+ 126, 949, 1160, nil, 111, nil, 85, 1053, 101, 99,
337
+ 75, 71, 50, 26, nil, 507, 47, 54, nil, 429,
338
+ nil, 50, nil, 52, nil, 24, nil, 82, nil, nil,
339
+ 455, -3, nil, 923, 663, 351, 1203, 481, nil, nil,
340
+ nil, 53, nil, nil, 31, nil, nil, 105, nil, 51,
341
+ 69, nil, 975, nil, 80, nil, 715, nil, 57, nil,
342
+ nil, nil, nil, nil, 79, nil, 1131, -4, nil, 1079,
343
+ 1027, 104, nil, nil, nil, nil, nil, nil, nil, nil,
344
+ nil, nil, 1001, 134, 871, nil, nil, nil, 819, 741,
345
+ 138, nil, nil, 1105, nil, nil, nil, 689, nil, nil,
346
+ 22, nil, 637, nil, nil, nil, 76, nil, nil, 585,
347
+ nil, 167, nil, 221, 533, nil, -6, nil, nil, 192,
348
+ 0, nil, nil, nil, nil, 163, nil, -2, 175, nil,
349
+ nil, nil, nil, nil ]
349
350
 
350
351
  racc_action_default = [
351
- -128, -128, -1, -2, -3, -5, -6, -7, -13, -9,
352
- -10, -11, -12, -128, -96, -98, -99, -128, -104, -105,
353
- -106, -107, -108, -109, -128, -128, -128, -128, -128, -128,
354
- -128, -4, -15, -14, -36, -37, -38, -39, -40, -41,
352
+ -129, -129, -1, -2, -3, -5, -6, -7, -13, -9,
353
+ -10, -11, -12, -129, -97, -99, -100, -129, -105, -106,
354
+ -107, -108, -109, -110, -129, -129, -129, -129, -129, -129,
355
+ -129, -4, -15, -14, -36, -37, -38, -39, -40, -41,
355
356
  -42, -43, -44, -45, -46, -47, -48, -49, -50, -51,
356
- -25, -128, -29, -31, -32, -33, -61, -87, -128, -97,
357
- -128, -110, -112, -128, -128, -128, -128, 204, -87, -128,
358
- -26, -30, -87, -128, -128, -88, -89, -128, -87, -128,
359
- -128, -128, -128, -101, -128, -128, -128, -128, -128, -128,
360
- -128, -128, -128, -17, -128, -27, -61, -62, -128, -64,
361
- -128, -90, -61, -92, -87, -94, -87, -100, -102, -128,
362
- -128, -57, -113, -117, -120, -128, -123, -125, -52, -53,
363
- -54, -55, -56, -59, -128, -128, -115, -128, -8, -16,
364
- -18, -128, -28, -34, -87, -63, -65, -128, -91, -128,
365
- -128, -103, -128, -58, -128, -128, -121, -122, -128, -60,
366
- -126, -128, -116, -127, -128, -27, -66, -67, -68, -69,
367
- -70, -71, -72, -73, -74, -75, -128, -128, -128, -86,
368
- -93, -95, -111, -128, -128, -124, -20, -23, -128, -23,
369
- -35, -76, -77, -128, -79, -81, -128, -83, -128, -118,
370
- -119, -21, -128, -114, -128, -19, -78, -80, -82, -84,
371
- -128, -24, -22, -85 ]
357
+ -25, -129, -29, -31, -32, -33, -62, -88, -129, -98,
358
+ -129, -88, -113, -88, -88, -88, -88, 214, -88, -129,
359
+ -26, -30, -88, -129, -129, -89, -90, -129, -88, -129,
360
+ -129, -129, -129, -102, -129, -111, -88, -129, -129, -129,
361
+ -129, -129, -129, -129, -17, -129, -27, -62, -63, -129,
362
+ -65, -129, -91, -62, -93, -88, -95, -88, -101, -103,
363
+ -129, -129, -57, -114, -129, -129, -129, -129, -8, -16,
364
+ -18, -129, -28, -34, -88, -64, -66, -129, -92, -129,
365
+ -129, -104, -129, -58, -118, -121, -129, -124, -126, -52,
366
+ -53, -54, -55, -56, -88, -60, -129, -129, -116, -129,
367
+ -129, -27, -67, -68, -69, -70, -71, -72, -73, -74,
368
+ -75, -76, -129, -129, -129, -87, -94, -96, -129, -129,
369
+ -129, -122, -123, -129, -59, -61, -127, -129, -117, -128,
370
+ -23, -20, -129, -35, -77, -78, -129, -80, -82, -129,
371
+ -84, -129, -112, -129, -129, -125, -23, -19, -21, -129,
372
+ -129, -79, -81, -83, -85, -129, -119, -88, -88, -24,
373
+ -22, -86, -120, -115 ]
372
374
 
373
375
  racc_goto_table = [
374
- 8, 59, 133, 8, 156, 122, 33, 127, 152, 52,
375
- 123, 56, 72, 99, 146, 1, 177, 80, 187, 179,
376
- 105, 124, 61, 62, 63, 64, 65, 66, 91, 83,
377
- 98, 128, 95, 93, 184, 132, 199, 136, 103, 190,
378
- 122, 146, 115, 194, 78, 149, 193, 71, 195, 56,
379
- 197, 108, 134, 122, 152, 112, 130, 183, 138, 201,
380
- 84, 173, 180, 186, 139, 142, 140, 203, 106, 51,
381
- 4, 96, 100, 31, 101, 102, 58, 104, 82, 170,
382
- 171, 92, 84, 122, 111, 85, 116, 68, 125, 121,
383
- 32, 3, 131, 145, 155, 132, 100, 2, 117, 122,
384
- nil, nil, nil, nil, nil, nil, nil, 141, 122, nil,
385
- 143, nil, nil, nil, nil, nil, 122, nil, nil, nil,
386
- nil, nil, nil, nil, 121, 125, nil, nil, nil, nil,
387
- nil, nil, nil, nil, nil, nil, nil, 121, nil, nil,
388
- nil, nil, 125, nil, nil, nil, 175, nil, nil, 176,
389
- nil, nil, 176, nil, nil, nil, nil, nil, nil, nil,
390
- nil, nil, nil, nil, 181, nil, 188, 121, nil, nil,
391
- nil, 125, 176, nil, nil, nil, 176, nil, nil, nil,
392
- nil, nil, nil, 121, 188, nil, nil, nil, nil, nil,
393
- nil, nil, 121, nil, nil, nil, nil, nil, nil, nil,
394
- 121 ]
376
+ 8, 123, 152, 8, 72, 149, 33, 1, 52, 59,
377
+ 190, 56, 94, 144, 178, 171, 106, 146, 197, 99,
378
+ 143, 113, 61, 62, 63, 64, 65, 66, 118, 145,
379
+ 100, 143, 122, 80, 208, 204, 120, 85, 187, 88,
380
+ 89, 90, 91, 144, 92, 124, 71, 171, 96, 56,
381
+ 143, 128, 78, 186, 104, 126, 183, 193, 178, 175,
382
+ 84, 202, 111, 189, 83, 166, 167, 143, 51, 102,
383
+ 136, 97, 101, 58, 209, 103, 107, 105, 180, 82,
384
+ 211, 129, 84, 130, 93, 112, 109, 122, 168, 4,
385
+ 143, 86, 31, 121, 68, 32, 3, 101, 170, 2,
386
+ 151, 138, nil, 143, nil, 196, nil, nil, 131, 143,
387
+ 200, 133, nil, 137, nil, 147, 142, nil, nil, nil,
388
+ 174, nil, 207, nil, nil, nil, nil, 142, nil, nil,
389
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
390
+ nil, nil, nil, nil, nil, nil, 142, 147, 181, nil,
391
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
392
+ 184, nil, 191, 142, nil, nil, nil, 147, nil, nil,
393
+ nil, 195, nil, nil, nil, 181, nil, nil, nil, nil,
394
+ 181, nil, nil, 212, 213, nil, 142, 191, nil, nil,
395
+ nil, 147, 181, nil, nil, nil, nil, nil, nil, 142,
396
+ nil, nil, nil, nil, nil, 142 ]
395
397
 
396
398
  racc_goto_check = [
397
- 8, 26, 20, 8, 18, 27, 13, 56, 55, 21,
398
- 28, 13, 25, 32, 58, 1, 16, 11, 39, 16,
399
- 12, 30, 13, 13, 13, 13, 13, 13, 11, 46,
400
- 31, 12, 11, 15, 18, 12, 39, 32, 11, 16,
401
- 27, 58, 54, 16, 26, 28, 17, 21, 17, 13,
402
- 18, 46, 25, 27, 55, 29, 15, 37, 25, 18,
403
- 8, 56, 20, 38, 11, 54, 11, 18, 26, 19,
404
- 4, 13, 13, 4, 41, 13, 42, 13, 45, 12,
405
- 12, 14, 8, 27, 13, 53, 13, 10, 13, 8,
406
- 9, 3, 13, 57, 11, 12, 13, 2, 59, 27,
407
- nil, nil, nil, nil, nil, nil, nil, 13, 27, nil,
408
- 13, nil, nil, nil, nil, nil, 27, nil, nil, nil,
409
- nil, nil, nil, nil, 8, 13, nil, nil, nil, nil,
410
- nil, nil, nil, nil, nil, nil, nil, 8, nil, nil,
411
- nil, nil, 13, nil, nil, nil, 13, nil, nil, 13,
412
- nil, nil, 13, nil, nil, nil, nil, nil, nil, nil,
413
- nil, nil, nil, nil, 13, nil, 13, 8, nil, nil,
414
- nil, 13, 13, nil, nil, nil, 13, nil, nil, nil,
415
- nil, nil, nil, 8, 13, nil, nil, nil, nil, nil,
416
- nil, nil, 8, nil, nil, nil, nil, nil, nil, nil,
417
- 8 ]
399
+ 8, 20, 18, 8, 25, 57, 13, 1, 21, 26,
400
+ 40, 13, 15, 28, 56, 59, 12, 31, 17, 32,
401
+ 27, 29, 13, 13, 13, 13, 13, 13, 12, 30,
402
+ 33, 27, 12, 11, 17, 40, 15, 11, 18, 11,
403
+ 11, 11, 11, 28, 11, 25, 21, 59, 11, 13,
404
+ 27, 25, 26, 38, 11, 33, 20, 57, 56, 30,
405
+ 8, 18, 11, 39, 47, 12, 12, 27, 19, 42,
406
+ 55, 13, 13, 43, 18, 13, 26, 13, 16, 46,
407
+ 18, 11, 8, 11, 14, 13, 47, 12, 55, 4,
408
+ 27, 54, 4, 13, 10, 9, 3, 13, 58, 2,
409
+ 11, 60, nil, 27, nil, 16, nil, nil, 13, 27,
410
+ 16, 13, nil, 13, nil, 13, 8, nil, nil, nil,
411
+ 11, nil, 16, nil, nil, nil, nil, 8, nil, nil,
412
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
413
+ nil, nil, nil, nil, nil, nil, 8, 13, 13, nil,
414
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
415
+ 13, nil, 13, 8, nil, nil, nil, 13, nil, nil,
416
+ nil, 13, nil, nil, nil, 13, nil, nil, nil, nil,
417
+ 13, nil, nil, 11, 11, nil, 8, 13, nil, nil,
418
+ nil, 13, 13, nil, nil, nil, nil, nil, nil, 8,
419
+ nil, nil, nil, nil, nil, 8 ]
418
420
 
419
421
  racc_goto_pointer = [
420
- nil, 15, 97, 91, 70, nil, nil, nil, 0, 82,
421
- 55, -40, -60, -2, 12, -36, -135, -131, -133, 56,
422
- -93, -4, nil, nil, nil, -44, -13, -84, -79, -31,
423
- -68, -44, -61, nil, nil, nil, nil, -110, -105, -150,
424
- nil, -1, 62, nil, nil, 18, -31, nil, nil, nil,
425
- nil, nil, nil, 23, -45, -119, -83, -20, -101, 10 ]
422
+ nil, 7, 99, 96, 89, nil, nil, nil, 0, 87,
423
+ 62, -24, -64, -2, 15, -57, -72, -162, -125, 55,
424
+ -95, -5, nil, nil, nil, -52, -5, -96, -103, -66,
425
+ -87, -99, -55, -44, nil, nil, nil, nil, -110, -101,
426
+ -154, nil, -6, 59, nil, nil, 19, 4, nil, nil,
427
+ nil, nil, nil, nil, 29, -44, -135, -112, -36, -121,
428
+ -14 ]
426
429
 
427
430
  racc_goto_default = [
428
431
  nil, nil, nil, nil, nil, 5, 6, 7, 48, nil,
429
- nil, nil, 9, 113, nil, nil, nil, nil, nil, nil,
430
- nil, nil, 53, 54, 55, nil, 34, 49, 169, nil,
431
- nil, nil, nil, 162, 163, 164, 165, nil, nil, nil,
432
- 75, 76, nil, 15, 16, nil, nil, 18, 19, 20,
433
- 21, 22, 23, nil, nil, 126, nil, nil, 114, nil ]
432
+ nil, nil, 9, 134, nil, nil, nil, nil, nil, nil,
433
+ nil, nil, 53, 54, 55, nil, 34, 49, 165, nil,
434
+ nil, nil, nil, nil, 158, 159, 160, 161, nil, nil,
435
+ nil, 75, 76, nil, 15, 16, nil, nil, 18, 19,
436
+ 20, 21, 22, 23, nil, nil, 148, nil, nil, 135,
437
+ nil ]
434
438
 
435
439
  racc_reduce_table = [
436
440
  0, 0, :racc_error,
@@ -492,79 +496,80 @@ racc_reduce_table = [
492
496
  1, 62, :_reduce_none,
493
497
  1, 63, :_reduce_57,
494
498
  2, 63, :_reduce_58,
495
- 1, 64, :_reduce_59,
496
- 2, 64, :_reduce_60,
497
- 0, 59, :_reduce_61,
498
- 2, 59, :_reduce_62,
499
- 3, 59, :_reduce_63,
500
- 1, 65, :_reduce_64,
501
- 2, 65, :_reduce_65,
502
- 3, 66, :_reduce_66,
503
- 1, 52, :_reduce_67,
499
+ 2, 64, :_reduce_59,
500
+ 1, 65, :_reduce_60,
501
+ 2, 65, :_reduce_61,
502
+ 0, 59, :_reduce_62,
503
+ 2, 59, :_reduce_63,
504
+ 3, 59, :_reduce_64,
505
+ 1, 66, :_reduce_65,
506
+ 2, 66, :_reduce_66,
507
+ 3, 67, :_reduce_67,
504
508
  1, 52, :_reduce_68,
505
509
  1, 52, :_reduce_69,
506
510
  1, 52, :_reduce_70,
507
511
  1, 52, :_reduce_71,
512
+ 1, 52, :_reduce_72,
508
513
  1, 52, :_reduce_none,
509
514
  1, 52, :_reduce_none,
510
515
  1, 52, :_reduce_none,
511
516
  1, 52, :_reduce_none,
512
- 2, 67, :_reduce_76,
513
517
  2, 68, :_reduce_77,
514
- 3, 68, :_reduce_78,
515
- 1, 71, :_reduce_79,
516
- 2, 71, :_reduce_80,
517
- 2, 69, :_reduce_81,
518
- 3, 69, :_reduce_82,
519
- 1, 72, :_reduce_83,
520
- 2, 72, :_reduce_84,
521
- 3, 73, :_reduce_85,
522
- 1, 70, :_reduce_86,
523
- 0, 45, :_reduce_87,
518
+ 2, 69, :_reduce_78,
519
+ 3, 69, :_reduce_79,
520
+ 1, 72, :_reduce_80,
521
+ 2, 72, :_reduce_81,
522
+ 2, 70, :_reduce_82,
523
+ 3, 70, :_reduce_83,
524
+ 1, 73, :_reduce_84,
525
+ 2, 73, :_reduce_85,
526
+ 3, 74, :_reduce_86,
527
+ 1, 71, :_reduce_87,
528
+ 0, 45, :_reduce_88,
524
529
  1, 45, :_reduce_none,
525
- 1, 74, :_reduce_89,
526
- 2, 74, :_reduce_90,
527
- 3, 75, :_reduce_91,
528
- 3, 57, :_reduce_92,
529
- 5, 58, :_reduce_93,
530
- 3, 58, :_reduce_94,
531
- 6, 40, :_reduce_95,
532
- 0, 76, :_reduce_96,
533
- 1, 76, :_reduce_none,
530
+ 1, 75, :_reduce_90,
531
+ 2, 75, :_reduce_91,
532
+ 3, 76, :_reduce_92,
533
+ 3, 57, :_reduce_93,
534
+ 5, 58, :_reduce_94,
535
+ 3, 58, :_reduce_95,
536
+ 6, 40, :_reduce_96,
537
+ 0, 77, :_reduce_97,
538
+ 1, 77, :_reduce_none,
534
539
  1, 41, :_reduce_none,
535
540
  1, 41, :_reduce_none,
536
- 4, 77, :_reduce_100,
541
+ 4, 78, :_reduce_101,
542
+ 1, 80, :_reduce_none,
543
+ 2, 80, :_reduce_103,
544
+ 3, 81, :_reduce_104,
545
+ 1, 79, :_reduce_none,
546
+ 1, 79, :_reduce_none,
547
+ 1, 79, :_reduce_none,
537
548
  1, 79, :_reduce_none,
538
- 2, 79, :_reduce_102,
539
- 3, 80, :_reduce_103,
540
- 1, 78, :_reduce_none,
541
- 1, 78, :_reduce_none,
542
- 1, 78, :_reduce_none,
543
- 1, 78, :_reduce_none,
544
- 1, 78, :_reduce_none,
545
- 1, 78, :_reduce_none,
546
- 2, 81, :_reduce_110,
547
- 6, 82, :_reduce_111,
548
- 0, 87, :_reduce_112,
549
- 2, 87, :_reduce_113,
550
- 4, 89, :_reduce_114,
551
- 1, 90, :_reduce_115,
552
- 2, 90, :_reduce_116,
553
- 0, 91, :_reduce_117,
554
- 3, 91, :_reduce_118,
555
- 4, 92, :_reduce_119,
556
- 1, 88, :_reduce_120,
557
- 2, 88, :_reduce_121,
558
- 5, 83, :_reduce_122,
559
- 1, 93, :_reduce_123,
560
- 3, 93, :_reduce_124,
561
- 4, 84, :_reduce_125,
549
+ 1, 79, :_reduce_none,
550
+ 1, 79, :_reduce_none,
551
+ 3, 82, :_reduce_111,
552
+ 7, 83, :_reduce_112,
553
+ 0, 88, :_reduce_113,
554
+ 2, 88, :_reduce_114,
555
+ 5, 90, :_reduce_115,
556
+ 1, 91, :_reduce_116,
557
+ 2, 91, :_reduce_117,
558
+ 0, 92, :_reduce_118,
559
+ 3, 92, :_reduce_119,
560
+ 5, 93, :_reduce_120,
561
+ 1, 89, :_reduce_121,
562
+ 2, 89, :_reduce_122,
563
+ 6, 84, :_reduce_123,
564
+ 1, 94, :_reduce_124,
565
+ 3, 94, :_reduce_125,
562
566
  5, 85, :_reduce_126,
563
- 5, 86, :_reduce_127 ]
567
+ 6, 86, :_reduce_127,
568
+ 6, 87, :_reduce_128 ]
564
569
 
565
- racc_reduce_n = 128
570
+ racc_reduce_n = 129
566
571
 
567
- racc_shift_n = 204
572
+ racc_shift_n = 214
568
573
 
569
574
  racc_token_table = {
570
575
  false => 0,
@@ -687,7 +692,8 @@ Racc_token_to_s_table = [
687
692
  "schema_keyword",
688
693
  "enum_name",
689
694
  "name_list",
690
- "enum_name_list",
695
+ "enum_value_definition",
696
+ "enum_value_definitions",
691
697
  "arguments_list",
692
698
  "argument",
693
699
  "variable",
@@ -1013,96 +1019,101 @@ module_eval(<<'.,.,', 'parser.y', 146)
1013
1019
 
1014
1020
  module_eval(<<'.,.,', 'parser.y', 149)
1015
1021
  def _reduce_59(val, _values, result)
1016
- return [val[0].to_s]
1022
+ return make_node(:EnumValueDefinition, name: val[0], directives: val[1])
1017
1023
  result
1018
1024
  end
1019
1025
  .,.,
1020
1026
 
1021
- module_eval(<<'.,.,', 'parser.y', 150)
1027
+ module_eval(<<'.,.,', 'parser.y', 152)
1022
1028
  def _reduce_60(val, _values, result)
1023
- return val[0] << val[1].to_s
1029
+ return [val[0]]
1024
1030
  result
1025
1031
  end
1026
1032
  .,.,
1027
1033
 
1028
1034
  module_eval(<<'.,.,', 'parser.y', 153)
1029
1035
  def _reduce_61(val, _values, result)
1030
- return []
1036
+ return val[0] << val[1]
1031
1037
  result
1032
1038
  end
1033
1039
  .,.,
1034
1040
 
1035
- module_eval(<<'.,.,', 'parser.y', 154)
1041
+ module_eval(<<'.,.,', 'parser.y', 156)
1036
1042
  def _reduce_62(val, _values, result)
1037
1043
  return []
1038
1044
  result
1039
1045
  end
1040
1046
  .,.,
1041
1047
 
1042
- module_eval(<<'.,.,', 'parser.y', 155)
1048
+ module_eval(<<'.,.,', 'parser.y', 157)
1043
1049
  def _reduce_63(val, _values, result)
1044
- return val[1]
1050
+ return []
1045
1051
  result
1046
1052
  end
1047
1053
  .,.,
1048
1054
 
1049
1055
  module_eval(<<'.,.,', 'parser.y', 158)
1050
1056
  def _reduce_64(val, _values, result)
1051
- return [val[0]]
1057
+ return val[1]
1052
1058
  result
1053
1059
  end
1054
1060
  .,.,
1055
1061
 
1056
- module_eval(<<'.,.,', 'parser.y', 159)
1062
+ module_eval(<<'.,.,', 'parser.y', 161)
1057
1063
  def _reduce_65(val, _values, result)
1058
- val[0] << val[1]
1064
+ return [val[0]]
1059
1065
  result
1060
1066
  end
1061
1067
  .,.,
1062
1068
 
1063
1069
  module_eval(<<'.,.,', 'parser.y', 162)
1064
1070
  def _reduce_66(val, _values, result)
1065
- return make_node(:Argument, name: val[0], value: val[2], position_source: val[0])
1071
+ val[0] << val[1]
1066
1072
  result
1067
1073
  end
1068
1074
  .,.,
1069
1075
 
1070
1076
  module_eval(<<'.,.,', 'parser.y', 165)
1071
1077
  def _reduce_67(val, _values, result)
1072
- return val[0].to_f
1078
+ return make_node(:Argument, name: val[0], value: val[2], position_source: val[0])
1073
1079
  result
1074
1080
  end
1075
1081
  .,.,
1076
1082
 
1077
- module_eval(<<'.,.,', 'parser.y', 166)
1083
+ module_eval(<<'.,.,', 'parser.y', 168)
1078
1084
  def _reduce_68(val, _values, result)
1079
- return val[0].to_i
1085
+ return val[0].to_f
1080
1086
  result
1081
1087
  end
1082
1088
  .,.,
1083
1089
 
1084
- module_eval(<<'.,.,', 'parser.y', 167)
1090
+ module_eval(<<'.,.,', 'parser.y', 169)
1085
1091
  def _reduce_69(val, _values, result)
1086
- return val[0].to_s
1092
+ return val[0].to_i
1087
1093
  result
1088
1094
  end
1089
1095
  .,.,
1090
1096
 
1091
- module_eval(<<'.,.,', 'parser.y', 168)
1097
+ module_eval(<<'.,.,', 'parser.y', 170)
1092
1098
  def _reduce_70(val, _values, result)
1093
- return true
1099
+ return val[0].to_s
1094
1100
  result
1095
1101
  end
1096
1102
  .,.,
1097
1103
 
1098
- module_eval(<<'.,.,', 'parser.y', 169)
1104
+ module_eval(<<'.,.,', 'parser.y', 171)
1099
1105
  def _reduce_71(val, _values, result)
1100
- return false
1106
+ return true
1101
1107
  result
1102
1108
  end
1103
1109
  .,.,
1104
1110
 
1105
- # reduce 72 omitted
1111
+ module_eval(<<'.,.,', 'parser.y', 172)
1112
+ def _reduce_72(val, _values, result)
1113
+ return false
1114
+ result
1115
+ end
1116
+ .,.,
1106
1117
 
1107
1118
  # reduce 73 omitted
1108
1119
 
@@ -1110,122 +1121,124 @@ module_eval(<<'.,.,', 'parser.y', 169)
1110
1121
 
1111
1122
  # reduce 75 omitted
1112
1123
 
1113
- module_eval(<<'.,.,', 'parser.y', 175)
1114
- def _reduce_76(val, _values, result)
1115
- return make_node(:VariableIdentifier, name: val[1], position_source: val[0])
1116
- result
1117
- end
1118
- .,.,
1124
+ # reduce 76 omitted
1119
1125
 
1120
1126
  module_eval(<<'.,.,', 'parser.y', 178)
1121
1127
  def _reduce_77(val, _values, result)
1122
- return []
1128
+ return make_node(:VariableIdentifier, name: val[1], position_source: val[0])
1123
1129
  result
1124
1130
  end
1125
1131
  .,.,
1126
1132
 
1127
- module_eval(<<'.,.,', 'parser.y', 179)
1133
+ module_eval(<<'.,.,', 'parser.y', 181)
1128
1134
  def _reduce_78(val, _values, result)
1129
- return val[1]
1135
+ return []
1130
1136
  result
1131
1137
  end
1132
1138
  .,.,
1133
1139
 
1134
1140
  module_eval(<<'.,.,', 'parser.y', 182)
1135
1141
  def _reduce_79(val, _values, result)
1136
- return [val[0]]
1142
+ return val[1]
1137
1143
  result
1138
1144
  end
1139
1145
  .,.,
1140
1146
 
1141
- module_eval(<<'.,.,', 'parser.y', 183)
1147
+ module_eval(<<'.,.,', 'parser.y', 185)
1142
1148
  def _reduce_80(val, _values, result)
1143
- val[0] << val[1]
1149
+ return [val[0]]
1144
1150
  result
1145
1151
  end
1146
1152
  .,.,
1147
1153
 
1148
1154
  module_eval(<<'.,.,', 'parser.y', 186)
1149
1155
  def _reduce_81(val, _values, result)
1150
- return make_node(:InputObject, arguments: [], position_source: val[0])
1156
+ val[0] << val[1]
1151
1157
  result
1152
1158
  end
1153
1159
  .,.,
1154
1160
 
1155
- module_eval(<<'.,.,', 'parser.y', 187)
1161
+ module_eval(<<'.,.,', 'parser.y', 189)
1156
1162
  def _reduce_82(val, _values, result)
1157
- return make_node(:InputObject, arguments: val[1], position_source: val[0])
1163
+ return make_node(:InputObject, arguments: [], position_source: val[0])
1158
1164
  result
1159
1165
  end
1160
1166
  .,.,
1161
1167
 
1162
1168
  module_eval(<<'.,.,', 'parser.y', 190)
1163
1169
  def _reduce_83(val, _values, result)
1164
- return [val[0]]
1170
+ return make_node(:InputObject, arguments: val[1], position_source: val[0])
1165
1171
  result
1166
1172
  end
1167
1173
  .,.,
1168
1174
 
1169
- module_eval(<<'.,.,', 'parser.y', 191)
1175
+ module_eval(<<'.,.,', 'parser.y', 193)
1170
1176
  def _reduce_84(val, _values, result)
1171
- val[0] << val[1]
1177
+ return [val[0]]
1172
1178
  result
1173
1179
  end
1174
1180
  .,.,
1175
1181
 
1176
1182
  module_eval(<<'.,.,', 'parser.y', 194)
1177
1183
  def _reduce_85(val, _values, result)
1178
- return make_node(:Argument, name: val[0], value: val[2], position_source: val[0])
1184
+ val[0] << val[1]
1179
1185
  result
1180
1186
  end
1181
1187
  .,.,
1182
1188
 
1183
- module_eval(<<'.,.,', 'parser.y', 196)
1189
+ module_eval(<<'.,.,', 'parser.y', 197)
1184
1190
  def _reduce_86(val, _values, result)
1185
- return make_node(:Enum, name: val[0], position_source: val[0])
1191
+ return make_node(:Argument, name: val[0], value: val[2], position_source: val[0])
1186
1192
  result
1187
1193
  end
1188
1194
  .,.,
1189
1195
 
1190
1196
  module_eval(<<'.,.,', 'parser.y', 199)
1191
1197
  def _reduce_87(val, _values, result)
1198
+ return make_node(:Enum, name: val[0], position_source: val[0])
1199
+ result
1200
+ end
1201
+ .,.,
1202
+
1203
+ module_eval(<<'.,.,', 'parser.y', 202)
1204
+ def _reduce_88(val, _values, result)
1192
1205
  return []
1193
1206
  result
1194
1207
  end
1195
1208
  .,.,
1196
1209
 
1197
- # reduce 88 omitted
1210
+ # reduce 89 omitted
1198
1211
 
1199
- module_eval(<<'.,.,', 'parser.y', 203)
1200
- def _reduce_89(val, _values, result)
1212
+ module_eval(<<'.,.,', 'parser.y', 206)
1213
+ def _reduce_90(val, _values, result)
1201
1214
  return [val[0]]
1202
1215
  result
1203
1216
  end
1204
1217
  .,.,
1205
1218
 
1206
- module_eval(<<'.,.,', 'parser.y', 204)
1207
- def _reduce_90(val, _values, result)
1219
+ module_eval(<<'.,.,', 'parser.y', 207)
1220
+ def _reduce_91(val, _values, result)
1208
1221
  val[0] << val[1]
1209
1222
  result
1210
1223
  end
1211
1224
  .,.,
1212
1225
 
1213
- module_eval(<<'.,.,', 'parser.y', 206)
1214
- def _reduce_91(val, _values, result)
1226
+ module_eval(<<'.,.,', 'parser.y', 209)
1227
+ def _reduce_92(val, _values, result)
1215
1228
  return make_node(:Directive, name: val[1], arguments: val[2], position_source: val[0])
1216
1229
  result
1217
1230
  end
1218
1231
  .,.,
1219
1232
 
1220
- module_eval(<<'.,.,', 'parser.y', 209)
1221
- def _reduce_92(val, _values, result)
1233
+ module_eval(<<'.,.,', 'parser.y', 212)
1234
+ def _reduce_93(val, _values, result)
1222
1235
  return make_node(:FragmentSpread, name: val[1], directives: val[2], position_source: val[0])
1223
1236
  result
1224
1237
  end
1225
1238
  .,.,
1226
1239
 
1227
- module_eval(<<'.,.,', 'parser.y', 213)
1228
- def _reduce_93(val, _values, result)
1240
+ module_eval(<<'.,.,', 'parser.y', 216)
1241
+ def _reduce_94(val, _values, result)
1229
1242
  return make_node(:InlineFragment, {
1230
1243
  type: val[2],
1231
1244
  directives: val[3],
@@ -1237,8 +1250,8 @@ module_eval(<<'.,.,', 'parser.y', 213)
1237
1250
  end
1238
1251
  .,.,
1239
1252
 
1240
- module_eval(<<'.,.,', 'parser.y', 221)
1241
- def _reduce_94(val, _values, result)
1253
+ module_eval(<<'.,.,', 'parser.y', 224)
1254
+ def _reduce_95(val, _values, result)
1242
1255
  return make_node(:InlineFragment, {
1243
1256
  type: nil,
1244
1257
  directives: val[1],
@@ -1250,8 +1263,8 @@ module_eval(<<'.,.,', 'parser.y', 221)
1250
1263
  end
1251
1264
  .,.,
1252
1265
 
1253
- module_eval(<<'.,.,', 'parser.y', 231)
1254
- def _reduce_95(val, _values, result)
1266
+ module_eval(<<'.,.,', 'parser.y', 234)
1267
+ def _reduce_96(val, _values, result)
1255
1268
  return make_node(:FragmentDefinition, {
1256
1269
  name: val[1],
1257
1270
  type: val[3],
@@ -1265,44 +1278,42 @@ module_eval(<<'.,.,', 'parser.y', 231)
1265
1278
  end
1266
1279
  .,.,
1267
1280
 
1268
- module_eval(<<'.,.,', 'parser.y', 242)
1269
- def _reduce_96(val, _values, result)
1281
+ module_eval(<<'.,.,', 'parser.y', 245)
1282
+ def _reduce_97(val, _values, result)
1270
1283
  return nil
1271
1284
  result
1272
1285
  end
1273
1286
  .,.,
1274
1287
 
1275
- # reduce 97 omitted
1276
-
1277
1288
  # reduce 98 omitted
1278
1289
 
1279
1290
  # reduce 99 omitted
1280
1291
 
1281
- module_eval(<<'.,.,', 'parser.y', 250)
1282
- def _reduce_100(val, _values, result)
1292
+ # reduce 100 omitted
1293
+
1294
+ module_eval(<<'.,.,', 'parser.y', 253)
1295
+ def _reduce_101(val, _values, result)
1283
1296
  return make_node(:SchemaDefinition, val[2])
1284
1297
  result
1285
1298
  end
1286
1299
  .,.,
1287
1300
 
1288
- # reduce 101 omitted
1301
+ # reduce 102 omitted
1289
1302
 
1290
- module_eval(<<'.,.,', 'parser.y', 254)
1291
- def _reduce_102(val, _values, result)
1303
+ module_eval(<<'.,.,', 'parser.y', 257)
1304
+ def _reduce_103(val, _values, result)
1292
1305
  return val[0].merge(val[1])
1293
1306
  result
1294
1307
  end
1295
1308
  .,.,
1296
1309
 
1297
- module_eval(<<'.,.,', 'parser.y', 257)
1298
- def _reduce_103(val, _values, result)
1310
+ module_eval(<<'.,.,', 'parser.y', 260)
1311
+ def _reduce_104(val, _values, result)
1299
1312
  return { val[0].to_s.to_sym => val[2] }
1300
1313
  result
1301
1314
  end
1302
1315
  .,.,
1303
1316
 
1304
- # reduce 104 omitted
1305
-
1306
1317
  # reduce 105 omitted
1307
1318
 
1308
1319
  # reduce 106 omitted
@@ -1313,134 +1324,136 @@ module_eval(<<'.,.,', 'parser.y', 257)
1313
1324
 
1314
1325
  # reduce 109 omitted
1315
1326
 
1316
- module_eval(<<'.,.,', 'parser.y', 267)
1317
- def _reduce_110(val, _values, result)
1318
- return make_node(:ScalarTypeDefinition, name: val[1])
1319
- result
1320
- end
1321
- .,.,
1327
+ # reduce 110 omitted
1322
1328
 
1323
- module_eval(<<'.,.,', 'parser.y', 271)
1329
+ module_eval(<<'.,.,', 'parser.y', 270)
1324
1330
  def _reduce_111(val, _values, result)
1325
- return make_node(:ObjectTypeDefinition, name: val[1], interfaces: val[2], fields: val[4])
1326
-
1331
+ return make_node(:ScalarTypeDefinition, name: val[1], directives: val[2])
1327
1332
  result
1328
1333
  end
1329
1334
  .,.,
1330
1335
 
1331
- module_eval(<<'.,.,', 'parser.y', 275)
1336
+ module_eval(<<'.,.,', 'parser.y', 274)
1332
1337
  def _reduce_112(val, _values, result)
1333
- return []
1338
+ return make_node(:ObjectTypeDefinition, name: val[1], interfaces: val[2], directives: val[3], fields: val[5])
1339
+
1334
1340
  result
1335
1341
  end
1336
1342
  .,.,
1337
1343
 
1338
- module_eval(<<'.,.,', 'parser.y', 276)
1344
+ module_eval(<<'.,.,', 'parser.y', 278)
1339
1345
  def _reduce_113(val, _values, result)
1340
- return val[1]
1346
+ return []
1341
1347
  result
1342
1348
  end
1343
1349
  .,.,
1344
1350
 
1345
- module_eval(<<'.,.,', 'parser.y', 280)
1351
+ module_eval(<<'.,.,', 'parser.y', 279)
1346
1352
  def _reduce_114(val, _values, result)
1347
- return make_node(:InputValueDefinition, name: val[0], type: val[2], default_value: val[3])
1348
-
1353
+ return val[1]
1349
1354
  result
1350
1355
  end
1351
1356
  .,.,
1352
1357
 
1353
- module_eval(<<'.,.,', 'parser.y', 284)
1358
+ module_eval(<<'.,.,', 'parser.y', 283)
1354
1359
  def _reduce_115(val, _values, result)
1355
- return [val[0]]
1360
+ return make_node(:InputValueDefinition, name: val[0], type: val[2], default_value: val[3], directives: val[4])
1361
+
1356
1362
  result
1357
1363
  end
1358
1364
  .,.,
1359
1365
 
1360
- module_eval(<<'.,.,', 'parser.y', 285)
1366
+ module_eval(<<'.,.,', 'parser.y', 287)
1361
1367
  def _reduce_116(val, _values, result)
1362
- val[0] << val[1]
1368
+ return [val[0]]
1363
1369
  result
1364
1370
  end
1365
1371
  .,.,
1366
1372
 
1367
1373
  module_eval(<<'.,.,', 'parser.y', 288)
1368
1374
  def _reduce_117(val, _values, result)
1369
- return []
1375
+ val[0] << val[1]
1370
1376
  result
1371
1377
  end
1372
1378
  .,.,
1373
1379
 
1374
- module_eval(<<'.,.,', 'parser.y', 289)
1380
+ module_eval(<<'.,.,', 'parser.y', 291)
1375
1381
  def _reduce_118(val, _values, result)
1376
- return val[1]
1382
+ return []
1377
1383
  result
1378
1384
  end
1379
1385
  .,.,
1380
1386
 
1381
- module_eval(<<'.,.,', 'parser.y', 293)
1387
+ module_eval(<<'.,.,', 'parser.y', 292)
1382
1388
  def _reduce_119(val, _values, result)
1383
- return make_node(:FieldDefinition, name: val[0], arguments: val[1], type: val[3])
1384
-
1389
+ return val[1]
1385
1390
  result
1386
1391
  end
1387
1392
  .,.,
1388
1393
 
1389
- module_eval(<<'.,.,', 'parser.y', 297)
1394
+ module_eval(<<'.,.,', 'parser.y', 296)
1390
1395
  def _reduce_120(val, _values, result)
1391
- return [val[0]]
1396
+ return make_node(:FieldDefinition, name: val[0], arguments: val[1], type: val[3], directives: val[4])
1397
+
1392
1398
  result
1393
1399
  end
1394
1400
  .,.,
1395
1401
 
1396
- module_eval(<<'.,.,', 'parser.y', 298)
1402
+ module_eval(<<'.,.,', 'parser.y', 300)
1397
1403
  def _reduce_121(val, _values, result)
1398
- val[0] << val[1]
1404
+ return [val[0]]
1399
1405
  result
1400
1406
  end
1401
1407
  .,.,
1402
1408
 
1403
- module_eval(<<'.,.,', 'parser.y', 302)
1409
+ module_eval(<<'.,.,', 'parser.y', 301)
1404
1410
  def _reduce_122(val, _values, result)
1405
- return make_node(:InterfaceTypeDefinition, name: val[1], fields: val[3])
1406
-
1411
+ val[0] << val[1]
1407
1412
  result
1408
1413
  end
1409
1414
  .,.,
1410
1415
 
1411
- module_eval(<<'.,.,', 'parser.y', 306)
1416
+ module_eval(<<'.,.,', 'parser.y', 305)
1412
1417
  def _reduce_123(val, _values, result)
1413
- return [val[0].to_s]
1418
+ return make_node(:InterfaceTypeDefinition, name: val[1], directives: val[2], fields: val[4])
1419
+
1414
1420
  result
1415
1421
  end
1416
1422
  .,.,
1417
1423
 
1418
- module_eval(<<'.,.,', 'parser.y', 307)
1424
+ module_eval(<<'.,.,', 'parser.y', 309)
1419
1425
  def _reduce_124(val, _values, result)
1420
- val[0] << val[2].to_s
1426
+ return [val[0].to_s]
1421
1427
  result
1422
1428
  end
1423
1429
  .,.,
1424
1430
 
1425
- module_eval(<<'.,.,', 'parser.y', 311)
1431
+ module_eval(<<'.,.,', 'parser.y', 310)
1426
1432
  def _reduce_125(val, _values, result)
1427
- return make_node(:UnionTypeDefinition, name: val[1], types: val[3])
1428
-
1433
+ val[0] << val[2].to_s
1429
1434
  result
1430
1435
  end
1431
1436
  .,.,
1432
1437
 
1433
- module_eval(<<'.,.,', 'parser.y', 316)
1438
+ module_eval(<<'.,.,', 'parser.y', 314)
1434
1439
  def _reduce_126(val, _values, result)
1435
- return make_node(:EnumTypeDefinition, name: val[1], values: val[3])
1440
+ return make_node(:UnionTypeDefinition, name: val[1], directives: val[2], types: val[4])
1436
1441
 
1437
1442
  result
1438
1443
  end
1439
1444
  .,.,
1440
1445
 
1441
- module_eval(<<'.,.,', 'parser.y', 321)
1446
+ module_eval(<<'.,.,', 'parser.y', 319)
1442
1447
  def _reduce_127(val, _values, result)
1443
- return make_node(:InputObjectTypeDefinition, name: val[1], fields: val[3])
1448
+ return make_node(:EnumTypeDefinition, name: val[1], directives: val[2], values: val[4])
1449
+
1450
+ result
1451
+ end
1452
+ .,.,
1453
+
1454
+ module_eval(<<'.,.,', 'parser.y', 324)
1455
+ def _reduce_128(val, _values, result)
1456
+ return make_node(:InputObjectTypeDefinition, name: val[1], directives: val[2], fields: val[4])
1444
1457
 
1445
1458
  result
1446
1459
  end