Class: Packcr::Parser::LrHead

Inherits:
Object
  • Object
show all
Defined in:
lib/packcr/parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rule_name) ⇒ LrHead

Returns a new instance of LrHead.



4453
4454
4455
4456
4457
# File 'lib/packcr/parser.rb', line 4453

def initialize(rule_name)
  @rule_name = rule_name
  @involved_set = {}
  @eval_set = {}
end

Instance Attribute Details

#eval_setObject

Returns the value of attribute eval_set.



4451
4452
4453
# File 'lib/packcr/parser.rb', line 4451

def eval_set
  @eval_set
end

#involved_setObject

Returns the value of attribute involved_set.



4451
4452
4453
# File 'lib/packcr/parser.rb', line 4451

def involved_set
  @involved_set
end

#rule_nameObject

Returns the value of attribute rule_name.



4451
4452
4453
# File 'lib/packcr/parser.rb', line 4451

def rule_name
  @rule_name
end

Instance Method Details

#involved_set_to_eval_setObject



4459
4460
4461
4462
4463
4464
# File 'lib/packcr/parser.rb', line 4459

def involved_set_to_eval_set
  @eval_set.clear
  @involved_set.each do |k, v|
    @eval_set[k] = true
  end
end