Class: Rubycc::Front::LexemeReader::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/rubycc/front/lexeme_reader.rb

Overview

A decoded lexeme. type is :num, :float, :string, :ident or :keyword. value is the folded Integer/Float, the escape-resolved ASCII-8BIT bytes of a string, or the identifier text. base/suffix accompany an integer :num and suffix a :float, matching Front::Token's numeric fields.

Instance Attribute Summary collapse

Instance Attribute Details

#baseObject

Returns the value of attribute base

Returns:

  • (Object)

    the current value of base



32
33
34
# File 'lib/rubycc/front/lexeme_reader.rb', line 32

def base
  @base
end

#suffixObject

Returns the value of attribute suffix

Returns:

  • (Object)

    the current value of suffix



32
33
34
# File 'lib/rubycc/front/lexeme_reader.rb', line 32

def suffix
  @suffix
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



32
33
34
# File 'lib/rubycc/front/lexeme_reader.rb', line 32

def type
  @type
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



32
33
34
# File 'lib/rubycc/front/lexeme_reader.rb', line 32

def value
  @value
end