Class: Rubex::Parser

Inherits:
Racc::Parser
  • Object
show all
Defined in:
lib/rubex/parser.racc.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",
"kDEF",
"kEND",
"kRETURN",
"kIF",
"kELSIF",
"kELSE",
"kTHEN",
"kSTATIC_ARRAY",
"kFOR",
"kDOT_EACH",
"kDO",
"kTRUE",
"kFALSE",
"kNIL",
"kSTRUCT",
"kUNION",
"kALIAS",
"kLIB",
"kCFUNC",
"kSELF",
"kNULL",
"kFWD",
"kATTACH",
"kBREAK",
"kBLOCK_GIVEN",
"kBEGIN",
"kRESCUE",
"kENSURE",
"kWHILE",
"kCLASS",
"kDATA_VAR",
"kNO_GIL",
"kREQUIRE_RUBEX",
"kDTYPE_UINT",
"kDTYPE_LINT",
"kDTYPE_LLINT",
"kDTYPE_CHAR",
"kDTYPE_I8",
"kDTYPE_I16",
"kDTYPE_I32",
"kDTYPE_I64",
"kDTYPE_UI8",
"kDTYPE_UI16",
"kDTYPE_UI32",
"kDTYPE_UI64",
"kDTYPE_INT",
"kDTYPE_F32",
"kDTYPE_F64",
"kDTYPE_LF64",
"kDTYPE_ROBJ",
"kDTYPE_ULINT",
"kDTYPE_ULLINT",
"kDTYPE_VOID",
"kDTYPE_SIZE_T",
"kDTYPE_RB_STR",
"kDTYPE_UCHAR",
"kDTYPE_BOOL",
"tCUSTOM_DTYPE",
"kDTYPE_RB_ARR",
"kDTYPE_RB_HSH",
"tLPAREN",
"tRPAREN",
"tLSQUARE",
"tRSQUARE",
"tIDENTIFIER",
"tNL",
"tCOMMA",
"tSQUOTE",
"tSCOLON",
"EOF",
"tDOT",
"tQMARK",
"tSYMBOL",
"tLBRACE",
"tRBRACE",
"tCOLON",
"tCOLON2",
"tINSTANCE_VAR",
"tPLUS",
"tMINUS",
"tSTAR",
"tDIVIDE",
"tEXPO",
"tMODULUS",
"tASSIGN",
"tEQ",
"tLT",
"tLTEQ",
"tGT",
"tGTEQ",
"tANDOP",
"tOROP",
"tBANG",
"tOP_ASSIGN",
"tSTRING",
"kSIZEOF",
"tBIT_AND",
"tBIT_OR",
"tBIT_XOR",
"tBIT_LSHIFT",
"tBIT_RSHIFT",
"tBIT_NOT",
"tINTEGER",
"tFLOAT",
"tSINGLE_CHAR",
"ADDRESS_OF",
"TYPECAST",
"UMINUS",
"tNEQ",
"$start",
"program",
"opt_terms",
"top_compstmts",
"top_compstmt",
"terms",
"c_bindings",
"top_stmts",
"top_stmt",
"methods",
"klass",
"attached_klass",
"stmt",
"klass_stmts",
"klass_stmt",
"struct_or_union_def",
"alias_stmt",
"op_assign",
"forward_declaration",
"opt_inheritance",
"eol",
"dtype",
"opt_compilation_cmds",
"c_declarations",
"compilation_cmd",
"c_declaration",
"c_function_declaration_or_var_decl",
"opt_star",
"opt_c_func_arg_list",
"c_func_args",
"c_func_normal_arg",
"var_decl_stmts",
"var_decl_stmt",
"var_decls",
"normal_decl",
"ident_or_custom_dtype",
"aliased_type",
"opt_identifier",
"ruby_method",
"c_function",
"opt_singleton",
"f_name",
"f_opt_arglist",
"compstmt",
"opt_c_func_tags",
"stmts",
"var_decl_or_init",
"opt_expr",
"normal_init",
"expr",
"then",
"if_tail",
"for_expr",
"begin_block",
"no_gil_block",
"opt_begin_block_tails",
"opt_rescue_blocks",
"opt_else_block",
"opt_ensure_block",
"rescue_block",
"atomic_value",
"actual_for_expr",
"expr_value",
"lt_or_lteq",
"gt_or_gteq",
"opt_else",
"decls_or_inits",
"var_init",
"actual_normal_decl",
"array_ref",
"array_list",
"method_or_attr",
"literal",
"opt_eols",
"hash_data",
"hash_data_k_v",
"rocket",
"f_args",
"f_normal_arg",
"opt_default_value",
"actual_expr",
"typecast",
"expr_cmp",
"const_namespacing",
"command_opt_args",
"command_call",
"command_arg_list",
"opt_array_args",
"term",
"eols" ]
Racc_debug_parser =
false

Instance Method Summary collapse

Instance Method Details

#_reduce_none(val, _values, result) ⇒ Object



3200
3201
3202
# File 'lib/rubex/parser.racc.rb', line 3200

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