Class: Nydp::Cond_LEX_CND_LIT

Inherits:
CondBase show all
Defined in:
lib/nydp/cond.rb

Instance Method Summary collapse

Methods inherited from CondBase

#initialize, #inspect, #lexical_reach, #to_s

Methods included from Helper

#cons, #list, #literal?, #pair?, #sig, #sym, #sym?

Methods included from Converter

#n2r, #r2n

Constructor Details

This class inherits a constructor from Nydp::CondBase

Instance Method Details

#execute(vm) ⇒ Object



183
184
185
186
187
188
189
# File 'lib/nydp/cond.rb', line 183

def execute vm
  if Nydp::NIL.is?(@condition.value vm.current_context)
    vm.push_arg @when_false
  else
    @when_true.execute vm
  end
end