Class: Kapusta::Compiler::Language::AccumulateForm
- Inherits:
-
Struct
- Object
- Struct
- Kapusta::Compiler::Language::AccumulateForm
- Defined in:
- lib/kapusta/compiler/language.rb
Instance Attribute Summary collapse
-
#bindings ⇒ Object
Returns the value of attribute bindings.
-
#body ⇒ Object
Returns the value of attribute body.
Instance Method Summary collapse
- #acc_name ⇒ Object
- #binding_pats ⇒ Object
- #initial ⇒ Object
- #items ⇒ Object
- #iter_expr ⇒ Object
- #iter_items ⇒ Object
Instance Attribute Details
#bindings ⇒ Object
Returns the value of attribute bindings
65 66 67 |
# File 'lib/kapusta/compiler/language.rb', line 65 def bindings @bindings end |
#body ⇒ Object
Returns the value of attribute body
65 66 67 |
# File 'lib/kapusta/compiler/language.rb', line 65 def body @body end |
Instance Method Details
#acc_name ⇒ Object
68 |
# File 'lib/kapusta/compiler/language.rb', line 68 def acc_name = items[0] |
#binding_pats ⇒ Object
76 |
# File 'lib/kapusta/compiler/language.rb', line 76 def binding_pats = iter_items[0...-1] || [] |
#initial ⇒ Object
70 |
# File 'lib/kapusta/compiler/language.rb', line 70 def initial = items[1] |
#items ⇒ Object
66 |
# File 'lib/kapusta/compiler/language.rb', line 66 def items = bindings.is_a?(Vec) ? bindings.items : [] |
#iter_expr ⇒ Object
74 |
# File 'lib/kapusta/compiler/language.rb', line 74 def iter_expr = iter_items.last |
#iter_items ⇒ Object
72 |
# File 'lib/kapusta/compiler/language.rb', line 72 def iter_items = items[2..] || [] |