Class: Plasma::Interpreter::SeqNode

Inherits:
ColNode show all
Defined in:
lib/plasma/interpreter/plasma_grammarnode.rb

Instance Method Summary collapse

Methods inherited from ColNode

#col

Methods inherited from PlasmaNode

#empty?

Instance Method Details

#evaluate(env) ⇒ Object



234
235
236
237
238
239
240
# File 'lib/plasma/interpreter/plasma_grammarnode.rb', line 234

def evaluate(env)
  env.scope do |env|
    col.inject(nil) do |value, statement|
      statement.evaluate(env)
    end
  end
end