Class: AmberVM::Languages::ECMA_Fuku::Compiler

Inherits:
Racc::Parser
  • Object
show all
Defined in:
lib/amber/languages/ecma_fuku/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",
"\"!\"",
"\"~\"",
"\"++\"",
"\"--\"",
"KW_TYPEOF",
"\"*\"",
"\"/\"",
"\"%\"",
"\"+\"",
"\"-\"",
"\">>\"",
"\"<<\"",
"\">>>\"",
"\">\"",
"\"<\"",
"\">=\"",
"\"<=\"",
"\"==\"",
"\"===\"",
"\"!=\"",
"\"!==\"",
"\"&\"",
"\"^\"",
"\"|\"",
"\"&&\"",
"\"||\"",
"\"?\"",
"\":\"",
"\"=\"",
"\"+=\"",
"\"-=\"",
"\"<<=\"",
"\">>=\"",
"\">>>=\"",
"\"&=\"",
"\"^=\"",
"\"|=\"",
"\"*=\"",
"\"/=\"",
"\"%=\"",
"\",\"",
"FLOAT",
"INTEGER",
"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",
"seq",
"simple_stmt",
"exp",
"ass",
"simple_rhs",
"local_def",
"stmt",
"while_stmt",
"for_stmt",
"if_stmt",
"return_stmt",
"fun_def",
"block",
"literal",
"array",
"array_content",
"rhs",
"this",
"lhs",
"object",
"function_call",
"amber_core",
"variable",
"object_variable",
"array_variable",
"lhs_or_this",
"args",
"argument",
"arg_def",
"declaration",
"ass_list",
"empty_object",
"optional_statement",
"object_content",
"object_value",
"object_element" ]
Racc_debug_parser =
false

Instance Method Summary collapse

Instance Method Details

#_reduce_none(val, _values, result) ⇒ Object



1615
1616
1617
# File 'lib/amber/languages/ecma_fuku/compiler.rb', line 1615

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