Class: Rubycc::Front::AST::Comma
- Inherits:
-
Data
- Object
- Data
- Rubycc::Front::AST::Comma
- 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
-
#left ⇒ Object
readonly
Returns the value of attribute left.
-
#right ⇒ Object
readonly
Returns the value of attribute right.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Attribute Details
#left ⇒ Object (readonly)
Returns the value of attribute left
44 45 46 |
# File 'lib/rubycc/front/ast.rb', line 44 def left @left end |
#right ⇒ Object (readonly)
Returns the value of attribute right
44 45 46 |
# File 'lib/rubycc/front/ast.rb', line 44 def right @right end |
#token ⇒ Object (readonly)
Returns the value of attribute token
44 45 46 |
# File 'lib/rubycc/front/ast.rb', line 44 def token @token end |