Class: MilkTea::AST::StringLiteral

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:, cstring: false, line: nil, column: nil) ⇒ StringLiteral

Returns a new instance of StringLiteral.



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

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

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



291
292
293
# File 'lib/milk_tea/core/ast.rb', line 291

def column
  @column
end

#cstringObject (readonly)

Returns the value of attribute cstring

Returns:

  • (Object)

    the current value of cstring



291
292
293
# File 'lib/milk_tea/core/ast.rb', line 291

def cstring
  @cstring
end

#lexemeObject (readonly)

Returns the value of attribute lexeme

Returns:

  • (Object)

    the current value of lexeme



291
292
293
# File 'lib/milk_tea/core/ast.rb', line 291

def lexeme
  @lexeme
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



291
292
293
# File 'lib/milk_tea/core/ast.rb', line 291

def line
  @line
end

#valueObject (readonly)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



291
292
293
# File 'lib/milk_tea/core/ast.rb', line 291

def value
  @value
end