Class: Rubycc::Front::AST::Unary
- Inherits:
-
Data
- Object
- Data
- Rubycc::Front::AST::Unary
- Defined in:
- lib/rubycc/front/ast.rb
Overview
Unary operation. op is :neg or :not (unary + is folded away by the
parser), :addr (the address-of "&") or :deref (the dereference "*").
Instance Attribute Summary collapse
-
#op ⇒ Object
readonly
Returns the value of attribute op.
-
#operand ⇒ Object
readonly
Returns the value of attribute operand.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Attribute Details
#op ⇒ Object (readonly)
Returns the value of attribute op
28 29 30 |
# File 'lib/rubycc/front/ast.rb', line 28 def op @op end |
#operand ⇒ Object (readonly)
Returns the value of attribute operand
28 29 30 |
# File 'lib/rubycc/front/ast.rb', line 28 def operand @operand end |
#token ⇒ Object (readonly)
Returns the value of attribute token
28 29 30 |
# File 'lib/rubycc/front/ast.rb', line 28 def token @token end |