Class: Rubycc::Front::AST::FloatLit

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

Overview

Floating-point literal. value is a Ruby Float and type its Rubycc::Type — Type::Float for an f/F-suffixed constant, Type::Double otherwise (a plain or l/L-suffixed one) — fixed by the parser from the constant's suffix (6.4.4.2).

Instance Attribute Summary collapse

Instance Attribute Details

#tokenObject (readonly)

Returns the value of attribute token

Returns:

  • (Object)

    the current value of token



18
19
20
# File 'lib/rubycc/front/ast.rb', line 18

def token
  @token
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



18
19
20
# File 'lib/rubycc/front/ast.rb', line 18

def type
  @type
end

#valueObject (readonly)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



18
19
20
# File 'lib/rubycc/front/ast.rb', line 18

def value
  @value
end