Class: Rubycc::Front::AST::Comma

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

Overview

The comma operator "left, right" (ISO C 6.5.17): left is evaluated for its side effects and its value discarded, then right is evaluated and its value and type become the whole expression's. Only a context that admits a full expression (a parenthesized expression, a subscript, an expression-statement, the three for-clauses, a control condition, a return, the middle of "?:") ever builds one; a comma that merely separates items (call arguments, declarators) is not this node.

Instance Attribute Summary collapse

Instance Attribute Details

#leftObject (readonly)

Returns the value of attribute left

Returns:

  • (Object)

    the current value of left



44
45
46
# File 'lib/rubycc/front/ast.rb', line 44

def left
  @left
end

#rightObject (readonly)

Returns the value of attribute right

Returns:

  • (Object)

    the current value of right



44
45
46
# File 'lib/rubycc/front/ast.rb', line 44

def right
  @right
end

#tokenObject (readonly)

Returns the value of attribute token

Returns:

  • (Object)

    the current value of token



44
45
46
# File 'lib/rubycc/front/ast.rb', line 44

def token
  @token
end