Class: Rubycc::Front::AST::Conditional
- Inherits:
-
Data
- Object
- Data
- Rubycc::Front::AST::Conditional
- Defined in:
- lib/rubycc/front/ast.rb
Overview
The conditional operator "condition ? then_expr : else_expr".
condition must be int-typed; then_expr and else_expr must share
the same type (int/int or same-type pointer/pointer).
Instance Attribute Summary collapse
-
#condition ⇒ Object
readonly
Returns the value of attribute condition.
-
#else_expr ⇒ Object
readonly
Returns the value of attribute else_expr.
-
#then_expr ⇒ Object
readonly
Returns the value of attribute then_expr.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Attribute Details
#condition ⇒ Object (readonly)
Returns the value of attribute condition
55 56 57 |
# File 'lib/rubycc/front/ast.rb', line 55 def condition @condition end |
#else_expr ⇒ Object (readonly)
Returns the value of attribute else_expr
55 56 57 |
# File 'lib/rubycc/front/ast.rb', line 55 def else_expr @else_expr end |
#then_expr ⇒ Object (readonly)
Returns the value of attribute then_expr
55 56 57 |
# File 'lib/rubycc/front/ast.rb', line 55 def then_expr @then_expr end |
#token ⇒ Object (readonly)
Returns the value of attribute token
55 56 57 |
# File 'lib/rubycc/front/ast.rb', line 55 def token @token end |