Class: RVM::Languages::ECMA::Compiler

Inherits:
Racc::Parser
  • Object
show all
Defined in:
lib/rvm/languages/ecma/compiler.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",
"UMINUS",
"UPLUS",
"LNOT",
"BNOT",
"\"=\"",
"\"*\"",
"\"/\"",
"\"%\"",
"\"+\"",
"\"-\"",
"\">>\"",
"\"<<\"",
"\">>>\"",
"\">\"",
"\"<\"",
"\">=\"",
"\"<=\"",
"\"==\"",
"\"===\"",
"\"!=\"",
"\"!==\"",
"\"&\"",
"\"^\"",
"\"|\"",
"\"&&\"",
"\"||\"",
"\"?\"",
"\":\"",
"\"+=\"",
"\"-=\"",
"\"<<=\"",
"\">>=\"",
"\"&=\"",
"\"^=\"",
"\"|=\"",
"\",\"",
"NUMBER",
"IDENT",
"O_IDENT",
"KW_FUNCTION",
"KW_FOR",
"KW_IF",
"KW_ELSE",
"KW_WHILE",
"KW_DO",
"KW_VAR",
"KW_TRUE",
"KW_FALSE",
"KW_NULL",
"STRING",
"KW_RETURN",
"KW_NEW",
"KW_THIS",
"KW_CORE",
"SBRACKET_OPEN",
"SBRACKET_CLOSE",
"CBRACKET_OPEN",
"CBRACKET_CLOSE",
"\"(\"",
"\")\"",
"\";\"",
"\"++\"",
"\"--\"",
"\"!\"",
"\".\"",
"$start",
"target",
"root_seq",
"fun",
"args",
"root_stmt",
"stmt",
"fun_def",
"ident",
"block",
"arg_def",
"exp",
"declaration",
"ass",
"ass_list",
"seq",
"for",
"if",
"while",
"return",
"array",
"array_content",
"object",
"object_content",
"object_element",
"rvm_core",
"comp",
"objcall",
"const" ]
Racc_debug_parser =
false

Instance Method Summary collapse

Instance Method Details

#_reduce_none(val, _values, result) ⇒ Object



1346
1347
1348
# File 'lib/rvm/languages/ecma/compiler.rb', line 1346

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