Class: Nydp::Invocation::Invocation_SYM

Inherits:
Base show all
Defined in:
lib/nydp/function_invocation.rb

Instance Method Summary collapse

Methods inherited from Base

#handle, #inspect, #lexical_reach, #source, #to_s

Methods included from Helper

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

Methods included from Converter

#n2r, #r2n

Constructor Details

#initialize(expr, src) ⇒ Invocation_SYM

Returns a new instance of Invocation_SYM.



128
129
130
131
# File 'lib/nydp/function_invocation.rb', line 128

def initialize expr, src
  super expr, src
  @sym = expr.car
end

Instance Method Details

#execute(vm) ⇒ Object



133
134
135
136
137
138
# File 'lib/nydp/function_invocation.rb', line 133

def execute vm
#        Invocation.sig self.class.name
  @sym.value.invoke_1 vm
rescue StandardError => e
  handle e, @sym.value, :invoke_1
end