Class: GraphQL::Language::Parser

Inherits:
Racc::Parser
  • Object
show all
Defined in:
lib/graphql/language/parser.rb

Constant Summary collapse

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",
"LCURLY",
"RCURLY",
"QUERY",
"MUTATION",
"SUBSCRIPTION",
"LPAREN",
"RPAREN",
"VAR_SIGN",
"COLON",
"BANG",
"LBRACKET",
"RBRACKET",
"EQUALS",
"ON",
"SCHEMA",
"SCALAR",
"TYPE",
"IMPLEMENTS",
"INTERFACE",
"UNION",
"ENUM",
"INPUT",
"DIRECTIVE",
"IDENTIFIER",
"FRAGMENT",
"TRUE",
"FALSE",
"FLOAT",
"INT",
"STRING",
"NULL",
"DIR_SIGN",
"ELLIPSIS",
"EXTEND",
"AMP",
"PIPE",
"$start",
"target",
"document",
"definitions_list",
"definition",
"executable_definition",
"type_system_definition",
"type_system_extension",
"operation_definition",
"fragment_definition",
"operation_type",
"operation_name_opt",
"variable_definitions_opt",
"directives_list_opt",
"selection_set",
"selection_list",
"name",
"variable_definitions_list",
"variable_definition",
"type",
"default_value_opt",
"nullable_type",
"literal_value",
"selection_set_opt",
"selection",
"field",
"fragment_spread",
"inline_fragment",
"arguments_opt",
"name_without_on",
"schema_keyword",
"enum_name",
"enum_value_definition",
"description_opt",
"enum_value_definitions",
"arguments_list",
"argument",
"input_value",
"null_value",
"enum_value",
"list_value",
"object_literal_value",
"variable",
"object_value",
"list_value_list",
"object_value_list",
"object_value_field",
"object_literal_value_list",
"object_literal_value_field",
"directives_list",
"directive",
"fragment_name_opt",
"schema_definition",
"type_definition",
"directive_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",
"schema_extension",
"type_extension",
"scalar_type_extension",
"object_type_extension",
"interface_type_extension",
"union_type_extension",
"enum_type_extension",
"input_object_type_extension",
"implements",
"field_definition_list",
"implements_opt",
"union_members",
"input_value_definition_list",
"description",
"interfaces_list",
"legacy_interfaces_list",
"input_value_definition",
"arguments_definitions_opt",
"field_definition",
"directive_locations" ]
Racc_debug_parser =
false

Instance Method Summary collapse

Instance Method Details

#_reduce_none(val, _values, result) ⇒ Object



1968
1969
1970
# File 'lib/graphql/language/parser.rb', line 1968

def _reduce_none(val, _values, result)
  val[0]
end