Class: Nydp::Invocation::Invocation_LEX_LEX_LEX
- Defined in:
- lib/nydp/function_invocation.rb
Instance Method Summary collapse
- #execute(vm) ⇒ Object
-
#initialize(expr, src) ⇒ Invocation_LEX_LEX_LEX
constructor
A new instance of Invocation_LEX_LEX_LEX.
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
Constructor Details
#initialize(expr, src) ⇒ Invocation_LEX_LEX_LEX
Returns a new instance of Invocation_LEX_LEX_LEX.
194 195 196 197 198 199 |
# File 'lib/nydp/function_invocation.rb', line 194 def initialize expr, src super expr, src @lex_0 = expr.car @lex_1 = expr.cdr.car @lex_2 = expr.cdr.cdr.car end |
Instance Method Details
#execute(vm) ⇒ Object
201 202 203 204 205 206 207 208 209 |
# File 'lib/nydp/function_invocation.rb', line 201 def execute vm # Invocation.sig self.class.name fn = @lex_0.value(vm.current_context) a0 = @lex_1.value(vm.current_context) a1 = @lex_2.value(vm.current_context) fn.invoke_3 vm, a0, a1 rescue StandardError => e handle e, fn, :invoke_3, a0, a1 end |