Class: FAM::Syntax::AST::LoadNode

Inherits:
Node show all
Defined in:
lib/fam/syntax/ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#to_s

Constructor Details

#initialize(value, register) ⇒ LoadNode

Returns a new instance of LoadNode.



55
56
57
58
# File 'lib/fam/syntax/ast.rb', line 55

def initialize value, register
  @value = value
  @register = register
end

Instance Attribute Details

#registerObject

Returns the value of attribute register.



54
55
56
# File 'lib/fam/syntax/ast.rb', line 54

def register
  @register
end

#valueObject

Returns the value of attribute value.



54
55
56
# File 'lib/fam/syntax/ast.rb', line 54

def value
  @value
end