# # DO NOT MODIFY!!!! # This file is automatically generated by Racc 1.4.14 # from Racc grammer file "". # require 'racc/parser.rb' module GraphQL module Language class Parser < Racc::Parser module_eval(<<'...end parser.y/module_eval...', 'parser.y', 327) def initialize(query_string) @query_string = query_string end def parse_document @document ||= begin @tokens ||= GraphQL::Language::Lexer.tokenize(@query_string) if @tokens.none? make_node(:Document, definitions: []) else do_parse end end end def self.parse(query_string) self.new(query_string).parse_document end private def next_token lexer_token = @tokens.shift if lexer_token.nil? nil else [lexer_token.name, lexer_token] end end def on_error(parser_token_id, lexer_token, vstack) if lexer_token == "$" raise GraphQL::ParseError.new("Unexpected end of document", nil, nil, @query_string) else parser_token_name = token_to_str(parser_token_id) if parser_token_name.nil? raise GraphQL::ParseError.new("Parse Error on unknown token: {token_id: #{parser_token_id}, lexer_token: #{lexer_token}} from #{@query_string}", nil, nil, @query_string) else line, col = lexer_token.line_and_column if lexer_token.name == :BAD_UNICODE_ESCAPE raise GraphQL::ParseError.new("Parse error on bad Unicode escape sequence: #{lexer_token.to_s.inspect} (#{parser_token_name}) at [#{line}, #{col}]", line, col, @query_string) else raise GraphQL::ParseError.new("Parse error on #{lexer_token.to_s.inspect} (#{parser_token_name}) at [#{line}, #{col}]", line, col, @query_string) end end end end def make_node(node_name, assigns) assigns.each do |key, value| if key != :position_source && value.is_a?(GraphQL::Language::Token) assigns[key] = value.to_s end end GraphQL::Language::Nodes.const_get(node_name).new(assigns) end ...end parser.y/module_eval... ##### State transition tables begin ### racc_action_table = [ 10, 11, 12, 73, 190, 190, 72, 191, 191, 190, 93, 201, 50, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 10, 11, 12, 109, 57, 10, 11, 12, 128, 93, 108, 143, 69, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 10, 11, 12, 76, 57, 147, 13, 150, 76, 153, 76, 76, 13, 78, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 10, 11, 12, 76, 76, 165, 13, 76, 166, 173, 89, 167, 88, 119, 36, 37, 38, 39, 40, 41, 42, 43, 117, 118, 159, 160, 156, 157, 158, 10, 11, 12, 87, 13, 165, 86, 85, 166, 181, 76, 167, 80, 119, 36, 37, 38, 39, 40, 41, 42, 43, 117, 118, 159, 160, 156, 157, 158, 10, 11, 12, 73, 136, 165, 68, 13, 166, 66, 59, 167, 199, 119, 36, 37, 38, 39, 40, 41, 42, 43, 117, 118, 159, 160, 156, 157, 158, 10, 11, 12, 190, 30, 165, 73, 13, 166, nil, nil, 167, nil, 119, 36, 37, 38, 39, 40, 41, 42, 43, 117, 118, 159, 160, 156, 157, 158, 10, 11, 12, nil, nil, 165, nil, nil, 166, 195, nil, 167, nil, 119, 36, 37, 38, 39, 40, 41, 42, 43, 117, 118, 159, 160, 156, 157, 158, 10, 11, 12, nil, nil, nil, nil, nil, 177, nil, nil, nil, nil, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 10, 11, 12, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 10, 11, 12, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 10, 11, 12, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 10, 11, 12, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 10, 11, 12, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 10, 11, 12, nil, nil, nil, nil, nil, 177, nil, nil, nil, nil, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 10, 11, 12, nil, nil, nil, nil, nil, nil, nil, nil, nil, 197, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 10, 11, 12, nil, nil, nil, nil, nil, 177, nil, nil, nil, nil, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 10, 11, 12, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 10, 11, 12, nil, 188, nil, nil, nil, nil, nil, nil, nil, nil, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 10, 11, 12, nil, nil, nil, nil, nil, nil, nil, nil, nil, 184, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 10, 11, 12, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 10, 11, 12, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 10, 11, 12, nil, nil, nil, nil, nil, 177, nil, nil, nil, nil, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 10, 11, 12, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 10, 11, 12, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 10, 11, 12, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 10, 11, 12, nil, nil, nil, nil, nil, nil, nil, nil, nil, 171, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 10, 11, 12, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 10, 11, 12, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 10, 11, 12, nil, 96, nil, nil, nil, nil, nil, nil, nil, nil, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 10, 11, 12, nil, 134, nil, nil, nil, nil, nil, nil, nil, nil, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 10, 11, 12, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 10, 11, 12, nil, nil, nil, nil, nil, nil, nil, nil, nil, 152, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 10, 11, 12, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 10, 11, 12, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 10, 11, 12, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 10, 11, 12, nil, nil, nil, nil, nil, nil, nil, nil, nil, 146, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 10, 11, 12, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 10, 11, 12, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 10, 11, 12, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 10, 11, 12, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 10, 11, 12, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 10, 11, 12, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 10, 11, 12, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 119, 36, 37, 38, 39, 40, 41, 42, 43, 117, 118, 10, 11, 12, nil, nil, nil, nil, nil, nil, nil, nil, nil, 149, 119, 36, 37, 38, 39, 40, 41, 42, 43, 117, 118, 10, 11, 12, nil, nil, 10, 11, 12, nil, nil, nil, 13, nil, nil, 17, 24, 25, 106, 26, 27, 28, 29, nil, 14, 10, 11, 12, nil, nil, nil, nil, nil, nil, nil, nil, 13, nil, nil, 17, 24, 25, nil, 26, 27, 28, 29, nil, 14 ] racc_action_check = [ 13, 13, 13, 56, 178, 176, 56, 178, 176, 193, 68, 193, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 51, 51, 51, 84, 13, 59, 59, 59, 91, 91, 83, 112, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 57, 57, 57, 105, 51, 116, 79, 124, 77, 130, 133, 74, 138, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 199, 199, 199, 57, 71, 199, 90, 67, 199, 144, 65, 199, 64, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 166, 166, 166, 63, 154, 166, 62, 61, 166, 166, 103, 166, 58, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 136, 136, 136, 101, 99, 136, 32, 94, 136, 30, 17, 136, 187, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 191, 191, 191, 189, 1, 191, 95, 139, 191, nil, nil, 191, nil, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 182, 182, 182, nil, nil, 182, nil, nil, 182, 182, nil, 182, nil, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 150, 150, 150, nil, nil, nil, nil, nil, 150, nil, nil, nil, nil, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 26, 26, 26, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 24, 24, 24, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 177, 177, 177, nil, nil, nil, nil, nil, 177, nil, nil, nil, nil, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 185, 185, 185, nil, nil, nil, nil, nil, nil, nil, nil, nil, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 173, 173, 173, nil, nil, nil, nil, nil, 173, nil, nil, nil, nil, 173, 173, 173, 173, 173, 173, 173, 173, 173, 173, 173, 173, 173, 14, 14, 14, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 172, 172, 172, nil, 172, nil, nil, nil, nil, nil, nil, nil, nil, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 167, 167, 167, nil, nil, nil, nil, nil, nil, nil, nil, nil, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 8, 8, 8, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 165, 165, 165, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 153, 153, 153, nil, nil, nil, nil, nil, 153, nil, nil, nil, nil, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 25, 25, 25, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 147, 147, 147, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 143, 143, 143, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 141, 141, 141, nil, nil, nil, nil, nil, nil, nil, nil, nil, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 89, 89, 89, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 72, 72, 72, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 73, 73, 73, nil, 73, nil, nil, nil, nil, nil, nil, nil, nil, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 97, 97, 97, nil, 97, nil, nil, nil, nil, nil, nil, nil, nil, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 76, 76, 76, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 126, 126, 126, nil, nil, nil, nil, nil, nil, nil, nil, nil, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 78, 78, 78, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 108, 108, 108, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 80, 80, 80, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 114, 114, 114, nil, nil, nil, nil, nil, nil, nil, nil, nil, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 111, 111, 111, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 111, 109, 109, 109, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 85, 85, 85, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 86, 86, 86, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 87, 87, 87, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 93, 93, 93, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 88, 88, 88, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 123, 123, 123, nil, nil, nil, nil, nil, nil, nil, nil, nil, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 3, 3, 3, nil, nil, 81, 81, 81, nil, nil, nil, 3, nil, nil, 3, 3, 3, 81, 3, 3, 3, 3, nil, 3, 0, 0, 0, nil, nil, nil, nil, nil, nil, nil, nil, 0, nil, nil, 0, 0, 0, nil, 0, 0, 0, 0, nil, 0 ] racc_action_pointer = [ 1203, 169, nil, 1179, nil, nil, nil, nil, 533, nil, nil, nil, nil, -2, 455, nil, nil, 133, nil, nil, nil, nil, nil, nil, 351, 611, 247, 273, 299, 325, 145, nil, 137, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 24, nil, nil, nil, nil, -2, 50, 104, 29, nil, 95, 100, 98, 77, 75, nil, 54, 3, nil, nil, 51, 741, 767, 32, nil, 819, 29, 871, 45, 923, 1184, nil, 28, 16, 1027, 1053, 1079, 1131, 715, 71, 28, nil, 1105, 130, 166, nil, 793, nil, 132, nil, 134, nil, 86, nil, 24, nil, nil, 897, 1001, nil, 975, 32, nil, 949, nil, 24, nil, nil, nil, nil, nil, nil, 1155, 51, nil, 845, nil, nil, nil, 53, nil, nil, 31, nil, nil, 134, nil, 51, 159, nil, 689, nil, 663, 79, nil, nil, 637, nil, nil, 221, nil, nil, 585, 98, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 559, 105, 507, nil, nil, nil, nil, 481, 429, nil, nil, -4, 377, -5, nil, nil, nil, 192, nil, nil, 403, nil, 140, nil, 159, nil, 163, nil, 0, nil, nil, nil, nil, nil, 76, nil, nil, nil ] racc_action_default = [ -126, -126, -1, -2, -3, -5, -6, -7, -13, -9, -10, -11, -12, -126, -126, -96, -97, -126, -102, -103, -104, -105, -106, -107, -126, -126, -126, -126, -126, -126, -126, -4, -15, -14, -36, -37, -38, -39, -40, -41, -42, -43, -44, -45, -46, -47, -48, -49, -50, -51, -25, -126, -29, -31, -32, -33, -61, -87, -126, -126, -108, -110, -126, -126, -126, -126, 203, -87, -126, -26, -30, -87, -126, -126, -88, -89, -126, -87, -126, -126, -126, -126, -99, -126, -126, -126, -126, -126, -126, -126, -126, -126, -17, -126, -27, -61, -62, -126, -64, -126, -90, -61, -92, -87, -94, -87, -98, -100, -126, -126, -57, -111, -115, -118, -126, -121, -123, -52, -53, -54, -55, -56, -59, -126, -126, -113, -126, -8, -16, -18, -126, -28, -34, -87, -63, -65, -126, -91, -126, -126, -101, -126, -58, -126, -126, -119, -120, -126, -60, -124, -126, -114, -125, -126, -27, -66, -67, -68, -69, -70, -71, -72, -73, -74, -75, -126, -126, -126, -86, -93, -95, -109, -126, -126, -122, -20, -23, -126, -23, -35, -76, -77, -126, -79, -81, -126, -83, -126, -116, -117, -21, -126, -112, -126, -19, -78, -80, -82, -84, -126, -24, -22, -85 ] racc_goto_table = [ 8, 132, 121, 8, 126, 155, 33, 151, 52, 82, 122, 56, 58, 176, 145, 98, 178, 71, 79, 92, 77, 1, 60, 61, 62, 63, 64, 65, 90, 114, 123, 107, 94, 104, 97, 183, 189, 121, 102, 135, 193, 145, 129, 105, 127, 148, 70, 186, 131, 56, 121, 196, 141, 151, 4, 111, 133, 31, 172, 83, 200, 179, 137, 182, 138, 198, 139, 192, 202, 194, 95, 99, 185, 51, 101, 100, 103, 81, 91, 84, 121, 83, 67, 110, 32, 115, 3, 124, 120, 144, 2, 130, 169, 170, 154, 99, 121, 116, nil, nil, nil, nil, nil, nil, nil, 121, 140, nil, 131, 142, nil, nil, nil, 121, nil, nil, nil, nil, nil, nil, nil, nil, nil, 120, 124, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 120, nil, nil, nil, nil, 124, nil, nil, nil, 174, nil, nil, 175, nil, nil, 175, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 180, nil, 187, 120, nil, nil, nil, 124, 175, nil, nil, nil, 175, nil, nil, nil, nil, nil, nil, 120, 187, nil, nil, nil, nil, nil, nil, nil, 120, nil, nil, nil, nil, nil, nil, nil, 120 ] racc_goto_check = [ 8, 20, 27, 8, 55, 18, 13, 54, 21, 45, 28, 13, 13, 16, 57, 32, 16, 25, 11, 15, 26, 1, 13, 13, 13, 13, 13, 13, 11, 53, 30, 45, 11, 12, 31, 18, 16, 27, 11, 32, 16, 57, 15, 26, 12, 28, 21, 39, 12, 13, 27, 18, 53, 54, 4, 29, 25, 4, 55, 8, 18, 20, 25, 37, 11, 39, 11, 17, 18, 17, 13, 13, 38, 19, 13, 41, 13, 44, 14, 52, 27, 8, 10, 13, 9, 13, 3, 13, 8, 56, 2, 13, 12, 12, 11, 13, 27, 58, nil, nil, nil, nil, nil, nil, nil, 27, 13, nil, 12, 13, nil, nil, nil, 27, nil, nil, nil, nil, nil, nil, nil, nil, nil, 8, 13, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 8, nil, nil, nil, nil, 13, nil, nil, nil, 13, nil, nil, 13, nil, nil, 13, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 13, nil, 13, 8, nil, nil, nil, 13, 13, nil, nil, nil, 13, nil, nil, nil, nil, nil, nil, 8, 13, nil, nil, nil, nil, nil, nil, nil, 8, nil, nil, nil, nil, nil, nil, nil, 8 ] racc_goto_pointer = [ nil, 21, 90, 86, 54, nil, nil, nil, 0, 76, 50, -39, -46, -2, 10, -49, -137, -109, -131, 60, -93, -5, nil, nil, nil, -39, -37, -86, -78, -30, -58, -39, -58, nil, nil, nil, nil, -103, -95, -120, nil, 1, nil, nil, 18, -50, nil, nil, nil, nil, nil, nil, 18, -57, -119, -85, -23, -100, 10 ] racc_goto_default = [ nil, nil, nil, nil, nil, 5, 6, 7, 48, nil, nil, nil, 9, 112, nil, nil, nil, nil, nil, nil, nil, nil, 53, 54, 55, nil, 34, 49, 168, nil, nil, nil, nil, 161, 162, 163, 164, nil, nil, nil, 74, 75, 15, 16, nil, nil, 18, 19, 20, 21, 22, 23, nil, nil, 125, nil, nil, 113, nil ] racc_reduce_table = [ 0, 0, :racc_error, 1, 35, :_reduce_none, 1, 36, :_reduce_2, 1, 37, :_reduce_3, 2, 37, :_reduce_4, 1, 38, :_reduce_none, 1, 38, :_reduce_none, 1, 38, :_reduce_none, 5, 39, :_reduce_8, 1, 39, :_reduce_9, 1, 42, :_reduce_none, 1, 42, :_reduce_none, 1, 42, :_reduce_none, 0, 43, :_reduce_13, 1, 43, :_reduce_none, 0, 44, :_reduce_15, 3, 44, :_reduce_16, 1, 48, :_reduce_17, 2, 48, :_reduce_18, 5, 49, :_reduce_19, 1, 50, :_reduce_20, 2, 50, :_reduce_21, 3, 50, :_reduce_22, 0, 51, :_reduce_23, 2, 51, :_reduce_24, 2, 46, :_reduce_25, 3, 46, :_reduce_26, 0, 54, :_reduce_27, 1, 54, :_reduce_28, 1, 53, :_reduce_29, 2, 53, :_reduce_30, 1, 55, :_reduce_none, 1, 55, :_reduce_none, 1, 55, :_reduce_none, 4, 56, :_reduce_34, 6, 56, :_reduce_35, 1, 47, :_reduce_none, 1, 47, :_reduce_none, 1, 61, :_reduce_none, 1, 61, :_reduce_none, 1, 61, :_reduce_none, 1, 61, :_reduce_none, 1, 61, :_reduce_none, 1, 61, :_reduce_none, 1, 61, :_reduce_none, 1, 61, :_reduce_none, 1, 60, :_reduce_none, 1, 60, :_reduce_none, 1, 60, :_reduce_none, 1, 60, :_reduce_none, 1, 60, :_reduce_none, 1, 60, :_reduce_none, 1, 62, :_reduce_none, 1, 62, :_reduce_none, 1, 62, :_reduce_none, 1, 62, :_reduce_none, 1, 62, :_reduce_none, 1, 63, :_reduce_57, 2, 63, :_reduce_58, 1, 64, :_reduce_59, 2, 64, :_reduce_60, 0, 59, :_reduce_61, 2, 59, :_reduce_62, 3, 59, :_reduce_63, 1, 65, :_reduce_64, 2, 65, :_reduce_65, 3, 66, :_reduce_66, 1, 52, :_reduce_67, 1, 52, :_reduce_68, 1, 52, :_reduce_69, 1, 52, :_reduce_70, 1, 52, :_reduce_71, 1, 52, :_reduce_none, 1, 52, :_reduce_none, 1, 52, :_reduce_none, 1, 52, :_reduce_none, 2, 67, :_reduce_76, 2, 68, :_reduce_77, 3, 68, :_reduce_78, 1, 71, :_reduce_79, 2, 71, :_reduce_80, 2, 69, :_reduce_81, 3, 69, :_reduce_82, 1, 72, :_reduce_83, 2, 72, :_reduce_84, 3, 73, :_reduce_85, 1, 70, :_reduce_86, 0, 45, :_reduce_87, 1, 45, :_reduce_none, 1, 74, :_reduce_89, 2, 74, :_reduce_90, 3, 75, :_reduce_91, 3, 57, :_reduce_92, 5, 58, :_reduce_93, 3, 58, :_reduce_94, 6, 40, :_reduce_95, 1, 41, :_reduce_none, 1, 41, :_reduce_none, 4, 76, :_reduce_98, 1, 78, :_reduce_none, 2, 78, :_reduce_100, 3, 79, :_reduce_101, 1, 77, :_reduce_none, 1, 77, :_reduce_none, 1, 77, :_reduce_none, 1, 77, :_reduce_none, 1, 77, :_reduce_none, 1, 77, :_reduce_none, 2, 80, :_reduce_108, 6, 81, :_reduce_109, 0, 86, :_reduce_110, 2, 86, :_reduce_111, 4, 88, :_reduce_112, 1, 89, :_reduce_113, 2, 89, :_reduce_114, 0, 90, :_reduce_115, 3, 90, :_reduce_116, 4, 91, :_reduce_117, 1, 87, :_reduce_118, 2, 87, :_reduce_119, 5, 82, :_reduce_120, 1, 92, :_reduce_121, 3, 92, :_reduce_122, 4, 83, :_reduce_123, 5, 84, :_reduce_124, 5, 85, :_reduce_125 ] racc_reduce_n = 126 racc_shift_n = 203 racc_token_table = { false => 0, :error => 1, :QUERY => 2, :MUTATION => 3, :SUBSCRIPTION => 4, :RPAREN => 5, :LPAREN => 6, :VAR_SIGN => 7, :COLON => 8, :BANG => 9, :RBRACKET => 10, :LBRACKET => 11, :EQUALS => 12, :RCURLY => 13, :LCURLY => 14, :ON => 15, :SCHEMA => 16, :SCALAR => 17, :TYPE => 18, :IMPLEMENTS => 19, :INTERFACE => 20, :UNION => 21, :ENUM => 22, :INPUT => 23, :IDENTIFIER => 24, :FRAGMENT => 25, :TRUE => 26, :FALSE => 27, :FLOAT => 28, :INT => 29, :STRING => 30, :DIR_SIGN => 31, :ELLIPSIS => 32, :PIPE => 33 } racc_nt_base = 34 racc_use_result_var = true Racc_arg = [ racc_action_table, racc_action_check, racc_action_default, racc_action_pointer, racc_goto_table, racc_goto_check, racc_goto_default, racc_goto_pointer, racc_nt_base, racc_reduce_table, racc_token_table, racc_shift_n, racc_reduce_n, racc_use_result_var ] Racc_token_to_s_table = [ "$end", "error", "QUERY", "MUTATION", "SUBSCRIPTION", "RPAREN", "LPAREN", "VAR_SIGN", "COLON", "BANG", "RBRACKET", "LBRACKET", "EQUALS", "RCURLY", "LCURLY", "ON", "SCHEMA", "SCALAR", "TYPE", "IMPLEMENTS", "INTERFACE", "UNION", "ENUM", "INPUT", "IDENTIFIER", "FRAGMENT", "TRUE", "FALSE", "FLOAT", "INT", "STRING", "DIR_SIGN", "ELLIPSIS", "PIPE", "$start", "target", "document", "definitions_list", "definition", "operation_definition", "fragment_definition", "type_system_definition", "operation_type", "operation_name_opt", "variable_definitions_opt", "directives_list_opt", "selection_set", "name", "variable_definitions_list", "variable_definition", "type", "default_value_opt", "input_value", "selection_list", "selection_set_opt", "selection", "field", "fragment_spread", "inline_fragment", "arguments_opt", "name_without_on", "schema_keyword", "enum_name", "name_list", "enum_name_list", "arguments_list", "argument", "variable", "list_value", "object_value", "enum_value", "list_value_list", "object_value_list", "object_value_field", "directives_list", "directive", "schema_definition", "type_definition", "operation_type_definition_list", "operation_type_definition", "scalar_type_definition", "object_type_definition", "interface_type_definition", "union_type_definition", "enum_type_definition", "input_object_type_definition", "implements_opt", "field_definition_list", "input_value_definition", "input_value_definition_list", "arguments_definitions_opt", "field_definition", "union_members" ] Racc_debug_parser = false ##### State transition tables end ##### # reduce 0 omitted # reduce 1 omitted module_eval(<<'.,.,', 'parser.y', 4) def _reduce_2(val, _values, result) return make_node(:Document, definitions: val[0]) result end .,., module_eval(<<'.,.,', 'parser.y', 7) def _reduce_3(val, _values, result) return [val[0]] result end .,., module_eval(<<'.,.,', 'parser.y', 8) def _reduce_4(val, _values, result) val[0] << val[1] result end .,., # reduce 5 omitted # reduce 6 omitted # reduce 7 omitted module_eval(<<'.,.,', 'parser.y', 17) def _reduce_8(val, _values, result) return make_node( :OperationDefinition, { operation_type: val[0], name: val[1], variables: val[2], directives: val[3], selections: val[4], position_source: val[0], } ) result end .,., module_eval(<<'.,.,', 'parser.y', 29) def _reduce_9(val, _values, result) return make_node( :OperationDefinition, { operation_type: "query", selections: val[0], } ) result end .,., # reduce 10 omitted # reduce 11 omitted # reduce 12 omitted module_eval(<<'.,.,', 'parser.y', 43) def _reduce_13(val, _values, result) return nil result end .,., # reduce 14 omitted module_eval(<<'.,.,', 'parser.y', 47) def _reduce_15(val, _values, result) return [] result end .,., module_eval(<<'.,.,', 'parser.y', 48) def _reduce_16(val, _values, result) return val[1] result end .,., module_eval(<<'.,.,', 'parser.y', 51) def _reduce_17(val, _values, result) return [val[0]] result end .,., module_eval(<<'.,.,', 'parser.y', 52) def _reduce_18(val, _values, result) val[0] << val[1] result end .,., module_eval(<<'.,.,', 'parser.y', 56) def _reduce_19(val, _values, result) return make_node(:VariableDefinition, { name: val[1], type: val[3], default_value: val[4], position_source: val[0], }) result end .,., module_eval(<<'.,.,', 'parser.y', 65) def _reduce_20(val, _values, result) return make_node(:TypeName, name: val[0]) result end .,., module_eval(<<'.,.,', 'parser.y', 66) def _reduce_21(val, _values, result) return make_node(:NonNullType, of_type: val[0]) result end .,., module_eval(<<'.,.,', 'parser.y', 67) def _reduce_22(val, _values, result) return make_node(:ListType, of_type: val[1]) result end .,., module_eval(<<'.,.,', 'parser.y', 70) def _reduce_23(val, _values, result) return nil result end .,., module_eval(<<'.,.,', 'parser.y', 71) def _reduce_24(val, _values, result) return val[1] result end .,., module_eval(<<'.,.,', 'parser.y', 74) def _reduce_25(val, _values, result) return [] result end .,., module_eval(<<'.,.,', 'parser.y', 75) def _reduce_26(val, _values, result) return val[1] result end .,., module_eval(<<'.,.,', 'parser.y', 78) def _reduce_27(val, _values, result) return [] result end .,., module_eval(<<'.,.,', 'parser.y', 79) def _reduce_28(val, _values, result) return val[0] result end .,., module_eval(<<'.,.,', 'parser.y', 82) def _reduce_29(val, _values, result) return [result] result end .,., module_eval(<<'.,.,', 'parser.y', 83) def _reduce_30(val, _values, result) val[0] << val[1] result end .,., # reduce 31 omitted # reduce 32 omitted # reduce 33 omitted module_eval(<<'.,.,', 'parser.y', 92) def _reduce_34(val, _values, result) return make_node( :Field, { name: val[0], arguments: val[1], directives: val[2], selections: val[3], position_source: val[0], } ) result end .,., module_eval(<<'.,.,', 'parser.y', 103) def _reduce_35(val, _values, result) return make_node( :Field, { alias: val[0], name: val[2], arguments: val[3], directives: val[4], selections: val[5], position_source: val[0], } ) result end .,., # reduce 36 omitted # reduce 37 omitted # reduce 38 omitted # reduce 39 omitted # reduce 40 omitted # reduce 41 omitted # reduce 42 omitted # reduce 43 omitted # reduce 44 omitted # reduce 45 omitted # reduce 46 omitted # reduce 47 omitted # reduce 48 omitted # reduce 49 omitted # reduce 50 omitted # reduce 51 omitted # reduce 52 omitted # reduce 53 omitted # reduce 54 omitted # reduce 55 omitted # reduce 56 omitted module_eval(<<'.,.,', 'parser.y', 145) def _reduce_57(val, _values, result) return [val[0].to_s] result end .,., module_eval(<<'.,.,', 'parser.y', 146) def _reduce_58(val, _values, result) val[0] << val[1].to_s result end .,., module_eval(<<'.,.,', 'parser.y', 149) def _reduce_59(val, _values, result) return [val[0].to_s] result end .,., module_eval(<<'.,.,', 'parser.y', 150) def _reduce_60(val, _values, result) return val[0] << val[1].to_s result end .,., module_eval(<<'.,.,', 'parser.y', 153) def _reduce_61(val, _values, result) return [] result end .,., module_eval(<<'.,.,', 'parser.y', 154) def _reduce_62(val, _values, result) return [] result end .,., module_eval(<<'.,.,', 'parser.y', 155) def _reduce_63(val, _values, result) return val[1] result end .,., module_eval(<<'.,.,', 'parser.y', 158) def _reduce_64(val, _values, result) return [val[0]] result end .,., module_eval(<<'.,.,', 'parser.y', 159) def _reduce_65(val, _values, result) val[0] << val[1] result end .,., module_eval(<<'.,.,', 'parser.y', 162) def _reduce_66(val, _values, result) return make_node(:Argument, name: val[0], value: val[2], position_source: val[0]) result end .,., module_eval(<<'.,.,', 'parser.y', 165) def _reduce_67(val, _values, result) return val[0].to_f result end .,., module_eval(<<'.,.,', 'parser.y', 166) def _reduce_68(val, _values, result) return val[0].to_i result end .,., module_eval(<<'.,.,', 'parser.y', 167) def _reduce_69(val, _values, result) return val[0].to_s result end .,., module_eval(<<'.,.,', 'parser.y', 168) def _reduce_70(val, _values, result) return true result end .,., module_eval(<<'.,.,', 'parser.y', 169) def _reduce_71(val, _values, result) return false result end .,., # reduce 72 omitted # reduce 73 omitted # reduce 74 omitted # reduce 75 omitted module_eval(<<'.,.,', 'parser.y', 175) def _reduce_76(val, _values, result) return make_node(:VariableIdentifier, name: val[1], position_source: val[0]) result end .,., module_eval(<<'.,.,', 'parser.y', 178) def _reduce_77(val, _values, result) return [] result end .,., module_eval(<<'.,.,', 'parser.y', 179) def _reduce_78(val, _values, result) return val[1] result end .,., module_eval(<<'.,.,', 'parser.y', 182) def _reduce_79(val, _values, result) return [val[0]] result end .,., module_eval(<<'.,.,', 'parser.y', 183) def _reduce_80(val, _values, result) val[0] << val[1] result end .,., module_eval(<<'.,.,', 'parser.y', 186) def _reduce_81(val, _values, result) return make_node(:InputObject, arguments: [], position_source: val[0]) result end .,., module_eval(<<'.,.,', 'parser.y', 187) def _reduce_82(val, _values, result) return make_node(:InputObject, arguments: val[1], position_source: val[0]) result end .,., module_eval(<<'.,.,', 'parser.y', 190) def _reduce_83(val, _values, result) return [val[0]] result end .,., module_eval(<<'.,.,', 'parser.y', 191) def _reduce_84(val, _values, result) val[0] << val[1] result end .,., module_eval(<<'.,.,', 'parser.y', 194) def _reduce_85(val, _values, result) return make_node(:Argument, name: val[0], value: val[2], position_source: val[0]) result end .,., module_eval(<<'.,.,', 'parser.y', 196) def _reduce_86(val, _values, result) return make_node(:Enum, name: val[0], position_source: val[0]) result end .,., module_eval(<<'.,.,', 'parser.y', 199) def _reduce_87(val, _values, result) return [] result end .,., # reduce 88 omitted module_eval(<<'.,.,', 'parser.y', 203) def _reduce_89(val, _values, result) return [val[0]] result end .,., module_eval(<<'.,.,', 'parser.y', 204) def _reduce_90(val, _values, result) val[0] << val[1] result end .,., module_eval(<<'.,.,', 'parser.y', 206) def _reduce_91(val, _values, result) return make_node(:Directive, name: val[1], arguments: val[2], position_source: val[0]) result end .,., module_eval(<<'.,.,', 'parser.y', 209) def _reduce_92(val, _values, result) return make_node(:FragmentSpread, name: val[1], directives: val[2], position_source: val[0]) result end .,., module_eval(<<'.,.,', 'parser.y', 213) def _reduce_93(val, _values, result) return make_node(:InlineFragment, { type: val[2], directives: val[3], selections: val[4], position_source: val[0] }) result end .,., module_eval(<<'.,.,', 'parser.y', 221) def _reduce_94(val, _values, result) return make_node(:InlineFragment, { type: nil, directives: val[1], selections: val[2], position_source: val[0] }) result end .,., module_eval(<<'.,.,', 'parser.y', 231) def _reduce_95(val, _values, result) return make_node(:FragmentDefinition, { name: val[1], type: val[3], directives: val[4], selections: val[5], position_source: val[0], } ) result end .,., # reduce 96 omitted # reduce 97 omitted module_eval(<<'.,.,', 'parser.y', 247) def _reduce_98(val, _values, result) return make_node(:SchemaDefinition, val[2]) result end .,., # reduce 99 omitted module_eval(<<'.,.,', 'parser.y', 251) def _reduce_100(val, _values, result) return val[0].merge(val[1]) result end .,., module_eval(<<'.,.,', 'parser.y', 254) def _reduce_101(val, _values, result) return { val[0].to_s.to_sym => val[2] } result end .,., # reduce 102 omitted # reduce 103 omitted # reduce 104 omitted # reduce 105 omitted # reduce 106 omitted # reduce 107 omitted module_eval(<<'.,.,', 'parser.y', 264) def _reduce_108(val, _values, result) return make_node(:ScalarTypeDefinition, name: val[1]) result end .,., module_eval(<<'.,.,', 'parser.y', 268) def _reduce_109(val, _values, result) return make_node(:ObjectTypeDefinition, name: val[1], interfaces: val[2], fields: val[4]) result end .,., module_eval(<<'.,.,', 'parser.y', 272) def _reduce_110(val, _values, result) return [] result end .,., module_eval(<<'.,.,', 'parser.y', 273) def _reduce_111(val, _values, result) return val[1] result end .,., module_eval(<<'.,.,', 'parser.y', 277) def _reduce_112(val, _values, result) return make_node(:InputValueDefinition, name: val[0], type: val[2], default_value: val[3]) result end .,., module_eval(<<'.,.,', 'parser.y', 281) def _reduce_113(val, _values, result) return [val[0]] result end .,., module_eval(<<'.,.,', 'parser.y', 282) def _reduce_114(val, _values, result) val[0] << val[1] result end .,., module_eval(<<'.,.,', 'parser.y', 285) def _reduce_115(val, _values, result) return [] result end .,., module_eval(<<'.,.,', 'parser.y', 286) def _reduce_116(val, _values, result) return val[1] result end .,., module_eval(<<'.,.,', 'parser.y', 290) def _reduce_117(val, _values, result) return make_node(:FieldDefinition, name: val[0], arguments: val[1], type: val[3]) result end .,., module_eval(<<'.,.,', 'parser.y', 294) def _reduce_118(val, _values, result) return [val[0]] result end .,., module_eval(<<'.,.,', 'parser.y', 295) def _reduce_119(val, _values, result) val[0] << val[1] result end .,., module_eval(<<'.,.,', 'parser.y', 299) def _reduce_120(val, _values, result) return make_node(:InterfaceTypeDefinition, name: val[1], fields: val[3]) result end .,., module_eval(<<'.,.,', 'parser.y', 303) def _reduce_121(val, _values, result) return [val[0].to_s] result end .,., module_eval(<<'.,.,', 'parser.y', 304) def _reduce_122(val, _values, result) val[0] << val[2].to_s result end .,., module_eval(<<'.,.,', 'parser.y', 308) def _reduce_123(val, _values, result) return make_node(:UnionTypeDefinition, name: val[1], types: val[3]) result end .,., module_eval(<<'.,.,', 'parser.y', 313) def _reduce_124(val, _values, result) return make_node(:EnumTypeDefinition, name: val[1], values: val[3]) result end .,., module_eval(<<'.,.,', 'parser.y', 318) def _reduce_125(val, _values, result) return make_node(:InputObjectTypeDefinition, name: val[1], fields: val[3]) result end .,., def _reduce_none(val, _values, result) val[0] end end # class Parser end # module Language end # module GraphQL