lib/lrama/grammar/parameterizing_rule/rule.rb in lrama-0.6.8 vs lib/lrama/grammar/parameterizing_rule/rule.rb in lrama-0.6.9

- old
+ new

@@ -1,14 +1,15 @@ module Lrama class Grammar class ParameterizingRule class Rule - attr_reader :name, :parameters, :rhs_list, :required_parameters_count, :is_inline + attr_reader :name, :parameters, :rhs_list, :required_parameters_count, :tag, :is_inline - def initialize(name, parameters, rhs_list, is_inline: false) + def initialize(name, parameters, rhs_list, tag: nil, is_inline: false) @name = name @parameters = parameters @rhs_list = rhs_list + @tag = tag @is_inline = is_inline @required_parameters_count = parameters.count end end end