Class: Kapusta::Compiler::Language::FaccumulateForm

Inherits:
Struct
  • Object
show all
Defined in:
lib/kapusta/compiler/language.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bindingsObject

Returns the value of attribute bindings

Returns:

  • (Object)

    the current value of bindings



78
79
80
# File 'lib/kapusta/compiler/language.rb', line 78

def bindings
  @bindings
end

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



78
79
80
# File 'lib/kapusta/compiler/language.rb', line 78

def body
  @body
end

Instance Method Details

#acc_nameObject



81
# File 'lib/kapusta/compiler/language.rb', line 81

def acc_name = items[0]

#counterObject



85
# File 'lib/kapusta/compiler/language.rb', line 85

def counter = items[2]

#finishObject



89
# File 'lib/kapusta/compiler/language.rb', line 89

def finish = items[4]

#initialObject



83
# File 'lib/kapusta/compiler/language.rb', line 83

def initial = items[1]

#itemsObject



79
# File 'lib/kapusta/compiler/language.rb', line 79

def items = bindings.is_a?(Vec) ? bindings.items : []

#startObject



87
# File 'lib/kapusta/compiler/language.rb', line 87

def start = items[3]

#stepObject



91
# File 'lib/kapusta/compiler/language.rb', line 91

def step = items[5]