Class: Rubycc::Front::AST::Unary

Inherits:
Data
  • Object
show all
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

Instance Attribute Details

#opObject (readonly)

Returns the value of attribute op

Returns:

  • (Object)

    the current value of op



28
29
30
# File 'lib/rubycc/front/ast.rb', line 28

def op
  @op
end

#operandObject (readonly)

Returns the value of attribute operand

Returns:

  • (Object)

    the current value of operand



28
29
30
# File 'lib/rubycc/front/ast.rb', line 28

def operand
  @operand
end

#tokenObject (readonly)

Returns the value of attribute token

Returns:

  • (Object)

    the current value of token



28
29
30
# File 'lib/rubycc/front/ast.rb', line 28

def token
  @token
end