Class: Lrama::Grammar::Code::PrinterCode

Inherits:
Lrama::Grammar::Code show all
Defined in:
lib/lrama/grammar/code/printer_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:) ⇒ PrinterCode

Returns a new instance of PrinterCode.



7
8
9
10
# File 'lib/lrama/grammar/code/printer_code.rb', line 7

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