Class: Rubic::Parser

Inherits:
Racc::Parser
  • Object
show all
Defined in:
lib/rubic/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",
"\"(\"",
"KW_AND",
"\")\"",
"KW_OR",
"IDENT",
"STRING",
"KW_DEFINE",
"KW_COND",
"KW_ELSE",
"KW_IF",
"KW_LAMBDA",
"KW_LET",
"KW_QUOTE",
"\"'\"",
"KW_SET_BANG",
"KW_BEGIN",
"NUM_END",
"\"@\"",
"\"+\"",
"\"i\"",
"\"-\"",
"\"/\"",
"\"0\"",
"\"1\"",
"NUM_PREFIX_B",
"\"2\"",
"\"3\"",
"\"4\"",
"\"5\"",
"\"6\"",
"\"7\"",
"NUM_PREFIX_O",
"\".\"",
"\"8\"",
"\"9\"",
"NUM_PREFIX_D",
"\"a\"",
"\"b\"",
"\"c\"",
"\"d\"",
"\"e\"",
"\"f\"",
"NUM_PREFIX_X",
"U_PLUS",
"U_MINUS",
"NUM_PREFIX_E",
"NUM_PREFIX_I",
"$start",
"program",
"opt_seq",
"expr",
"seq",
"number",
"define",
"cond",
"if",
"lambda",
"let",
"quote",
"set",
"begin",
"params",
"clauses",
"clause",
"defs",
"binary",
"octal",
"decimal",
"hexadecimal",
"b_prefix",
"b_complex",
"b_real",
"b_ureal",
"sign",
"b_uint",
"b_chars",
"b_char",
"exactness",
"o_prefix",
"o_complex",
"o_real",
"o_ureal",
"o_uint",
"o_chars",
"o_char",
"d_prefix",
"d_complex",
"d_real",
"d_ureal",
"d_uint",
"d_decimal",
"suffix",
"d_chars",
"d_char",
"h_prefix",
"h_complex",
"h_real",
"h_ureal",
"h_uint",
"h_chars",
"h_char",
"exponent_marker" ]
Racc_debug_parser =
false

Instance Method Summary collapse

Instance Method Details

#_reduce_none(val, _values) ⇒ Object

reduce 169 omitted



1481
1482
1483
# File 'lib/rubic/parser.rb', line 1481

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