Class: RBS::Parser

Inherits:
Racc::Parser
  • Object
show all
Defined in:
lib/rbs/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",
"tUIDENT",
"tLIDENT",
"tNAMESPACE",
"tINTERFACEIDENT",
"tLKEYWORD",
"tUKEYWORD",
"tGLOBALIDENT",
"tIVAR",
"tCLASSVAR",
"tANNOTATION",
"tSTRING",
"tSYMBOL",
"tINTEGER",
"tWRITE_ATTR",
"kLPAREN",
"kRPAREN",
"kLBRACKET",
"kRBRACKET",
"kLBRACE",
"kRBRACE",
"kVOID",
"kNIL",
"kTRUE",
"kFALSE",
"kANY",
"kUNTYPED",
"kTOP",
"kBOT",
"kSELF",
"kSELFQ",
"kINSTANCE",
"kCLASS",
"kBOOL",
"kSINGLETON",
"kTYPE",
"kDEF",
"kMODULE",
"kSUPER",
"kPRIVATE",
"kPUBLIC",
"kALIAS",
"kCOLON",
"kCOLON2",
"kCOMMA",
"kBAR",
"kAMP",
"kHAT",
"kARROW",
"kQUESTION",
"kEXCLAMATION",
"kSTAR",
"kSTAR2",
"kFATARROW",
"kEQ",
"kDOT",
"kLT",
"kINTERFACE",
"kEND",
"kINCLUDE",
"kEXTEND",
"kATTRREADER",
"kATTRWRITER",
"kATTRACCESSOR",
"tOPERATOR",
"tQUOTEDMETHOD",
"tQUOTEDIDENT",
"kPREPEND",
"kEXTENSION",
"kINCOMPATIBLE",
"type_TYPE",
"type_SIGNATURE",
"type_METHODTYPE",
"tEOF",
"kOUT",
"kIN",
"kUNCHECKED",
"$start",
"target",
"type",
"eof",
"signatures",
"method_type",
"signature",
"type_decl",
"const_decl",
"global_decl",
"interface_decl",
"module_decl",
"class_decl",
"extension_decl",
"start_new_scope",
"start_merged_scope",
"annotations",
"class_name",
"type_params",
"extension_name",
"class_members",
"module_type_params",
"super_class",
"type_list",
"module_self_type",
"class_member",
"method_member",
"include_member",
"extend_member",
"prepend_member",
"var_type_member",
"attribute_member",
"alias_member",
"keyword",
"method_name",
"attr_var_opt",
"interface_name",
"interface_members",
"interface_member",
"qualified_name",
"attributes",
"method_kind",
"def_name",
"method_types",
"params_opt",
"block_opt",
"simple_type",
"params",
"function_type",
"method_name0",
"identifier_keywords",
"module_type_params0",
"module_type_param",
"type_param_check",
"type_param_variance",
"type_params0",
"namespace",
"record_type",
"record_fields",
"record_field",
"keyword_name",
"required_positional",
"optional_positional_params",
"optional_positional",
"rest_positional_param",
"rest_positional",
"trailing_positional_params",
"keyword_params",
"required_keyword",
"optional_keyword",
"rest_keyword",
"var_name_opt",
"simple_name" ]
Racc_debug_parser =
false

Instance Method Summary collapse

Instance Method Details

#_reduce_none(val, _values, result) ⇒ Object



2996
2997
2998
# File 'lib/rbs/parser.rb', line 2996

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