Class: Myson::GeneratedParser

Inherits:
Racc::Parser
  • Object
show all
Defined in:
lib/myson/generated_parser.rb

Direct Known Subclasses

Parser

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",
"\" \"",
"\"\\t\"",
"\"\\n\"",
"\"\\r\"",
"\"n\"",
"\"u\"",
"\"l\"",
"\"t\"",
"\"r\"",
"\"e\"",
"\"f\"",
"\"a\"",
"\"s\"",
"\"-\"",
"\"0\"",
"\"1\"",
"\"2\"",
"\"3\"",
"\"4\"",
"\"5\"",
"\"6\"",
"\"7\"",
"\"8\"",
"\"9\"",
"\".\"",
"\"+\"",
"\"\\\"\"",
"\"\\\\\"",
"\"b\"",
"\"c\"",
"\"d\"",
"\"A\"",
"\"B\"",
"\"C\"",
"\"D\"",
"\"E\"",
"\"F\"",
"OTHER",
"\",\"",
"\"[\"",
"\"]\"",
"\"{\"",
"\"}\"",
"\":\"",
"$start",
"start",
"document",
"empty",
"os",
"opt_token_separator",
"token_separator",
"token_separator_chars",
"token_separator_char",
"whitespace_char",
"newline_char",
"object",
"array",
"primitive",
"literal",
"null",
"boolean",
"number",
"string",
"integer",
"float",
"positive_integer",
"integer_digits",
"non_zero_digit",
"digits_opt",
"digit",
"digits",
"positive_float",
"float_digits",
"simple_float_digits",
"exp_float_digits",
"float_exp_digits",
"string_items_opt",
"string_items",
"string_item",
"escaped_char",
"escaped_unicode_char",
"slash_and_char",
"unescaped_char",
"hexa_digit",
"ignore_slash_char",
"known_ignore_slash_char",
"known_unescaped_char",
"array_items",
"array_item",
"comma_array_items",
"comma_array_item",
"object_items",
"object_item",
"comma_object_items",
"comma_object_item" ]
Racc_debug_parser =
true

Instance Method Summary collapse

Instance Method Details

#_reduce_none(val, _values, result) ⇒ Object



1144
1145
1146
# File 'lib/myson/generated_parser.rb', line 1144

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