Class: Rubycc::Front::AST::StringLit

Inherits:
Data
  • Object
show all
Defined in:
lib/rubycc/front/ast.rb

Overview

String literal. value is the escape-resolved bytes as an ASCII-8BIT String, without the NUL terminator. Its type is char (N being the byte count); in every expression context except sizeof it decays to a char * pointing at the string's first byte in .rodata.

Instance Attribute Summary collapse

Instance Attribute Details

#tokenObject (readonly)

Returns the value of attribute token

Returns:

  • (Object)

    the current value of token



24
25
26
# File 'lib/rubycc/front/ast.rb', line 24

def token
  @token
end

#valueObject (readonly)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



24
25
26
# File 'lib/rubycc/front/ast.rb', line 24

def value
  @value
end