2014-06-07 22:41:02 +03:00
|
|
|
|
2014-05-02 08:02:25 +03:00
|
|
|
module Vm
|
2014-05-03 15:13:44 +03:00
|
|
|
|
2014-05-31 12:52:29 +03:00
|
|
|
#currently just holding the object_space in here so we can have global access
|
2014-05-02 08:02:25 +03:00
|
|
|
class Context
|
2014-05-03 22:18:04 +03:00
|
|
|
|
2014-05-31 12:52:29 +03:00
|
|
|
def initialize object_space
|
2014-06-07 22:41:02 +03:00
|
|
|
@object_space = object_space
|
|
|
|
@locals = {}
|
2014-05-02 08:02:25 +03:00
|
|
|
end
|
2014-06-07 22:41:02 +03:00
|
|
|
attr_reader :attributes ,:object_space
|
|
|
|
|
|
|
|
attr_accessor :current_class , :locals , :function
|
2014-05-31 14:35:33 +03:00
|
|
|
|
2014-05-02 08:02:25 +03:00
|
|
|
end
|
|
|
|
end
|