parser.y in lrama-0.6.8 vs parser.y in lrama-0.6.9
- old
+ new
@@ -230,12 +230,12 @@
token_declaration_list: token_declaration { result = [val[0]] }
| token_declaration_list token_declaration { result = val[0].append(val[1]) }
token_declaration: id int_opt alias { result = val }
- rule_declaration: "%rule" IDENTIFIER "(" rule_args ")" ":" rule_rhs_list
+ rule_declaration: "%rule" IDENTIFIER "(" rule_args ")" tag_opt ":" rule_rhs_list
{
- rule = Grammar::ParameterizingRule::Rule.new(val[1].s_value, val[3], val[6])
+ rule = Grammar::ParameterizingRule::Rule.new(val[1].s_value, val[3], val[7], tag: val[5])
@grammar.add_parameterizing_rule(rule)
}
inline_declaration: "%rule" "%inline" id_colon ":" rule_rhs_list
{