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",
"RPAREN",
"LPAREN",
"VAR_SIGN",
"COLON",
"BANG",
"RBRACKET",
"LBRACKET",
"EQUALS",
"RCURLY",
"LCURLY",
"ON",
"IDENTIFIER",
"FRAGMENT",
"TRUE",
"FALSE",
"FLOAT",
"INT",
"STRING",
"DIR_SIGN",
"ELLIPSIS",
"$start",
"target",
"document",
"definitions_list",
"definition",
"operation_definition",
"fragment_definition",
"name",
"operation_name_opt",
"variable_definitions_opt",
"directives_list_opt",
"selection_set",
"variable_definitions_list",
"variable_definition",
"variable_definition_type_name",
"variable_definition_default_value_opt",
"input_value",
"selection_list",
"selection_set_opt",
"selection",
"field",
"fragment_spread",
"inline_fragment",
"arguments_opt",
"name_without_on",
"arguments_list",
"argument",
"variable",
"list_value",
"object_value",
"enum_value",
"list_value_list",
"object_value_list",
"object_value_field",
"directives_list",
"directive" ]
Racc_debug_parser =
false

Instance Method Summary collapse

Instance Method Details

#_reduce_none(val, _values, result) ⇒ Object



849
850
851
# File 'lib/graphql/language/parser.rb', line 849

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