Class: Fabulator::Expr::Parser

Inherits:
Racc::Parser
  • Object
show all
Defined in:
lib/fabulator/expr/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",
"SEMI",
"ERR",
"WITH",
"COMMA",
"COLON_EQUAL",
"LET",
"DOLLAR_QNAME",
"XMLNS_COLON_NCNAME",
"LITERAL",
"IF",
"LP",
"RP",
"THEN",
"ELSE",
"FOR",
"RETURN",
"IN",
"SOME",
"SATISFIES",
"EVERY",
"OR",
"AND",
"EXCEPT",
"EQ",
"NEQ",
"LB",
"RB",
"LT",
"GT",
"LTE",
"GTE",
"DOT_DOT",
"TO",
"PLUS",
"MINUS",
"STAR",
"DIV",
"MOD",
"PIPE",
"SLASH",
"SLASH_SLASH",
"DOT",
"AT",
"AXIS_NAME",
"COLON_COLON",
"NUMBER",
"FUNCTION_NAME",
"QNAME",
"LC",
"RC",
"$start",
"statements",
"statement",
"expr",
"let_expr",
"ns_expr",
"or_expr",
"range_expr",
"if_expr",
"for_expr",
"quant_expr",
"with_expr",
"err_expr",
"expr_set_list",
"expr_set",
"path_expr",
"num_expr",
"additive_expr",
"num_list",
"for_vars",
"for_var",
"and_expr",
"equality_expr",
"relational_expr",
"tuple",
"args",
"multiplicative_expr",
"unary_expr",
"union_expr",
"union_expr_x",
"location_path",
"primary_expr",
"predicates",
"segment",
"relative_location_path",
"absolute_location_path",
"axis_name",
"step",
"axis",
"node_test",
"predicate",
"list",
"opt_args" ]
Racc_debug_parser =
false

Instance Method Summary collapse

Instance Method Details

#_reduce_none(val, _values, result) ⇒ Object

reduce 103 omitted



1651
1652
1653
# File 'lib/fabulator/expr/parser.rb', line 1651

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