2014-05-06 11:47:07 +02:00
|
|
|
require "core/kernel"
|
2014-05-03 14:13:44 +02:00
|
|
|
require_relative "program"
|
2014-05-02 07:02:25 +02:00
|
|
|
|
|
|
|
module Vm
|
2014-05-03 14:13:44 +02:00
|
|
|
|
|
|
|
#currently just holding the program in here so we can have global access
|
2014-05-02 07:02:25 +02:00
|
|
|
class Context
|
2014-05-03 21:18:04 +02:00
|
|
|
# Make hash attributes to object attributes
|
|
|
|
include Support::HashAttributes
|
|
|
|
|
2014-05-03 14:13:44 +02:00
|
|
|
def initialize program
|
|
|
|
@attributes = {}
|
2014-05-05 14:59:29 +02:00
|
|
|
@attributes[:program] = program
|
2014-05-02 07:02:25 +02:00
|
|
|
end
|
2014-05-03 14:13:44 +02:00
|
|
|
|
2014-05-02 07:02:25 +02:00
|
|
|
end
|
|
|
|
end
|