Class: Lrama::Grammar::Code::PrinterCode
- Inherits:
-
Lrama::Grammar::Code
- Object
- Lrama::Grammar::Code
- Lrama::Grammar::Code::PrinterCode
- Defined in:
- lib/lrama/grammar/code/printer_code.rb
Instance Attribute Summary
Attributes inherited from Lrama::Grammar::Code
Instance Method Summary collapse
-
#initialize(type:, token_code:, tag:) ⇒ PrinterCode
constructor
A new instance of PrinterCode.
Methods inherited from Lrama::Grammar::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 |