Class: MilkTea::AST::FloatLiteral

Inherits:
Data
  • Object
show all
Defined in:
lib/milk_tea/core/ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(lexeme:, value:, line: nil, column: nil) ⇒ FloatLiteral

Returns a new instance of FloatLiteral.



289
# File 'lib/milk_tea/core/ast.rb', line 289

def initialize(lexeme:, value:, line: nil, column: nil) = super

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



288
289
290
# File 'lib/milk_tea/core/ast.rb', line 288

def column
  @column
end

#lexemeObject (readonly)

Returns the value of attribute lexeme

Returns:

  • (Object)

    the current value of lexeme



288
289
290
# File 'lib/milk_tea/core/ast.rb', line 288

def lexeme
  @lexeme
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



288
289
290
# File 'lib/milk_tea/core/ast.rb', line 288

def line
  @line
end

#valueObject (readonly)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



288
289
290
# File 'lib/milk_tea/core/ast.rb', line 288

def value
  @value
end