Class: Fabulator::Grammar::RuleParser

Inherits:
Racc::Parser
  • Object
show all
Defined in:
lib/fabulator/grammar/rule_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",
"PIPE",
"LLB",
"MODE",
"NCNAME",
"RB",
"COMMIT",
"UNCOMMIT",
"REJECT",
"SKIP",
"RESYNC",
"DOT_DOT_DOT",
"DOT_DOT_DOT_BANG",
"CARET",
"CARET_CARET",
"DOLLAR",
"DOLLAR_DOLLAR",
"COLON_EQUAL",
"LLP",
"QUESTION",
"RP",
"S",
"INTEGER",
"DOT_DOT",
"LITERAL",
"LP",
"LB",
"COMMA",
"SLASH",
"$start",
"rules",
"rule",
"rule_bit",
"directives",
"sequence",
"directive",
"opt_separator",
"atom",
"sequence_qualifiers",
"hypothetical",
"opt_params",
"params",
"param",
"relative_path" ]
Racc_debug_parser =
false

Instance Method Summary collapse

Instance Method Details

#_reduce_none(val, _values, result) ⇒ Object

reduce 46 omitted



661
662
663
# File 'lib/fabulator/grammar/rule_parser.rb', line 661

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