Class: Fabulator::Grammar::TokenParser

Inherits:
Racc::Parser
  • Object
show all
Defined in:
lib/fabulator/grammar/token_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",
"CARET",
"DOLLAR",
"DOT",
"LP",
"RP",
"LB",
"RB",
"MINUS",
"PLUS",
"COLON",
"NCNAME",
"CHAR_TEXT",
"TEXT",
"INTEGER",
"COMMA",
"STAR",
"QUESTION",
"LLB",
"$start",
"rules",
"anchored_rule",
"rule",
"left_anchor",
"right_anchor",
"sequence",
"atom",
"sequence_qualifiers",
"text",
"atom_expr",
"char_set_expr",
"char_set",
"char_set_text",
"qname" ]
Racc_debug_parser =
false

Instance Method Summary collapse

Instance Method Details

#_reduce_none(val, _values, result) ⇒ Object



727
728
729
# File 'lib/fabulator/grammar/token_parser.rb', line 727

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