Class: Lrama::Printer

Inherits:
Struct
  • Object
show all
Defined in:
lib/lrama/grammar.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#codeObject

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



268
269
270
# File 'lib/lrama/grammar.rb', line 268

def code
  @code
end

#ident_or_tagsObject

Returns the value of attribute ident_or_tags

Returns:

  • (Object)

    the current value of ident_or_tags



268
269
270
# File 'lib/lrama/grammar.rb', line 268

def ident_or_tags
  @ident_or_tags
end

#linenoObject

Returns the value of attribute lineno

Returns:

  • (Object)

    the current value of lineno



268
269
270
# File 'lib/lrama/grammar.rb', line 268

def lineno
  @lineno
end

Instance Method Details

#translated_code(member) ⇒ Object



269
270
271
# File 'lib/lrama/grammar.rb', line 269

def translated_code(member)
  code.translated_printer_code(member)
end