Class: Lrama::Parser

Inherits:
Racc::Parser
  • Object
show all
Defined in:
lib/lrama/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",
"C_DECLARATION",
"CHARACTER",
"IDENT_COLON",
"IDENTIFIER",
"INTEGER",
"STRING",
"TAG",
"\"%%\"",
"\"%{\"",
"\"%}\"",
"\"%require\"",
"\"%expect\"",
"\"%define\"",
"\"%param\"",
"\"%lex-param\"",
"\"%parse-param\"",
"\"%code\"",
"\"%initial-action\"",
"\"%no-stdlib\"",
"\"%locations\"",
"\";\"",
"\"%union\"",
"\"%destructor\"",
"\"%printer\"",
"\"%error-token\"",
"\"%after-shift\"",
"\"%before-reduce\"",
"\"%after-reduce\"",
"\"%after-shift-error-token\"",
"\"%after-pop-stack\"",
"\"-temp-group\"",
"\"%token\"",
"\"%type\"",
"\"%nterm\"",
"\"%left\"",
"\"%right\"",
"\"%precedence\"",
"\"%nonassoc\"",
"\"%rule\"",
"\"(\"",
"\")\"",
"\":\"",
"\"%inline\"",
"\",\"",
"\"|\"",
"\"%empty\"",
"\"%prec\"",
"\"{\"",
"\"}\"",
"\"?\"",
"\"+\"",
"\"*\"",
"\"[\"",
"\"]\"",
"\"{...}\"",
"$start",
"input",
"prologue_declaration",
"bison_declaration",
"rules_or_grammar_declaration",
"epilogue_declaration",
"\"-many@prologue_declaration\"",
"\"-many@bison_declaration\"",
"\"-many1@rules_or_grammar_declaration\"",
"\"-option@epilogue_declaration\"",
"@1",
"@2",
"grammar_declaration",
"variable",
"value",
"param",
"\"-many1@param\"",
"symbol_declaration",
"rule_declaration",
"inline_declaration",
"symbol",
"\"-group@symbol|TAG\"",
"\"-many1@-group@symbol|TAG\"",
"token_declarations",
"symbol_declarations",
"token_declarations_for_precedence",
"token_declaration",
"\"-option@TAG\"",
"\"-many1@token_declaration\"",
"id",
"alias",
"\"-option@INTEGER\"",
"rule_args",
"rule_rhs_list",
"rule_rhs",
"named_ref",
"parameterizing_suffix",
"parameterizing_args",
"midrule_action",
"\"-option@%empty\"",
"\"-option@named_ref\"",
"string_as_id",
"\"-option@string_as_id\"",
"\"-many1@symbol\"",
"@3",
"@4",
"\"-many1@id\"",
"rules",
"\"-option@;\"",
"rhs_list",
"rhs",
"\"-option@parameterizing_suffix\"",
"@5",
"@6",
"@7" ]
Racc_debug_parser =
true

Instance Method Summary collapse

Instance Method Details

#_reduce_none(val, _values, result) ⇒ Object



2139
2140
2141
# File 'lib/lrama/parser.rb', line 2139

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