Class: RLTK::CG::Interpreter

Inherits:
ExecutionEngine show all
Defined in:
lib/rltk/cg/execution_engine.rb

Overview

An execution engine that interprets the given code.

Instance Attribute Summary

Attributes inherited from ExecutionEngine

#module

Attributes included from BindingClass

#ptr

Instance Method Summary collapse

Methods inherited from ExecutionEngine

#dispose, #pointer_to_global, #run_function, #run_function_as_main, #target_data

Methods included from BindingClass

#==

Methods included from AbstractClass

included

Constructor Details

#initialize(mod) ⇒ Interpreter

Create a new interpreter.

Parameters:

  • mod (Module)

    Module to be executed.



151
152
153
154
155
# File 'lib/rltk/cg/execution_engine.rb', line 151

def initialize(mod)
	super(mod) do |ptr, error|
		Bindings.create_interpreter_for_module(ptr, mod, error)
	end
end