Class: Cadenza::RaccParser

Inherits:
Racc::Parser
  • Object
show all
Defined in:
lib/cadenza/racc_parser.rb

Direct Known Subclasses

Parser

Constant Summary

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",
"\",\"",
"IDENTIFIER",
"INTEGER",
"REAL",
"STRING",
"\"(\"",
"\")\"",
"\"*\"",
"\"/\"",
"\"+\"",
"\"-\"",
"OP_EQ",
"OP_NEQ",
"OP_LEQ",
"OP_GEQ",
"\">\"",
"\"<\"",
"NOT",
"AND",
"OR",
"\":\"",
"\"|\"",
"VAR_OPEN",
"VAR_CLOSE",
"STMT_OPEN",
"IF",
"STMT_CLOSE",
"UNLESS",
"ELSE",
"ENDIF",
"ENDUNLESS",
"FOR",
"IN",
"ENDFOR",
"BLOCK",
"ENDBLOCK",
"END",
"EXTENDS",
"TEXT_BLOCK",
"$start",
"target",
"document",
"parameter_list",
"logical_expression",
"primary_expression",
"filtered_expression",
"multiplicative_expression",
"additive_expression",
"boolean_expression",
"inverse_expression",
"filter",
"filter_list",
"inject_statement",
"if_tag",
"unless_tag",
"else_tag",
"end_if_tag",
"end_unless_tag",
"if_block",
"unless_block",
"for_tag",
"end_for_tag",
"for_block",
"@1",
"block_tag",
"end_block_tag",
"block_block",
"@2",
"generic_block",
"@3",
"@4",
"extends_statement",
"document_component" ]
Racc_debug_parser =
false

Instance Method Summary collapse

Instance Method Details

#_reduce_none(val, _values, result) ⇒ Object



896
897
898
# File 'lib/cadenza/racc_parser.rb', line 896

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