Class: Lrama::Grammar::Code::DestructorCode

Inherits:
Lrama::Grammar::Code show all
Defined in:
lib/lrama/grammar/code/destructor_code.rb

Instance Attribute Summary

Attributes inherited from Lrama::Grammar::Code

#token_code, #type

Instance Method Summary collapse

Methods inherited from Lrama::Grammar::Code

#==, #translated_code

Constructor Details

#initialize(type:, token_code:, tag:) ⇒ DestructorCode

Returns a new instance of DestructorCode.



16
17
18
19
# File 'lib/lrama/grammar/code/destructor_code.rb', line 16

def initialize(type:, token_code:, tag:)
  super(type: type, token_code: token_code)
  @tag = tag
end